/* ============================================
   Responsive Overrides
   600px (tablet) / 900px (desktop) / 1200px (wide)
   ============================================ */

/* --- Tablet (600px+) --- */
@media (min-width: 600px) {
  .container { max-width: 560px; }
  .hero-sub { font-size: 15px; }
  .section-title { font-size: 26px; }
  .philosophy-statement { font-size: 22px; }

  .member-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .member-thumb { border-radius: 8px; box-shadow: none; border: none; background: var(--gray-100); }
  .member-thumb img { aspect-ratio: 3/4; }
  .member-thumb-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(26,39,68,0.88)); padding: 28px 8px 10px; }
  .member-thumb-name { font-size: 14px; color: var(--white); text-align: center; }
  .member-thumb-role { font-size: 14px; color: var(--text-on-dark-sub); text-align: center; }
  .member-thumb-catch { font-size: 14px; color: var(--gold-light); text-align: center; }
  .member-grid--compact { gap: 8px; }
  .member-grid--compact .member-thumb-catch { display: none; }

  .business-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

  .purpose-pillars { flex-direction: row; gap: 16px; }
  .purpose-pillar { flex: 1; }

  .commit-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .trust-numbers { gap: 20px; }

  .job-card { display: grid; grid-template-columns: 1fr; }

  .footer-nav { grid-template-columns: repeat(3, 1fr); }

  /* Member detail layout */
}

