@charset "utf-8";
/* =========================================================
   下層ページ共通スタイル
   ・site.css（コーダー版 style.css）の後に読み込む
   ・色／余白／文字サイズは site.css の変数（--primary-color, --block-*, --inline-*, --font-size-*）を使う
   ・ブレイクポイントは site.css と同じ 1520 / 1120 / 880 / 560px
   ========================================================= */
:root {
  /* 下層ページで使う色（site.css の色をもとにした別名） */
  --navy: var(--primary-color);
  --navy-deep: #001E4D;
  --blue: #0F48A1;
  --teal: #38A0AC;
  --teal-pale: #EFF7F9;
  --gray-bg: var(--primary-background-color);
  --line: #E8EEF3;
  --text: var(--text-color);
  --text-sub: #666;
  --orange: #E59130;
  --orange-pale: #FDF3E7;
  --purple: #7F62AA;
  --ph: #D9DFE5;
}
html {
  scroll-padding-top: 110px;
}
/* 下層ページ本文の基本（:where で詳細度0にし、各部品の指定を優先） */
:where(.main:not(.home)) {
  p {
    margin-bottom: 1em;
  }
  h1, h2, h3, h4 {
    font-weight: 500;
    line-height: 1.5;
  }
}

/* ---------- ヘッダー：ページを開いた直後は取扱業務のメニューを出さない（script.js の is-navReady） ---------- */
@container header-container (width >= calc(57.5rem + 500px)) {
  html:not(.is-navReady) .globalNav-dropdown {
    visibility: hidden !important; /* site.css のホバー指定（詳細度が高い）より優先 */
    opacity: 0 !important;
    transition: none;
  }
}

/* ---------- ヘッダー：取扱業務の展開パネル（現デザイン/ナビの展開イメージ.png・1900px幅で 幅1216px） ---------- */
.header-container {
  position: relative; /* パネルの位置の基準（ヘッダーの上下余白が変わっても、ナビの行から一定の位置に出す） */
}
@container header-container (width >= calc(57.5rem + 500px)) {
  /* パネルは .header-container を基準に画面中央へ（ロゴ高さ60px＋下18px） */
  .globalNav-item:has(.globalNav-dropdown) {
    position: static;
    &:hover .globalNav-dropdownToggle::before {
      visibility: visible;
      opacity: 1;
    }
  }
  html:not(.is-navReady) .globalNav-dropdownToggle::before {
    visibility: hidden !important;
  }
  /* 「取扱業務」の下の三角 */
  .globalNav-dropdownToggle::before {
    content: "";
    position: absolute;
    top: calc(50% + 36px);
    left: calc(50% - 16px - 11px);
    border-inline: 11px solid transparent;
    border-bottom: 12px solid #F1F5F8;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.35s, opacity 0.35s;
  }
  .globalNav-dropdown {
    width: min(1216px, 100%);
    min-width: 0;
    padding-top: 0;
    top: calc(100% + 18px);
    left: 50%;
    translate: -50% 0;
    &::before { /* 「取扱業務」からパネルへマウスを動かす間も開いたままにする */
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: 100%;
      height: 40px;
    }
  }
  .globalNav-dropdown-list {
    display: grid;
    grid-template-columns: 1fr repeat(3, minmax(0, 272px));
    column-gap: 20px;
    padding: 59px 60px 52px;
    background-color: #F1F5F8;
    border: none;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgb(0, 30, 77, 0.12);
    color: var(--text-color);
    &::before {
      content: "取扱業務";
      font-size: 2.5rem;
      font-weight: 300;
      line-height: 1.2;
    }
  }
  .globalNav-dropdown-item {
    +& {
      border-top: none;
    }
    .globalNav-link {
      display: block;
      padding: 0;
      background-image: none;
      font-size: 1.125rem;
      font-weight: 400;
      &::before {
        content: "";
        display: block;
        aspect-ratio: 272 / 153;
        margin-bottom: 14px;
        border-radius: 4px;
        background-position: center 35%; /* トップページ「取扱業務」と同じ写真。顔が切れないよう少し上寄せ */
        background-size: cover;
        transition: opacity 0.35s;
      }
      &::after {
        content: "";
        display: inline-block;
        width: 26px;
        height: 26px;
        margin-left: 12px;
        vertical-align: -6px;
        border-radius: 50%;
        background: var(--nav-c) url(./img/common/arrow-next-white.svg) center / 10px auto no-repeat;
      }
      &:hover::before {
        opacity: 0.8;
      }
    }
    &:nth-child(1) {
      --nav-c: #61C9D6;
      .globalNav-link::before { background-image: image-set(url(./img/home/service-item01-image.jpg) 1x, url(./img/home/service-item01-image@2x.jpg) 2x); }
    }
    &:nth-child(2) {
      --nav-c: #AF8DE0;
      .globalNav-link::before { background-image: image-set(url(./img/home/service-item02-image.jpg) 1x, url(./img/home/service-item02-image@2x.jpg) 2x); }
    }
    &:nth-child(3) {
      --nav-c: #FFAD51;
      .globalNav-link::before { background-image: image-set(url(./img/home/service-item03-image.jpg) 1x, url(./img/home/service-item03-image@2x.jpg) 2x); }
    }
  }
}

/* ---------- 実績・事例へのリンク：公開するまで隠す（script.js の CASES_PUBLIC で一括切り替え／構築のお願い No.5） ---------- */
html:not(.is-casesPublic) [data-cases-link] {
  display: none !important;
}

/* ---------- トップページ追加分（スタッフスライド3枚目） ---------- */
.home-staff-slide.slide03 {
  background-image: url(./img/home/staff-slide03-bg.jpg);
}

