/* みんなの「やってみたい！」企画募集 — TOKYOウエディングフォーラムの濃紺・金・アイボリーに合わせる */
:root {
  --ivory: #fbf8f2;
  --paper: #ffffff;
  --navy: #1e2a47;
  --navy-2: #2d3b5f;
  --gold: #b08d57;
  --gold-deep: #8a6b3c;
  --gold-soft: #ecdfc8;
  --blush: #d9667a;
  --blush-soft: #fbe9ec;
  --sage: #5f8572;
  --sage-soft: #e5efe9;
  --ink: #2b2b2b;
  --muted: #6b6558;
  --line: #e4dccd;
  --radius: 14px;
  --mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --latin: "Cormorant Garamond", "Times New Roman", serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font-family: var(--gothic); font-size: 16px; line-height: 1.9; letter-spacing: .02em;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--gold-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 .9em; }
.sp { display: none; }
@media (max-width: 640px) { .sp { display: inline; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--paper); padding: 8px 14px; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(720px, 100% - 32px); }

.eyebrow {
  font-family: var(--latin); font-style: italic; font-weight: 500; font-size: 1.05rem;
  letter-spacing: .08em; color: var(--gold); margin: 0 0 .3em;
  font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1;
}
.h2 {
  font-family: var(--mincho); font-weight: 800; color: var(--navy);
  font-size: clamp(1.45rem, 1.1rem + 1.6vw, 2.2rem); line-height: 1.5; letter-spacing: .06em; margin: 0 0 .8em;
}
.h3 { font-family: var(--mincho); font-weight: 800; color: var(--navy); font-size: 1.2rem; margin: 0 0 .8em; letter-spacing: .05em; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 52px; padding: .7em 1.8em; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 1rem/1.3 var(--gothic); letter-spacing: .06em; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: #fff; box-shadow: 0 6px 18px -8px rgba(138,107,60,.7); }
.btn--gold:hover { background: var(--gold-deep); }
.btn--ghost { background: rgba(255,255,255,.75); color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: #fff; }
.btn--line { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--line:hover { border-color: var(--gold); }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .55; cursor: wait; }

/* ---------- ヘッダー ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px clamp(16px, 4vw, 40px); background: rgba(251,248,242,.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.topbar__logo img { width: 150px; }
.topbar__nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); font-size: .9rem; }
.topbar__nav a { color: var(--navy); text-decoration: none; }
.topbar__nav a:hover { color: var(--gold-deep); }
.topbar__cta { background: var(--navy); color: #fff !important; padding: .35em 1.1em; border-radius: 999px; }
@media (max-width: 640px) {
  .topbar__nav a:not(.topbar__cta) { display: none; }
  .topbar__logo img { width: 128px; }
}

/* ---------- ① ファーストビュー ---------- */
.hero { position: relative; overflow: hidden; min-height: min(70vh, 560px); display: grid; align-items: center; }
.hero__photo {
  position: absolute; inset: 0;
  background: url("/assets/hero.webp") right center / cover no-repeat;
}
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(251,248,242,.97) 0%, rgba(251,248,242,.88) 38%, rgba(251,248,242,.15) 68%, rgba(251,248,242,0) 100%);
}
.hero__body { position: relative; padding: clamp(40px, 6vw, 72px) clamp(16px, 6vw, 80px); max-width: 760px; }
.hero__title {
  font-family: var(--mincho); font-weight: 800; color: var(--navy);
  font-size: clamp(2.1rem, 1.2rem + 4.4vw, 4.2rem); line-height: 1.32; letter-spacing: .04em; margin: .1em 0 .4em;
}
.hero__quote { color: var(--gold-deep); white-space: nowrap; }
.hero__catch {
  font-family: var(--mincho); font-weight: 600; font-size: clamp(1.15rem, 1rem + .9vw, 1.6rem);
  color: var(--navy); letter-spacing: .14em; margin-bottom: .9em;
  display: inline-block; border-bottom: 1.5px solid var(--gold); padding-bottom: .15em;
}
.hero__lead { color: var(--muted); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
@media (max-width: 640px) {
  .hero { min-height: auto; }
  .hero__photo { background-position: 78% center; }
  .hero__photo::after { background: linear-gradient(180deg, rgba(251,248,242,.82) 0%, rgba(251,248,242,.95) 55%, rgba(251,248,242,1) 100%); }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- ② 掲示板（エスコートカードの壁） ---------- */
.board { padding: clamp(56px, 8vw, 96px) 0 clamp(56px, 7vw, 80px); background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.board__note { color: var(--muted); margin-top: -.4em; }
.board__ribbon {
  height: 14px; margin: 28px 0 0;
  background:
    radial-gradient(circle at 8px 0, var(--gold) 2.2px, transparent 2.6px) 0 0 / 56px 14px repeat-x,
    linear-gradient(var(--gold-soft), var(--gold-soft)) 0 0 / 100% 1.5px no-repeat;
}
.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px 22px;
}
.card {
  position: relative; transform-origin: 50% 0;
  animation: hang .6s cubic-bezier(.2,.9,.3,1.2) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
.card:nth-child(3n+1) { --tilt: -1.2deg; }
.card:nth-child(3n+2) { --tilt: .8deg; }
.card:nth-child(3n) { --tilt: -.4deg; }
.card::before { /* 吊り糸 */
  content: ""; position: absolute; top: -26px; left: 50%; width: 1px; height: 26px; background: var(--gold);
}
.card__btn {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 10px; width: 100%; min-height: 188px;
  padding: 26px 22px 18px; background: #fffdf8; border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 1px 0 var(--gold-soft) inset, 0 12px 26px -18px rgba(30,42,71,.45);
  transform: rotate(var(--tilt, 0deg)); transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
}
.card__btn::before { /* 席札の折り目 */
  content: ""; position: absolute; left: 14px; right: 14px; top: 10px; border-top: 1px dashed var(--gold-soft);
}
.card__btn:hover { transform: rotate(0deg) translateY(-3px); box-shadow: 0 1px 0 var(--gold-soft) inset, 0 18px 30px -16px rgba(30,42,71,.5); }
.card__btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.card__date { font-family: var(--latin); font-style: italic; color: var(--gold-deep); font-size: 1rem; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.card__title { font-family: var(--mincho); font-weight: 800; color: var(--navy); font-size: 1.15rem; line-height: 1.55; overflow-wrap: anywhere; }
.card__excerpt { color: var(--muted); font-size: .88rem; line-height: 1.7; flex: 1; overflow-wrap: anywhere; }
.card__foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; font-size: .85rem; }
.card__likes { display: inline-flex; align-items: center; gap: 5px; color: var(--blush); font-weight: 700; }
.card__likes svg { width: 16px; height: 16px; fill: currentColor; }
.card__more { color: var(--navy); font-weight: 700; }
@keyframes hang { from { opacity: 0; transform: translateY(-14px) rotate(-3deg); } to { opacity: 1; transform: none; } }
.board__status { text-align: center; color: var(--muted); margin: 18px 0 0; }
.board__status:empty { display: none; }
.board__empty { text-align: center; padding: 32px 16px; border: 1px dashed var(--line); border-radius: var(--radius); margin-top: 24px; }
.board__more { text-align: center; margin-top: 32px; }
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; gap: 30px; }
  .card__btn { min-height: 0; }
}

/* ---------- 基本メッセージ ---------- */
.message { padding: clamp(56px, 8vw, 96px) 0; text-align: center; }
.message__big { font-family: var(--mincho); font-weight: 800; font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2.1rem); line-height: 1.7; color: var(--navy); margin-bottom: 1.2em; letter-spacing: .06em; }
@media (max-width: 640px) { .message { text-align: left; } }

