/* =========================================================
   そよは行政書士事務所（制作サンプル） style.css
   スマホ優先：基本はスマホの見た目。min-width で広げる。
   ========================================================= */

:root {
  --color-main: #1F3A5F;
  --color-main-soft: #384C69;
  --color-text: #1A2F4D;
  --color-accent: #8FC9A3;
  --color-accent-pale: #EAF4EE;
  --color-base: #FFFFFF;
  --color-base-gray: #F6F8F7;
  --color-line: rgba(31,58,95,0.15);

  --font-base: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --shadow: 0 4px 16px rgba(31,58,95,0.08);

  --side: 20px;
  --section-y: 64px;
  --h2-gap: 32px;
  --card-pad: 24px;
  --card-gap: 16px;
  --header-h: 64px;
}

@media (min-width: 768px) {
  :root {
    --side: 32px;
    --section-y: 88px;
    --h2-gap: 40px;
    --card-pad: 32px;
    --card-gap: 24px;
    --header-h: 80px;
  }
}

@media (min-width: 1024px) {
  :root {
    --side: 40px;
    --section-y: 112px;
    --h2-gap: 48px;
    --card-gap: 32px;
  }
}

/* ---------- リセット・基本 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--color-text);
  background: var(--color-base);
  overflow-x: hidden;
}

@media (min-width: 768px) {
  body {
    font-size: 17px;
  }
}

body.is-menu-open {
  overflow: hidden;
}

/* 画面下固定ボタンがあるページ（スマホのみ） */
@media (max-width: 767px) {
  body.has-fixed-cta {
    padding-bottom: 88px;
  }
}

h1, h2, h3, p, ul, ol, dl, dd, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-main);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-main);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: 0.06em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

[id],
.form-field,
.form-group {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- レイアウト ---------- */
.container {
  width: 100%;
  max-width: calc(1080px + var(--side) * 2);
  margin-inline: auto;
  padding-inline: var(--side);
}

.container--narrow {
  max-width: calc(760px + var(--side) * 2);
}

.section {
  padding-block: var(--section-y);
}

.section--pale {
  background: var(--color-accent-pale);
}

.section--gray {
  background: var(--color-base-gray);
}

main p {
  max-width: 38em;
}

main p + p {
  margin-top: 1.2em;
}

/* ---------- 見出し ---------- */
.eyebrow {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.2em;
  color: var(--color-main-soft);
}

.section-title {
  font-size: 23px;
  line-height: 1.5;
}

.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  margin-top: 12px;
  border-radius: 2px;
  background: var(--color-accent);
}

.section-head {
  margin-bottom: var(--h2-gap);
}

.section-head--center {
  text-align: center;
}

.section-head--center .section-title::after {
  margin-inline: auto;
}

.section-head .lead {
  margin-top: 20px;
}

.section-head--center .lead {
  margin-inline: auto;
}

h3 {
  font-size: 18px;
  line-height: 1.6;
}

.lead {
  font-size: 16px;
  line-height: 1.9;
}

