/* Watercolour on clean paper: hand-painted washes, quiet type, nothing extra. */
:root {
  --paper: #ffffff;
  --white: #ffffff;
  --ink: #2f2a28;          /* warm charcoal text */
  --ink-soft: #5e5652;
  --terracotta: #b5432e;   /* primary action: 5.5:1 with white */
  --terracotta-deep: #9e3a27;
  --honey: #f2c066;
  --apricot: #f4a46a;
  --rose: #ee8a7a;
  --blush: #f6c2b4;
  --sky: #a9cbe3;
  --rule: #ece3dc;
  --field: #e2d6cd;
  --shadow-soft: 0 1px 2px rgba(47, 42, 40, .05), 0 12px 32px -18px rgba(47, 42, 40, .25);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: #cbbcb3 var(--white); }
/* The washes bleed past the screen edge on purpose. Clip them on <main>, not the
   root: iOS Safari ignores overflow on html/body and widens the layout viewport
   to fit them, which lets the page pan sideways and pushes fixed UI off-screen.
   clip (not hidden) keeps main from becoming a scroll container, so washes still
   bleed vertically between sections. */
main { position: relative; overflow-x: hidden; }
@supports (overflow: clip) { main { overflow-x: clip; } }
body {
  margin: 0;
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.9;
  word-break: auto-phrase;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta); text-underline-offset: .2em; }
