/* ========== 1. ベース設定 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

main {
  margin-top: var(--header-height);
  position: relative;
  width: 100%;
  max-width: 100vw;
  margin-left: auto;
  margin-right: auto;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer {
  background: var(--color-footer-bg);
  color: #fff;
  text-align: center;
  padding: 2rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.menu-toggle:active {
  transform: scale(0.9);
  color: var(--color-nav-hover);
}

/* ========== 2. ヒーローエリア ========== */
.hero-area {
  position: relative;
  overflow: hidden;
  width: 48%;
  aspect-ratio: 16/9;
  z-index: 1;
}

.slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease-in-out;
}

.slide {
  flex-shrink: 0;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  object-fit: contain;
}

.hero-content {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  width: 90%;
  max-width: 800px;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.5);
  border: none;
  font-size: 2rem;
  padding: 0.3rem 0.8rem;
  border-radius: 50%;
  cursor: pointer;
}

.arrow.left { left: 10px; }
.arrow.right {
  right: 0px;
  transform: translateY(-50%) translateX(-20%);
}
.arrow:hover { background: rgba(255, 255, 255, 0.8); }

/* ========== 3. セクション共通設定 ========== */
#schedule1,
#schedule2,
#schedule3 {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 1px;
  background: var(--color-bg);
  padding: 0px 0px;
}
#schedule1 { max-width: 100%; }

/* ----------------------------------------------------
   ★修正済み：セクションタイトル
   ---------------------------------------------------- */
.section-title {
  background: none;
  border: none;
  border-radius: 0;
  
  display: flex;
  flex-direction: column; 
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 50px auto 30px auto;
}

.section-title::before,
.section-title::after {
  content: none !important;
  display: none !important;
}

