/* ===========================================================================
   MiraiNavi Corporate Site — Page-specific Styles
   各ページ固有のヒーロー・カード・本文構造
   brand.css の後に読み込むこと
   =========================================================================== */

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--sky-blue-light) 100%);
  padding: 120px 20px 100px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-h1 {
  font-size: 44px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.hero-h1 .highlight { color: var(--brand-blue); }
.hero-sub {
  font-size: 17px;
  color: var(--text-dark);
  margin-bottom: 36px;
  line-height: 1.9;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  align-items: center;
}
@media (prefers-reduced-motion: no-preference) {
  .hero::before,
  .hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.28;
    z-index: 0;
  }
  .hero::before {
    width: 280px; height: 280px;
    top: -70px; left: -70px;
    background: radial-gradient(circle, rgba(0,149,217,0.16) 0%, transparent 70%);
    animation: floatA 24s ease-in-out infinite;
  }
  .hero::after {
    width: 220px; height: 220px;
    bottom: -50px; right: -50px;
    background: radial-gradient(circle, rgba(91,178,73,0.16) 0%, transparent 70%);
    animation: floatB 30s ease-in-out infinite;
  }
  @keyframes floatA {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(18px, 14px); }
  }
  @keyframes floatB {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(-14px, -18px); }
  }
}

/* mobile では浮遊円を非表示 (ファーストビュー圧迫対策) */
@media (max-width: 768px) {
  .hero::before,
  .hero::after { display: none; }
}

/* Page hero (subpages) — softer, smaller */
.page-hero {
  background: var(--bg-soft);
  padding: 80px 20px 64px;
  text-align: center;
}
.page-hero h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.4;
}
.page-hero .lead {
  font-size: 16px;
  color: var(--text-gray);
  max-width: 640px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .hero { padding: 64px 20px; }
  .hero-h1 { font-size: 28px; }
  .hero-sub { font-size: 15px; line-height: 1.8; margin-bottom: 28px; }
  .hero-cta-row { flex-direction: column; gap: 12px; align-items: stretch; }

  .page-hero { padding: 56px 20px 40px; }
  .page-hero h1 { font-size: 26px; }
  .page-hero .lead { font-size: 14px; }
}

/* ===== Lead section (about) ===== */
.about-lead { background: var(--white); }
.about-lead p {
  font-size: 17px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px;
  line-height: 2;
  color: var(--text-body);
}
.about-lead .cta-row {
  text-align: center;
}

/* ===== Company cards ===== */
.company-section { background: var(--bg-soft); }

