:root {
  color-scheme: light;
  --paper: #fcf7ee;
  --panel: #f7efe2;
  --ink: #34271f;
  --muted: #625249;
  --rust: #963e2a;
  --line: #c8ac80;
  --mincho: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", serif;
  --gothic: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.72 var(--gothic); }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2 { font-family: var(--mincho); font-weight: 700; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 40px, 930px); margin-inline: auto; }
.site-header { display: flex; align-items: center; min-height: 88px; }
.brand { display: inline-flex; align-items: center; gap: 13px; font: 700 clamp(1.2rem, 3vw, 1.9rem)/1.2 var(--mincho); text-decoration: none; white-space: nowrap; }
.brand img { width: clamp(34px, 6vw, 52px); height: auto; }
.site-header::after { content: ""; flex: 1; max-width: 10rem; margin-left: 22px; border-top: 1px solid var(--line); }

.hero { position: relative; isolation: isolate; padding: 4px 0 30px; }
.hero::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; background: url("assets/hero-washi-v01.webp") repeat center top / 500px auto; opacity: .55; pointer-events: none; }
.hero-masthead {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(258px, 77vw, 435px);
  overflow: hidden;
}
.hero-heading { position: relative; width: 59%; padding: 20px 0 24px; }
.hero h1 { font-size: clamp(1.3rem, 6.1vw, 3.3rem); line-height: 1.42; letter-spacing: -.045em; }
.hero-intro { max-width: 15em; margin-top: 18px; font-family: var(--mincho); font-size: clamp(.82rem, 3.4vw, 1.22rem); line-height: 1.7; }
.hero-wash, .hero-watermark, .hero-portrait { position: absolute; pointer-events: none; }
.hero-wash { right: -6%; top: 0; width: 64%; opacity: .32; }
.hero-watermark { top: 1%; right: 24%; width: 36%; height: auto; opacity: .22; }
.hero-portrait {
  right: 0;
  bottom: 0;
  width: 55%;
  height: 100%;
  object-fit: cover;
  object-position: 53% 38%;
  mask-image: linear-gradient(to right, transparent, #000 30%), linear-gradient(to bottom, transparent, #000 7%, #000 88%, transparent);
  mask-composite: intersect;
}
.hero-topics { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1.25fr; margin: 14px 0 0; padding: 0; border-block: 1px solid var(--line); list-style: none; color: var(--muted); font-size: .84rem; font-weight: 650; }
.hero-topics li + li { border-inline-start: 1px solid #e4d6bf; }
.hero-topics button { display: block; width: 100%; min-height: 44px; padding: 4px; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.hero-topics button[aria-pressed="true"] { background: #f4dfd6; color: var(--rust); box-shadow: inset 0 -2px var(--rust); }
.hero-topics button:focus-visible { outline: 2px solid var(--rust); outline-offset: -3px; }
.hero-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; padding: 0; margin: 15px 0 0; list-style: none; }
.hero-flow li { position: relative; padding: 3px 0; text-align: center; font-size: clamp(.68rem, 3.05vw, .9rem); line-height: 1.45; }
.hero-flow li + li::before { content: "→"; position: absolute; left: -9px; color: var(--rust); }
.hero-examples { margin-top: 12px; }
.hero-example { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); gap: 11px; align-items: center; padding: 9px 11px; border-left: 2px solid var(--line); background: #fffaf3; font-size: .9rem; }
.hero-example img { width: 100%; height: auto; aspect-ratio: 435 / 149; object-fit: cover; border-radius: 8px; }
.hero-example span { display: block; color: var(--rust); font-size: .78rem; font-weight: 700; }
.hero-example p { margin-top: 3px; line-height: 1.6; }
.hero-note { margin-top: 9px; color: var(--muted); font-size: .78rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.button { display: inline-flex; gap: 12px; min-height: 44px; align-items: center; justify-content: center; border-radius: 99px; background: var(--rust); border: 1px solid var(--rust); color: #fffdf8; padding: 8px 17px; font-size: .9rem; font-weight: 650; text-decoration: none; }
.button.secondary { color: var(--ink); background: var(--paper); border-color: #896744; }
.button:hover { filter: brightness(.92); }

.section { position: relative; padding: clamp(24px, 4.7vw, 46px) 0; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(1.45rem, 4vw, 2.55rem); line-height: 1.35; border-left: 4px solid var(--rust); padding-left: 13px; }
.section h2 + p { margin-top: 14px; }
.chapter-part { margin-top: clamp(22px, 4vw, 34px); }
.chapter-part + .chapter-part { border-top: 1px solid #e4d6bf; padding-top: clamp(20px, 3.5vw, 30px); }
.chapter-title { font: 700 clamp(1.2rem, 3.2vw, 1.75rem)/1.4 var(--mincho); }
.chapter-title + p { margin-top: 9px; }
.center { text-align: center; margin-top: 20px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }

.overview-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.overview-links a { display: grid; align-content: start; gap: 3px; padding: 12px; border: 1px solid #d8c6a9; border-radius: 9px; background: #fffaf3; text-decoration: none; }
.overview-links a:first-child { border-color: #b77b65; }
.overview-links strong { text-decoration: underline; }
.overview-links span { color: var(--muted); font-size: .875rem; }

.worries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; row-gap: 21px; margin-top: 22px; }
.worry { display: grid; align-content: start; gap: 9px; color: var(--ink); text-decoration: none; }
.worry img { width: 100%; height: auto; aspect-ratio: 2.92; object-fit: cover; border-radius: 12px; }
.worry > div { display: flex; align-items: flex-start; gap: 11px; }
.worry p { line-height: 1.5; text-wrap: pretty; }
.worry:hover p { text-decoration: underline; text-underline-offset: .2em; }
.topic { flex: none; display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .82rem; font-weight: 650; }
.relationship { background: #f4ded3; color: #783c2d; }
.marriage { background: #eae0ee; color: #62456e; }
.work { background: #dfeaf1; color: #314f66; }
.friends { background: #f4e8cb; color: #654b1d; }

.report-section { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 27px; align-items: center; }
.report-sample { display: grid; justify-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); padding: 12px; }
.sample-link { display: block; overflow: hidden; border: 1px solid var(--line); background: #fff9ef; }
.report-sample .sample-link { width: 100%; }
.report-sample .sample-link img { width: 100%; height: auto; }
.report-sample figcaption { grid-column: 1 / -1; color: var(--muted); font-size: .78rem; }

.daily { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .85fr); gap: clamp(10px, 3vw, 34px); align-items: center; margin-top: 20px; }
.daily figure { min-width: 0; align-self: start; }
.daily figcaption { text-align: center; font-weight: 650; margin-bottom: 5px; }
.daily .sample-link { height: clamp(170px, 26vw, 280px); }
.daily-screen img { width: 100%; height: auto; transform: translateY(-25%); }
.daily-card img { width: 100%; height: 100%; object-fit: contain; }

.topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.topics a { padding: 7px 13px; min-height: 44px; display: inline-flex; align-items: center; font-size: .88rem; border-radius: 99px; background: var(--panel); text-decoration: none; }
.topics a[aria-current="true"] { background: var(--rust); color: #fffdf8; }
.note { color: var(--muted); font-size: .82rem; }
.consultation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 15px; }
.message { padding: 15px 17px; border: 1px solid #d8c6a9; border-radius: 14px; background: #fffaf3; }
.message.answer { background: #eef0e5; }
.message h4 { font-size: .92rem; margin-bottom: 6px; }
.steps { display: flex; flex-wrap: wrap; gap: 6px 25px; list-style-position: inside; padding: 0; margin: 14px 0 5px; font-size: .9rem; }

.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.info-grid > div { border: 1px solid #d8c6a9; border-radius: 12px; padding: 15px 17px; background: #fffaf3; }
.info-grid :is(h3, h4) { font-size: 1rem; }
.info-grid :is(h3, h4) + p, .info-grid .note { margin-top: 7px; }
.info-grid + .note, .section-link { margin-top: 9px; }
.info-grid.extras { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.method-tag { display: inline-block; margin-left: .35rem; color: var(--rust); font-size: .75rem; }
.method-steps { padding-inline-start: 1.3em; margin: 7px 0; }

.plans { display: grid; gap: 9px; list-style: none; padding: 0; margin: 20px 0 0; }
.plans li { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr) minmax(0, 1.6fr); align-items: center; gap: 11px; border: 1px solid #d8c6a9; border-radius: 12px; overflow: hidden; padding-right: 14px; background: #fffaf3; }
.plans h3 { background: #e4ecec; height: 100%; padding: 12px; display: flex; align-items: center; font-size: 1rem; }
.plans li:nth-child(2) h3 { background: #eae1ee; }
.plans .featured-plan { border-color: #b77b65; }
.plans .featured-plan h3 { background: #f4dfd6; }
.price { white-space: nowrap; font-size: .91rem; }
.price strong { color: var(--rust); font: 700 clamp(1.3rem, 3.3vw, 2.2rem)/1 var(--mincho); }
.plans li > p:last-child { font-size: .92rem; }
.plan-detail { margin-top: 12px; padding: 10px 12px; border: 1px solid #d8c6a9; border-radius: 9px; }
.plan-detail summary { min-height: 32px; cursor: pointer; font-weight: 650; }
.plan-detail dl { margin: 0; }
.plan-detail dl > div { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 8px; border-bottom: 1px solid #e4d6bf; padding: 7px 0; }
.plan-detail dt { font-weight: 650; }
.plan-detail dd { margin: 0; }
.plan-detail .note { margin-top: 8px; }

.faq { margin-top: 13px; }
.faq details { border-bottom: 1px solid #e4d6bf; padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 650; min-height: 32px; }
.faq details p { margin: 4px 0 0 1.2rem; color: var(--muted); }
footer { border-top: 1px solid var(--line); padding: 16px 0 24px; color: var(--muted); font-size: .85rem; }

@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { min-height: 61px; }
  .hero { padding: 4px 0 24px; }
  .hero-topics { margin-top: 10px; }
  .hero-examples, .hero-flow { margin-top: 10px; }
  .hero-example { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 12px; padding: 0; border: 0; background: transparent; font-size: .86rem; }
  .hero-example img { aspect-ratio: 2 / 1; }
  .hero-masthead { margin-inline: -16px; min-height: clamp(254px, 75vw, 393px); }
  .hero-heading { width: 65%; padding: 12px 0 40px 22px; }
  .hero h1 { font-size: clamp(1.18rem, 6.4vw, 2.25rem); }
  .hero-intro { margin-top: 22px; }
  .hero-intro { max-width: 12em; }
  .hero-portrait {
    width: 67%;
    height: 110%;
    object-position: 55% 39%;
    mask-image: linear-gradient(to right, transparent 5%, #000 49%), linear-gradient(to bottom, transparent, #000 6%, #000 86%, transparent);
  }
  .hero-examples { margin-top: 24px; }
  .hero-flow { margin-top: 24px; }
  .hero .actions .button:first-child { min-height: 49px; }
  .hero-note { text-align: center; }
  .hero .actions { display: grid; margin-top: 10px; gap: 3px; }
  .hero .actions .secondary { justify-self: center; min-height: 44px; padding-block: 6px; border-color: transparent; background: transparent; font-size: .85rem; text-decoration: underline; }
  .worries { column-gap: 13px; row-gap: 18px; margin-top: 16px; }
  .worry img { aspect-ratio: 1.95; border-radius: 8px; }
  .worry > div { display: grid; justify-items: start; gap: 4px; }
  .worry p, .section > p, .chapter-part > p, .report-section p { font-size: .9rem; }
  .topic { font-size: .74rem; }
  .overview-links { grid-template-columns: 1fr; gap: 7px; }
  .overview-links a { padding: 8px 11px; }
  .report-section { grid-template-columns: 1fr; gap: 12px; }
  .report-sample { padding: 6px; gap: 4px; }
  .daily { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .daily > p { grid-column: 1 / -1; }
  .daily > p br { display: none; }
  .daily .sample-link { height: auto; aspect-ratio: 1 / 1.12; }
  .consultation { grid-template-columns: 1fr; gap: 9px; }
  .steps { display: grid; gap: 3px; }
  .info-grid, .info-grid.extras { grid-template-columns: 1fr; }
  .plans li { grid-template-columns: minmax(0, 1fr) auto; padding-right: 0; gap: 0; }
  .plans h3 { padding: 9px 11px; font-size: .9rem; }
  .price { padding: 8px 11px; }
  .plans li > p:last-child { grid-column: 1 / -1; padding: 6px 11px 9px; }
}

@media (max-width: 380px) {
  .worry p { font-size: .83rem; }
}