.note {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-main-soft);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 28px;
  }

  h3 {
    font-size: 20px;
  }

  .lead {
    font-size: 18px;
  }
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  width: 100%;
  max-width: 360px;
  padding: 12px 32px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  color: var(--color-main);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.btn--primary {
  min-height: 56px;
  background: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn--primary::after {
  content: "→";
  font-weight: 700;
}

.btn--secondary {
  min-height: 52px;
  background: var(--color-base);
  border: 2px solid var(--color-main);
}

@media (hover: hover) {
  .btn--primary:hover {
    background: var(--color-accent-pale);
    border-color: var(--color-accent);
  }

  .btn--secondary:hover {
    background: var(--color-accent-pale);
  }
}

@media (min-width: 768px) {
  .btn {
    width: auto;
    max-width: none;
    font-size: 17px;
  }
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .btn-group {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.section-foot {
  margin-top: var(--h2-gap);
}

.section-foot--center {
  text-align: center;
}

.text-link {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-base);
  border-bottom: 1px solid var(--color-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--color-main);
}

.site-logo img {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.menu-toggle {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle__bars {
  position: relative;
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 1px;
  background: var(--color-main);
  transition: background-color 0.2s;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  border-radius: 1px;
  background: var(--color-main);
  transition: transform 0.2s;
}

.menu-toggle__bars::before {
  transform: translateY(-8px);
}

.menu-toggle__bars::after {
  transform: translateY(8px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after {
  transform: rotate(-45deg);
}

/* スマホ・タブレット：開閉パネル */
.global-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  overflow-y: auto;
  padding: 8px var(--side) 40px;
  background: var(--color-base);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.global-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.global-nav__list a {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-main);
  border-bottom: 1px solid var(--color-line);
}

.global-nav__list a[aria-current="page"] span {
  box-shadow: inset 0 -2px 0 var(--color-accent);
}

.global-nav__label-pc {
  display: none;
}

.global-nav__cta {
  margin-top: 32px;
  text-align: center;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }

  .global-nav {
    position: static;
    overflow: visible;
    padding: 0;
    background: transparent;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .global-nav__list {
    display: flex;
    align-items: center;
    gap: 28px;
  }

  .global-nav__list a {
    min-height: 44px;
    font-size: 16px;
    border-bottom: 0;
  }

  .global-nav__list a.global-nav__contact {
    padding: 0 24px;
    border-radius: 999px;
    background: var(--color-accent);
    border: 2px solid var(--color-accent);
    transition: background-color 0.2s;
  }

  .global-nav__list a.global-nav__contact:hover {
    background: var(--color-accent-pale);
  }

  .global-nav__label-sp {
    display: none;
  }

  .global-nav__label-pc {
    display: inline;
  }

  .global-nav__cta {
    display: none;
  }
}

/* ---------- ファーストビュー（トップ） ---------- */
.hero {
  padding-block: 40px var(--section-y);
}

.hero__inner {
  display: grid;
  gap: 40px;
}

.hero__label {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-main-soft);
}

.hero__title {
  margin-top: 12px;
  font-size: 28px;
  line-height: 1.5;
}

.hero__lead {
  margin-top: 24px;
}

.hero .btn-group {
  margin-top: 32px;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.7;
}

.hero__points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__points li::before {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
}

.hero__image img {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  border-radius: 16px;
}

@media (min-width: 768px) {
  .hero {
    padding-top: 64px;
  }

  .hero__inner {
    grid-template-columns: 55fr 45fr;
    align-items: center;
  }

  .hero__title {
    font-size: 40px;
  }
}

/* ---------- カード ---------- */
.card {
  padding: var(--card-pad);
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: var(--color-base);
  box-shadow: var(--shadow);
}

.card-grid {
  display: grid;
  gap: var(--card-gap);
}

@media (min-width: 768px) {
  .card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 3列は文字が窮屈にならない1024px以上から（768〜1023pxは縦に並べる） */
@media (min-width: 1024px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.card h3 + p {
  margin-top: 12px;
}

.card__more {
  display: inline-block;
  margin-top: 16px;
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-card__sub {
  display: block;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--color-main-soft);
}

.service-card .card__more {
  margin-top: auto;
  padding-top: 16px;
}

/* ---------- ご相談の流れ ---------- */
.flow {
  display: grid;
  gap: 0;
}

.flow__item {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding-bottom: 32px;
}

.flow__item:last-child {
  padding-bottom: 0;
}

/* 番号の丸をつなぐ縦線 */
.flow__item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 48px;
  bottom: 0;
  left: 23px;
  width: 2px;
  background: var(--color-line);
}

.flow__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-main);
  color: var(--color-base);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.flow__body h3 {
  padding-top: 8px;
}

.flow__body p {
  margin-top: 8px;
}

@media (min-width: 1024px) {
  .flow {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--card-gap);
  }

  .flow__item {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-content: start;
    padding-bottom: 0;
  }

  /* 横並びでは番号の丸を横線でつなぐ */
  .flow__item:not(:last-child)::before {
    top: 23px;
    bottom: auto;
    left: 48px;
    right: calc(var(--card-gap) * -1);
    width: auto;
    height: 2px;
  }

  .flow__body h3 {
    padding-top: 0;
  }
}

/* ---------- 代表あいさつ（トップ） ---------- */
.message {
  display: grid;
  gap: 32px;
}

.message__image img,
.greeting__image img {
  width: 100%;
  border-radius: 16px;
}

.signature {
  margin-top: 24px;
  font-weight: 700;
}

.message .btn {
  margin-top: 32px;
}

@media (min-width: 768px) {
  .message {
    grid-template-columns: 2fr 3fr;
    align-items: center;
    gap: 48px;
  }
}

/* ---------- 共通CTAブロック ---------- */
.cta {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-y);
  background: var(--color-accent-pale);
  text-align: center;
}

.cta__inner {
  position: relative;
  z-index: 1;
}

.cta p {
  margin-inline: auto;
}

.cta .btn {
  margin-top: 32px;
}

.cta__tel {
  margin-top: 24px;
}

.cta__tel-number {
  font-weight: 700;
}

.cta__deco {
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 96px;
  height: 96px;
  opacity: 0.9;
}

@media (min-width: 768px) {
  .cta__deco {
    right: 24px;
    bottom: 16px;
    width: 120px;
    height: 120px;
  }
}

/* ---------- フッター ---------- */
.site-footer {
  padding-block: 48px;
  background: var(--color-main);
  color: var(--color-base);
}

.site-footer a {
  color: var(--color-base);
}

.site-footer__name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}

.site-footer__info {
  margin-top: 12px;
}

.site-footer__nav {
  margin-top: 32px;
}

.site-footer__nav ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 16px;
}