::selection { background: var(--blush); color: var(--ink); }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 88px; }
h1, h2, .quote { text-wrap: balance; }
.icon { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
.link-icon { display: inline-flex; align-items: center; gap: 4px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Hand-painted watercolour washes (sourced artwork, see assets/art/SOURCES.md).
   They sit behind all content and may spill past their section's edges, so
   colour flows from one section into the next. One large wash leads each view. */
main > section { position: relative; }
main > section > .wrap, .crisis, .site-footer { position: relative; z-index: 1; }
.wash-art { position: absolute; z-index: 0; height: auto; max-width: none; pointer-events: none; user-select: none; }
.wa-hero-bloom { width: min(54vw, 760px); right: -5vw; top: 0; opacity: .85; }
.wa-hero-sky { width: min(13vw, 190px); right: 3vw; top: -2%; opacity: .55; }
.wa-hero-round { width: min(20vw, 280px); left: -6vw; bottom: -30%; opacity: .75; }
.wa-stories-round { width: min(12vw, 170px); right: 6vw; top: -6%; opacity: .6; }
.wa-stories-sky { width: min(24vw, 330px); right: -9vw; top: 42%; opacity: .55; }
.wa-message-round { width: min(42vw, 560px); left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: .5; }
.wa-message-honey { width: min(22vw, 300px); right: -5vw; bottom: -34%; opacity: .55; }
.wa-ask-bloom { width: min(26vw, 360px); left: -14vw; top: -10%; transform: scaleX(-1); opacity: .5; }
.wa-about-bloom { width: min(36vw, 500px); right: -6vw; top: 4%; opacity: .75; }
.wa-about-round { width: min(18vw, 250px); left: -4vw; top: 30%; opacity: .7; }
.wa-topics-sky { width: min(22vw, 300px); left: -8vw; top: 12%; opacity: .5; }
.wa-church-honey { width: min(26vw, 360px); right: -8vw; top: 10%; opacity: .5; }

/* Crisis bar */
.crisis { background: var(--ink); color: #fff; font-size: .9rem; text-align: center; padding: 9px 16px; }
.crisis a { color: var(--honey); font-weight: 700; }

/* Header: logo alone, then chat and hotlines */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; }
.brand img { width: 48px; height: 48px; }
.nav { display: flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 700; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; text-decoration: none; color: var(--ink); }
.nav a:hover { background: #f7efe9; }
.nav .nav-chat { background: var(--terracotta); color: #fff; }
.nav .nav-chat:hover { background: var(--terracotta-deep); }
.nav .nav-help { border: 1px solid var(--rule); background: var(--white); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px;
  padding: 0 28px; border: 0; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease-out), background-color .2s;
}
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-deep); }
.btn-ghost { background: var(--white); color: var(--terracotta); border: 1.5px solid var(--terracotta); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-lg { font-size: 1.1rem; min-height: 60px; padding: 0 40px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); }
.hero .wrap { position: relative; }
.hero-copy { max-width: 600px; }
.hero h1 { margin: 0 0 20px; font-size: clamp(2.6rem, 5.6vw, 4.4rem); line-height: 1.2; font-weight: 900; letter-spacing: -.02em; }
.hero h1 .h1-pre { display: block; font-size: .5em; letter-spacing: 0; color: var(--terracotta); margin-bottom: .3em; }
/* A single hand-brushed wash under 希望 */
.brushed { position: relative; display: inline-block; isolation: isolate; }
.brush { position: absolute; left: -10%; bottom: -.02em; width: 124%; height: .56em; z-index: -1; max-width: none; pointer-events: none; opacity: .85; }
.lead { margin: 0 0 32px; font-size: 1.08rem; color: var(--ink-soft); word-break: keep-all; overflow-wrap: anywhere; }
.hero-stories { margin-top: 20px; font-weight: 700; text-decoration: none; min-height: 44px; }
.hero-stories:hover { text-decoration: underline; }

/* The question card (hero and chat section) */
.ask-card { background: var(--white); border: 1px solid var(--rule); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-soft); }
.ask-form { display: grid; gap: 10px; }
.ask-label { font-size: .95rem; font-weight: 700; }
.ask-form textarea {
  width: 100%; resize: vertical; min-height: 80px; padding: 14px 16px; font: inherit; font-size: 1rem; line-height: 1.7; color: var(--ink);
  background: #fffaf7; border: 1.5px solid var(--field); border-radius: 12px; caret-color: var(--terracotta);
  transition: border-color .2s, background-color .2s;
}
.ask-form textarea::placeholder { color: #776d68; }
.ask-form textarea:focus { outline: none; border-color: var(--terracotta); background: #fff; box-shadow: 0 0 0 3px rgba(181, 67, 46, .14); }
.ask-form .btn { justify-self: start; }
.ask-examples { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ask-examples button {
  font: inherit; font-size: .92rem; font-weight: 700; text-align: left; color: var(--ink); cursor: pointer; min-height: 44px;
  background: #fbf4ef; border: 1px solid #f0e0d6; border-radius: 999px; padding: 8px 18px;
  transition: background-color .2s, border-color .2s;
}
.ask-examples button:hover, .ask-examples button:focus-visible { background: #f8e6dc; border-color: var(--blush); }
.ask-hint { font-size: .9rem; color: var(--ink-soft); margin: 22px 0 0; }

/* Sections */
.section { position: relative; padding: clamp(64px, 9vw, 112px) 0; }
.section > .wrap { position: relative; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 12px; line-height: 1.4; font-weight: 900; letter-spacing: -.01em; }
.section-sub { color: var(--ink-soft); margin: 0 0 36px; }

/* Stories */
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { font: inherit; font-size: .9rem; cursor: pointer; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--rule); background: #fff; color: var(--ink-soft); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.featured { margin-bottom: 48px; }
.video-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 40px 28px; }
.video-grid > .video { grid-column: span 2; }
.video-grid[data-rem3="2"] > .video:nth-child(-n+2),
.video-grid[data-rem3="1"] > .video:first-child { grid-column: span 3; }
.video[hidden] { display: none; }
.player {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 14px;
  overflow: hidden; cursor: pointer; background: #f3e9e2; box-shadow: var(--shadow-soft);
}
.player:disabled { cursor: default; }
.player img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.player:hover img { transform: scale(1.03); }
.player iframe { width: 100%; height: 100%; border: 0; display: block; }
.soon { position: absolute; top: 14px; left: 14px; color: #fff; font-size: .8rem; font-weight: 700; }
/* Play mark sits low-left, clear of titles printed into the thumbnails */
.play {
  position: absolute; left: 12px; bottom: 12px; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, .95); box-shadow: 0 4px 14px rgba(0, 0, 0, .25); transition: transform .3s var(--ease-out);
}
.play::after {
  content: ""; position: absolute; left: 19px; top: 15px;
  border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent var(--terracotta);
}
.player:hover .play { transform: scale(1.08); }
.video-big .player { border-radius: 20px; }
.video-big .play { left: 20px; bottom: 20px; width: 64px; height: 64px; }
.video-big .play::after { left: 25px; top: 20px; border-width: 12px 0 12px 20px; }
.video-meta h3 { margin: 14px 0 0; font-size: 1.08rem; line-height: 1.5; }
.video-meta p { margin: 2px 0 0; font-size: .85rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.video-meta .video-hook { font-size: .95rem; color: var(--ink); line-height: 1.7; margin-top: 4px; }
.video-big .video-meta h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 900; }
.stories-next { margin: 72px auto 0; max-width: 640px; text-align: center; font-size: 1.1rem; font-weight: 700; line-height: 1.8; }
.stories-next a {
  display: inline-flex; align-items: center; min-height: 48px; margin-top: 12px; padding: 0 28px;
  border-radius: 999px; border: 1.5px solid var(--terracotta); background: #fff; color: var(--terracotta); text-decoration: none;
}
.stories-next a:hover { background: var(--terracotta); color: #fff; }

/* Message: a quiet wash with the words set directly on it */
.message { position: relative; padding: clamp(96px, 13vw, 168px) 0; text-align: center; }
.message .wrap { position: relative; max-width: 680px; }
.quote { font-size: clamp(1.35rem, 2.8vw, 1.85rem); font-weight: 900; line-height: 1.75; margin: 0 0 20px; }
.quote em { white-space: nowrap; font-style: normal; }
.message-sub { margin: 0; color: var(--ink-soft); }

/* Ask */
.ask-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.ask-intro .section-sub { margin-bottom: 24px; }
.ask-note { font-size: .92rem; color: var(--ink-soft); margin: 0; }
.ask-wrap { max-width: 720px; text-align: center; }
.ask-wrap .ask-examples { justify-content: center; margin-bottom: 24px; }

/* About */
.about { background: var(--white); border-top: 1px solid var(--rule); padding: 44px 0 0; font-size: .95rem; }
.about h2 { font-size: 1.1rem; margin: 0 0 4px; }
.about p { margin: 0; color: var(--ink-soft); }

/* Help: always large, always plain */
.help { background: var(--white); padding: 32px 0 56px; }
.help h2 { font-size: 1.3rem; margin: 0 0 4px; }
.help p { margin: 0 0 20px; color: var(--ink-soft); }
.help-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.help-list a {
  display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 72px; height: 100%;
  padding: 12px 18px; border: 1px solid var(--rule); border-radius: 14px; background: var(--paper);
  color: var(--ink); text-decoration: none; transition: border-color .2s;
}
.help-list a:hover { border-color: var(--terracotta); }
.help-name { font-size: .92rem; color: var(--ink-soft); }
.help-name small { margin-left: 8px; font-size: .8rem; font-weight: 700; color: var(--terracotta); }
.help-num { font-size: 1.3rem; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.help-more { font-size: .92rem; }

/* Footer */
.site-footer { background: var(--ink); color: #ddd5d0; padding: 48px 0 32px; font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.copy { width: 100%; text-align: center; color: #b3aaa5; font-size: .8rem; margin-top: 16px; }

/* About page */
.page-hero { position: relative; padding: clamp(72px, 10vw, 128px) 0; text-align: center; }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.3; margin: 0 0 16px; font-weight: 900; }
.page-hero .lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); margin: 0 0 28px; word-break: auto-phrase; }
.narrow { max-width: 760px; }
.prose p { color: var(--ink-soft); margin: 0 0 18px; }
.prose .btn-row { margin-top: 28px; }
.topic-cards { display: grid; grid-template-columns: 1fr; max-width: 880px; }
.topic-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; align-items: center;
  padding: 28px 0; border-top: 1px solid var(--rule); scroll-margin-top: 90px;
}
.topic-card:last-child { border-bottom: 1px solid var(--rule); }
.topic-card h3 { margin: 0; font-size: 1.3rem; grid-column: 1; }
.topic-card p { margin: 0; color: var(--ink-soft); grid-column: 1; }
.topic-card .topic-q { grid-column: 2; grid-row: 1 / span 2; }
.topic-q {
  align-self: flex-start; font: inherit; font-weight: 700; color: var(--terracotta); cursor: pointer;
  background: #fbf4ef; border: 1px solid #f0e0d6; border-radius: 999px; padding: 8px 18px;
}
.topic-q::before { content: "AIに聞く：「"; color: var(--ink-soft); font-weight: 400; }
.topic-q::after { content: "」"; color: var(--ink-soft); font-weight: 400; }
.topic-q:hover, .topic-q:focus-visible { border-color: var(--blush); background: #f8e6dc; }

/* Legal pages */
.legal { padding: 56px 0 0; }
.legal article { background: var(--white); border: 1px solid var(--rule); border-radius: 20px; padding: clamp(24px, 5vw, 56px); max-width: 820px; margin-inline: auto; }
.legal h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0 0 24px; }
.legal h2 { font-size: 1.2rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 1.3em; }

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

@media (max-width: 960px) {
  .ask-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero-copy { max-width: none; }
  .ask-card { padding: 22px 18px; }
  .video-grid { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .video-grid > .video, .video-grid[data-rem3] > .video:nth-child(n) { grid-column: auto; }
  .video-grid[data-rem2="1"] > .video:first-child { grid-column: 1 / -1; }
  .help-list { grid-template-columns: 1fr; }
  .topic-card { grid-template-columns: 1fr; }
  .topic-card .topic-q { grid-column: 1; grid-row: auto; margin-top: 8px; }
  .wa-hero-bloom { width: 66vw; right: -40vw; top: -9%; opacity: .6; }
  .wa-hero-sky { display: none; }
  .wa-hero-round { width: 38vw; left: -16vw; bottom: -12%; }
  .wa-stories-round { width: 26vw; right: -6vw; top: -3%; }
  .wa-stories-sky { width: 48vw; right: -24vw; top: 46%; }
  .wa-message-round { width: 96vw; opacity: .45; }
  .wa-message-honey { width: 44vw; right: -16vw; bottom: -18%; }
  .wa-ask-bloom { width: 56vw; left: auto; right: -30vw; top: auto; bottom: 2%; transform: none; }
  .wa-about-bloom { width: 66vw; right: -28vw; top: -4%; opacity: .6; }
  .wa-about-round { width: 34vw; left: -14vw; top: 60%; }
  .wa-topics-sky, .wa-church-honey { width: 46vw; }
  .site-header .wrap { height: 60px; }
  .brand img { width: 42px; height: 42px; }
  [id] { scroll-margin-top: 76px; }
  .nav { font-size: .85rem; }
  .nav a { padding: 0 14px; }
  .nav .nav-stories { display: none; }
}
@media (max-width: 560px) {
  .video-grid { grid-template-columns: 1fr; }
  .video-grid[data-rem2="1"] > .video:first-child { grid-column: auto; }
  .play, .video-big .play { left: 10px; bottom: 10px; width: 44px; height: 44px; }
  .play::after, .video-big .play::after { left: 17px; top: 13px; border-width: 9px 0 9px 14px; }
}