/* ---------- 写真枠 ---------- */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--ph);
  border-radius: 5px;
  color: #7A8794;
  font-size: 0.8125rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  &.ph--img {
    background-color: #E9EDF0;
    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      position: absolute;
      inset: 0;
    }
  }
  &.ph--round {
    border-radius: 50%;
  }
}
.illust-img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- 下層ヒーロー（写真） ---------- */
.page-hero {
  height: 100vh;
  min-height: 640px;
  color: #FFF;
  position: relative;
  .ph {
    border-radius: 0;
    position: absolute;
    inset: 0;
    img {
      object-position: center 25%;
    }
  }
  &::after {
    content: "";
    background-image: linear-gradient(to bottom, rgb(0, 0, 0, 0.5), rgb(0, 0, 0, 0.05) 22%, rgb(0, 0, 0, 0.05) 45%, rgb(0, 0, 0, 0.6));
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
}
.page-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-inline: var(--inline-45px);
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: var(--block-90px);
}
.page-hero-en {
  display: block;
  margin-bottom: 0.5em;
  font-weight: 500;
  font-size: 0.875rem;
  font-family: "Outfit", sans-serif;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.page-hero-title {
  margin-bottom: 0.5em;
  font-weight: 300;
  /*font-weight: 200;*/
  font-size: clamp(2rem, 1.2rem + 3vw, 4rem); /* 現デザイン：64px */
  line-height: 1.25;
}
.page-hero-lead {
  max-width: 1000px;
  margin: 0;
  font-weight: 500;
  /*font-weight: 400;*/
  font-size: var(--font-size-18px); /* 現デザイン：18px・行間2 */
  line-height: 2;
}
/* 紺の単色ヒーロー（コラム・皆実・実績・お問い合わせ） */
.page-hero--navy {
  height: 500px;
  min-height: 0;
  background-color: #002967;
  &::after {
    display: none;
  }
  .page-hero-inner {
    bottom: var(--block-80px);
  }
  .page-hero-title {
    &:last-child {
      margin-bottom: 0;
    }
  }
  &.page-hero--no-bar .page-hero-inner {
    bottom: var(--block-50px);
  }
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0 14px;
  padding-bottom: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  li {
    opacity: 0.75;
    +li::before {
      content: "/";
      margin-right: 14px;
    }
    &:last-child {
      font-weight: 500;
      opacity: 1;
    }
  }
}

/* ---------- ページ内リンク（現デザイン：グレーの帯／点線の丸に紺の▼） ---------- */
.anchor-icon, .anchor-nav a::before, .int-toc a::before {
  flex-shrink: 0;
  content: "";
  display: inline-block;
  width: 22px;
  aspect-ratio: 1 / 1;
  background-image: url(./img/common/icon-anchor.svg);
  background-size: 100%;
  transition: translate 0.35s;
}
.anchor-nav {
  display: flex;
  align-items: center;
  min-height: 98px;
  margin: -48px var(--inline-30px) 0;
  padding-inline: var(--inline-50px);
  background-color: var(--gray-bg);
  border-radius: 5px;
  position: relative;
  z-index: 5;
  ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 36px;
    padding-block: 20px;
    font-weight: 500;
    font-size: 1rem;
  }
  a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: color 0.35s;
    &:hover {
      opacity: 1;
      color: var(--primary-color);
      &::before {
        translate: 0 2px;
      }
    }
  }
}

/* ---------- セクション ---------- */
.section {
  padding-block: var(--block-150px) var(--block-50px); /* 現デザイン：ページ内リンクの帯から見出しまで150px */
  +.section {
    padding-top: var(--block-100px);
  }
}
.sec-title {
  margin-bottom: 1.29em;
  font-weight: 300;
  font-size: var(--font-size-56px); /* 現デザイン：56px */
  line-height: 1.4;
  &::before {
    content: "";
    display: block;
    width: 36px;
    height: 4px;
    margin-bottom: 0.9em;
    background-color: var(--primary-color);
  }
  small {
    display: block;
    margin-top: 6px;
    color: var(--teal);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.2em;
  }
}
.sec-title--plain small {
  display: none;
}
.sec-lead {
  margin: -0.5em 0 var(--block-45px);
}
.catch {
  margin-bottom: 0.78em;
  font-weight: 400;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); /* 現デザイン：36px */
  line-height: 1.5;
}
.intro {
  display: grid;
  grid-template-columns: 1fr 482px; /* 現デザイン：写真幅482px */
  align-items: start;
  gap: 56px;
  .ph {
    aspect-ratio: 3 / 2;
  }
}
.intro-text {
  line-height: 1.8; /* 現デザイン：本文18px・行間1.8 */
  .catch {
    line-height: 1.5;
  }
}
.sub-block {
  margin-top: var(--block-70px);
  padding-top: var(--block-35px);
  border-top: 1px solid var(--line);
  &:first-of-type {
    margin-top: 0;
  }
}
.sub-title {
  margin-bottom: 1em;
  font-weight: 300;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.75rem);
  &::before {
    content: "";
    display: block;
    width: 18px;
    height: 2px;
    margin-bottom: 18px;
    background-color: var(--primary-color);
  }
  small {
    margin-left: 16px;
    color: var(--teal);
    font-weight: 500;
    font-size: 0.8125rem;
    letter-spacing: 0.18em;
  }
}
.sub-intro {
  p {
    max-width: none; /* ほかの本文と同じく横幅いっぱい（途中で折り返さない） */
    margin-bottom: 0;
    line-height: 1.8;
  }
  .ph {
    aspect-ratio: 4 / 3;
  }
}
/* 小見出し＋点線（現デザイン：水色の文字20px、1pxの点を3px間隔で並べた点線） */
.label-line {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: var(--block-50px) 0 20px;
  color: var(--teal);
  font-weight: 500;
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem); /* 現デザイン：22px・中太 */
  &::after {
    content: "";
    flex: 1;
    height: 1px;
    background-image: repeating-linear-gradient(to right, #A5ADB0 0 1px, transparent 1px 3px);
  }
}
.note {
  margin-top: 16px;
  color: var(--text-sub);
  font-size: 0.875rem;
}
.todo {
  padding: 0 6px;
  background-color: #FFF6C8;
  border-radius: 2px;
  color: #8A6D00;
  font-size: 0.9375rem;
}
.draft-note {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  background-color: #FFF6C8;
  border-radius: 2px;
  color: #8A6D00;
  font-weight: 600;
  font-size: 0.75rem;
  vertical-align: middle;
}