.site-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.site-footer__nav a:hover {
  text-decoration: underline;
}

.site-footer__nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.site-footer a:focus-visible {
  outline-color: var(--color-base);
}

.site-footer__sample {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.site-footer__copy {
  display: block;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

@media (min-width: 768px) {
  .site-footer {
    padding-block: 64px;
  }

  .site-footer__nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 28px;
  }
}

/* ---------- スマホ画面下固定ボタン ---------- */
.fixed-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
}

.fixed-cta .btn {
  width: 100%;
  max-width: none;
  box-shadow: var(--shadow);
}

.fixed-cta.is-hidden {
  display: none;
}

@media (min-width: 768px) {
  .fixed-cta {
    display: none;
  }
}

/* ---------- 下層ページのタイトル部 ---------- */
.page-head {
  position: relative;
  overflow: hidden;
  padding-block: 48px;
  background: var(--color-accent-pale);
}

.page-head__inner {
  position: relative;
}

.page-head__title {
  font-size: 26px;
  line-height: 1.5;
}

.page-head .lead {
  margin-top: 16px;
}

.page-head__deco {
  display: none;
}

@media (min-width: 768px) {
  .page-head {
    padding-block: 64px;
  }

  .page-head__title {
    font-size: 34px;
  }

  .page-head__inner {
    padding-right: 160px;
  }

  .page-head__deco {
    display: block;
    position: absolute;
    top: 50%;
    right: var(--side);
    width: 120px;
    height: 120px;
    transform: translateY(-50%);
  }
}

.breadcrumb {
  margin-bottom: 24px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  line-height: 1.7;
}

.breadcrumb li + li::before {
  content: "＞";
  margin-inline: 0.5em;
  color: var(--color-main-soft);
}

.breadcrumb a {
  color: var(--color-main);
}

/* ---------- 業務内容ページ ---------- */
.anchor-nav {
  padding-block: 40px 0;
}

.anchor-nav ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.anchor-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  height: 100%;
  padding: 8px 12px;
  border: 2px solid var(--color-main);
  border-radius: 999px;
  background: var(--color-base);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  color: var(--color-main);
  transition: background-color 0.2s;
}

