/* ================================
   ヨネナガ税理士事務所 — Site
   Brand orange: #E88100
================================ */

:root {
  --brand: #e88100;
  --brand-deep: #c46d00;
  --brand-soft: rgba(232, 129, 0, 0.12);
  --ink: #1a1a1a;
  --ink-soft: #3a3a3a;
  --muted: #6a6a6a;
  --line: #e8e4df;
  --bg: #f6f4f1;
  --surface: #ffffff;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 68rem;
  --narrow: 42rem;
  --font-sans: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 全体の基本サイズ（元テーマ）
   本文: 16pt（広い画面）→ 13pt → 12pt → 11pt（狭い画面）
   html に置くことで rem 指定の UI も同じ比率で追従する */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16pt;
}

body,
input,
select,
textarea,
button {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1em;
  line-height: 1.65;
  color: var(--ink-soft);
}

body {
  background: var(--bg);
  overflow-x: hidden;
}

@media screen and (max-width: 1680px) {
  html {
    font-size: 13pt;
  }
}

@media screen and (max-width: 1280px) {
  html {
    font-size: 12pt;
  }
}

@media screen and (max-width: 360px) {
  html {
    font-size: 11pt;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
}

strong {
  font-weight: 700;
  color: var(--ink);
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea {
  font: inherit;
}

/* ---- Layout ---- */
.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2.5rem, var(--narrow));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 120;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.site-header__inner {
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.site-header__logo {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(0.85rem, 2vw, 1rem);
  letter-spacing: 0.04em;
  color: #000;
  transition: color 0.3s;
  margin-right: auto;
}

.site-header__nav {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 1.75rem;
}

.site-header__nav a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #000;
  transition: color 0.25s;
}

.site-header__nav a:hover {
  color: var(--brand);
}

.header-cta {
  display: none;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.55rem 1.15rem;
  background: #000;
  color: #fff !important;
  border-radius: 2px;
  transition: background 0.25s, transform 0.25s;
}

.header-cta:hover {
  background: #222;
}

.menu-toggle {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 130;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 1.35rem;
  height: 1.5px;
  background: #000;
  position: relative;
  transition: background 0.25s;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  transition: transform 0.3s var(--ease), background 0.25s;
}

.menu-toggle span::before {
  transform: translateY(-6px);
}

.menu-toggle span::after {
  transform: translateY(6px);
}

/* 閉じる（×）は常に濃色で表示 */
.menu-toggle[aria-expanded="true"] span {
  background: transparent !important;
}

.menu-toggle[aria-expanded="true"] span::before,
.menu-toggle[aria-expanded="true"] span::after {
  background: var(--ink) !important;
}

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

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

/* メニュー開放中はヘッダーを読みやすく */
.site-header.is-menu-open {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.site-header.is-menu-open .site-header__logo {
  color: var(--ink);
}

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(26, 26, 26, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.nav-drawer.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(20rem, 86vw);
  height: 100%;
  background: var(--surface);
  padding: 5.5rem 1.75rem 2rem;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.nav-drawer.is-open .nav-drawer__panel {
  transform: translateX(0);
}

.nav-drawer__links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-drawer__links a {
  display: block;
  padding: 0.85rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.04em;
}

.nav-drawer__links a:hover {
  color: var(--brand);
}

.nav-drawer .btn {
  width: 100%;
  text-align: center;
}

@media (min-width: 900px) {
  .site-header__nav {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.15rem;
  padding: 0.75rem 1.85rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 2px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.btn--primary:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  color: #fff;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  overflow: hidden;
  /* 元デザイン: #E88100 ベース + banner.jpg + #f70 オーバーレイ */
  background-color: #e88100;
  background-image: url("../../images/banner.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* img はフォールバック用。メイン背景は .hero 側 */
  opacity: 0;
  pointer-events: none;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: #f70;
  opacity: 0.9;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: calc(var(--header-h) + 1.5rem) 0 5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* キャッチコピー（ロゴの上）— 元デザイン: ゴシック太字 + 下線 */
.hero__title {
  order: 0;
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-style: normal;
  font-size: clamp(1rem, 2.5vw, 2em);
  line-height: 1.5;
  letter-spacing: 0.05em;
  margin: 0 0 2.5em;
  padding-bottom: 0.5em;
  color: #000;
  border-bottom: solid 2px #000;
  animation: riseIn 0.9s 0.1s var(--ease) both;
}

@media screen and (max-width: 960px) {
  .hero__title {
    font-size: 1.2em;
    margin-bottom: 2em;
  }
}

@media screen and (max-width: 736px) {
  .hero__title {
    font-size: 1em;
    margin-bottom: 1.75em;
  }
}

/* ロゴ：中央・大きく・黒 */
.hero__brand {
  order: 1;
  margin: 0 0 1.75rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero__brand img {
  width: min(92vw, 36rem);
  max-width: 100%;
  height: auto;
  filter: brightness(0);
  animation: riseIn 0.9s 0.22s var(--ease) both;
}

@media (min-width: 768px) {
  .hero__brand {
    margin-bottom: 2rem;
  }

  .hero__brand img {
    width: min(88vw, 44rem);
  }
}

@media (min-width: 1100px) {
  .hero__brand img {
    width: min(80vw, 52rem);
  }
}

.hero__lead {
  order: 2;
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  line-height: 1.9;
  color: #000;
  max-width: 28rem;
  margin: 0 auto 1.75rem;
  animation: riseIn 0.9s 0.34s var(--ease) both;
}

.hero__actions {
  order: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  animation: riseIn 0.9s 0.46s var(--ease) both;
}

.hero__actions .btn--primary {
  background: #000;
  color: #fff;
  border-color: #000;
}

.hero__actions .btn--primary:hover {
  background: #222;
  border-color: #222;
  color: #fff;
}

.hero__actions .btn--ghost {
  background: transparent;
  color: #000;
  border-color: #000;
}

.hero__actions .btn--ghost:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: #000;
  text-transform: uppercase;
}

.hero__scroll::after {
  content: "";
  width: 1px;
  height: 2.25rem;
  background: linear-gradient(to bottom, #000, transparent);
  animation: scrollLine 1.6s ease-in-out infinite;
}

@keyframes scrollLine {
  0%,
  100% {
    transform: scaleY(0.55);
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Sections common ---- */
.section {
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
}

.section--surface {
  background: var(--surface);
}

.section--brand {
  background: var(--brand);
  color: #000;
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--brand);
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

/* 元 h2: 1.25em / letter-spacing .15em */
.section__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.25em;
  color: var(--ink);
  letter-spacing: 0.15em;
  line-height: 1.5;
  margin: 0 0 1em;
}

@media screen and (max-width: 736px) {
  .section__title {
    font-size: 1.1em;
    letter-spacing: 0.1em;
  }
}

.section__lead {
  color: var(--muted);
  width: 100%;
  max-width: none;
  margin-bottom: 2.5rem;
}

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Greeting ---- */
.section--greeting {
  position: relative;
  overflow: hidden;
  background: #ebe7e2;
}

.greeting__scenery {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.greeting__scenery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  filter: saturate(0.85) contrast(1.05) brightness(0.92);
}

.greeting__scenery::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(255, 252, 248, 0.94) 0%,
      rgba(255, 252, 248, 0.88) 42%,
      rgba(255, 248, 242, 0.72) 68%,
      rgba(232, 129, 0, 0.12) 100%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.35) 0%,
      rgba(255, 255, 255, 0.15) 100%
    );
}

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

.greeting {
  display: block;
}

.greeting__body {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.04);
}

.greeting__body p {
  margin-bottom: 1em;
}

/* 元 .prof — 本文に合わせて右フロート */
.greeting__body .prof {
  display: block;
  width: 250px;
  max-width: 42%;
  height: auto;
  float: right;
  margin: 0 0 2em 2em;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center top;
  box-shadow: none;
}

.greeting__body .clearfix::after,
.clearfix::after {
  content: "";
  display: block;
  clear: both;
}

@media screen and (max-width: 736px) {
  .greeting__body .prof {
    width: 30%;
    max-width: 30%;
    margin: 0 0 1em 1em;
  }
}

/* 下線マーカー（元デザイン .intro strong） */
.greeting__body strong {
  font-weight: 400;
  color: #000;
  background: linear-gradient(transparent 60%, #faa2b1 60%);
}

/* 元 ul.dot */
.concerns {
  margin: 0 0 1em;
  padding: 0 0 0 0.5em;
  display: block;
}

.concerns li {
  position: relative;
  list-style: none;
  text-indent: -1em;
  padding-left: 0;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1em;
  line-height: 1.65;
}

.concerns li::before {
  content: "・";
  display: inline;
  padding-right: 0;
  background: none;
  width: auto;
  height: auto;
  position: static;
  color: inherit;
}

/* 元 ul.good — ピンクのチェック */
.topics {
  display: block;
  gap: 0;
  margin: 0 0 1em;
  padding: 0;
  border-block: 0;
}

.topics li {
  position: relative;
  list-style: none;
  font-size: 1em;
  color: var(--ink);
  padding-left: 1.4rem;
  margin: 0.15rem 0;
  line-height: 1.65;
}

.topics li::before {
  content: "";
  display: block;
  position: absolute;
  width: 1rem;
  height: 0.5rem;
  border-left: 4px solid #faa2b1;
  border-bottom: 4px solid #faa2b1;
  top: 0.5rem;
  left: 0;
  transform: rotate(-45deg);
  color: transparent;
  font-weight: 400;
}

.greeting__body p {
  margin-bottom: 1em;
}

.signature {
  margin-top: 1.75rem;
  margin-bottom: 0;
  font-family: "Times New Roman", "游明朝", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "HGS明朝E", "MS PMincho", serif;
  font-size: 1.2em;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-align: right;
}

/* ---- Strengths ---- */
.strengths {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 720px) {
  .strengths {
    grid-template-columns: repeat(3, 1fr);
  }
}

.strength {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 720px) {
  .strength {
    padding: 2.25rem 1.75rem;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .strength:first-child {
    padding-left: 0;
  }

  .strength:last-child {
    border-right: 0;
    padding-right: 0;
  }
}

.strength__num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.strength__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.06em;
  margin-bottom: 0.65rem;
}

.strength__text {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.8;
}

/* ---- About table ---- */
/* 事務所概要 — 元レイアウトの2列表（枠線つき） */
.info-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 1em;
  color: #000;
  background: #fff;
  table-layout: fixed;
}

.info-table th,
.info-table td {
  border: 1px solid #eee;
  padding: 1.1em 1.5em;
  vertical-align: middle;
  line-height: 1.65;
  font-weight: 400;
}

.info-table th {
  width: 28%;
  text-align: right;
  white-space: nowrap;
  color: #000;
  background: #fff;
}

.info-table td {
  width: 72%;
  text-align: left;
  color: #000;
}

@media screen and (max-width: 736px) {
  .info-table th,
  .info-table td {
    padding: 0.85em 1em;
  }

  .info-table th {
    width: 32%;
    white-space: normal;
  }
}

/* ---- Pricing ---- */
.price-intro {
  margin-bottom: 2rem;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

.data-table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th,
.data-table td {
  padding: 0.95rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.data-table thead th {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border-bottom: 0;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover td {
  background: var(--brand-soft);
}

.data-table .price {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.data-table .note {
  color: var(--muted);
  font-size: 0.8rem;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--brand);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}

.table-foot {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.pricing-block + .pricing-block {
  margin-top: 4rem;
}

details.price-more {
  margin-top: 1.25rem;
}

details.price-more summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand);
  list-style: none;
  padding: 0.5rem 0;
}

details.price-more summary::-webkit-details-marker {
  display: none;
}

details.price-more summary::after {
  content: "＋";
  font-size: 0.85rem;
}

details.price-more[open] summary::after {
  content: "－";
}

.mobile-prices {
  display: none;
}

@media (max-width: 720px) {
  .table-wrap--desktop {
    display: none;
  }

  .mobile-prices {
    display: grid;
    gap: 0.85rem;
  }

  .price-card {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 1.15rem 1.25rem;
  }

  .price-card__top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.65rem;
  }

  .price-card__industry {
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.04em;
  }

  .price-card__amount {
    font-weight: 700;
    color: var(--brand);
    font-size: 1.1rem;
    white-space: nowrap;
  }

  .price-card__meta {
    display: grid;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--muted);
  }

  .price-card__meta span {
    display: flex;
    gap: 0.5rem;
  }

  .price-card__meta b {
    font-weight: 500;
    color: var(--ink-soft);
    min-width: 4.5rem;
  }
}

/* ---- CTA band ---- */
.cta-band {
  text-align: center;
  padding: clamp(4rem, 9vw, 6rem) 0;
  color: #000;
}

.cta-band__title {
  font-family: var(--font-sans);
  font-size: 1.25em;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  color: #000;
}

.cta-band__text {
  max-width: 32rem;
  margin: 0 auto 0.5rem;
  color: #000;
  line-height: 1.9;
}

.cta-band__note {
  display: block;
  font-size: 0.85rem;
  color: #000;
  margin-bottom: 2rem;
  line-height: 1.75;
  opacity: 0.85;
}

.cta-band .btn--primary {
  background: #000;
  color: #fff;
  border-color: #000;
}

.cta-band .btn--primary:hover {
  background: #222;
  color: #fff;
  border-color: #222;
}

@media screen and (max-width: 736px) {
  .cta-band__text,
  .cta-band__note {
    text-align: left;
  }

  .cta-band__text {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }
}

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 0;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer__brand {
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
}

.site-footer__meta {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

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

/* ---- Page head (subpages) ---- */
.page-hero {
  padding: calc(var(--header-h) + 3.5rem) 0 3rem;
  background:
    linear-gradient(135deg, rgba(232, 129, 0, 0.12), transparent 55%),
    var(--surface);
  border-bottom: 1px solid var(--line);
}

.page-hero__title {
  font-family: var(--font-sans);
  font-size: 1.25em;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.15em;
  margin-bottom: 1em;
}

.page-hero__lead {
  color: var(--muted);
  max-width: 36rem;
  line-height: 1.9;
}

.page-hero__lead .small {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

/* ---- Contact form ---- */
.contact-section {
  padding: 3.5rem 0 5rem;
}

.contact-form {
  max-width: 42rem;
  margin: 0 auto;
}

/* 1カラム（モバイル・タブレット） */
.form-layout {
  display: grid;
  gap: 1.35rem;
}

.form-layout__left,
.form-layout__right,
.form-layout__bottom {
  display: grid;
  gap: 1.15rem;
  min-width: 0;
}

/* デスクトップ：左（基本情報）・右（メッセージ）／下にフル幅 */
@media (min-width: 960px) {
  .contact-form {
    max-width: none;
    width: min(100%, 64rem);
  }

  .form-layout {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2.5rem;
    align-items: stretch;
  }

  .form-layout__left {
    grid-column: 1;
    grid-row: 1;
  }

  .form-layout__right {
    grid-column: 2;
    grid-row: 1;
  }

  .form-layout__bottom {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 0.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--line);
  }

  .form-field--message {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .form-field--message textarea {
    flex: 1;
    min-height: 16.5rem;
  }

  .form-actions {
    align-items: center;
  }

  .form-actions button[type="submit"] {
    min-width: 14rem;
  }
}

.form-row-2 {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 480px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 0.45rem;
}

.form-field .req {
  color: var(--brand);
  margin-left: 0.25rem;
  font-size: 0.7rem;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.form-field textarea {
  min-height: 10rem;
  resize: vertical;
  line-height: 1.7;
}

.privacy-box {
  border: 1px solid var(--line);
  background: #fafafa;
  border-radius: 2px;
  overflow: hidden;
}

.privacy-box iframe {
  width: 100%;
  height: 12rem;
  border: 0;
  display: block;
}

/* 同意チェック — MFP: input + 隣接label 前提（checkboxは隠し、label前面に枠を描画） */
.form-agree {
  margin-top: 0.25rem;
  padding: 1rem 1.05rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 2px;
  position: relative;
}

/* MFP標準の非表示inputは維持。labelの:before/:afterで見た目を描画 */
#mailformpro .form-agree input.form-check__input,
#mailformpro .form-agree input[type="checkbox"][name="送信確認"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  pointer-events: none !important;
}

form#mailformpro .form-agree label.form-check,
#mailformpro .form-agree .form-check,
.form-agree .form-check {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0.15rem 0 0.15rem 2rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  white-space: normal !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  line-height: 1.65 !important;
  color: var(--ink-soft) !important;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-sizing: border-box;
}

form#mailformpro .form-agree label.form-check.mfp_checked,
form#mailformpro .form-agree label.form-check.mfp_not_checked {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0.15rem 0 0.15rem 2rem !important;
}

/* チェック枠（左） */
#mailformpro .form-agree input[type="checkbox"] + label.form-check::before,
.form-agree input[type="checkbox"] + label.form-check::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0.25rem !important;
  width: 1.25rem !important;
  height: 1.25rem !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  border: 1.5px solid #bbb !important;
  border-radius: 2px !important;
  background: #fff !important;
  background-image: none !important;
  transform: none !important;
  box-shadow: none !important;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s !important;
}

/* チェックマーク */
#mailformpro .form-agree input[type="checkbox"] + label.form-check::after,
.form-agree input[type="checkbox"] + label.form-check::after {
  content: "" !important;
  position: absolute !important;
  left: 0.4rem !important;
  top: 0.4rem !important;
  width: 0.32rem !important;
  height: 0.58rem !important;
  margin: 0 !important;
  border: solid #fff !important;
  border-width: 0 2px 2px 0 !important;
  transform: rotate(45deg) scale(0) !important;
  opacity: 1 !important;
  pointer-events: none !important;
  z-index: 1 !important;
  transition: transform 0.15s var(--ease) !important;
  background: none !important;
  box-shadow: none !important;
}

#mailformpro .form-agree input[type="checkbox"]:checked + label.form-check::before,
.form-agree input[type="checkbox"]:checked + label.form-check::before {
  background-color: var(--brand) !important;
  border-color: var(--brand) !important;
  background-image: none !important;
}

#mailformpro .form-agree input[type="checkbox"]:checked + label.form-check::after,
.form-agree input[type="checkbox"]:checked + label.form-check::after {
  transform: rotate(45deg) scale(1) !important;
  border-color: #fff !important;
  opacity: 1 !important;
}

#mailformpro .form-agree input[type="checkbox"]:focus + label.form-check::before,
#mailformpro .form-agree input[type="checkbox"]:focus-visible + label.form-check::before,
.form-agree input[type="checkbox"]:focus + label.form-check::before {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px var(--brand-soft) !important;
}

#mailformpro .form-agree input[type="checkbox"]:checked + label.form-check,
.form-agree input[type="checkbox"]:checked + label.form-check {
  color: var(--ink) !important;
}

.form-agree:hover label.form-check::before {
  border-color: var(--brand) !important;
}

.form-agree__err,
.form-agree .mfp_err {
  margin: 0.55rem 0 0 2rem;
  min-height: 0;
}

.form-agree .mfp_err:empty {
  display: none;
  margin: 0;
}

.form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.75rem;
}

.form-back {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.35rem;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 0;
  background: none;
  text-decoration: none;
  transition: color 0.25s, transform 0.25s;
}

.btn-back__arrow {
  font-size: 0.95em;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}

.btn-back:hover {
  color: var(--ink);
}

.btn-back:hover .btn-back__arrow {
  transform: translateX(-3px);
}

.form-actions button[type="submit"],
.mfp_buttons button#mfp_button_send,
button.mfp_element_submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  min-width: 12rem;
  padding: 0.75rem 2rem;
  background: var(--brand) !important;
  color: #fff !important;
  border: 2px solid var(--brand) !important;
  border-radius: 2px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: none !important;
  text-shadow: none !important;
  background-image: none !important;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.form-actions button[type="submit"]:hover,
.mfp_buttons button#mfp_button_send:hover {
  background: var(--brand-deep) !important;
  border-color: var(--brand-deep) !important;
  transform: translateY(-1px);
}

/* 確認画面のキャンセルは控えめに */
.mfp_buttons button#mfp_button_cancel {
  background: transparent !important;
  border: 1px solid rgba(26, 26, 26, 0.16) !important;
  color: #8a8a8a !important;
  font-weight: 500 !important;
  min-width: 0 !important;
  min-height: 2.5rem !important;
  padding: 0.4rem 1rem !important;
  letter-spacing: 0.04em;
  box-shadow: none !important;
  transform: none !important;
}

.mfp_buttons button#mfp_button_cancel:hover {
  background: transparent !important;
  border-color: rgba(26, 26, 26, 0.32) !important;
  color: #5a5a5a !important;
  transform: none !important;
}