/* --- Desktop (900px+) --- */
@media (min-width: 900px) {
  .container { max-width: 960px; padding: 0; }
  .section { padding: 80px 40px; }

  /* ③ Header: inline nav — フォント・間隔改善 */
  .hamburger { display: none; }
  .mobile-nav, .nav-overlay { display: none !important; }
  .site-header .header-inner { max-width: 960px; margin: 0 auto; height: 64px; }

  .header-desktop-nav { display: flex; align-items: center; gap: 28px; }
  .header-desktop-nav a {
    font-size: 15px; color: rgba(255,255,255,0.85); transition: color 0.2s;
    white-space: nowrap; letter-spacing: 0.02em;
  }
  .header-desktop-nav a:hover { color: var(--gold-light); }

  /* Hero */
  .hero { min-height: 700px; align-items: flex-end; justify-content: flex-start; }
  .hero-sub { font-size: 16px; }
  .hero-content { max-width: none; text-align: left; padding: 0 0 10% 6%; }
  .hero-tagline { font-size: 36px; }
  .hero-tagline-en { font-size: 15px; }

  /* Page hero */
  .page-hero { padding: 100px 40px 56px; }
  .page-hero-title { font-size: 32px; }

  /* ① フォントサイズ引き上げ — 本文系 */
  .section-title { font-size: 30px; }
  .section-lead { font-size: 16px; }
  .philosophy-statement { font-size: 26px; }
  .philosophy-compact-text { font-size: 16px; }

  .prose { max-width: 720px; margin-left: auto; margin-right: auto; }
  .prose p { font-size: 16px; }
  .prose li { font-size: 16px; }
  .prose h2 { font-size: 20px; }
  .prose h3 { font-size: 17px; }

  .recruit-desc { font-size: 16px; }
  .member-lead { font-size: 16px; }
  .member-detail-body p { font-size: 16px; }

  /* ① フォントサイズ引き上げ — 全般デスクトップ補正 */
  .section-en { font-size: 15px; }
  .hero-tagline-en { font-size: 15px; }
  .page-hero-en { font-size: 15px; }
  .commit-card-text { font-size: 16px; }
  .commit-card-title { font-size: 18px; }
  .trust-num-label { font-size: 15px; }
  .biz-commitment-summary p { font-size: 16px; }
  .vision-domain-name { font-size: 16px; }
  .vision-domain-sub { font-size: 15px; }
  .btn-more { font-size: 15px; }
  .member-thumb-name { font-size: 14px; }
  .member-thumb-role { font-size: 14px; }
  .member-thumb-catch { font-size: 14px; }
  .m-profile-label { font-size: 15px; }
  .m-number-label { font-size: 15px; }
  .m-peer-role { font-size: 14px; }
  .m-peer-text { font-size: 16px; }
  .m-qa-a { font-size: 16px; }
  .msg-body p { font-size: 16px; }
  .msg-chapter-en { font-size: 15px; }
  .msg-hero-en { font-size: 15px; }
  .history-year { font-size: 16px; }
  .history-text { font-size: 16px; }
  .history-detail { font-size: 15px; }

  /* ① フォントサイズ引き上げ — MVV系 */
  .mvv-hero-en { font-size: 15px; }
  .mvv-hero-statement { font-size: 42px; letter-spacing: 0.1em; }
  .mvv-hero-sub { font-size: 16px; }
  .mvv-lead p { font-size: 17px; }
  .mvv-catch { font-size: 28px; }
  .mvv-body { font-size: 16px; }
  .mvv-value-title { font-size: 18px; }
  .mvv-value-text { font-size: 16px; }
  .mvv-closing-text { font-size: 28px; }
  .mvv-closing-sub { font-size: 16px; }
  .mvv-closing-en { font-size: 15px; }
  .mvv-badge { width: 52px; height: 52px; font-size: 20px; }
  .mvv-section-header .section-lead { font-size: 16px; }

  /* ① フォントサイズ引き上げ — index系 */
  .vision-statement { font-size: 28px; }
  .vision-desc { font-size: 16px; }
  .purpose-pillar-text { font-size: 16px; }
  .purpose-pillar-title { font-size: 18px; }

  /* Commitment cards + trust numbers */
  .trust-numbers { grid-template-columns: repeat(4, 1fr); }
  .vision-domain-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

  /* ① フォントサイズ引き上げ — business/detail系 */
  .biz-detail-section p { font-size: 16px; }
  .biz-feature-text { font-size: 15px; }
  .biz-feature-title { font-size: 17px; }

  /* ① フォントサイズ引き上げ — member detail */

  /* ② レイアウト — MVV Values横3列化 */
  .mvv-values {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .mvv-value-card { min-height: 0; }

  /* ② レイアウト — ドメインダイアグラム画像拡大 */
  .mvv-domain-panel { padding: 48px 32px 56px; border-radius: 16px; }
  .mvv-domain-img { max-width: 640px; }

  /* ② レイアウト — 未来構想リスト2列化（business.html） */
  .section--dark > .container > .prose + div {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }

  /* ② レイアウト — メンバーグリッド3列化 + 幅制限 */
  .member-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 640px; margin-left: auto; margin-right: auto; }

  /* ② レイアウト — prose系max-width制限（dark section内は解除） */
  .section--dark .prose { max-width: none; }

  /* TOP Business section — desktop grid */
  .biz-top-cards { grid-template-columns: 1fr 1fr; }
  .biz-top-cards > :last-child { grid-column: 1 / -1; }
  .biz-top-card-text { font-size: 16px; }

  .purpose-pillars { gap: 24px; }
  .purpose-pillar { padding: 32px 24px; }

  /* Business detail */
  .biz-detail-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

  /* Member detail */

  /* News */

  /* Recruit */
  .recruit-catch { font-size: 28px; }

  /* Two-column prose */
  .prose-2col { columns: 2; column-gap: 32px; }

  /* ③ Footer — 均等配置 */
  .footer-nav {
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    text-align: center;
  }
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Vision */

  /* ③ MVV closing — padding拡大 */
  .mvv-closing { padding: 100px 40px 108px; }
  .mvv-closing-links { flex-direction: row; gap: 16px; justify-content: center; }

  /* Performance */

  /* Contact form */
  .form-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }

  /* Company table */
  .info-table th { width: 140px; }

  /* Recruit job cards */
  .job-cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

  /* Magazine member detail */
  .m-hero { display: flex; align-items: stretch; max-height: 480px; }
  .m-hero-photo { width: 50%; max-height: none; aspect-ratio: auto; min-height: 400px; object-fit: cover; object-position: top center; }
  .m-hero-overlay { position: relative; width: 50%; background: var(--navy); display: flex; flex-direction: column; justify-content: center; padding: 48px 40px; }
  .m-hero-name { font-size: 36px; }
  .m-catch-text { font-size: 22px; }
  .m-profile-grid { grid-template-columns: repeat(3, 1fr); }
  .m-profile-bio { font-size: 16px; }
  .m-iv-q { font-size: 20px; }
  .m-iv-a { font-size: 16px; }
  .m-iv-pullquote { font-size: 20px; padding: 32px 40px; }
  .m-iv-lead { font-size: 17px; }
  .m-iv-block { padding: 24px; }
  .m-iv-photo { margin: -24px -24px 0; width: calc(100% + 48px); }
  .m-qa-grid { grid-template-columns: 1fr 1fr; }
  .m-peer { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 800px; margin-left: auto; margin-right: auto; }
  .m-peer-card { margin-bottom: 0; }
  .m-peer-text { font-size: 16px; }

  .m-realestate-banner { max-width: 640px; margin: 24px auto 0; }
  .cta-box { max-width: 640px; margin: 24px auto 0; }
  .m-schedule-text { font-size: 16px; }

  /* Schedule — horizontal timeline on desktop */
  .m-schedule {
    display: flex;
    padding-left: 0;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    position: relative;
  }
  .m-schedule::before {
    /* horizontal line */
    left: 0; right: 0; top: 32px; bottom: auto;
    width: auto; height: 1px;
  }
  .m-schedule-item {
    flex: 1 0 0;
    min-width: 96px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 6px;
    gap: 8px;
  }
  .m-schedule-item::before {
    position: relative;
    left: auto; top: auto;
    margin-bottom: 8px;
    flex-shrink: 0;
  }
  .m-schedule-time {
    min-width: auto;
    font-size: 14px;
    order: -1;
  }
  .m-schedule-text { font-size: 14px; line-height: 1.5; }
  .m-schedule-note { font-size: 14px; line-height: 1.4; }

  /* Message page */
  .msg-hero { display: flex; align-items: stretch; max-height: 480px; max-width: 1200px; margin-left: auto; margin-right: auto; }
  .msg-hero-photo { width: 45%; max-height: none; aspect-ratio: auto; min-height: 400px; }
  .msg-hero-photo img { object-position: top center; }
  .msg-hero-text { width: 55%; display: flex; flex-direction: column; justify-content: center; padding: 48px 48px; text-align: left; }
  .msg-hero-title { font-size: 32px; }
  .msg-hero-name { font-size: 22px; }
  .msg-chapter-title { font-size: 24px; }
  .msg-body p { font-size: 16px; }
  .msg-pullquote { font-size: 24px; }
  .msg-closing-statement { font-size: 24px; }
  .msg-pullquote-section { padding: 64px 40px; }
  .msg-closing { padding: 72px 40px 80px; }

  /* Cookie Banner */
  .cookie-banner-inner { flex-direction: row; align-items: center; gap: 20px; }
  .cookie-banner-text { flex: 1; }
}

