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

:root {
  --bg: #e8e4db;
  --bg-soft: #f3eee4;
  --bg-dark: #1f272d;
  --paper: #fbf7ef;
  --ink: #20242a;
  --ink-soft: #5d6167;
  --line: #d0c3b0;
  --accent: #c35a40;
  --accent-deep: #964431;
  --accent-soft: #efd9c1;
  --teal: #1d7d6f;
  --mustard: #c79d44;
  --sky: #5a7fa1;
  --radius: 18px;
  --shadow: 0 16px 34px rgba(23, 30, 35, 0.14);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(199, 157, 68, 0.11), transparent 36%),
    radial-gradient(circle at 88% 100%, rgba(29, 125, 111, 0.09), transparent 42%),
    var(--bg);
  line-height: 1.8;
  font-size: 17px;
}

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

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

.page-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.1;
  background-image: radial-gradient(rgba(32, 36, 42, 0.22) 0.36px, transparent 0.36px);
  background-size: 5px 5px;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: 92px 0;
}

.eyebrow {
  margin: 0 0 16px;
  font-family: 'Manrope', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.section-title {
  margin: 0;
  font-family: 'Shippori Mincho B1', serif;
  font-size: clamp(29px, 4vw, 44px);
  line-height: 1.45;
  letter-spacing: 0.02em;
}

/* ===========================================================
   町のデザイン屋さん 日本語タイポグラフィ規約 v1.1
   規約本体: design-yasan-codex-handoff/JAPANESE-TYPOGRAPHY-RULES.md
   =========================================================== */

/* オーバーフロー安全策：横スクロール発生防止 */
html, body {
  overflow-x: hidden;
}

/* ベース：日本語の禁則処理を厳格に */
:lang(ja),
html[lang="ja"] body {
  line-break: strict;
}

/* FAQ summary（短い質問文）のみ keep-all 維持 */
.faq-item summary {
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
  max-width: 100%;
}

/* card 内 h3 は自然折り返しに任せる */
.info-card h3,
.work-card h3 {
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
  max-width: 100%;
}

/* 文節改行を指定している見出しは keep-all で固定 */
.price-side h3 {
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
  max-width: 100%;
}

/* 長い見出し（セクション・Hero）：通常の日本語折り返しに任せる */
h1, h2, h3, h4,
.section-title {
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
  max-width: 100%;
}

/* Hero タイトルのみ：span で意味の塊を制御するため keep-all を維持 */
.hero-copy h1 {
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
}

/* 大見出しのライン分割ヘルパー */
.break-line,
.hero-copy h1 .hero-line {
  display: block;
}

/* PC専用改行ヘルパー（モバイルでは消える） */
.pc-only,
br.pc-only {
  display: inline;
}
@media (max-width: 720px) {
  .pc-only,
  br.pc-only {
    display: none !important;
  }
}

/* モバイル専用ライン分割ヘルパー（PCでは inline、モバイルで block 化して意味の塊で改行） */
.break-sp {
  display: inline;
}
@media (max-width: 720px) {
  .break-sp {
    display: block;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 244, 236, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(96, 83, 61, 0.28);
}

.header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.logo img {
  display: block;
  width: min(180px, 40vw);
  height: auto;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--ink-soft);
  transition: color 0.25s;
  position: relative;
  padding: 9px 12px;
  border-radius: 999px;
}

.site-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.6);
}

.site-nav a:not(.nav-cta):hover::after {
  transform: scaleX(1);
}