.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 32px auto 40px;
}
.company-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: var(--shadow);
}
.company-card .label {
  font-size: 13px;
  color: var(--text-gray);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.company-card .value {
  font-size: 16px;
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.7;
}
.company-card .value a {
  color: var(--brand-blue);
  text-decoration: none;
}
.company-card .value a:hover { text-decoration: underline; }

.company-cta-row {
  text-align: center;
  margin-top: 16px;
}

/* ===== Definition list (company.html) ===== */
.dl-info {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 0;
  box-shadow: var(--shadow);
}
.dl-info dl {
  display: grid;
  grid-template-columns: 200px 1fr;
}
.dl-info dt,
.dl-info dd {
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
}
.dl-info dl > div:last-child dt,
.dl-info dl > div:last-child dd {
  border-bottom: none;
}
.dl-info dt {
  background: var(--bg-soft);
  font-weight: 700;
  color: var(--navy);
  font-size: 14px;
}
.dl-info dd {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.8;
}
.dl-info dd a {
  color: var(--brand-blue);
  text-decoration: none;
}
.dl-info dd a:hover { text-decoration: underline; }
.dl-info ol { padding-left: 1.4em; }
.dl-info ol li { margin: 4px 0; }

/* dl-info row wrapper */
.dl-row { display: contents; }

@media (max-width: 768px) {
  .dl-info dl { grid-template-columns: 1fr; }
  .dl-info dt {
    border-bottom: none;
    padding: 14px 20px 4px;
    font-size: 13px;
  }
  .dl-info dd {
    padding: 4px 20px 16px;
    font-size: 14px;
  }
}

/* ===== 2-Layer business cards ===== */
.layers-section { background: var(--white); }

.story-layers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 32px auto 0;
}
.story-layer {
  border-radius: 12px;
  padding: 28px 28px 24px;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.story-layer:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(20, 41, 107, 0.12);
}
.story-layer--saas {
  background: linear-gradient(135deg, rgba(125, 200, 229, 0.08), rgba(0, 149, 217, 0.04));
  border-color: rgba(0, 149, 217, 0.25);
}
.story-layer--coach {
  background: linear-gradient(135deg, rgba(91, 178, 73, 0.08), rgba(46, 125, 50, 0.04));
  border-color: rgba(91, 178, 73, 0.25);
}
.story-layer .layer-tag {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--brand-blue-dark);
  letter-spacing: 0.04em;
}
.story-layer--coach .layer-tag { color: var(--brand-green-dark); }
.story-layer .layer-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.5;
}
.story-layer .layer-desc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-body);
}
.story-layer .layer-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--brand-blue);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}
.story-layer--coach .layer-link { color: var(--brand-green-dark); }
.story-layer .layer-link:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .story-layers { grid-template-columns: 1fr; gap: 14px; }
  .story-layer { padding: 24px; }
  .story-layer .layer-title { font-size: 18px; }
}

/* ===== Business detail blocks (business.html) ===== */
.biz-block {
  max-width: 760px;
  margin: 48px auto 0;
}
.biz-block:first-child { margin-top: 0; }
.biz-block h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.biz-block h3 .biz-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-soft);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.biz-block p {
  font-size: 16px;
  line-height: 2;
  color: var(--text-body);
  margin-bottom: 16px;
}
.biz-block .cta-row { margin-top: 16px; }

/* ===== Message page ===== */
.message-section { background: var(--white); }
.message-body {
  max-width: 720px;
  margin: 0 auto;
}
.message-body h2.subhead {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 28px;
  line-height: 1.5;
  text-align: center;
}
.message-body p {
  font-size: 16px;
  line-height: 2;
  color: var(--text-body);
  margin-bottom: 18px;
}
.message-sign {
  text-align: right;
  margin-top: 32px;
  font-size: 16px;
  color: var(--navy);
  font-weight: 700;
}
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 760px;
  margin: 56px auto 0;
}
.member-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  text-align: left;
}
.member-card .role {
  font-size: 13px;
  color: var(--brand-blue-dark);
  font-weight: 700;
  margin-bottom: 4px;
}
.member-card .name {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}
.member-card .desc {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .message-body h2.subhead { font-size: 20px; }
  .message-body p { font-size: 15px; }
}

/* ===== Contact page ===== */
.contact-section { background: var(--bg-soft); }
.contact-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}
.contact-card .icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.contact-card p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.9;
  margin-bottom: 24px;
}
.contact-card .email-btn {
  display: inline-block;
  background: var(--brand-green);
  color: var(--white);
  padding: 16px 40px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(91, 178, 73, 0.4);
  transition: all .2s;
  word-break: break-all;
}
.contact-card .email-btn:hover {
  background: var(--brand-green-dark);
  transform: translateY(-2px);
}
.contact-subjects {
  margin-top: 32px;
  text-align: left;
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 20px 24px;
}
.contact-subjects h3 {
  font-size: 14px;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 12px;
}
.contact-subjects ul {
  list-style: none;
  padding: 0;
  font-size: 14px;
}
.contact-subjects li {
  padding: 6px 0;
  color: var(--text-body);
}
.contact-subjects li a {
  color: var(--brand-blue);
  text-decoration: none;
  margin-left: 4px;
}
.contact-subjects li a:hover { text-decoration: underline; }