@media (hover: hover) {
  .anchor-nav a:hover {
    background: var(--color-accent-pale);
  }
}

@media (min-width: 768px) {
  .anchor-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
  }

  .anchor-nav a {
    padding: 8px 24px;
  }
}

.fee-note {
  margin-top: 32px;
  padding: 20px 20px 20px 24px;
  border-left: 4px solid var(--color-main);
  border-radius: 0 12px 12px 0;
  background: var(--color-base-gray);
}

.fee-note li {
  position: relative;
  padding-left: 1em;
  max-width: 38em;
}

.fee-note li + li {
  margin-top: 0.6em;
}

.fee-note li::before {
  content: "・";
  position: absolute;
  left: 0;
}

.service-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: var(--h2-gap);
}

.service-head img {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .service-head {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
}

.service-block h3 {
  margin-top: 40px;
  margin-bottom: 16px;
}

.check-list li {
  position: relative;
  padding-left: 32px;
}

.check-list li + li {
  margin-top: 8px;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 4px;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--color-accent);
  border-bottom: 3px solid var(--color-accent);
  transform: rotate(-45deg);
}

/* 表（料金・事務所概要） */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-base);
}

.table th,
.table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-line);
}

.table tr:last-child th,
.table tr:last-child td {
  border-bottom: 0;
}

.table thead th,
.table tbody th {
  background: var(--color-base-gray);
  font-weight: 700;
}

.table--fee thead th:last-child {
  text-align: right;
}

.table--fee tbody th {
  font-weight: 400;
  background: var(--color-base);
}