.nav-cta {
  background: linear-gradient(135deg, #25b19b 0%, #1b8e7b 56%, #156c5f 100%);
  color: #fff !important;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow:
    0 10px 22px rgba(16, 94, 84, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  font-weight: 800;
  opacity: 1;
  text-shadow: 0 1px 0 rgba(8, 23, 31, 0.26);
}

.site-nav .nav-cta:hover {
  background: linear-gradient(135deg, #2bc3aa 0%, #1f9f8a 58%, #187368 100%);
  color: #fff;
  box-shadow:
    0 12px 24px rgba(16, 94, 84, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.site-nav .nav-cta:focus-visible {
  outline: 3px solid rgba(45, 192, 168, 0.45);
  outline-offset: 2px;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  padding: 8px;
  background: transparent;
}

.menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 0.24s;
}

.hero {
  --tile-width: clamp(248px, 24vw, 398px);
  --tile-gap: clamp(10px, 1vw, 16px);
  position: relative;
  min-height: clamp(440px, 58vh, 600px);
  padding: 0;
  overflow: hidden;
  overflow: clip;
  background: #20282d;
  isolation: isolate;
}

.hero-copy h1 {
  margin: 0;
  font-family: 'Shippori Mincho B1', serif;
  font-weight: 700;
  font-size: clamp(36px, 5.2vw, 70px);
  line-height: 1.36;
  letter-spacing: 0.02em;
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
  color: #fff;
  text-shadow: 0 14px 34px rgba(11, 20, 29, 0.62);
}

.hero-copy h1 .hero-line {
  display: block;
  word-break: keep-all;
}

.hero-copy h1 .hero-line--price {
  white-space: nowrap;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.16;
  letter-spacing: 0.01em;
}

.hero-copy h1 .hero-highlight {
  color: #fbe5d3;
  position: relative;
}

.hero-copy h1 .hero-highlight::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 18px;
  background: rgba(199, 157, 68, 0.28);
  z-index: -1;
}

.hero-lead {
  margin: 18px 0 22px;
  color: rgba(251, 250, 246, 0.95);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.9;
  text-shadow: 0 6px 18px rgba(8, 14, 20, 0.58);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-bg-tiles {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: var(--tile-gap);
  padding: calc(var(--tile-gap) * 0.85) 0;
  transform: scale(1.03);
  filter: saturate(0.96) contrast(1.02);
}

.hero-lane {
  display: flex;
  width: max-content;
  will-change: transform;
}

.hero-lane-track {
  display: flex;
  gap: var(--tile-gap);
  padding-inline-end: 0;
}

.hero-lane--left {
  animation: heroLaneLeft 92s linear infinite;
}

.hero-lane--right {
  animation: heroLaneRight 92s linear infinite;
}

.hero-lane--delay-1 {
  animation-delay: -8s;
}

.hero-lane--delay-2 {
  animation-delay: -34s;
}

.hero-lane--delay-3 {
  animation-delay: -56s;
}

.hero-lane--delay-4 {
  animation-delay: -45s;
}

.hero-tile {
  position: relative;
  margin: 0;
  flex: 0 0 var(--tile-width);
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background: transparent;
  border: none;
  box-shadow: none;
}

.hero-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.hero-lane .hero-tile:nth-child(odd) {
  transform: none;
}

.hero-lane .hero-tile:nth-child(even) {
  transform: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(16, 23, 29, 0.72) 0%, rgba(16, 23, 29, 0.58) 42%, rgba(16, 23, 29, 0.34) 68%, rgba(16, 23, 29, 0.1) 100%),
    radial-gradient(circle at 78% 18%, rgba(199, 157, 68, 0.2), transparent 34%),
    radial-gradient(circle at 32% 92%, rgba(29, 125, 111, 0.14), transparent 40%),
    linear-gradient(180deg, rgba(16, 23, 29, 0.3), rgba(16, 23, 29, 0.52));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: flex;
  align-items: center;
  padding-top: 86px;
  padding-bottom: 44px;
}

.hero-copy {
  max-width: min(690px, 100%);
  background: linear-gradient(130deg, rgba(18, 26, 32, 0.58), rgba(18, 26, 32, 0.26));
  border: 1px solid rgba(251, 250, 246, 0.2);
  box-shadow: 0 22px 42px rgba(9, 16, 23, 0.32);
  backdrop-filter: blur(4px);
  border-radius: 28px;
  padding: clamp(20px, 3vw, 32px) clamp(22px, 3.4vw, 38px);
}

.hero .eyebrow {
  color: #f2d5a9;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 14px 24px;
  transition: transform 0.25s, box-shadow 0.25s, background-color 0.25s;
}

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

.btn-main {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 14px 28px rgba(21, 103, 90, 0.34);
}

.btn-main:hover {
  background: #14695d;
}

.btn-sub {
  border: 1px solid rgba(255, 249, 236, 0.72);
  color: #fff;
  background: rgba(18, 28, 36, 0.34);
}

.hero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  color: rgba(251, 250, 246, 0.92);
  font-size: 16px;
  text-shadow: 0 4px 14px rgba(8, 14, 20, 0.52);
}

.hero-points li {
  position: relative;
  padding-left: 22px;
}

.hero-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ffbeab;
}

@keyframes heroLaneLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes heroLaneRight {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

.worries {
  padding: 28px 0 22px;
  background: linear-gradient(180deg, #f6f2ea 0%, #efe7da 100%);
}

.worries .eyebrow {
  margin-bottom: 6px;
}

.worries .section-title {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.22;
}

.worries-list {
  margin-top: 16px;
  display: grid;
  gap: 2px;
}

.worry-story {
  display: grid;
  grid-template-columns: minmax(146px, 196px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2px, 0.55vw, 7px);
  padding: 0;
}

.worry-story + .worry-story {
  margin-top: -44px;
}

.worry-story--right {
  grid-template-columns: minmax(0, 1fr) minmax(146px, 196px);
}

.worry-story--right .worry-illust {
  order: 2;
}

.worry-story--right .speech-bubble {
  order: 1;
  justify-self: end;
}

.worry-illust {
  margin: 0;
  align-self: start;
}

.worry-illust img {
  width: 100%;
  max-width: 148px;
  display: block;
  margin-inline: auto;
}

.speech-bubble {
  position: relative;
  background: #fffcf7;
  border: 1px solid #ddd2c2;
  border-radius: 14px;
  padding: clamp(8px, 0.9vw, 11px);
  box-shadow: 0 4px 12px rgba(17, 22, 34, 0.05);
  width: fit-content;
  max-width: min(100%, 840px);
  justify-self: start;
}

.speech-bubble::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: #fffcf7;
  border-left: 1px solid #dcd2c2;
  border-bottom: 1px solid #dcd2c2;
}

.worry-story--right .speech-bubble::before {
  left: auto;
  right: 0;
  top: 50%;
  transform: translate(50%, -50%) rotate(45deg);
  border-left: none;
  border-bottom: none;
  border-right: 1px solid #dcd2c2;
  border-top: 1px solid #dcd2c2;
}

.speech-bubble p {
  margin: 0;
  font-family: 'Shippori Mincho B1', serif;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.34;
  letter-spacing: 0.01em;
  color: #2f2f2f;
}

.speech-bubble p + p {
  margin-top: 3px;
  font-size: clamp(13px, 1vw, 15px);
  color: var(--ink-soft);
}

.card-grid {
  margin-top: 34px;
  display: grid;
  gap: 16px;
}

.features-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card,
.feature-card {
  background: var(--paper);
  border: 1px solid #d8cab5;
  border-radius: 20px;
  padding: 24px 22px;
  box-shadow: 0 8px 16px rgba(17, 22, 34, 0.06);
}

.info-card img,
.feature-card img {
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
}

.info-card h3,
.feature-card h3 {
  margin: 0;
  font-family: 'Shippori Mincho B1', serif;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.45;
  word-break: normal;
  overflow-wrap: anywhere;
}

.info-card p,
.feature-card p {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.9;
}

.features {
  background: linear-gradient(180deg, #eee6da 0%, #e9e1d4 100%);
}

.price {
  background:
    radial-gradient(circle at 100% 0%, rgba(29, 125, 111, 0.2), transparent 52%),
    radial-gradient(circle at 0% 100%, rgba(195, 90, 64, 0.2), transparent 50%),
    radial-gradient(circle at 40% 0%, rgba(199, 157, 68, 0.13), transparent 42%),
    var(--bg-dark);
  color: #f2efe8;
}

.price .section-title,
.price .eyebrow {
  color: #fff;
}

.price-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px;
}

.price-main,
.price-side {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  padding: 30px;
  backdrop-filter: blur(6px);
}

.price-amount {
  margin: 6px 0 8px;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(52px, 9vw, 90px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #f7d8af;
}

.price-note {
  margin: 0;
  color: #f2e6dd;
}

.price-main ul {
  margin: 24px 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.price-main li {
  position: relative;
  padding-left: 24px;
}

.price-main li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #f7d8af;
}

.price-main li small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #ccbfa8;
  line-height: 1.7;
}

.price-side h3 {
  margin: 0 auto 18px;
  font-family: 'Shippori Mincho B1', serif;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.5;
  width: fit-content;
  max-width: 100%;
  text-wrap: balance;
}

.price-main .section-title > span {
  display: inline-block;
}

.price-side dl {
  margin: 0;
  display: grid;
  gap: 16px;
}

.price-side dt {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #f7d8af;
}

.price-side dd {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 700;
}

.comparison {
  background: #f2ede2;
}

.table-wrap {
  overflow: auto;
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.comparison-table col.col-point {
  width: 24%;
}

.comparison-table col.col-general,
.comparison-table col.col-noren {
  width: 38%;
}

@media (max-width: 720px) {
  table {
    min-width: 540px;
    font-size: 13px;
  }
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  th, td {
    padding: 12px 10px !important;
    font-size: 13px !important;
  }
}

th,
td {
  border-bottom: 1px solid #e4dac7;
  padding: 12px 18px;
  text-align: left;
  font-size: 15px;
  line-height: 1.55;
}

thead th {
  background: #eee5d6;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
}

thead th:not(:first-child) {
  text-align: center;
}

tbody th {
  width: 160px;
  background: #f6f1e7;
}

tbody td {
  position: relative;
  overflow: hidden;
}

.noren-col {
  background: #f2ddc8;
  text-align: center;
}

thead th.noren-col {
  padding-top: 18px;
  padding-bottom: 18px;
  vertical-align: middle;
}

.noren-head {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.2;
  flex-wrap: nowrap;
}

.compare-badge {
  display: inline-block;
  margin-bottom: 0;
  background: var(--teal);
  color: #fff;
  font-size: 10.5px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.compare-badge::before {
  content: '★';
  margin-right: 6px;
  font-size: 9px;
}

.noren-name {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.mark {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding-top: 48px;
  padding-bottom: 8px;
}

.mark::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 38px;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.18;
}

.mark strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 0;
  line-height: 1.35;
}

.mark-good::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='50' cy='50' r='38' fill='none' stroke='%234F8C5E' stroke-width='10'/></svg>");
}

.mark-mid::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><polygon points='50,12 92,84 8,84' fill='none' stroke='%23C99843' stroke-width='10' stroke-linejoin='round'/></svg>");
}

.mark-bad::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><line x1='18' y1='18' x2='82' y2='82' stroke='%23C7503A' stroke-width='10' stroke-linecap='round'/><line x1='82' y1='18' x2='18' y2='82' stroke='%23C7503A' stroke-width='10' stroke-linecap='round'/></svg>");
}

