@charset "UTF-8";
/* styles.css の後に読み込む調整レイヤー（旧 headline-fix.css） */

/* 文字色：見出しは濃いグレー、本文はダークグレー（緑みのある色は使わない） */
:root { --ink: #333333; --text: #4a4a4a; }

/* ================================================================
   共通
   ================================================================ */
.brand-mark { width: 41px; height: 41px; font-size: 24px; }
.brand small { font-size: 11px; }
.brand strong { font-size: 24px; }

/* 見出しは日本語の文節で改行し、行の長さをそろえる（Safari は通常の改行にフォールバック） */
h1, h2, h3 { word-break: auto-phrase; text-wrap: balance; }
.intro h2   { font-size: clamp(26px, 3vw, 42px); }
.message h2 { font-size: clamp(22px, 2.3vw, 31px); }
.contact h2 { font-size: clamp(26px, 2.5vw, 36px); }

/* 本文はヒーローの説明文（.lead 15px）とそろえる */
.intro p, .message p, .contact-lead p { font-size: 15px; }
.lead, .intro p, .service-grid p, .message p { color: var(--text); }

/* ヘッダー：ページ本体より少し濃いベージュで区別する（境界の細線は使わない） */
.site-header { background: #efe9dd; border-bottom: 0; }

/* ナビ：文字を大きめに。お問い合わせは枠線なしの白いカプセル */
nav { gap: 40px; font-size: 15px; letter-spacing: .04em; }
.nav-contact { padding: 6px 22px; line-height: 1.6; border: 0; border-radius: 999px; background: white; transition: background .2s, color .2s; }
.nav-contact:hover { color: #a46d34; }   /* 他のナビと同じ茶色 */
nav a, .brand strong { white-space: nowrap; }

/* タブレット幅：1行に収まらないので、ナビを事務所名の下に回す */
@media (min-width: 721px) and (max-width: 1180px) {
  .site-header { height: auto; flex-direction: column; align-items: stretch; gap: 6px; padding: 12px 6vw 10px; }
  nav { gap: 36px; }
  .nav-contact { margin-left: auto; }
  #about, #service, #message, #access, #contact { scroll-margin-top: 124px; }
}

/* ページ内リンクの着地位置（固定ヘッダーぶん下げる） */
#about, #service, #message, #access, #contact { scroll-margin-top: 84px; }
#top { scroll-margin-top: 100vh; }   /* ロゴ（#top）はページの一番上まで戻す（固定ヘッダーで写真上の余白が隠れないように） */

/* 小さな英字ラベル（01 ABOUT US など）は使わない。見出しの上の余白を詰める */
.intro { display: block; }
.intro p { max-width: none; }   /* 本文は画面幅に合わせて右側いっぱいまで広げる */
.intro .facts { max-width: 390px; }   /* 一覧表は中身に合わせた短い線で（線・行間はアクセス欄と同じ） */
/* 一覧表の右下に税務のイラスト（装飾） */
.about-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: 36px; }
.about-bottom .facts { flex: 0 1 390px; margin-top: 0; }
.about-illust { display: block; flex: none; width: clamp(220px, 26vw, 360px); height: auto; margin: 0 auto; position: relative; left: 15px; }   /* 表の右の余白の中央から15px右 */
@media (max-width: 1080px) {   /* 横に並べると一覧表が縮むので、イラストは表の下・右寄せに */
  .about-bottom { flex-direction: column; align-items: stretch; gap: 32px; }
  .about-bottom .facts { flex: none; }
  .about-illust { width: 100%; max-width: 320px; align-self: flex-end; margin: 0; left: 0; }
}
.intro p { word-break: auto-phrase; }
.message h2, .contact h2 { margin-top: 0; }

/* 見出しは折り返しを許可（white-space:nowrap は文字数を変えると横にはみ出すため使わない）。
   改行位置は HTML の <br class="headline-break"> で制御する */
.hero h1 { letter-spacing: .04em; font-size: clamp(38px, 5.2vw, 72px); }

/* 小さな事実一覧（事務所について・アクセスで共用） */
.facts { margin: 36px 0 0; max-width: 640px; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.8; }
.facts dt { color: var(--ink); letter-spacing: .06em; }
.facts dd { margin: 0; color: var(--ink); word-break: auto-phrase; }

/* ================================================================
   トップ
   ================================================================ */
.hero { grid-template-columns: 1fr 1fr; background: white; }
/* 背景：ヒーロー（白）→ 業務案内（ベージュ）→ 事務所について（白）の順で交互に */
.hero-copy { padding-right: 3vw; }
.hero-visual { overflow: hidden; isolation: isolate; margin: 48px 7vw 48px 0; min-height: 0; }   /* 写真を少し小さくし、周りに余白 */
.lead { line-height: 2; }
.hero .eyebrow { font-size: 14px; letter-spacing: .16em; }
.hero .button { border-radius: 4px; display: inline-flex; justify-content: center; align-items: center; min-width: 280px; padding: 17px 36px; font-size: 16px; font-weight: 700; letter-spacing: .1em; }

/* ================================================================
   業務案内（4項目・2列）
   ================================================================ */
.services-title { font-family: 'Shippori Mincho', serif; font-weight: 500; font-size: clamp(28px, 3.5vw, 47px); line-height: 1.5; margin: 0 0 40px; }
.service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.service-grid article { min-height: 0; padding: 36px 34px 32px; border-top-color: #dccbab; }   /* 上の線は金色を落ち着かせた色に */
.service-grid span { display: block; font-family: 'Shippori Mincho', serif; font-size: 40px; font-weight: 500; line-height: 1; letter-spacing: .04em; color: #a46d34; }
.service-grid h3 { margin-top: 18px; }
.service-grid p { font-size: 15px; line-height: 1.95; margin: 0; }

/* ================================================================
   ごあいさつ・プロフィール
   ================================================================ */
.message { grid-template-columns: minmax(0, 300px) 1fr; align-items: start; background: var(--cream); }
.portrait { margin: 0; }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.message p { line-height: 2; }
.profile p { word-break: auto-phrase; }   /* 「です。」だけが次の行に落ちないよう文節で折り返す */
.profile { margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(24, 51, 49, .15); }
.profile-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 12px; font-family: 'Shippori Mincho', serif; font-size: 24px; color: var(--ink); }
.profile-name span { font-family: 'Noto Sans JP', sans-serif; font-size: 15px; letter-spacing: .12em; color: var(--ink); }
.profile-name small { font-family: 'Noto Sans JP', sans-serif; font-size: 15px; letter-spacing: .04em; color: var(--text); }

/* ================================================================
   アクセス
   ================================================================ */
.access { padding: 130px 14vw; background: white; }
.access h2 { font-family: 'Shippori Mincho', serif; font-weight: 500; font-size: clamp(28px, 3.5vw, 47px); line-height: 1.5; margin: 0; }
.access-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; align-items: start; }
.access .facts { margin-top: 26px; }
.map-link { margin: 20px 0 0; font-size: 15px; }
.map-link a { display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.map-link a:hover { color: #a46d34; }
.map-link svg { flex: none; width: 18px; height: 18px; }
.map { position: relative; aspect-ratio: 4 / 3; background: #e4ebe5; border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ================================================================
   お問い合わせ
   ================================================================ */
.contact { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; }
.contact-lead .phone { display: inline-block; margin-top: 18px; }
.contact-lead .contact-sub { margin: 6px 0 0; font-size: 15px; }

.contact-form { display: grid; gap: 18px; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; letter-spacing: .04em; color: #e3ece8; }
.field em { margin-left: 8px; padding: 1px 7px; border-radius: 2px; font-style: normal; font-size: 10px; letter-spacing: .08em; vertical-align: 1px; color: var(--ink); background: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid transparent; border-radius: 2px;
  font: inherit; font-size: 15px; line-height: 1.6; color: var(--ink); background: #fbf9f4;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.75; }
.field input:focus, .field select:focus, .field textarea:focus, .agree input:focus-visible, .submit:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #e3ece8; cursor: pointer; }
.agree input { flex: none; width: 16px; height: 16px; margin: 4px 0 0; accent-color: var(--gold); }
.contact .privacy { margin: -6px 0 0; font-size: 12px; line-height: 1.8; color: #a9c2ba; }
.submit {
  justify-self: start; min-width: 280px; padding: 17px 36px; border: 0; border-radius: 4px; cursor: pointer;   /* ヒーローの相談ボタンとそろえる */
  font: inherit; font-size: 16px; font-weight: 700; letter-spacing: .1em; color: var(--ink); background: var(--gold);
  transition: filter .2s;
}
.submit:hover { filter: brightness(1.06); }
.submit[disabled] { opacity: .6; cursor: wait; }
.contact .form-status { min-height: 1.6em; margin: 0; font-size: 15px; line-height: 1.8; white-space: pre-line; }
.contact .form-status.ok { color: var(--gold); }
.contact .form-status.err { color: #ffd2c4; }

/* 送信完了のお知らせ */
.form-done { align-self: center; padding: 44px 40px; border-radius: 4px; color: var(--ink); background: #fbf9f4; outline: none; }
.form-done[hidden], .contact-form[hidden] { display: none; }
.contact .form-done-title { margin: 0 0 14px; font-family: 'Shippori Mincho', serif; font-size: 24px; font-weight: 500; color: var(--ink); }
.contact .form-done-text p { margin: 0; font-size: 15px; line-height: 1.9; white-space: pre-line; word-break: auto-phrase; text-wrap: pretty; color: var(--text); }
.contact .form-done-text .form-done-note { margin-top: 20px; padding-top: 18px; border-top: 1px solid #e6dccb; font-size: 14px; line-height: 1.8; }
.form-done-back { margin-top: 26px; padding: 0 0 2px; border: 0; border-bottom: 1px solid currentColor; font: inherit; font-size: 14px; color: var(--text); background: none; cursor: pointer; }
.form-done-back:hover { color: #a46d34; }

/* ================================================================
   フッター（ロゴマークなし、事務所名だけを控えめに）
   ================================================================ */
.footer-brand strong { font-family: 'Shippori Mincho', serif; font-size: 15px; font-weight: 500; letter-spacing: .08em; color: #e3ece8; }

/* ================================================================
   スマートフォン
   ================================================================ */
@media (max-width: 720px) {
  /* スマホのトップ：英字 → 見出し → 説明文 → 写真 → 相談ボタン の順に並べる */
  .hero { display: flex; flex-direction: column; min-height: 0; padding: 36px 0 52px; }
  .hero-copy { display: contents; }
  .hero .eyebrow { order: 1; margin: 0 9vw; }
  .hero h1 { order: 2; }
  .lead { order: 3; margin: 0 9vw 28px; }
  .hero-visual { order: 4; margin: 0 9vw 28px; min-height: 0; aspect-ratio: 1 / 1; }
  .hero .button { order: 5; margin: 0 9vw; }
  #about, #service, #message, #access, #contact { scroll-margin-top: 96px; }
  .hero h1 { font-size: clamp(32px, 8.6vw, 48px); letter-spacing: .02em; margin: 20px 9vw 22px; }
  .lead { word-break: auto-phrase; }
  .lead br { display: none; }
  /* 見出しは <br> で区切った1行ずつが画面幅に収まる大きさにする（変な位置で折り返さない） */
  .intro h2, .message h2 { text-wrap: wrap; word-break: normal; }
  .intro h2   { font-size: min(26px, 5.3vw); }   /* 1行14文字が収まる大きさ */
  .message h2 { font-size: min(24px, 4.6vw); }   /* 1行16文字が収まる大きさ */
  .intro p, .profile p { word-break: normal; }   /* 狭い画面では文節区切りをやめ、行末まで自然に流す */
  .profile p br { display: none; }   /* プロフィールも改行を外して続けて流す */
  .hero .eyebrow { font-size: clamp(10px, 2.9vw, 12px); letter-spacing: .08em; }
  .hero .button { min-width: 0; width: auto; }   /* 狭い画面では改行を外して自然に流す */

  /* ヘッダー：事務所名の折り返しとボタンの重なりを解消 */
  .site-header { height: auto; flex-direction: column; align-items: flex-start; gap: 10px; padding: 11px 5vw 0; }
  .brand { gap: 10px; }
  .brand-mark { width: 34px; height: 34px; font-size: 20px; }
  .brand small { font-size: 10px; letter-spacing: .1em; }
  .brand strong { font-size: 17px; }

  /* ナビ：全項目を横スクロールで表示 */
  nav { width: 100%; gap: 0; display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  nav::-webkit-scrollbar { display: none; }
  nav a:not(.nav-contact) { display: block; flex: none; padding: 10px 13px 11px; font-size: 13.5px; letter-spacing: .04em; white-space: nowrap; border-bottom: 2px solid transparent; }
  nav a:not(.nav-contact):first-child { padding-left: 0; }
  .nav-contact { flex: none; margin: 0 0 6px 8px; padding: 7px 16px; font-size: 13px; white-space: nowrap; }

  .facts > div { grid-template-columns: 6em 1fr; gap: 12px; }
  .service-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-grid article { padding: 30px 26px 26px; }
  .portrait { max-width: 260px; margin-bottom: 34px; }
  .access { padding: 80px 9vw; }
  .access-body { grid-template-columns: 1fr; gap: 32px; }
  .contact-form, .form-done { margin-top: 44px; }
  .form-done { padding: 36px 24px; }
  .submit { justify-self: stretch; }
}