/* ---------- ③ はじめに ---------- */
.about { padding: clamp(56px, 8vw, 96px) 0; background: linear-gradient(180deg, var(--ivory), #f5efe3); }
.about__intro { max-width: 46em; margin-bottom: 36px; }
.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.value { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px 20px; position: relative; }
.value__no { font-family: var(--latin); font-style: italic; font-size: 2.4rem; line-height: 1; color: var(--gold); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.value h3 { font-family: var(--mincho); font-weight: 800; color: var(--navy); font-size: 1.05rem; line-height: 1.6; margin: .5em 0 .5em; }
.value p { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.8; }
.about__outro { margin-top: 32px; font-family: var(--mincho); font-weight: 600; color: var(--navy); font-size: 1.05rem; }

/* ---------- ④ 基本方針 ---------- */
.policy { padding: clamp(56px, 8vw, 96px) 0; background: var(--navy); color: #eef0f5; }
.policy .h2 { color: #fff; }
.policy .eyebrow { color: #d6b887; }
.policy__sub { color: #c7cbd6; margin-top: -.6em; }
.rules { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: r; display: grid; gap: 12px; }
.rules li {
  counter-increment: r; display: grid; grid-template-columns: 3.2rem 1fr; column-gap: 8px;
  padding: 18px 20px; border: 1px solid rgba(214,184,135,.35); border-radius: var(--radius); background: rgba(255,255,255,.04);
}
.rules li::before {
  content: counter(r); grid-row: span 2; font-family: var(--latin); font-style: italic; font-size: 2rem; line-height: 1.1; color: #d6b887;
  font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1;
}
.rules strong { font-family: var(--mincho); font-weight: 800; font-size: 1.1rem; color: #fff; line-height: 1.6; }
.rules span { color: #c7cbd6; font-size: .92rem; }

/* ---------- ⑤ これまで ---------- */
.history { padding: clamp(56px, 8vw, 96px) 0; }
.photos { display: grid; grid-template-columns: 1.4fr 1fr 1fr .7fr; gap: 10px; margin: 8px 0 36px; }
.photos img { width: 100%; height: 170px; object-fit: cover; border-radius: 10px; }
@media (max-width: 640px) {
  .photos { grid-template-columns: 1fr 1fr; }
  .photos img { height: 120px; }
}
.history__cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
@media (max-width: 800px) { .history__cols { grid-template-columns: 1fr; gap: 28px; } }
.acts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.acts li { padding: 10px 14px 10px 34px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; position: relative; font-size: .95rem; line-height: 1.6; }
.acts li::before { content: ""; position: absolute; left: 14px; top: 1.05em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.acts--past li { background: transparent; }
.acts--past li::before { background: transparent; border: 1.5px solid var(--gold); }

/* ---------- ⑥ 応募フォーム ---------- */
.apply { padding: clamp(56px, 8vw, 96px) 0 clamp(72px, 9vw, 110px); background: var(--paper); border-top: 1px solid var(--line); }
.apply__lead { margin-bottom: 28px; }
.form, .rform { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-weight: 700; color: var(--navy); font-size: .95rem; }
.req, .opt { font-size: .72rem; font-weight: 700; margin-left: .6em; padding: .1em .55em; border-radius: 4px; vertical-align: .1em; }
.req { background: var(--blush-soft); color: #b0384d; }
.opt { background: #f0ece4; color: var(--muted); }
input[type=text], input[type=email], input[type=password], textarea, select {
  width: 100%; font: 400 16px/1.6 var(--gothic); color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fffdf9;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,141,87,.2); }
[aria-invalid="true"] { border-color: #c2475c !important; }
textarea { resize: vertical; }
.field--hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--gold-soft); border-radius: 12px; background: #fffaf0; cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 4px; accent-color: var(--gold); flex: none; }
.check small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.6; margin-top: 2px; }
.form__note { font-size: .86rem; color: var(--muted); margin: 0; }
.form__error { color: #b0384d; font-weight: 700; margin: 0; }
.form__error:empty { display: none; }
.done { text-align: center; padding: 36px 20px; border: 1.5px solid var(--gold-soft); border-radius: var(--radius); background: #fffaf0; }
.done__title { font-family: var(--mincho); font-weight: 800; font-size: 1.4rem; color: var(--navy); }

/* ---------- フッター ---------- */
.footer { text-align: center; padding: 48px 16px 56px; background: var(--ivory); color: var(--muted); font-size: .9rem; }
.footer__logo { margin: 0 auto 14px; width: 170px; }
.footer__small { font-size: .8rem; }

/* ---------- 企画詳細モーダル ---------- */
.modal { border: none; padding: 0; background: transparent; width: min(640px, 100% - 24px); max-height: calc(100dvh - 32px); }
.modal::backdrop { background: rgba(30,42,71,.55); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .25s ease both; }
@keyframes pop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.modal__inner { position: relative; background: #fffdf8; border-radius: 18px; padding: 40px clamp(20px, 5vw, 44px) 32px; max-height: calc(100dvh - 32px); overflow-y: auto; border-top: 5px solid var(--gold); }
.modal__close { position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; border: none; background: transparent; font-size: 1.7rem; color: var(--muted); cursor: pointer; border-radius: 50%; }
.modal__close:hover { background: #f3ede2; }
.modal__date { font-family: var(--latin); font-style: italic; color: var(--gold-deep); margin: 0; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.modal__title { font-family: var(--mincho); font-weight: 800; color: var(--navy); font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem); line-height: 1.5; margin: .2em 0 .8em; overflow-wrap: anywhere; }
.modal__content { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.95; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.modal__like { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 22px 0 18px; }
.like {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: .5em 1.4em; cursor: pointer;
  border: 2px solid var(--blush); color: var(--blush); background: #fff; border-radius: 999px; font: 700 1.05rem var(--gothic);
  transition: background-color .2s, color .2s, transform .15s;
}
.like svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .25s; }
.like[aria-pressed="true"] { background: var(--blush); color: #fff; }
.like[aria-pressed="true"] svg { fill: currentColor; }
.like.is-pulse svg { animation: beat .45s ease; }
@keyframes beat { 30% { transform: scale(1.35); } 60% { transform: scale(.92); } }
.like__count { min-width: 1.6em; text-align: center; font-variant-numeric: tabular-nums; background: rgba(217,102,122,.12); border-radius: 999px; padding: 0 .5em; }
.like[aria-pressed="true"] .like__count { background: rgba(255,255,255,.25); }
.like__hint { margin: 0; font-size: .8rem; color: var(--muted); }
.modal__acts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .modal__acts { grid-template-columns: 1fr; } }
.act {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 12px; min-height: 72px; cursor: pointer;
  border-radius: 14px; font: 700 1rem/1.4 var(--gothic); border: 2px solid; transition: background-color .2s, transform .15s;
}
.act__en { font-family: var(--latin); font-style: italic; font-weight: 500; font-size: .95rem; opacity: .85; }
.act--join { background: var(--navy); border-color: var(--navy); color: #fff; }
.act--join:hover { background: var(--navy-2); }
.act--help { background: var(--sage-soft); border-color: var(--sage); color: #2f5443; }
.act--help:hover { background: #d6e6dc; }
.modal__error { color: #b0384d; font-weight: 700; margin: 12px 0 0; }
.modal__error:empty { display: none; }
.rform__kind { font-family: var(--mincho); font-weight: 800; color: var(--navy); font-size: 1.2rem; margin: 0; }
.rform__kind small { display: block; font-family: var(--gothic); font-weight: 400; font-size: .85rem; color: var(--muted); }
.rform__note { font-size: .82rem; color: var(--muted); margin: 0; }
.rform__btns { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.rdone { text-align: center; padding: 20px 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.field__hint { font-size: .82rem; color: var(--muted); margin: .35rem 0 0; }
.done .btn { margin: 6px; }