/* ---------- チェックリスト ---------- */
.check-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: var(--inline-50px);
  li {
    padding: 17px 0 17px 42px; /* 現デザイン：18px・行間1.5 */
    border-bottom: 1px solid var(--line);
    font-size: var(--font-size-18px);
    line-height: 1.5;
    position: relative;
    &::before {
      content: "";
      width: 25px;
      height: 25px;
      background-color: var(--teal);
      background-image: url(./img/common/icon-check-white.svg);
      background-position: center;
      border-radius: 3px;
      position: absolute;
      top: 18px;
      left: 0;
    }
  }
}
.check-list--single {
  grid-template-columns: 1fr;
}
.check-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  li {
    padding: 26px 24px 26px 66px; /* 現デザイン：18px・普通の太さ、高さ約80px */
    background-color: var(--gray-bg);
    border-radius: 5px;
    font-weight: 400;
    font-size: var(--font-size-18px);
    line-height: 1.5;
    position: relative;
    &::before {
      content: "";
      width: 26px;
      height: 26px;
      background-color: var(--primary-color);
      background-image: url(./img/common/icon-check-white.svg);
      background-position: center;
      border-radius: 5px;
      position: absolute;
      top: calc(50% - 13px);
      left: 24px;
    }
  }
}

/* ---------- カード類 ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.service-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.service-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
.service-card {
  background-color: var(--teal-pale);
  border-radius: 5px;
  overflow: hidden;
  h4 {
    padding: 13px 10px;
    background-color: var(--teal);
    color: #FFF;
    text-align: center;
    font-weight: 500;
    font-size: var(--font-size-18px);
  }
  p {
    margin: 0;
    padding: 20px 28px 26px;
    font-size: var(--font-size-18px); /* 現デザイン：18px・行間1.5 */
    line-height: 1.5;
  }
}
.pro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pro-card {
  padding: 28px 26px;
  background-color: #FFF;
  border: 1px solid var(--line);
  border-radius: 5px;
  h4 {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--teal);
    color: var(--teal);
    font-weight: 500;
    font-size: var(--font-size-20px);
  }
  p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.85;
  }
}
.worry-box {
  margin-top: var(--block-40px);
  padding: 30px var(--inline-45px);
  background-color: var(--gray-bg);
  border-radius: 5px;
}
.reason-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.reason {
  display: grid;
  grid-template-columns: 102px 1fr; /* 現デザイン：番号の列65px＋点線＋37px */
  padding: 40px 34px 28px 32px;
  background-color: var(--gray-bg);
  border-radius: 5px;
  h3 {
    margin-bottom: 10px;
    color: var(--teal);
    font-weight: 500;
    font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem); /* 現デザイン：22px */
  }
  p {
    margin: 0;
    font-size: var(--font-size-18px); /* 現デザイン：18px・行間1.8 */
    line-height: 1.8;
  }
}
.reason-num {
  margin-right: 37px;
  margin-block: -14px -4px;
  padding-top: 14px;
  background-image: repeating-linear-gradient(to bottom, #9AA5B0 0 1px, transparent 1px 3px);
  background-size: 1px 100%;
  background-position: right top;
  color: var(--teal);
  font-weight: 100;
  font-size: 2.125rem;
  line-height: 1;
  font-family: "Outfit", sans-serif;
}
.reason--navy {
  .reason-num, h3 {
    color: var(--primary-color);
  }
}
.gray-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.gray-card {
  padding: 34px var(--inline-45px) 30px;
  background-color: var(--gray-bg);
  border-radius: 5px;
  h3 {
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 500;
    font-size: var(--font-size-20px); /* 現デザイン：20px */
  }
  p {
    margin: 0;
    font-size: var(--font-size-18px); /* 現デザイン：18px・行間1.8 */
    line-height: 1.8;
  }
}
/* 3列の特長（現デザイン：本文の幅を3列そろえ、点線の区切りの左右に64pxずつ。番号は本文の右端に合わせる） */
.points3 {
  --pt-pad: 64px;
  display: grid;
  grid-template-columns: calc((100% - 4 * var(--pt-pad)) / 3 + var(--pt-pad)) calc((100% - 4 * var(--pt-pad)) / 3 + 2 * var(--pt-pad)) calc((100% - 4 * var(--pt-pad)) / 3 + var(--pt-pad));
  margin-top: var(--block-70px);
}
.point {
  --pr: var(--pt-pad);
  padding: 20px var(--pt-pad) 14px;
  position: relative;
  &:nth-child(3n+1) {
    padding-left: 0;
  }
  &:nth-child(3n) {
    --pr: 0px;
    padding-right: 0;
  }
  +.point {
    background-image: repeating-linear-gradient(to bottom, #9AA5B0 0 1px, transparent 1px 3px); /* 現デザイン：1pxの点を3px間隔 */
    background-size: 1px 100%;
    background-position: left top;
  }
  &:nth-child(3n+1) {
    background-image: none;
  }
  h3 {
    margin: 20px 0 30px;
    color: var(--primary-color);
    font-weight: 500;
    font-size: clamp(1.25rem, 1rem + 0.75vw, 1.625rem); /* 現デザイン：26px */
    line-height: 1.45;
    position: relative;
    z-index: 1;
  }
  p {
    margin: 0;
    font-size: var(--font-size-18px); /* 現デザイン：18px・行間1.8 */
    line-height: 1.8;
    position: relative;
    z-index: 1;
  }
}
.point-num {
  color: #E3E9EF;
  font-weight: 100;
  font-size: 6.25rem; /* 現デザイン：約100px */
  line-height: 1;
  font-family: "Outfit", sans-serif;
  position: absolute;
  z-index: 0;
  top: 0;
  right: calc(var(--pr) + 13px); /* 現デザイン：本文の右端より少し内側 */
}
.illust-intro {
  display: grid;
  grid-template-columns: 1fr 300px;
  align-items: center;
  gap: var(--inline-60px);
  p {
    margin: 0 0 1em;
    line-height: 1.8;
    &:last-child {
      margin-bottom: 0;
    }
  }
}
.support-block {
  margin-top: var(--block-80px);
  padding-top: 38px;
  border-top: 1px solid var(--line);
  &:first-of-type {
    margin-top: 0;
  }
}

/* ---------- ステップ ---------- */
/* 現デザイン：箱どうしを点線（2pxの点・2px間隔）でつなぐ。4つ目から5つ目へは下に回り込む点線 */
.steps {
  --step-gap: 14px;
  --step-row-gap: 44px;
  --step-dot: #8AA3A6;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--step-row-gap) var(--step-gap);
}
.steps--5 {
  grid-template-columns: repeat(5, 1fr);
}
.step {
  padding: 33px 34px 30px;
  background-color: #F1F9FB;
  border: 1px solid #D1DBDD;
  border-radius: 5px;
  position: relative;
  +.step::before {
    content: "";
    width: var(--step-gap);
    border-top: 2px dotted var(--step-dot);
    position: absolute;
    top: 50%;
    left: calc(-1 * var(--step-gap) - 1px);
  }
  h4 {
    margin-bottom: 14px;
    text-align: center;
    font-weight: 400;
    font-size: var(--font-size-20px); /* 現デザイン：20px・普通の太さ */
  }
  p {
    margin: 0;
    font-size: 1rem; /* 現デザイン：16px・行間1.8 */
    line-height: 1.8;
  }
}
/* 4つ目→5つ目（2段目の先頭）をつなぐ点線 */
.steps--6 {
  .step:nth-child(5)::before {
    width: 0;
    height: calc(var(--step-row-gap) / 2);
    border-top: none;
    border-left: 2px dotted var(--step-dot);
    top: calc(-1 * var(--step-row-gap) / 2 - 1px);
    left: calc(50% - 1px);
  }
  .step:nth-child(4)::after {
    content: "";
    width: calc(300% + 3 * var(--step-gap) + 2px);
    height: calc(var(--step-row-gap) / 2);
    border-right: 2px dotted var(--step-dot);
    border-bottom: 2px dotted var(--step-dot);
    position: absolute;
    top: calc(100% + 1px);
    right: calc(50% - 1px);
  }
}
.step-num {
  display: block;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #CFE5EA;
  color: var(--teal);
  text-align: center;
  font-weight: 400;
  font-size: 1.625rem;
  line-height: 1.1;
  font-family: "Outfit", sans-serif;
  small {
    display: block;
    font-weight: 500;
    font-size: 0.625rem;
    letter-spacing: 0.2em;
  }
}

/* ---------- コメント（吹き出し） ---------- */
.comments {
  display: grid;
  gap: 4px;
}
/* 吹き出し（現デザイン：アイコン100px、本文16px・行間1.5、名札の色は人ごと＝長田オレンジ／落久保水色／兒玉紫） */
.comment {
  --label: #E67722;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 630px;
  margin-top: var(--block-50px);
  .ph--round {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
  }
}
.comment-avatar {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}
.comment-body {
  flex: 1;
  position: relative;
}
.comment-name {
  display: inline-block;
  margin-left: 2px;
  padding: 3px 14px;
  background-color: var(--label);
  border-radius: 20px;
  color: #FFF;
  font-weight: 600;
  font-size: 0.875rem;
  position: relative;
  z-index: 1;
}
.comment-text {
  --bubble: #FFF3E4;
  margin-top: -12px;
  padding: 25px 21px 21px;
  background-color: var(--bubble);
  border-radius: 5px;
  font-size: 1rem;
  line-height: 1.5;
  position: relative;
  /* 吹き出しの口（現デザイン：人物側に出る 10×14px の三角） */
  &::before {
    content: "";
    border-style: solid;
    border-width: 7px 10px 7px 0;
    border-color: transparent var(--bubble) transparent transparent;
    position: absolute;
    top: 22px;
    left: -10px;
  }
  p {
    margin: 0;
  }
}
.comment--teal {
  --label: #20A5B8;
  .comment-text {
    --bubble: #E6F5F8;
  }
}
.comment--purple {
  --label: #5C59B5;
  .comment-text {
    --bubble: #EEEDF8;
  }
}
.comment--right {
  flex-direction: row-reverse;
  margin-left: auto;
  .comment-body {
    text-align: right;
  }
  .comment-text {
    text-align: left;
    &::before {
      border-width: 7px 0 7px 10px;
      border-color: transparent transparent transparent var(--bubble);
      left: auto;
      right: -10px;
    }
  }
}
.comment-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: var(--block-50px);
  .comment {
    max-width: none;
    margin-top: 0;
  }
}

/* ---------- 事例ボックス ---------- */
.case-box {
  margin-top: var(--block-35px);
  padding: 34px var(--inline-45px) 30px;
  background-color: var(--teal-pale);
  border-radius: 5px;
  dl {
    font-size: 1rem;
  }
  dt {
    margin-top: 12px;
    font-weight: 600;
  }
  dd {
    margin: 0;
  }
}
.case-box-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #D3E3E7;
}
.case-box-tag {
  flex-shrink: 0;
  padding: 2px 10px;
  background-color: #FFF;
  border: 1px solid var(--teal);
  color: var(--teal);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}