.table--fee td {
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.table--fee thead th {
  border-bottom: 1px solid var(--color-line);
}

.table + .note {
  margin-top: 16px;
}

.service-block .section-foot {
  margin-top: 32px;
}

.closing {
  padding-block: var(--section-y);
  text-align: center;
}

.closing p {
  margin-inline: auto;
}

/* ---------- 事務所案内ページ ---------- */
.greeting__image {
  margin-bottom: 32px;
}

.signature--right {
  text-align: right;
  margin-left: auto;
}

.profile {
  display: grid;
  gap: 32px;
}

.profile__image img {
  width: 200px;
  height: 200px;
  margin-inline: auto;
  border-radius: 16px;
}

.profile__name {
  font-size: 18px;
  line-height: 1.6;
}

.profile__name small {
  font-size: 16px;
  font-weight: 400;
}

.profile__list {
  margin-top: 24px;
}

.profile__list dt {
  margin-top: 20px;
  font-weight: 700;
}

.profile__list dt:first-child {
  margin-top: 0;
}

.profile__list dd ul li {
  position: relative;
  padding-left: 1.2em;
}

.profile__list dd ul li::before {
  content: "";
  position: absolute;
  top: 0.8em;
  left: 0.2em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

@media (min-width: 768px) {
  .profile {
    grid-template-columns: 240px 1fr;
    align-items: start;
    gap: 48px;
  }

  .profile__image img {
    width: 240px;
    height: 240px;
  }

  .profile__name {
    font-size: 20px;
  }
}

.table--outline tbody th {
  width: 32%;
}

@media (min-width: 768px) {
  .table--outline tbody th {
    width: 200px;
  }
}

/* ---------- よくある質問 ---------- */
.faq-group + .faq-group {
  margin-top: var(--section-y);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: var(--color-base);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 16px;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "＋";
  flex-shrink: 0;
  margin-left: auto;
  font-size: 20px;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-mark {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.faq-mark--q {
  background: var(--color-accent);
  color: var(--color-main);
}

.faq-mark--a {
  background: var(--color-main);
  color: var(--color-base);
}

.faq-answer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 24px;
  border-top: 1px solid var(--color-line);
}

.faq-answer p {
  padding-top: 0;
}

@media (min-width: 768px) {
  .faq-item summary {
    padding: 12px 24px;
  }
}

/* ---------- お問い合わせページ ---------- */
.tel-card {
  padding: var(--card-pad);
  border-radius: 12px;
  background: var(--color-accent-pale);
  text-align: center;
}

.tel-card .section-title::after {
  margin-inline: auto;
}

.tel-card__number {
  margin-top: 24px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
}

.tel-card__hours {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 4px 16px;
  margin-top: 16px;
  text-align: left;
}

.tel-card__hours dt {
  font-weight: 700;
}

.tel-card .note {
  margin: 16px auto 0;
}

.form-section h2 + .note {
  margin-top: 0;
}

.form-sample-note {
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-main-soft);
}

.form {
  margin-top: 32px;
}

.form-field {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.form-field + .form-field {
  margin-top: 28px;
}

.form-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-bottom: 8px;
  padding: 0;
  font-weight: 700;
  line-height: 1.6;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.badge--required {
  background: var(--color-main);
  color: var(--color-base);
}

.badge--optional {
  border: 1px solid var(--color-main);
  padding: 1px 7px;
}

.form-input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: var(--color-base-gray);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--color-main);
}

.form-input::placeholder {
  color: var(--color-main-soft);
}

.form-input:focus {
  outline: none;
  border: 2px solid var(--color-main);
  padding: 11px 15px;
}

.form-input:focus-visible {
  outline: none;
}

select.form-input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-main) 50%), linear-gradient(135deg, var(--color-main) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

select.form-input:focus {
  padding-right: 43px;
}

textarea.form-input {
  height: 200px;
  resize: vertical;
}

.form-input[aria-invalid="true"] {
  border: 2px solid var(--color-main);
  padding: 11px 15px;
}

select.form-input[aria-invalid="true"] {
  padding-right: 43px;
}

.form-group {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.form-group + .form-field,
.form-field + .form-group {
  margin-top: 28px;
}

.form-group__title {
  padding: 0;
  margin-bottom: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.form-group .form-field + .form-field {
  margin-top: 20px;
}

.choice-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 4px 0;
  cursor: pointer;
  line-height: 1.6;
}

.choice input {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--color-main);
  cursor: pointer;
}

@media (min-width: 768px) {
  .choice-list--row {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 32px;
  }
}

.privacy-box {
  margin-bottom: 12px;
  padding: 20px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: var(--color-base-gray);
  font-size: 16px;
}

.form-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-main);
}

.form-error[hidden] {
  display: none;
}

.form-error::before {
  content: "！";
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--color-main);
  color: var(--color-base);
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
}

.form-submit {
  margin-top: 40px;
}

.form-submit .btn {
  font-family: inherit;
}

.form-status:empty {
  display: none;
}

.form-status {
  margin-top: 24px;
  padding: 20px;
  border-radius: 12px;
  background: var(--color-accent-pale);
  font-weight: 700;
}

.contact-more {
  margin-top: var(--section-y);
  padding-top: 40px;
  border-top: 1px solid var(--color-line);
}

.contact-more .text-link {
  display: inline-block;
  margin-top: 8px;
}

@media (min-width: 768px) {
  .site-footer__info p + p {
    margin-top: 0;
  }
}

/* ---------- 注記の追加分（法務チェック対応） ---------- */
.card__note {
  margin-top: 12px;
}

.flow__note {
  margin-top: 32px;
}

.cta .cta__note {
  margin-top: 12px;
}

.tel-card .tel-card__dummy {
  margin-top: 4px;
}