/* ▼ 日本語タイトル */
.jp-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0055ff;
  
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.jp-title::before,
.jp-title::after {
  content: '';
  height: 3px;
  width: 60px;
  background: linear-gradient(to right, transparent, #00bfff);
  border-radius: 3px;
  flex-shrink: 0;
}

.jp-title::after {
  background: linear-gradient(to left, transparent, #00bfff);
}

/* ▼ 英語サブタイトル */
.en-title {
  font-size: 1rem;
  color: #00bfff;
  letter-spacing: 0.1em;
  font-weight: 600;
  line-height: 1;
}

/* ========== 4. カレンダー・スケジュール ========== */
.month-nav {
  max-width: var(--layout-max-width);
  margin: 10px auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.month-label {
  font-weight: 700;
  letter-spacing: 0.02em;
  min-width: 9rem;
  text-align: center;
}

.month-btn {
  padding: 0.4rem 0.8rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 0.5rem;
  cursor: pointer;
}
.month-btn.today { border-color: #60a5fa; }

.schedule-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #eef2ff;
  width: 100%;
  max-width: 90%;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 255, 0.05);
  border: none;
  padding: 0;
}

.weekday-header {
  background: #0000ff;
  color: #fff;
  padding: 12px 0;
  font-weight: bold;
  font-size: 0.9rem;
  text-align: center;
  letter-spacing: 0.1em;
}

.day-cell {
  background: #ffffff;
  padding: 10px 8px;
  min-height: 160px;
  height: auto;
  transition: background 0.2s ease;
  display: flex;
  flex-direction: column;
}
.day-cell:not(.empty-cell):hover { background: #f8faff; }

.day-date {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #aab4cc;
  margin-bottom: 10px;
}
.day-cell:has(.event-title) .day-date { color: #0000ff; }

.day-cell > div:nth-child(2) {
  border: none;
  padding: 0;
  margin-top: 5px;
}

.event-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #1a1a1a;
  background: rgba(0, 0, 255, 0.05);
  padding: 4px 8px;
  border-radius: 4px;
  border-left: 3px solid #0000ff;
  margin-bottom: 6px;
  line-height: 1.3;
}

.event-time {
  font-size: 0.75rem;
  font-weight: bold;
  color: #0000ff;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
}
.event-time::before { content: "⏰"; margin-right: 3px; }

.event-artist {
  font-size: 0.75rem;
  color: #666;
  line-height: 1.4;
  padding-left: 5px;
}
.day-cell > div:nth-child(2) {
  padding: 5px;
  margin-top: 5px;
  font-size: 0.8rem;
}

.schedule-list { display: none; }

/* ========== 5. プロフィール ========== */
.profiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.profile-item {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 20px;
  background: #ffffff;
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 255, 0.05), 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease;
}

.jpeg_area {
  flex: 0 0 35%;
  position: relative;
  overflow: hidden;
}

.jpeg_area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}

.profile-meta {
  flex: 1;
  padding: 15px 15px 15px 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-text:first-of-type {
  font-size: 0.75rem;
  color: #0000ff;
  font-weight: 700;
  margin-bottom: 2px;
  opacity: 0.8;
}

.profile-name {
  font-size: 1.2rem !important;
  font-weight: 900 !important;
  color: #1a1a1a !important;
  margin: 5px 0;
  position: relative;
  display: inline-block;
}

.profile-name::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #0000ff;
  border-radius: 50%;
  margin-left: 8px;
  vertical-align: middle;
  box-shadow: 0 0 5px rgba(0, 0, 255, 0.5);
}

.profile-text:last-of-type {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #555;
  margin-top: 8px;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ========== 6. スマホ対応 (max-width: 767px) ========== */
@media (max-width: 767px) {
  :root {
    --profile-img-min-width: 150px;
    --profile-img-max-width: 150px;
    --profile-img-min-height: 200px;
    --profile-img-max-height: 200px;
  }
  
  .section-title {
    margin-top: 30px;
    margin-bottom: 20px;
  }
  .jp-title {
    font-size: 1.2rem;
    gap: 10px;
  }
  .jp-title::before,
  .jp-title::after {
    width: 30px;
  }

  .profiles {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 5px;
  }
  .menu-toggle { display: block; }
  .schedule-calendar { display: none; }

  .schedule-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .schedule-item {
    background: var(--color-card-bg);
    border-radius: var(--radius-card);
    box-shadow: 0 2px 6px var(--color-card-shadow);
    padding: 1rem;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    border-left: 5px solid #0000ff;
    overflow: hidden;
    transition: transform 0.3s ease;
  }

  .schedule-item::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
  }

  .schedule-item-date {
    display: inline-block;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 255, 0.3);
    color: #0000ff;
    padding: 2px 14px;
    border-radius: 4px; 
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative;
    list-style: none; 
  }

  .schedule-item-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 8px 0;
    line-height: 1.4;
    border-bottom: 1px solid #e0eaff;
    padding-bottom: 8px;
  }

  .schedule-item-time {
    color: #0000ff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
  }
  .schedule-item-time::before {
    content: "⏰";
    margin-right: 5px;
    font-size: 0.9rem;
  }

  .schedule-item-artist {
    color: #444;
    font-size: 0.9rem;
    padding: 2px 0;
    display: flex;
    align-items: center;
  }
  .schedule-item-artist::before {
    content: "👤";
    margin-right: 8px;
    opacity: 0.6;
  }

  .schedule-item:active {
    transform: scale(0.98);
    background: linear-gradient(135deg, #f0f7ff 0%, #e0eaff 100%);
  }

  .hero-area {
    width: 100vw;
    max-width: 400px;
    aspect-ratio: 16/9;
    overflow: hidden;
  }
  
  .slide {
    padding: 0px;
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    justify-items: stretch;
    background-color: hotpink;
  }
  
  .jpeg_area {
    width: 35vw;
    max-width: var(--profile-img-max-width);
    min-width: var(--profile-img-min-width);
    max-height: var(--profile-img-max-height);
    min-height: var(--profile-img-min-height);
    overflow: hidden;
    flex: 0 1 auto;
  }
  
  .submenu {
    margin: 0;
    padding: 0;
    list-style-type: none;
  }
  .nav-links li.submenu {
    margin-left: 1.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
  }

  .profile-item {
    border: solid blue 1px;
    display: flex;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
  }
  .jpeg_area { width: 100%; }
  .profile-meta {
    width: 100%;
    font-size: 14px;
  }
  #schedule1, #schedule2, #schedule3 { max-width: 400px; }
}

/* ========== 7. タブレット対応 (min: 768px, max: 1024px) ========== */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-area {
    width: 100vw;
    height: 450px;
    overflow: hidden;
    max-width: 800px;
  }
  .profiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .menu-toggle { display: none; }
  .schedule-calendar {
    width: 100vw;
    margin: 0 auto;
  }
  .day-cell > div:nth-child(2) {
    border: 1px solid red;
    padding: 5px;
    margin-top: 5px;
    font-size: 0.5rem;
  }
  .schedule-item {
    max-width: 300px;
    border: solid 3px red !important;
    display: block;
  }
}