.case-box-title {
  color: var(--teal);
  font-weight: 600;
  font-size: var(--font-size-18px);
}
.case-box--empty {
  background-color: #FAFBFC;
  border: 1px dashed #BCC6CF;
  .case-box-title, p {
    color: #8A96A1;
  }
  p {
    margin: 0;
    font-size: 0.9375rem;
  }
}

/* ---------- ボタン（site.css の primary_button を使う） ---------- */
.btn-wrap {
  margin-top: var(--block-50px);
  .primary_button {
    margin-inline: auto;
  }
}
.btn-wrap--right .primary_button {
  margin-right: 0;
}
.btn-wrap .primary_button.back { /* インタビューの「専門家紹介へ戻る」：幅を「矢印＋文字」に合わせ、ボタンごと中央に置く */
  width: fit-content;
  padding-left: calc(var(--block-25px) + 26px + 12px);
  padding-right: calc(var(--block-25px) + 4px);
}
.primary_button.back {
  padding-left: calc(var(--block-25px) + 26px + 0.5em);
  padding-right: var(--block-25px);
  &::after {
    right: auto;
    left: var(--block-25px);
    rotate: 180deg;
  }
}

/* ---------- よくある質問 ---------- */
.faq {
  display: grid;
  gap: 16px; /* 現デザイン：質問・答えとも18px、1件の高さ86px */
  details {
    background-color: #FFF;
    border: 1px solid var(--line);
    border-radius: 5px;
    &[open] {
      border-color: #8A9AAB;
      summary::after {
        background-image: linear-gradient(#FFF, #FFF);
        background-size: 12px 2px;
      }
    }
  }
  summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 29px 76px 29px 30px;
    font-size: var(--font-size-18px);
    line-height: 1.5;
    font-weight: 500;
    position: relative;
    &::-webkit-details-marker {
      display: none;
    }
    &::before {
      flex-shrink: 0;
      content: "Q.";
      color: var(--primary-color);
      font-weight: 500;
      font-family: "Outfit", sans-serif;
    }
    &::after {
      content: "";
      width: 28px;
      aspect-ratio: 1 / 1;
      background-color: var(--primary-color);
      background-image: linear-gradient(#FFF, #FFF), linear-gradient(#FFF, #FFF);
      background-size: 12px 2px, 2px 12px;
      background-position: center;
      border-radius: 50%;
      position: absolute;
      top: calc(50% - 14px);
      right: 28px;
    }
  }
}
.faq-a {
  display: flex;
  gap: 14px;
  margin: 0 30px;
  padding: 20px 0 26px;
  border-top: 1px solid #EDF0F3;
  font-size: var(--font-size-18px);
  line-height: 1.8;
  &::before {
    flex-shrink: 0;
    content: "A.";
    color: #8FA3B8;
    font-weight: 500;
    font-family: "Outfit", sans-serif;
  }
  p {
    margin: 0;
  }
}

/* ---------- 締めの一文 ---------- */
.closing {
  padding: var(--block-100px) var(--inline-30px) var(--block-120px);
  text-align: center;
  .primary_button {
    margin-inline: auto;
    text-align: left;
  }
  p {
    margin-bottom: 1.4em;
    font-weight: 300;
    font-size: clamp(1.25rem, 1rem + 0.9vw, 1.75rem);
    line-height: 1.8;
  }
}

/* ---------- コラムカード（3列） ---------- */
.col3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--inline-30px);
}
.col3-item {
  display: block;
}
.col3-thumb {
  aspect-ratio: 3 / 2;
  margin-bottom: 18px;
  border-radius: 5px;
  overflow: hidden;
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: scale 0.4s;
  }
}
.col3-item:hover .col3-thumb img {
  scale: 1.04;
}
.col3-title {
  margin-bottom: 10px;
  font-weight: 500;
  font-size: var(--font-size-20px); /* 現デザイン：20px・行間1.5 */
  line-height: 1.5;
}
.col3-date {
  font-size: 0.875rem;
  font-family: "Outfit", sans-serif;
}