.noren-col.mark-good::before {
  opacity: 0.26;
  width: 48px;
  height: 48px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='50' cy='50' r='38' fill='none' stroke='%23D85A3C' stroke-width='10'/></svg>");
}

.table-note {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.works {
  background: linear-gradient(180deg, #ebe3d6 0%, #f1eadf 100%);
}

.works-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 18px;
}

.work-card {
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(17, 22, 34, 0.08);
}

.work-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.work-copy {
  padding: 22px;
}

.tag {
  margin: 0;
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
}

.work-copy h3 {
  margin: 12px 0 8px;
  font-family: 'Shippori Mincho B1', serif;
  font-size: 31px;
}

.work-copy p {
  margin: 0;
  color: var(--ink-soft);
}

.work-link {
  margin-top: 14px;
  display: inline-flex;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  color: var(--accent-deep);
}

.coming {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(17, 22, 34, 0.96), rgba(27, 60, 76, 0.95));
}

.coming .tag,
.coming h3,
.coming p {
  color: #fff;
}

/* Before / After Works */
.works-grid--ba {
  grid-template-columns: 1fr;
  gap: 20px;
}

.work-ba-card {
  background: var(--paper);
  border-radius: 20px;
  border: 1px solid #d8cab5;
  padding: 24px;
  box-shadow: 0 10px 18px rgba(17, 22, 34, 0.07);
}

