/* 特定商取引法の詳しいご案内 */

main {
  /* 共通ヘッダー／フッターの色を上書きしないよう、ページ内だけに置く */
  --ink: #2a2c28;
  --heading: #2a6248;
  --green: #1d6a45;
  --green-deep: #0f5136;
  --gold: #b08a45;
  --gold-deep: #9a7433;
  --muted: #6d716b;
  --line: #e5e1d8;
  --paper: #f7f8f4;
  --mint: #f1f6ef;
  --mint-strong: #e7f0e6;
  --card: #ffffff;
  --serif: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --wrap: 1100px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.02em;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

button,
a { font-family: inherit; }

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

/* ヒーロー */
.hero::after { content: none; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 268px;
  background: #f8f7f2;
}

.hero__photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  background: url("hero-room.jpg?v=3") center center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 24%);
  pointer-events: none;
}

.hero__leaf {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.hero__leaf--left {
  left: -36px;
  bottom: -46px;
  width: 250px;
  opacity: 0.95;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
  padding: 16px 0 46px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  color: #a3a69f;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.breadcrumb a:hover { color: var(--gold-deep); }

.breadcrumb [aria-current="page"] { color: #8d9089; }

.hero__eyebrow {
  margin: 0 0 8px;
  color: #c9a14b;
  font-family: var(--serif);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 0;
  max-width: none;
  color: #1c1c1c;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.1vw, 2.45rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.03em;
}

.hero__lead {
  margin: 4px 0 0;
  color: #242424;
  font-family: var(--serif);
  font-size: clamp(1.22rem, 2.15vw, 1.62rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.03em;
}

.hero__sub {
  margin: 10px 0 0;
  color: #4e524c;
  font-family: var(--serif);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.hero__date {
  margin: 6px 0 0;
  color: #9a9d96;
  font-family: var(--serif);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
}

/* 本文レイアウト */
.law-layout {
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0 28px;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 92px;
  padding: 18px 12px 14px;
  background: #f8f9f6;
  border: 1px solid #eceae3;
  border-radius: 10px;
}

.toc__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0 4px 0 10px;
  color: #3d463f;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.toc__title img { width: 18px; height: 18px; }

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc a {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 11px 14px 11px 10px;
  border-radius: 2px;
  color: #33362f;
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.toc a span {
  color: #c4a56a;
  font-family: var(--serif);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.toc a:hover {
  background: #f7f4ec;
  color: #2c2f2a;
}

.toc a.is-active {
  background: #f3f0e6;
  color: #2c2f2a;
  box-shadow: inset -2px 0 0 #c9b48a;
}

.law-section {
  padding: 8px 0 30px;
  scroll-margin-top: 96px;
}

.law-section + .law-section { padding-top: 8px; }

.law-section h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e6e1d6;
  color: #1c1c1c;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.law-section h2 span {
  color: #568457;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.05em;
  letter-spacing: 0.02em;
}

.law-section > p {
  margin: 0 0 14px;
  color: #3f433e;
}

/* 補足ボックス */
.law-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 13px 16px;
  color: #3c5144;
  background: var(--mint);
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.8;
}

.law-note img {
  width: 16px;
  height: 16px;
  margin-top: 5px;
  flex: 0 0 auto;
}

.law-note strong {
  display: block;
  margin-bottom: 2px;
  font-weight: 600;
}

.law-note span { display: block; }

.law-note--gap { margin-top: 14px; }

/* 見出しの数字の右、タイトル文字の開始位置に本文を揃える */
.law-section > :not(h2) {
  margin-left: 3.15rem;
}

#shomen > p:not(.law-note) {
  margin-bottom: 18px;
  color: #3a3e39;
}

#shomen .law-table {
  border-color: #e3e4e5;
  border-radius: 4px;
  font-size: 0.9rem;
}

#shomen .law-table th,
#shomen .law-table td {
  padding: 13px 18px;
  border-bottom-color: #e4e5e6;
}

#shomen .law-table th {
  width: 24%;
  background: #eef3ed;
  color: #2f332e;
  font-weight: 500;
  text-align: center;
}

#shomen .law-table td {
  background: #fff;
  color: #3a3d38;
}