/* ---------- テーブル ---------- */
.info-table, .office-table {
  border: 1px solid var(--line);
  font-size: var(--font-size-18px); /* 現デザイン：18px・行間1.8 */
  th, td {
    padding: 22px 30px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
    font-weight: 400;
    line-height: 1.8;
  }
  th {
    width: 27%;
    background-color: var(--gray-bg);
  }
}
.info-table ul li {
  padding-left: 16px;
  position: relative;
  &::before {
    content: "";
    width: 6px;
    height: 6px;
    background-color: #C3CBD2;
    border-radius: 50%;
    position: absolute;
    top: 0.75em;
    left: 0;
  }
}
.office-table {
  font-size: 0.9375rem;
  td+td {
    width: 32%;
    border-left: 1px solid var(--line);
  }
  a.link {
    color: var(--primary-color);
    text-decoration: underline;
  }
  .primary_button {
    margin-top: 16px;
  }
}

/* ---------- 写真グリッド ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: var(--block-40px);
  img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 5px;
  }
}
/* 本文の横に写真（DX支援など） */
.text-photo {
  display: grid;
  grid-template-columns: 1fr minmax(0, 560px);
  align-items: center;
  gap: var(--inline-60px);
  p {
    margin: 0;
    line-height: 2;
  }
}

/* =========================================================
   インタビュー
   ========================================================= */