/* Mailform Pro overlay / confirm tweaks */
div.mfp_err {
  color: #c75000 !important;
  font-size: 0.8125rem;
  line-height: 1.5;
  margin-top: 0.35rem;
  background-image: none !important;
}

/* ---- 404 ---- */
.error-page-body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 55% at 100% 0%, rgba(232, 129, 0, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 45% at 0% 100%, rgba(232, 129, 0, 0.08), transparent 50%),
    var(--bg);
}

.error-page-body .site-footer {
  margin-top: auto;
}

.error-page {
  flex: 1;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 2rem) 0 3.5rem;
}

.error-page__inner {
  display: grid;
  gap: 1.75rem 3rem;
  width: min(100% - 2.5rem, 40rem);
  margin-inline: auto;
}

.error-page__code {
  font-family: var(--font-sans);
  font-size: clamp(4.5rem, 16vw, 7.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: var(--brand);
  opacity: 0.9;
  user-select: none;
}

.error-page__title {
  font-family: var(--font-sans);
  font-size: 1.25em;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
  line-height: 1.5;
  margin: 0 0 1rem;
}

.error-page__text {
  color: var(--ink-soft);
  line-height: 1.9;
  margin: 0 0 2rem;
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.error-page__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.error-page__links a {
  font-size: 0.9em;
  color: var(--muted);
  letter-spacing: 0.06em;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}

.error-page__links a:hover {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

@media screen and (min-width: 720px) {
  .error-page__inner {
    grid-template-columns: auto 1fr;
    align-items: center;
    width: min(100% - 2.5rem, 48rem);
  }

  .error-page__code {
    margin-top: 0.15em;
  }
}

/* ---- Thanks ---- */
.thanks-body {
  padding: 3rem 0 5rem;
  max-width: 36rem;
}

.thanks-body p {
  margin-bottom: 1.15rem;
  color: var(--ink-soft);
}

.thanks-actions {
  margin-top: 2.5rem;
}

/* ---- Privacy standalone (iframe) ---- */
body.privacy-page {
  background: #fafafa;
  padding: 1rem 1.1rem;
  font-size: 0.8125rem;
  line-height: 1.75;
  color: #333;
}

body.privacy-page h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  margin: 1rem 0 0.4rem;
}

body.privacy-page p {
  margin-bottom: 0.65rem;
}

body.privacy-page ol {
  padding-left: 1.35rem;
  margin-bottom: 0.65rem;
  list-style: decimal;
}

body.privacy-page li {
  margin-bottom: 0.35rem;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