#shomen .law-note {
  margin-top: 22px;
  padding: 16px 18px 15px;
  background: #f0f7f0;
  border-radius: 8px;
  gap: 12px;
}

#shomen .law-note img {
  width: 22px;
  height: 22px;
  margin-top: 1px;
}

#shomen .law-note strong {
  margin-bottom: 6px;
  color: #1c1c1c;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.6;
}

#shomen .law-note span {
  color: #3c413d;
  line-height: 1.75;
}

/* 箇条書き */
.dots,
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dots { display: grid; gap: 10px; }

.dots li {
  position: relative;
  padding-left: 18px;
  color: #3c403b;
}

.dots li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.checks { display: grid; gap: 10px; }

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #3c403b;
}

.checks svg {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  flex: 0 0 auto;
  filter: drop-shadow(0 1px 1px rgba(70, 90, 70, 0.22));
}

/* 表 */
.law-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.92rem;
}

.law-table th,
.law-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  line-height: 1.7;
}

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

.law-table th {
  width: 168px;
  color: #3d403b;
  background: #f7f6f3;
  font-weight: 600;
}

.law-table td { background: #fff; color: #3f433e; }

.law-table--split th {
  width: 46%;
  background: #f3f7f1;
  text-align: center;
  font-weight: 500;
}

/* クーリング・オフの原則 */
.principle {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0 0 18px;
  padding: 16px 26px 16px 22px;
  background: #eef3ed;
  border-radius: 8px;
}

.principle__term {
  position: relative;
  display: flex;
  align-items: baseline;
  flex: 0 0 auto;
  gap: 8px;
  padding-right: 26px;
}

.principle__term::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 48px;
  background: #d3c4a4;
  transform: translateY(-50%);
}

.principle__term img {
  width: 28px;
  height: 28px;
  align-self: center;
}

.principle__label,
.principle__unit {
  color: #2a2a2a;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
}

.principle__num {
  color: #b89645;
  font-family: var(--serif);
  font-size: 3.6rem;
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: 0;
}

.principle > p {
  margin: 0;
  padding: 0;
  color: #3a3e39;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.85;
}

.principle > p strong {
  display: block;
  margin-bottom: 2px;
  color: #1c1c1c;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.6;
}

/* 06 解除・取消し */
#kaijo .law-table--split {
  width: calc(100% - 3.15rem);
  border: 0;
  border-radius: 0;
  overflow: visible;
  border-spacing: 0 10px;
  margin-top: -10px;
  margin-bottom: 6px;
  background: transparent;
}

#kaijo .law-table--split th,
#kaijo .law-table--split td {
  padding: 16px 20px;
  border-top: 1px solid #e4e6e6;
  border-bottom: 1px solid #e4e6e6;
  line-height: 1.75;
}

#kaijo .law-table--split th {
  width: 42%;
  background: #f6f8f3;
  color: #243028;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-align: center;
  border-left: 1px solid #e4e6e6;
  border-right: 1px solid #e4e6e6;
  border-radius: 4px 0 0 4px;
}

#kaijo .law-table--split td {
  background: #fff;
  color: #3c403c;
  font-size: 0.92rem;
  border-right: 1px solid #e4e6e6;
  border-radius: 0 4px 4px 0;
}

/* 期間の帯 */
.period {
  margin: 16px 0 14px;
  padding: 18px 16px 16px;
  text-align: center;
  background: #f7f9f5;
  border-radius: 4px;
}

.period__term {
  margin: 0;
  color: #c0a25c;
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.period p:last-child {
  margin: 6px 0 0;
  color: #5a5e58;
  font-size: 0.88rem;
}

#kaijo .law-note {
  align-items: center;
  margin-top: 14px;
  padding: 15px 18px;
  background: #eef3ed;
  border-radius: 6px;
  color: #3a403c;
}

#kaijo .law-note img {
  width: 22px;
  height: 22px;
  margin-top: 0;
}

/* よくあるご質問 */
.faq {
  display: grid;
  gap: 12px;
}

.faq article {
  padding: 14px 16px 12px;
  background: #fff;
  border: 1px solid #e8e4dc;
  border-radius: 10px;
}

.faq p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
}

.faq p + p { margin-top: 8px; }

.faq__mark {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  font-family: var(--serif);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}