.contact-supplement {
  text-align: center;
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-gray);
}
.contact-supplement a {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 768px) {
  .contact-card { padding: 28px 20px; }
  .contact-card .email-btn { font-size: 15px; padding: 14px 24px; display: block; }
}

/* ===== News page ===== */
.news-section { background: var(--white); }
.news-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-gray);
  font-size: 15px;
}

/* ===== Final CTA ===== */
.final-cta {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--sky-blue-light) 100%);
  text-align: center;
  padding: 80px 20px;
}
.final-cta h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.4;
}
.final-cta p {
  font-size: 16px;
  margin-bottom: 32px;
  line-height: 1.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-body);
}

@media (max-width: 768px) {
  .final-cta { padding: 60px 20px; }
  .final-cta h2 { font-size: 24px; }
  .final-cta p { font-size: 14px; }
}

/* ===== Value grid (company.html) ===== */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 32px auto 0;
  max-width: 900px;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  position: relative;
}
.value-card .value-num {
  font-size: 13px;
  color: var(--brand-blue);
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.value-card .value-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.5;
}
.value-card .value-desc {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-body);
}

/* ===== Timeline (company.html 沿革) ===== */
.timeline {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 5px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-blue), var(--brand-green));
}
.timeline-item {
  position: relative;
  padding: 4px 0 24px 32px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--brand-blue);
  box-sizing: border-box;
}
.timeline-date {
  font-size: 13px;
  color: var(--brand-blue-dark);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  font-feature-settings: "tnum";
}
.timeline-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-body);
}

/* ===== Legal pages (privacy / terms) ===== */
.legal-page { background: var(--white); }
.legal-page main {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 20px 80px;
}
.legal-page h1 {
  font-size: 28px;
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 8px;
  text-align: center;
}
.legal-page .meta {
  text-align: center;
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 40px;
}
.legal-page h2 {
  font-size: 18px;
  color: var(--navy);
  font-weight: 700;
  margin: 32px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--brand-blue);
}
.legal-page h3 {
  font-size: 15px;
  color: var(--navy);
  font-weight: 700;
  margin: 20px 0 8px;
}
.legal-page p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-body);
  margin-bottom: 14px;
}
.legal-page ul,
.legal-page ol {
  margin: 8px 0 16px 24px;
}
.legal-page li {
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 6px;
}

@media (max-width: 768px) {
  .legal-page main { padding: 40px 16px 60px; }
  .legal-page h1 { font-size: 22px; }
  .legal-page h2 { font-size: 16px; }
}