/* ---------- 文節で改行する（<wbr> の位置でのみ折り返す） ---------- */
.btn,
.anchor-nav a,
.table--fee th,
.faq-item summary {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* ---------- 代表写真の差し替え案内（トップ） ---------- */
.message__photo-note {
  margin-top: 12px;
  text-align: center;
}

/* ---------- 人名などを途中で改行しない ---------- */
.nowrap {
  white-space: nowrap;
}

/* ---------- 料金表：行の上下中央そろえ・幅の上限（2026-10-05） ---------- */
.table--fee {
  max-width: 760px;
}

.table--fee th,
.table--fee td {
  vertical-align: middle;
}

/* スマホでは、金額の列を中身の幅だけにして、項目名の列を広くとる（項目名の改行を減らす） */
@media (max-width: 767px) {
  .table--fee td {
    width: 1%;
  }
}

/* 「報酬の目安（税込）」は単語の途中で折り返さず、<wbr> の位置（「（税込）」の前）でだけ改行する */
.table--fee thead th:last-child {
  overflow-wrap: normal;
}

/* ---------- 日本語の改行を整える（全ページ共通） ---------- */
/* 句読点や小さい「ゃ」「ッ」「ー」が行頭に来ないようにする */
body {
  line-break: strict;
}

/* 最後の行が1〜2文字だけにならないよう、行の折り返し位置を調整する */
p,
li,
dd,
dt,
td,
th,
summary,
figcaption {
  text-wrap: pretty;
}

/* 短い項目は <wbr> の位置（文節）でだけ折り返し、行の長さをそろえる */
.phrase {
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

/* ---------- 事務所案内：ごあいさつ（PCは横並び・スマホはイラスト小さめ） ---------- */
.message--greeting .greeting__image {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .message--greeting .greeting__image {
    max-width: 280px;
    margin-inline: auto;
  }
}

@media (min-width: 768px) {
  .message--greeting {
    align-items: start;
  }
}

/* ---------- 事務所案内：代表写真の差し替え案内 ---------- */
.profile__photo-note {
  margin-top: 12px;
  text-align: center;
}

/* 文章を文節（<wbr> の位置）で折り返し、最後の行が極端に短くならないようにする */
.phrase-text {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* ---------- よくある質問：回答を開いたときのアニメーション ---------- */
.faq-item[open] .faq-answer {
  animation: faq-open 0.25s ease-out;
}

@keyframes faq-open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 「視差効果を減らす」設定の端末では動きをなくす */
@media (prefers-reduced-motion: reduce) {
  .faq-item[open] .faq-answer {
    animation: none;
  }
}

/* スマホでは回答の「A」を質問の「Q」と同じ位置にそろえ、文章の幅を広くとる */
@media (max-width: 767px) {
  .faq-answer {
    padding: 20px 16px;
  }
}

/* ---------- お問い合わせページ：左端をほかのページとそろえ、幅は読みやすい760pxまで ---------- */
.contact-body {
  max-width: 760px;
}

/* 電話をかけるボタン（スマホのみ表示。サンプルのため押しても発信しない） */
.call-btn {
  display: none;
}

/* スマホでタップしたときに押した感じが分かるように */
.call-btn:active {
  background: var(--color-accent-pale);
}

@media (max-width: 767px) {
  .call-btn {
    display: inline-flex;
    margin-top: 16px;
  }
}

.call-status:empty {
  display: none;
}

.call-status {
  margin-top: 12px;
  margin-inline: auto;
}

/* ---------- プライバシーポリシー ---------- */
.policy {
  max-width: 760px;
}

.policy h2 {
  margin-top: 48px;
  margin-bottom: 12px;
  font-size: 20px;
  text-wrap: balance;
}

.policy ul {
  margin: 12px 0 0;
  padding-left: 1.4em;
  list-style: disc;
}

.policy li::marker {
  color: var(--color-accent);
}

.policy li + li {
  margin-top: 6px;
}

.policy__sample {
  margin-bottom: 40px;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--color-accent-pale);
}

.policy__date {
  margin-top: 48px;
  text-align: right;
}

/* 短い箇条書きは、行の長さをそろえて折り返す */
.policy li {
  text-wrap: balance;
}

/* 料金表：項目名のあとのカッコ書き（くわしい内容）は、小さめの文字で次の行に出す */
.fee-detail {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-main-soft);
}
