/* advisory/css/style.css - サービス詳細：税務顧問 (Advisory)
   Shared header/footer/CTA/Service/Case via ../css/common.css.
   Page-specific: banner + 支援内容 + 解決できる課題 + ご利用の流れ.
   Banner images in ../img. */

/* =============================================
   Page banner (FV) — taller variant to fit the 3-paragraph lead.
   ============================================= */
.page-banner {
  position: relative;
  width: 100%;
  height: 660px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)),
    url("../../assets/img/banner-bg.webp") center / cover no-repeat,
    #ffffff;
  overflow: hidden;
}
.page-banner__media { position: absolute; inset: 0; z-index: 1; }
.page-banner__photo {
  position: absolute;
  top: 0;
  right: 0;
  width: 74.24%;
  height: 100%;
  background: url("../img/banner-pc.webp") center top / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 4%, #000 44%);
          mask-image: linear-gradient(90deg, transparent 4%, #000 44%);
}
.page-banner__scroll {
  position: absolute;
  left: max(35px, calc(50% - 685px));
  top: 274px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
  z-index: 3;
  animation: pb-scroll-bob 2.4s ease-in-out infinite;
}
@keyframes pb-scroll-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(10px); }
}
@media (prefers-reduced-motion: reduce) { .page-banner__scroll { animation: none; } }
.page-banner__scroll-line { width: 1px; height: 153px; background: #000000; }
.page-banner__scroll-text {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-jp-serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 6.3px;
  color: #000000;
}
.page-banner__inner {
  position: relative;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 100px;
  z-index: 2;
}
.page-banner__en {
  position: absolute;
  top: 70px;
  left: 100px;
  margin: 0;
  font-family: var(--font-jp-serif);
  font-weight: 500;
  font-size: 100px;
  line-height: 1;
  color: rgba(65, 99, 136, 0.1);
  white-space: nowrap;
  pointer-events: none;
}
.page-banner__jp {
  position: absolute;
  top: 158px;
  left: 100px;
  margin: 0;
  font-family: var(--font-jp-serif);
  font-weight: 500;
  font-size: 36px;
  letter-spacing: 0.15em;
  color: #868181;
}
.page-banner__lead {
  position: absolute;
  top: 320px;
  left: 100px;
  margin: 0;
  max-width: 640px;
  font-family: var(--font-jp-serif);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.9;
  color: #1f1f1f;
}
.page-banner__lead p { margin: 0; }
.page-banner__lead p + p { margin-top: 1.5em; }
.page-banner__breadcrumb {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 11px 0;
  padding-left: max(100px, calc(50% - 620px));
  z-index: 3;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-jp-serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #323232;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumb a { color: #323232; }
.breadcrumb__sep { display: inline-flex; width: 10px; height: 10px; color: #323232; }
.breadcrumb__current { color: #323232; }

/* ===== Banner — Tablet (≤ 1200px) ===== */
@media (max-width: 1200px) {
  .page-banner { height: 560px; }
  .page-banner__inner { padding: 0 48px; }
  .page-banner__en { left: 48px; font-size: 76px; }
  .page-banner__jp { left: 48px; font-size: 30px; top: 140px; }
  .page-banner__lead { left: 48px; font-size: 16px; top: 250px; max-width: 52%; }
  .page-banner__scroll { left: 28px; top: 150px; }
  .page-banner__scroll-line { height: 120px; }
  .page-banner__breadcrumb { padding-left: 48px; }
}

/* ===== Banner — SP (< 768px) ===== */
@media (max-width: 767px) {
  .page-banner {
    height: auto;
    display: flex;
    flex-direction: column;
    padding: 0;
    background-position: top center;
  }
  .page-banner__inner { display: contents; }
  .page-banner__breadcrumb {
    position: static;
    order: 2;
    width: 100%;
    padding: 10px 0 10px 20px;
  }
  .breadcrumb { font-size: 13px; }
  .page-banner__en {
    position: static;
    order: 1;
    padding: 17px 0 0 19px;
    font-size: 50px;
    color: rgba(65, 99, 136, 0.2);
  }
  .page-banner__jp {
    position: static;
    margin-top: -15px;
    order: 1;
    padding: 4px 0 0 24px;
    font-size: 20px;
  }
  .page-banner__media {
    position: relative;
    order: 3;
    inset: auto;
    margin: 12px 0 0 9.5%;
    width: 90.4%;
    aspect-ratio: 352.64 / 271;
  }
  .page-banner__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url("../img/banner-sp.webp");
    -webkit-mask-image: none;
            mask-image: none;
  }
  .page-banner__scroll { left: -25px; top: 44px; gap: 12px; }
  .page-banner__scroll-line { height: 76px; }
  .page-banner__scroll-text { font-size: 14px; letter-spacing: 4.9px; }
  .page-banner__lead {
    position: static;
    order: 4;
    max-width: none;
    padding: 24px 20px 8px;
    font-size: 15px;
    line-height: 1.85;
  }
}

/* =============================================
   Shared advisory heading — title + thin rule with a sparkle at its end.
   --center : rule centred under the title (sparkle at its right tip).
   --light  : white text on navy.
   ============================================= */
.asy-head { margin: 0 0 44px; }
.asy-head__title {
  margin: 0 0 16px;
  font-family: var(--font-jp-serif);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.5;
  color: #323232;
}
.asy-head__rule {
  display: block;
  position: relative;
  width: 210px;
  height: 1px;
  background: rgba(76, 72, 72, 0.55);
}
.asy-head__star {
  position: absolute;
  right: 0;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translate(60%, -50%);
  color: #9aa9c2;
}
.asy-head--center { text-align: center; }
.asy-head--center .asy-head__title { font-size: 32px; }
.asy-head--center .asy-head__rule { margin: 0 auto; }
.asy-head--light .asy-head__title { color: #ffffff; }
.asy-head--light .asy-head__rule { background: rgba(255, 255, 255, 0.5); }
.asy-head--light .asy-head__star { color: #c9d4e6; }

/* =============================================
   支援内容 — navy box with an 8-item numbered grid (4 × 2).
   ============================================= */
.asy-support { background: #ffffff; padding: 100px 100px 0; }
.asy-support__box {
  max-width: 1240px;
  margin: 0 auto;
  padding: 60px 64px 68px;
  background: linear-gradient(135deg, #103a6c 0%, #0a2f5c 100%);
  border-radius: 4px;
}
.asy-support .asy-head { margin-bottom: 44px; }
.asy-support__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.asy-support__item { padding: 26px 22px; }
.asy-support__item:not(:nth-child(4n)) { border-right: .5px solid #fff; }
.asy-support__item:nth-child(-n+4) { border-bottom: .5px solid #fff; }
/* Last item never needs a trailing right divider */
.asy-support__item:last-child { border-right: none; }
/* Exactly 2 items = single row: drop the stray bottom border */
.asy-support__item:first-child:nth-last-child(2),
.asy-support__item:first-child:nth-last-child(2) ~ .asy-support__item { border-bottom: none; }
.asy-support__num {
  display: block;
  margin-bottom: 14px;
  font-family: "Cormorant Garamond", var(--font-jp-serif);
  font-weight: 500;
  font-size: 42px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
}
.asy-support__name {
  display: block;
  font-family: var(--font-jp-serif);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: #ffffff;
}

/* =============================================
   解決できる課題 — left heading + 2 × 2 checklist.
   ============================================= */
.asy-issues { background: #ffffff; padding: 100px 100px 0; }
.asy-issues__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 56px;
}
.asy-issues .asy-head { flex: 0 0 auto; width: 260px; margin: 8px 0 0; }
.asy-issues__grid {
  flex: 1 1 auto;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.asy-issues__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
}
.asy-issues__item:nth-child(odd) { border-right: 1px solid #d8d8d8; }
.asy-issues__item:nth-child(-n+2) { border-bottom: 1px solid #d8d8d8; }
.asy-issues__check { flex: 0 0 auto; width: 22px; height: 22px; color: #1b3d6e; }
.asy-issues__txt {
  font-family: var(--font-jp-serif);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  color: #323232;
}

/* =============================================
   ご利用の流れ — left heading + 6 navy step boxes with ∨ connectors.
   ============================================= */
.asy-flow { background: #ffffff; padding: 100px; }
.asy-flow__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 56px;
}
.asy-flow .asy-head { flex: 0 0 auto; width: 260px; margin: 18px 0 0; }
.asy-flow__steps { flex: 1 1 auto; list-style: none; margin: 0; padding: 0; }
.asy-flow__step {
  position: relative;
  display: flex;
  align-items: center;
  padding: 28px 40px 28px 120px;
  margin-bottom: 44px;
  background: linear-gradient(135deg, #103a6c 0%, #0a2f5c 100%);
  border-radius: 4px;
}
.asy-flow__step:last-child { margin-bottom: 0; }
.asy-flow__step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -25px;
  width: 15px;
  height: 15px;
  border-right: 1px solid #1b3d6e;
  border-bottom: 1px solid #1b3d6e;
  transform: translateX(-50%) rotate(45deg);
}
.asy-flow__num {
  position: absolute;
  top: -10px;
  left: -10px;
  font-family: "Nova Cut", var(--font-jp-serif);
  font-size: 85px;
  line-height: 1;
  letter-spacing: -5%;
  color: rgba(255, 255, 255, 0.16);
}
.asy-flow__body { flex: 1 1 auto; min-width: 0; }
.asy-flow__title {
  margin: 0 0 8px;
  font-family: var(--font-jp-serif);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.4;
  color: #ffffff;
}
.asy-flow__desc {
  margin: 0;
  font-family: var(--font-jp-serif);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

/* ===== Tablet (≤ 1200px) ===== */
@media (max-width: 1200px) {
  .asy-support,
  .asy-issues,
  .asy-flow { padding-left: 48px; padding-right: 48px; padding-top: 80px; }
  .asy-support__box { padding: 48px 40px 56px; }
  .asy-issues__inner,
  .asy-flow__inner { gap: 36px; }
  .asy-issues .asy-head,
  .asy-flow .asy-head { width: 200px; }
}

/* ===== SP (< 768px) ===== */
@media (max-width: 767px) {
  .asy-support,
  .asy-issues,
  .asy-flow { padding: 56px 20px; }

  .asy-head { margin-bottom: 32px; }
  .asy-head__title { font-size: 24px; }

  /* All section headings centre on SP */
  .asy-issues .asy-head,
  .asy-flow .asy-head {
    width: auto;
    margin: 0 auto 32px;
    text-align: center;
  }
  .asy-issues .asy-head__rule,
  .asy-flow .asy-head__rule { margin: 0 auto; width: 200px; }

  /* 支援内容 — single column, number + name inline */
  .asy-support__box { padding: 40px 22px 44px; }
  .asy-support__grid { grid-template-columns: 1fr; }
  .asy-support__item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 17px 4px;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22) !important;
  }
  .asy-support__item:last-child { border-bottom: none !important; }
  .asy-support__num { margin-bottom: 0; flex: 0 0 auto; font-size: 30px; width: 44px; }
  .asy-support__name { font-size: 15px; }

  /* 解決できる課題 — stacked column */
  .asy-issues__inner { flex-direction: column; gap: 0; }
  .asy-issues__grid { grid-template-columns: 1fr; width: 100%; }
  .asy-issues__item {
    gap: 14px;
    padding: 18px 6px;
    border-right: none !important;
    border-bottom: 1px solid #d8d8d8 !important;
  }
  .asy-issues__item:last-child { border-bottom: none !important; }
  .asy-issues__txt { font-size: 15px; }

  /* ご利用の流れ — stacked column */
  .asy-flow__inner { flex-direction: column; gap: 0; }
  .asy-flow__steps { width: 100%; }
  /* Text overlaps the faded number (number sits behind, top-left) */
  .asy-flow__step { padding: 24px 24px; margin-bottom: 40px; }
  .asy-flow__num { top: 0; left: 0; font-size: 70px; z-index: 0; }
  .asy-flow__body { position: relative; z-index: 1; }
  .asy-flow__title { font-size: 25px; margin-bottom: 12px; }
  .asy-flow__desc { font-size: 15px; }
}