.faq__mark--q { background: #1f7a4c; }
.faq__mark--a { background: #c4a15a; }

.faq__q {
  color: #0f5136;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.faq__a { color: #444842; font-size: 0.92rem; }

/* 法令リンク */
.law-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.law-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 16px;
  color: var(--heading);
  background: #fff;
  border: 1px solid #d5ddd4;
  border-radius: 8px;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.law-links a:hover {
  background: var(--mint);
  border-color: #b7cbb8;
}

.law-links svg { width: 14px; height: 14px; }

.law-disclaimer {
  margin: 14px 0 0;
  color: #8a8e86;
  font-size: 0.78rem;
  text-align: center;
}

/* お問合せ帯 */
.contact-band {
  position: relative;
  margin-top: 12px;
  background: #f4f7f2;
  overflow: hidden;
}

.contact-band__leaf {
  position: absolute;
  left: -6px;
  top: 50%;
  width: 120px;
  transform: translateY(-54%);
  pointer-events: none;
}

.contact-band__inner {
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0 22px 86px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.contact-band__label {
  margin: 0;
  color: #3d4e44;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.contact-band__rule {
  width: 1px;
  height: 22px;
  background: #d5ddd4;
}

.contact-band__company {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.contact-band__tel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.contact-band__tel svg { width: 16px; height: 16px; color: var(--green-deep); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.btn--fill {
  color: #fff;
  background: var(--green-deep);
}

.btn--fill:hover { opacity: 0.9; }

.btn--line {
  color: #24362c;
  background: #fff;
  border: 1px solid #d5dbd4;
}

.btn--line:hover { background: #f7faf6; }

@media (max-width: 980px) {
  .law-layout { grid-template-columns: 1fr; gap: 22px; }

  .toc { position: static; }

  .contact-band__inner {
    flex-wrap: wrap;
    padding-left: 72px;
    row-gap: 12px;
  }

  .contact-band__tel { margin-right: 0; }
}

@media (max-width: 720px) {
  .hero__inner,
  .law-layout,
  .contact-band__inner {
    width: min(100% - 32px, var(--wrap));
  }

  .hero { min-height: 0; background: #f6f7f3; }
  .hero__photo { display: none; }
  .hero__leaf--left { width: 120px; opacity: 0.85; }
  .hero__inner { padding-bottom: 36px; }
  .hero h1 {
    max-width: none;
    font-size: 1.42rem;
    letter-spacing: 0.02em;
  }
  .hero__lead {
    font-size: 1.02rem;
    letter-spacing: 0.02em;
  }
  .hero__sub { font-size: 0.8rem; letter-spacing: 0; }
  .law-section > :not(h2) { margin-left: 0; }

  .law-links { grid-template-columns: 1fr; }

  .principle {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
  }

  .principle__term {
    padding-right: 0;
    padding-bottom: 12px;
  }

  .principle__term::after {
    top: auto;
    right: auto;
    bottom: 0;
    left: 0;
    width: 72px;
    height: 1px;
    transform: none;
  }

  /* 表は1行ずつ、見出しを全幅にしてから本文を置く */
  #shomen .law-table,
  #kaijo .law-table--split {
    width: 100%;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    border-spacing: 0;
    margin-top: 0;
  }

  #shomen .law-table tr,
  #kaijo .law-table--split tr {
    display: block;
    margin: 0 0 12px;
    overflow: hidden;
    border: 1px solid #e4e6e6;
    border-radius: 8px;
    background: #fff;
  }

  #shomen .law-table th,
  #shomen .law-table td,
  #kaijo .law-table--split th,
  #kaijo .law-table--split td {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 0;
    border-radius: 0;
    text-align: left;
  }

  #shomen .law-table th,
  #kaijo .law-table--split th {
    padding: 12px 16px;
    border-bottom: 1px solid #e4e6e6;
    font-size: 1rem;
    line-height: 1.6;
    letter-spacing: 0.04em;
  }

  #shomen .law-table td,
  #kaijo .law-table--split td {
    padding: 14px 16px 16px;
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .contact-band__leaf { width: 84px; }
  .contact-band__inner { padding: 20px 0 20px 52px; }
  .contact-band__rule { display: none; }
  .btn { flex: 1 1 140px; }
}