/* ===========================================================================
   Animations — page-specific
   prefers-reduced-motion を尊重する
   =========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* ===== Hero: 行ごとの段階表示 (blur 廃止 — LCP/可読性優先) ===== */
  .hero-h1 .hero-line {
    display: block;
    opacity: 0;
    transform: translateY(20px);
    animation: heroLineIn .7s cubic-bezier(.2,.7,.3,1) both;
  }
  @keyframes heroLineIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .hero-h1 .hero-line-1 { animation-delay: .1s; }
  .hero-h1 .hero-line-2 { animation-delay: .35s; }

  /* highlight マーカー下線 */
  .hero-h1 .highlight {
    background-image: linear-gradient(transparent 60%, rgba(0,149,217,0.25) 60%);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 100%;
    animation: highlightUnderline 1.2s 1.6s ease-out forwards;
    will-change: background-size;
    padding: 0 4px;
  }
  @keyframes highlightUnderline {
    from { background-size: 0 100%; }
    to   { background-size: 100% 100%; }
  }

  /* hero-sub と CTA 行のフェードアップ */
  .hero-sub      { animation: heroFadeUp .9s .3s both cubic-bezier(.2,.7,.3,1); }
  .hero-cta-row  { animation: heroFadeUp .9s .55s both cubic-bezier(.2,.7,.3,1); }
  @keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* ヒーロー背景の流動グラデーション (LP と同じ) */
  .hero {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--sky-blue-light) 50%, #E8F4FB 100%);
    background-size: 200% 200%;
    animation: heroGradientShift 16s ease-in-out infinite;
  }
  @keyframes heroGradientShift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
  }

  /* page-hero (subpage) も微フェードイン */
  .page-hero h1 { animation: heroFadeUp .8s ease-out both; }
  .page-hero .lead { animation: heroFadeUp .8s .15s ease-out both; }

  /* ===== Cards: hover 単純化 (translateY + shadow のみ) ===== */
  .company-card,
  .member-card {
    transition: transform .25s cubic-bezier(.2,.7,.3,1),
                box-shadow .25s;
  }
  .company-card:hover,
  .member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(20, 41, 107, 0.10);
  }

  /* ===== story-layer (2軸カード) hover ===== */
  .story-layer { will-change: transform; }
  .story-layer .layer-tag {
    transition: transform .35s cubic-bezier(.2,.7,.3,1), letter-spacing .25s;
    display: inline-block;
  }
  .story-layer:hover .layer-tag {
    transform: scale(1.08);
    letter-spacing: 0.06em;
  }
  .story-layer .layer-link {
    transition: transform .25s cubic-bezier(.2,.7,.3,1);
    display: inline-block;
  }
  .story-layer:hover .layer-link { transform: translateX(4px); }

  /* ===== biz-block: アイコン浮き上がり ===== */
  .biz-block h3 .biz-icon {
    transition: transform .4s cubic-bezier(.2,.7,.3,1),
                background .3s,
                box-shadow .3s;
  }
  .biz-block:hover h3 .biz-icon {
    transform: translateY(-6px) rotate(-8deg);
    background: linear-gradient(135deg, var(--sky-blue-light), var(--bg-soft));
    box-shadow: 0 8px 18px rgba(0, 149, 217, 0.15);
  }

  /* ===== btn-secondary の → スライド ===== */
  .btn-secondary {
    display: inline-block;
    transition: transform .2s cubic-bezier(.2,.7,.3,1);
  }
  .btn-secondary:hover { transform: translateX(4px); }

  /* ===== Hero CTA: 自動的に btn-primary glow が効く ===== */

  /* ===== contact email-btn は brand.css の ctaGlow に統合済み =====*/

  /* ===== 浮遊円は上部で定義済み (24s/30s 周期、振幅縮小) ===== */

  /* ===== about-lead の text reveal (中央セクション) ===== */
  .about-lead p { animation: heroFadeUp .8s ease-out both; animation-delay: .2s; }

  /* ===== dl-info の行ハイライト ===== */
  .dl-info dl > div.dl-row { transition: background .2s; }
  .dl-info dl > div.dl-row:hover dt,
  .dl-info dl > div.dl-row:hover dd {
    background: rgba(0, 149, 217, 0.04);
  }

  /* ===== final-cta の H2 入場 ===== */
  .final-cta h2 { transition: transform .6s, letter-spacing .6s; }

  /* ===== feature/cta 全般のリンクは brand.css 側で →スライド ===== */
}

/* prefers-reduced-motion: reduce — brand.css のグローバル指定で全 animation/transition を無効化済み。
   ここではテキスト/ハイライトの初期状態だけ静的にする */
@media (prefers-reduced-motion: reduce) {
  .hero-h1 .hero-line,
  .hero-sub,
  .hero-cta-row,
  .page-hero h1,
  .page-hero .lead,
  .about-lead p {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-h1 .highlight {
    background-size: 100% 100% !important;
  }
}

/* ===== Careers ページ : 候補者向けリスト ===== */
.careers-target-list {
  font-size: 15px;
  line-height: 1.95;
  padding-left: 1.4em;
  margin: 16px 0 24px;
}