/* --- Wide (1200px+) --- */
@media (min-width: 1200px) {
  .container { max-width: 1080px; }
  .site-header .header-inner { max-width: 1080px; }
  .section-title { font-size: 34px; }

  /* Hero — wider padding */
  .hero-content { padding: 0 0 10% 8%; }
  .hero-tagline { font-size: 42px; }

  /* ② メンバーグリッド — 3列維持 + 幅拡張 */
  .member-grid { grid-template-columns: repeat(3, 1fr); max-width: 720px; }

  /* Schedule wider */
  .m-schedule-item { min-width: 108px; }
  .m-schedule-text { font-size: 15px; }
  .m-schedule-note { font-size: 14px; }

  /* ① MVV系フォント更にアップ */
  .mvv-hero-statement { font-size: 48px; }
  .mvv-catch { font-size: 32px; }
  .mvv-closing-text { font-size: 32px; }

  /* ② ドメインダイアグラム画像更に拡大 */
  .mvv-domain-img { max-width: 780px; }

  /* ③ ヘッダーナビ間隔拡大 */
  .header-desktop-nav { gap: 32px; }

  /* Magazine member detail */
  .m-hero { max-width: 1200px; margin-left: auto; margin-right: auto; }
  .m-hero-name { font-size: 42px; }
  .m-catch-text { font-size: 24px; }
  .m-profile-grid { grid-template-columns: repeat(6, 1fr); }
  .m-qa-grid { grid-template-columns: repeat(3, 1fr); }
  .m-iv-block { max-width: 800px; margin-left: auto; margin-right: auto; padding: 28px; }
  .m-iv-photo { margin: -28px -28px 0; width: calc(100% + 56px); }
  .m-iv-pullquote { max-width: 800px; margin-left: auto; margin-right: auto; font-size: 22px; }
}