.ba-pair {
  display: flex;
  align-items: stretch;
  gap: 18px;
}

.ba-side {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ba-label {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 10px;
  align-self: flex-start;
}

.ba-before .ba-label {
  color: #8a8576;
}

.ba-after .ba-label {
  color: var(--accent);
}

.ba-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #d8cab5;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.ba-img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #ebe5db;
  border: 2px dashed #c8bea9;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa39a;
  font-size: 13px;
  font-family: 'Manrope', sans-serif;
  letter-spacing: 0.04em;
}

.ba-after .ba-img-placeholder {
  background: #f5ebdf;
  border-color: var(--teal);
  color: var(--accent-deep);
}

.ba-arrow {
  align-self: center;
  font-size: 28px;
  color: var(--teal);
  flex-shrink: 0;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
}

.work-ba-card .work-copy {
  padding: 18px 4px 0;
}

.work-ba-card .work-copy h3 {
  font-size: 22px;
  margin: 0 0 6px;
}

@media (max-width: 720px) {
  .ba-pair {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .ba-arrow {
    transform: rotate(90deg);
    align-self: center;
  }
}

.flow {
  background: #e7dece;
}

.flow-list {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.flow-list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #fdf8ef;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 18px;
}


.flow-list li > div {
  min-width: 0;
}

.flow-list span {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: var(--accent-deep);
}

.flow-list h3 {
  margin: 0;
  font-family: 'Shippori Mincho B1', serif;
  font-size: 18px;
}

.flow-list p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.about {
  background: #efe8db;
}

.about-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px;
  padding: 34px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #fefaf2, #f4ecdd);
}