.int-hero {
  height: 100vh;
  min-height: 680px;
  color: #FFF;
  position: relative;
  .ph {
    border-radius: 0;
    position: absolute;
    inset: 0;
  }
  &::after {
    content: "";
    background-image: linear-gradient(to bottom, rgb(0, 0, 0, 0.4), rgb(0, 0, 0, 0.05) 22%, rgb(0, 0, 0, 0.05) 50%, rgb(0, 0, 0, 0.5));
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  .breadcrumb {
    padding-bottom: 8px;
  }
}
.int-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-inline: var(--inline-45px);
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 18px;
}
.int-hero-no {
  display: block;
  margin-bottom: 12px;
  font-size: 0.8125rem;
  font-family: "Outfit", sans-serif;
  letter-spacing: 0.3em;
}
.int-hero-role {
  display: inline-block;
  margin-bottom: 30px;
  padding: 4px 12px;
  background-color: rgb(255, 255, 255, 0.22);
  border-radius: 5px;
  font-weight: 500;
  font-size: var(--font-size-18px);
}
.int-hero-name {
  font-weight: 200;
  font-size: clamp(3rem, 1.5rem + 5.5vw, 7.375rem);
  line-height: 1.15;
  letter-spacing: 0.14em;
}
.int-hero-roma {
  display: block;
  margin-top: 8px;
  font-weight: 400;
  font-size: var(--font-size-20px);
  font-family: "Outfit", sans-serif;
  letter-spacing: 0.25em;
}
.int-layout {
  display: grid;
  grid-template-columns: 297px 1fr; /* 現デザイン：写真・目次の幅240px＋右余白57px */
  padding-block: var(--block-150px) var(--block-80px);
}
.int-side {
  padding-right: 57px;
  border-right: 1px solid var(--line);
  .ph {
    aspect-ratio: 3 / 2;
    margin-bottom: 18px;
  }
}
.int-side-sticky {
  position: sticky;
  top: 110px;
}
.int-side-role, .int-side-roma {
  color: var(--text-sub);
  font-size: 0.8125rem;
}
.int-side-name {
  font-weight: 500;
  font-size: 1.4375rem;
  line-height: 1.5;
  letter-spacing: 0.1em;
}
.int-side-roma {
  display: block;
  margin-bottom: 18px;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
}
.int-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 38px;
  li {
    padding: 3px 10px;
    border: 1px solid #C5CCD3;
    border-radius: 5px;
    font-size: 0.8125rem;
  }
}
.int-toc {
  li {
    margin-bottom: 12px;
  }
  a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.35s;
    &:hover {
      opacity: 1;
      color: var(--primary-color);
      &::before {
        translate: 0 2px;
      }
    }
    &.is-current {
      color: var(--primary-color);
    }
  }
}
.int-main {
  min-width: 0;
  padding-left: clamp(40px, 5.4vw, 103px); /* 現デザイン：区切り線から本文まで103px */
}
.int-lead {
  margin-bottom: var(--block-50px);
  font-weight: 300;
  font-size: var(--font-size-30px);
  line-height: 1.7;
}
.profile-box {
  margin-bottom: var(--block-90px);
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  h2 {
    padding: 18px 30px;
    background-color: var(--gray-bg);
    font-weight: 500;
    font-size: 1rem;
  }
  ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 40px;
    padding: 28px 38px;
  }
  li {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 12px;
    padding-left: 20px;
    font-size: 0.9375rem;
    line-height: 1.75;
    position: relative;
    &::before {
      content: "";
      width: 6px;
      height: 6px;
      background-color: var(--primary-color);
      border-radius: 50%;
      position: absolute;
      top: 10px;
      left: 0;
    }
  }
  time {
    color: var(--text-sub);
  }
}
.int-section {
  padding-bottom: var(--block-70px);
  +.int-section {
    padding-top: var(--block-50px);
  }
  p {
    line-height: 1.8; /* 現デザイン：18px・行間1.8 */
  }
}
.int-label {
  display: inline-block;
  margin-bottom: 24px;
  padding: 5px 16px;
  background-color: var(--navy-deep);
  border-radius: 5px;
  color: #FFF;
  font-weight: 500;
  font-size: 0.9375rem;
}
.int-catch {
  margin-bottom: 1.4em;
  font-weight: 400;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); /* 現デザイン：36px・行間1.5 */
  line-height: 1.5;
}
.int-q {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 44px 0 20px;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1rem; /* 現デザイン：16px */
  &::before {
    flex-shrink: 0;
    content: "";
    width: 38px;
    height: 1px;
    background-color: var(--primary-color);
  }
}
.int-photo {
  aspect-ratio: 16 / 9;
  margin-block: var(--block-50px);
}
.int-aside {
  display: grid;
  grid-template-columns: 1fr 240px;
  align-items: start;
  gap: 50px;
  margin-bottom: 20px;
  padding-block: var(--block-50px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  p {
    margin: 0;
    line-height: 2.05;
  }
  .ph {
    aspect-ratio: 1 / 1;
  }
}
.int-aside-tag {
  display: inline-block;
  margin-bottom: 22px;
  padding: 6px 14px;
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  color: var(--primary-color);
  font-weight: 500;
  font-size: 0.9375rem;
}
.other-int {
  padding-block: var(--block-80px) var(--block-90px);
  background-color: var(--gray-bg);
  h2 {
    margin-bottom: 26px;
    font-weight: 300;
    font-size: var(--font-size-30px);
  }
}
.other-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.other-card {
  display: block;
  aspect-ratio: 2 / 1;
  border-radius: 5px;
  color: #FFF;
  position: relative;
  overflow: hidden;
  .ph {
    border-radius: 0;
    position: absolute;
    inset: 0;
  }
  &::after {
    content: "";
    background-color: rgb(0 0 0 / 0.25); /* デザインの黒レイヤー（長方形958：黒25%） */
    position: absolute;
    inset: 0;
  }
}
.other-card-role {
  writing-mode: vertical-rl;
  font-size: 0.9375rem;
  letter-spacing: 0.15em;
  text-shadow: 0 0 6px rgb(0, 0, 0, 0.6);
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 12px;
}
.other-card-no {
  font-size: 0.75rem;
  font-family: "Outfit", sans-serif;
  letter-spacing: 0.25em;
  text-shadow: 0 0 8px rgb(0, 0, 0, 0.45);
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 18px;
}
.other-card-body {
  text-align: right;
  text-shadow: 0 0 8px rgb(0, 0, 0, 0.45);
  position: absolute;
  z-index: 2;
  left: 52px;
  right: 18px;
  bottom: 10px;
}
.other-card-catch {
  display: block;
  margin-bottom: 10px;
  font-size: 0.875rem;
  line-height: 1.65;
}
.other-card-roma {
  display: block;
  font-size: 0.625rem;
  font-family: "Outfit", sans-serif;
  letter-spacing: 0.3em;
}
.other-card-name {
  display: block;
  font-weight: 200;
  font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: 0.1em;
}

/* =========================================================
   レスポンシブ（site.css と同じ区切り）
   ========================================================= */
@media screen and (max-width: 1520px) {
  .steps--5 {
    grid-template-columns: repeat(3, 1fr);
  }

}
@media screen and (max-width: 1120px) {
  .intro {
    grid-template-columns: 1fr 400px;
  }
  .service-grid--4, .pro-grid, .reason-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reason-grid {
    grid-template-columns: 1fr;
  }
}
@media screen and (max-width: 880px) {
  .step+.step::before, .steps--6 .step:nth-child(4)::after {
    display: none;
  }
  .intro, .sub-intro, .illust-intro, .text-photo {
    grid-template-columns: 1fr;
  }
  .illust-intro .illust-img {
    max-width: 260px;
  }
  .service-grid, .steps, .steps--5, .col3, .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .comment-pair, .points3, .check-cards {
    grid-template-columns: 1fr;
  }
  .point, .point:first-child {
    --pr: 0px;
    padding: 20px 0;
  }
  .point+.point {
    background-image: repeating-linear-gradient(to right, #9AA5B0 0 1px, transparent 1px 3px);
    background-size: 100% 1px;
  }
  .office-table {
    &, tbody, tr, th, td {
      display: block;
      width: auto !important;
    }
    td+td {
      border-left: none;
    }
  }
  .int-layout {
    grid-template-columns: 1fr;
    padding-top: var(--block-50px);
  }
  .int-side {
    margin-bottom: 48px;
    padding-right: 0;
    padding-bottom: 28px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .int-side-sticky {
    position: static;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0 24px;
    .ph {
      grid-row: span 4;
    }
  }
  .int-toc {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
  }
  .int-main {
    padding-left: 0;
  }
}
@media screen and (max-width: 560px) {
  .page-hero-title {
    font-size: 1.75rem; /* スマホ：「医療法人・クリニックの方」などが1行に収まる大きさ */
  }
  .page-hero {
    height: 88svh;
    min-height: 520px;
  }
  .page-hero--navy {
    height: 420px;
    min-height: 0;
  }
  .int-hero {
    height: 88svh;
    min-height: 540px;
  }
  .page-hero-inner, .int-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    bottom: 70px;
  }
  .int-hero-inner {
    bottom: 18px;
  }
  .page-hero-lead {
    font-size: 0.875rem;
  }
  .anchor-nav {
    min-height: 0;
    margin-top: -40px;
    padding-inline: 18px;
    ul {
      gap: 8px 20px;
      padding-block: 16px;
      font-size: 0.8125rem;
    }
    a {
      gap: 8px;
      &::before {
        width: 18px;
      }
    }
  }
  .catch br, .int-catch br {
    display: none;
  }
  .check-list, .service-grid, .service-grid--2, .service-grid--4, .pro-grid, .steps, .steps--5, .other-grid, .col3, .gray-cards {
    grid-template-columns: 1fr;
  }
  /* スマートフォン：番号と見出しを横に並べ、間に点線。説明文はその下に全幅で */
  .reason {
    grid-template-columns: 64px 1fr; /* 番号の幅をそろえ、01〜04で見出しの頭の位置を同じにする */
    align-items: center;
    column-gap: 16px;
    padding: 24px 22px;
    > div { display: contents; }
    h3 { margin: 0; line-height: 1.5; }
    p { grid-column: 1 / -1; margin-top: 14px; padding-top: 14px; border-top: 1px solid #DDE3E8; }
  }
  .reason-num {
    margin: 0;
    padding: 4px 16px 4px 0;
    font-size: 2.25rem;
  }
  .int-aside {
    grid-template-columns: 1fr;
    gap: 24px;
    .ph {
      max-width: 240px;
    }
  }
  .case-box, .worry-box, .gray-card {
    padding: 22px;
  }
  .comment .ph--round, .comment-avatar {
    width: 60px;
    height: 60px;
  }
  .comment-text {
    padding: 22px 20px 16px;
  }
  .faq summary {
    padding: 18px 60px 18px 18px;
    &::after {
      right: 16px;
    }
  }
  .faq-a {
    margin: 0 18px;
  }
  .profile-box ul {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .int-side-sticky {
    grid-template-columns: 120px 1fr;
  }
  .info-table {
    th, td {
      padding: 14px 16px;
    }
  }
}

/* ---------- トップ：メイン写真を画面幅いっぱいに（写真は1920px幅。それより広い画面・縮小表示でも右側に背景色が出ないように） ---------- */
.home-mv-image {
  display: block;
  width: 100%;
}

/* ---------- 写真のヒーロー：トップページのファーストビューと同じ動き ----------
   PC：横2:縦1（写真1920×960と同じ比率）。画面の幅に合わせて写真ごと大きく・小さくなる（ブラウザの縮小表示でも同じ）。
   タブレット・スマホ（1120px以下）：トップと同じく正方形（高さ480〜640px）。 */
.page-hero:not(.page-hero--navy), .int-hero {
  height: 50vw;
  min-height: 0;
}
@media screen and (max-width: 1120px) {
  .page-hero:not(.page-hero--navy), .int-hero {
    height: clamp(480px, 100vw, 640px);
  }
}
/* スマホ（560px以下）の下層ページ：トップのお知らせ枠がないぶん、写真を下へ伸ばす。
   文章は写真の下の暗い部分に置き、写真の上半分（被写体）にかからないようにする */
@media screen and (max-width: 560px) {
  .page-hero:not(.page-hero--navy) {
    height: calc(100vw + 170px);
    &::after {
      background-image: linear-gradient(to bottom, rgb(0, 0, 0, 0.45), rgb(0, 0, 0, 0.05) 20%, rgb(0, 0, 0, 0.1) 40%, rgb(0, 0, 0, 0.55) 62%, rgb(0, 0, 0, 0.7));
    }
  }
}

/* ---------- 汎用クラス（もとは HTML の style="..." に直接書いていた指定。直接書きと同じく最優先にするため !important） ---------- */
.text-gray { color: #444 !important; }
.text-link { color: var(--navy) !important; text-decoration: underline !important; }
.fs-16 { font-size: 16px !important; }
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mt-20 { margin-top: 20px !important; }
.mt-30 { margin-top: 30px !important; }
.mt-36 { margin-top: 36px !important; }
.mt-40 { margin-top: 40px !important; }
.mt-50 { margin-top: 50px !important; }
.mt-56 { margin-top: 56px !important; }
.mt-60 { margin-top: 60px !important; }
.mt-70 { margin-top: 70px !important; }
.mt-1-4em { margin-top: 1.4em !important; }
.mb-30 { margin-bottom: 30px !important; }
.mb-34 { margin-bottom: 34px !important; }
.pb-120 { padding-bottom: 120px !important; }
.pb-140 { padding-bottom: 140px !important; }
.intro--single { grid-template-columns: 1fr !important; } /* 写真なしの1列の .intro */
.img-zoom { /* 人物写真を少し寄せて腰から上に（その他の税理士のカードなど） */
  object-position: center 20% !important;
  transform: scale(1.07) !important;
  transform-origin: 50% 20% !important;
}

/* ---------- インタビューの閑話：プライベート写真の右下にキャラクターを重ねる（キャラクターは写真から少しはみ出す） ---------- */
.int-aside--chara {
  grid-template-columns: 1fr 262px;
}
.int-aside-visual {
  position: relative;
  padding: 0 22px 36px 0;
}
.int-aside-chara {
  position: absolute;
  right: 0;
  bottom: 0;
  width: auto;
  height: 140px;
}
@media screen and (max-width: 560px) {
  .int-aside--chara {
    grid-template-columns: 1fr;
  }
  .int-aside-visual {
    max-width: 262px;
  }
}

/* ステップの箱どうしで「番号・タイトル・本文」の高さをそろえる（タイトルが1行と2行の箱が並んでも、本文の書き出しがそろう） */
.steps--align .step { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.steps--align .step h4 { align-self: center; }

/* 取扱業務ページの事例の箱：お客様が特定されないことの注記（構築のお願い No.14 と同じ文言） */
.case-box-note { margin: 14px 0 0; font-size: .8125rem; line-height: 1.7; color: var(--text-sub); }

/* ---------- 取扱業務ページの色：トップページ「取扱業務」の色に合わせる（医療＝青緑のまま／一般法人＝紫／相続・個人＝オレンジ）
   本文の箱・チェック・見出しの色は --teal / --teal-pale を使っているので、ページごとに置き換える ---------- */
.theme-corporate {
  --teal: #7F62AA;
  --teal-pale: #F3F0F8;
  .step { background-color: #F7F4FB; border-color: #DDD4EB; }
  .step-num { border-bottom-color: #DDD4EB; }
  .steps { --step-dot: #B3A3CC; }
}
.theme-inheritance {
  --teal: #E59130;
  --teal-pale: #FDF3E7;
  .step { background-color: #FEF8F0; border-color: #EEDCC4; }
  .step-num { border-bottom-color: #F5DDBF; }
  .steps { --step-dot: #E0B580; }
}

/* ---------- ヘッダー：お問い合わせの右に電話番号（スマートフォンではタップで発信） ----------
   パソコンでメニューの幅が足りないとき（ヘッダー幅1700px未満）は、メニューが折り返さないよう丸い電話アイコンだけにする */
.globalNav-links-tel {
  flex-shrink: 0;
  margin-left: 14px;
  .globalNav-link {
    display: flex; align-items: center; justify-content: center; gap: 4px;
    color: var(--primary-color); font-family: "Outfit", sans-serif; font-weight: 500; font-size: 1rem; letter-spacing: 0.03em; line-height: 1; white-space: nowrap;
    transition: color 0.35s;
  }
  svg { flex-shrink: 0; width: 14px; height: 14px; fill: currentColor; }
}
.header.is-pageTop .globalNav-links-tel .globalNav-link { color: #FFF; } /* ページ上部（写真の上）では白 */
@container header-container (width >= calc(57.5rem + 500px)) {
  .globalNav { max-width: 88rem; } /* 電話番号のぶん、メニュー全体の幅の上限（site.css は 80rem）を広げる */
  .globalNav-list .globalNav-link, .globalNav-dropdownToggle { white-space: nowrap; } /* 「取扱業務」などを途中で改行しない */
}
@container header-container (width >= calc(57.5rem + 500px)) and (width < 1700px) {
  .globalNav-links-tel { margin-left: 6px; }
  .globalNav-links-tel .globalNav-link { width: 40px; height: 40px; border: 1px solid currentColor; border-radius: 50%; font-size: 0; gap: 0; }
  .globalNav-links-tel svg { width: 16px; height: 16px; }
}
@container header-container (width >= calc(57.5rem + 500px)) and (width < 1460px) {
  .globalNav-links-tel { display: none; } /* メニューが折り返す直前の狭い幅だけ、電話は出さない（フッターに番号あり） */
}
@container header-container (width < calc(57.5rem + 500px)) {
  .header.is-pageTop .globalNav-links-tel .globalNav-link { color: var(--primary-color); } /* メニューを開いたとき（白い背景）は紺 */
  /* 開いたメニューの中：ボタンの横に並べると画面幅によってはみ出すので、電話番号はボタンの下の行に中央そろえで置く */
  .globalNav-links { flex-wrap: wrap; justify-content: center; }
  .globalNav-links-tel { flex-basis: 100%; margin: 24px 0 0; }
  .globalNav-links-tel .globalNav-link { justify-content: center; font-size: 1.25rem; }
}
@media screen and (max-width: 560px) {
  .globalNav-links-tel { margin: 24px 0 0; }
}

/* ---------- トップのメインビジュアル：デザインデータの黒の半透明（上が濃く下へ薄く：上50%→下10%）に合わせる ---------- */
.home-mv-slide::before {
  background-image: linear-gradient(to bottom, rgb(0 0 0 / 0.5), rgb(0 0 0 / 0.39) 12.5%, rgb(0 0 0 / 0.34) 25%, rgb(0 0 0 / 0.26) 50%, rgb(0 0 0 / 0.18) 75%, rgb(0 0 0 / 0.1));
  opacity: 1;
}

/* ---------- インタビュー下「その他の税理士」：現デザイン（カード幅604pxで名前約64px・ローマ字約15px・役職約17px）の比率に合わせる ---------- */
.other-card { container-type: inline-size; }
.other-card-role {
  top: 1.8cqw;
  left: 1.2cqw;
  font-size: max(13px, 2.8cqw);
  letter-spacing: 0.04em;
  line-height: 1.15;
}
.other-card-body {
  left: auto;
  right: 1cqw;
  bottom: 0;
}
.other-card-roma {
  font-size: max(10px, 2.4cqw);
  letter-spacing: 0.3em;
  margin-right: -0.3em;
  margin-bottom: 0.6cqw;
}
.other-card-name {
  font-size: 10.5cqw;
  line-height: 1;
  letter-spacing: 0.06em;
  margin-right: -0.06em;
  margin-bottom: -1.4cqw;
  white-space: nowrap;
}

/* ---------- 手順（STEP）：スマホで1列になっても、カードの間を縦の点線でつなぐ ---------- */
@media screen and (max-width: 560px) {
  .step+.step::before {
    display: block;
    width: 0;
    height: var(--step-row-gap);
    border-top: 0;
    border-left: 2px dotted var(--step-dot);
    top: auto;
    bottom: calc(100% + 1px);
    left: calc(50% - 1px);
  }
  /* 6つの手順：PC用の「4つ目→5つ目」の短い点線（半分の長さ）を、スマホでは他と同じ長さに */
  .steps--6 .step:nth-child(5)::before { height: var(--step-row-gap); top: auto; bottom: calc(100% + 1px); }
}

/* よくあるご質問の回答の下に置く、関連ページへのリンク（例：給与計算 → 皆実社会保険労務士法人） */
.faq-a .faq-more { margin-top: 12px; }
.faq-more a { display: inline-flex; align-items: center; gap: 8px; color: var(--primary-color); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.faq-more a::after { content: ""; width: 20px; height: 20px; background: url(./img/common/arrow-next-primary_color.svg) center / contain no-repeat; }
.faq-more a:hover { text-decoration: none; }
/* サービスカードの文の下に置く関連ページへのリンク（例：労務・法務の相談 → 皆実社会保険労務士法人）。見た目は .faq-more a と同じ */
.service-card .service-card-more { margin-top: -12px; padding-top: 0; font-size: 1rem; }

/* ---------- プライバシーポリシー・当サイトのご利用について：紺のヒーローを低くする（見出しだけのページなので、紺の余白を減らす） ---------- */
.page-hero--navy.page-hero--short { height: 340px; }
@media screen and (max-width: 560px) {
  .page-hero--navy.page-hero--short { height: 250px; }
  .page-hero--navy.page-hero--short .page-hero-inner { bottom: 32px; }
}

/* ---------- トップのお知らせ：カテゴリーをお知らせ一覧と同じ色付きのラベルに ---------- */
.home-activity-category.category { margin-left: 20px; padding: 3px 16px; color: #FFF; font-size: 0.8125rem; }