.about-visual {
  display: flex;
  align-items: center;
}

.about-main-illust {
  margin: 0;
}

.about-main-illust img {
  width: min(100%, 440px);
  border-radius: 20px;
  border: 1px solid #d3c2a8;
  box-shadow: 0 10px 22px rgba(17, 22, 34, 0.08);
}

.about-text {
  color: var(--ink-soft);
}

.about-text p {
  margin: 0;
}

.about-text p + p {
  margin-top: 14px;
}

.faq {
  background: #e9dfcf;
}

.faq-wrap {
  max-width: 860px;
}

.faq-item {
  background: #fef9ef;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}

.faq-item + .faq-item {
  margin-top: 12px;
}

.faq-item summary {
  cursor: pointer;
  font-family: 'Shippori Mincho B1', serif;
  font-size: 24px;
  list-style: none;
  padding-right: 24px;
  position: relative;
}

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

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  color: var(--accent-deep);
}

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

.faq-item p {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

.contact {
  background:
    radial-gradient(circle at 10% 10%, rgba(195, 90, 64, 0.26), transparent 42%),
    radial-gradient(circle at 80% 20%, rgba(29, 125, 111, 0.2), transparent 40%),
    #1b232a;
  color: #f1ece2;
}

.contact .eyebrow,
.contact .section-title {
  color: #fff;
}

.contact-box {
  max-width: 720px;
  text-align: center;
}

.contact-form-wrap {
  margin: 32px auto 20px;
  background: rgba(252, 246, 238, 0.97);
  border-radius: 22px;
  padding: 28px 22px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  text-align: left;
}

.contact-form-wrap iframe {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
}

.small a {
  color: #f9d8ad;
  text-decoration: underline;
}

.small {
  margin-top: 12px;
  color: #cfbda0;
  font-size: 14px;
}

.site-footer {
  padding: 34px 0 16px;
  background: #161d23;
  color: #d3d8e2;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 26px;
}

.footer-logo {
  color: #fff;
}

.site-footer p {
  margin: 12px 0 0;
  color: #8f97a5;
  font-size: 14px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer li a {
  color: #dbe0eb;
  font-size: 14px;
}

.copyright {
  margin: 24px 0 0;
  text-align: center;
  font-size: 13px;
  color: #7b8290;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .worry-story,
  .worry-story--right {
    grid-template-columns: minmax(136px, 178px) minmax(0, 1fr);
  }

  .worry-story + .worry-story {
    margin-top: -34px;
  }

  .worry-story--right .worry-illust {
    order: 2;
  }

  .worry-story--right .speech-bubble {
    order: 1;
  }

  .hero {
    --tile-width: clamp(228px, 38vw, 340px);
    min-height: 54vh;
  }

  .hero-content {
    align-items: flex-end;
    padding-top: 74px;
    padding-bottom: 24px;
  }

  .hero-copy {
    max-width: min(760px, 100%);
  }

  .works-grid,
  .about-box,
  .price-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(1120px, calc(100% - 32px));
  }

  .menu-btn {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    right: 16px;
    top: 72px;
    width: min(310px, calc(100% - 32px));
    background: #f8f2e8;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.24s, transform 0.24s, visibility 0.24s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav li + li {
    border-top: 1px solid #ece3d4;
  }

  .site-nav a {
    display: block;
    padding: 14px 18px;
  }

  .site-nav .nav-cta {
    border-radius: 0;
  }

  .logo img {
    width: min(164px, 45vw);
  }

  .section {
    padding: 72px 0;
  }

  .worries {
    padding: 24px 0;
  }

  .hero {
    --tile-width: clamp(204px, 56vw, 300px);
    --tile-gap: 10px;
    min-height: 520px;
  }

  .hero-bg-tiles {
    grid-template-rows: repeat(3, 1fr);
    padding: 12px 0;
  }

  .hero-content {
    padding-top: 86px;
    padding-bottom: 14px;
  }

  .hero-copy {
    padding: 18px 18px 20px;
    border-radius: 20px;
    backdrop-filter: none;
  }

  .hero-copy h1 .hero-line--price {
    white-space: normal;
  }

  /* work-card のタイトルがモバイルで巨大すぎ → 縮小 */
  .work-copy h3 {
    font-size: 22px;
  }

  /* card 全体のはみ出し対策（box-sizing 補強） */
  .info-card,
  .feature-card,
  .work-card {
    width: 100%;
    box-sizing: border-box;
  }

  .hero-copy h1 {
    font-size: clamp(31px, 8vw, 54px);
  }

  .hero-lead {
    font-size: 17px;
    line-height: 1.8;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero .btn {
    width: calc(50% - 6px);
    min-width: 0;
    padding-inline: 12px;
  }

  .hero-points {
    font-size: 15px;
    gap: 8px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .worry-story,
  .worry-story--right {
    grid-template-columns: 1fr;
    padding: 2px 0;
    gap: 4px;
  }

  .worry-story + .worry-story {
    margin-top: 0;
  }

  .worries-list {
    margin-top: 8px;
    gap: 0;
  }

  .worry-illust img {
    max-width: 164px;
  }

  .worry-story .worry-illust,
  .worry-story--right .worry-illust {
    order: 1;
  }

  .worry-story .speech-bubble,
  .worry-story--right .speech-bubble {
    order: 2;
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
  }

  .speech-bubble::before,
  .worry-story--right .speech-bubble::before {
    left: 50%;
    right: auto;
    top: -12px;
    transform: translateX(-50%) rotate(45deg);
    border-right: none;
    border-bottom: none;
    border-left: 1px solid #dcd2c2;
    border-top: 1px solid #dcd2c2;
  }

  .flow-list li {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }

  .flow-list {
    grid-template-columns: 1fr;
  }

  .flow-list li > span {
    flex: 0 0 56px;
  }


  .faq-item summary {
    font-size: 20px;
  }

  .mail-link {
    font-size: clamp(24px, 7vw, 42px);
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-lane {
    animation: none !important;
  }

  .hero-bg-tiles {
    transform: none;
  }
}
