/* 招待状のコラム（resources/views/columns/_invitation_layout.blade.php）。
   招待状のLP（lp-invitation.css）と同じ考え方：生成りの紙と墨・大きな字・左右非対称・色は金を1つ。
   ⚠ ぼかし球・グラデーションのボタン・光る演出・写真への filter は置かない。
   ⚠ 読ませる小さな字に金（--gold）をそのまま使わない（紙の上で薄くて読めない）。字には --gold-text。 */
:root {
  --paper: #f6f1e8; --paper-2: #efe8db; --ink: #25221e; --ink-soft: #5b554c; --line: #d8cfbf;
  --gold: #b0895a; --gold-text: #7d5d36; --white: #fffdf9;
  --display: "Cormorant Garamond", "Times New Roman", serif;
  --mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Meiryo", sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
}
.ci, .ci * { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.ci { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 2; overflow-x: hidden; }
.ci img { max-width: 100%; height: auto; display: block; }
.ci :where(a) { color: inherit; }
.ci :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[id] { scroll-margin-top: 84px; }

.ci-progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; }
.ci-progress i { display: block; width: 0; height: 100%; background: var(--ink); }

/* ── 上の帯 ── */
.ci-bar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 1.6rem; padding: .8rem var(--gutter); background: color-mix(in srgb, var(--paper) 94%, transparent); border-bottom: 1px solid var(--line); }
.ci-bar__logo { font-family: var(--display); font-size: 1.45rem; letter-spacing: .04em; text-decoration: none; margin-right: auto; }
.ci-bar__nav { display: flex; gap: 1.4rem; font-size: .82rem; }
.ci-bar__nav a { text-decoration: none; }
.ci-bar__nav a:hover { text-decoration: underline; text-underline-offset: .35em; }
.ci-bar__cta, .ci-btn { display: inline-block; padding: .62rem 1.4rem; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper); font-size: .82rem; font-weight: 700; text-decoration: none; line-height: 1.5; transition: background .25s, color .25s; }
.ci-bar__cta:hover, .ci-btn:hover { background: transparent; color: var(--ink); }
.ci-btn { padding: 1rem 2.2rem; font-size: .95rem; }
@media (max-width: 560px) { .ci-bar__nav { display: none; } }

.ci-eyebrow { margin: 0 0 1.2rem; font-family: var(--display); font-style: italic; font-size: 1rem; letter-spacing: .1em; color: var(--gold-text); }
.ci-eyebrow a { text-decoration: none; }

/* ── 表紙 ── */
.ci-hero { position: relative; display: grid; gap: 2.4rem; padding: clamp(2.4rem, 7vw, 5.5rem) var(--gutter) clamp(2.6rem, 6vw, 5rem); border-bottom: 1px solid var(--ink); overflow: hidden; }
.ci-hero__title { margin: 0; font-family: var(--mincho); font-weight: 500; font-size: clamp(2rem, 6.6vw, 4.4rem); line-height: 1.32; letter-spacing: .02em; word-break: keep-all; overflow-wrap: anywhere; }
.ci-hero__title em { font-style: normal; display: block; font-family: var(--sans); font-size: clamp(.85rem, 1.6vw, 1.05rem); font-weight: 500; letter-spacing: .14em; color: var(--ink-soft); margin-bottom: 1rem; }
.ci-hero__lead { max-width: 34rem; margin: 1.6rem 0 0; font-size: 1rem; color: var(--ink-soft); }
.ci-hero__meta { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; margin: 1.6rem 0 0; font-size: .78rem; color: var(--ink-soft); }
@media (min-width: 561px) { .ci-hero__meta > * + *::before { content: "／"; margin-right: 1.4rem; color: var(--line); } }
.ci-hero__stage { position: relative; height: clamp(300px, 78vw, 560px); }
.ci-hero__phone { position: absolute; width: clamp(150px, 40vw, 270px); border-radius: 22px; border: 1px solid var(--ink); box-shadow: 0 30px 60px -30px rgba(37, 34, 30, .45); }
.ci-hero__phone--a { left: 50%; top: 0; transform: translateX(-50%); z-index: 2; }
.ci-hero__phone--b { left: 50%; top: 9%; transform: translateX(-118%) rotate(-5deg); }
.ci-hero__phone--c { left: 50%; top: 9%; transform: translateX(18%) rotate(5deg); }
.ci-hero__side { display: none; }
@media (min-width: 960px) {
  .ci-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; min-height: min(86vh, 760px); padding-right: calc(var(--gutter) + 3rem); }
  .ci-hero__stage { height: 100%; min-height: 540px; }
  .ci-hero__phone { width: clamp(200px, 19vw, 290px); }
  .ci-hero__side { display: block; position: absolute; top: clamp(2.4rem, 7vw, 5.5rem); right: var(--gutter); margin: 0; writing-mode: vertical-rl; font-family: var(--mincho); font-size: .9rem; letter-spacing: .5em; color: var(--ink-soft); white-space: nowrap; }
}

/* ── 本文の骨組み ── */
.ci-wrap { display: grid; gap: 2rem; padding: clamp(2rem, 5vw, 4rem) var(--gutter) clamp(3rem, 7vw, 6rem); }
.ci-body { min-width: 0; max-width: 46rem; }
@media (min-width: 1024px) {
  .ci-wrap { grid-template-columns: 250px minmax(0, 46rem); column-gap: clamp(2.5rem, 6vw, 6rem); justify-content: center; }
  .ci-toc { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; }
}

.ci-toc summary { font-family: var(--display); font-style: italic; font-size: 1.05rem; letter-spacing: .08em; color: var(--gold-text); cursor: pointer; padding: .2rem 0 .7rem; border-bottom: 1px solid var(--ink); list-style: none; }
.ci-toc summary::-webkit-details-marker { display: none; }
.ci-toc summary::after { content: "＋"; float: right; font-style: normal; font-family: var(--sans); font-size: .8rem; }
.ci-toc details[open] summary::after { content: "−"; }
.ci-toc ol { margin: 0; padding: .6rem 0 0; list-style: none; counter-reset: toc; }
.ci-toc li { counter-increment: toc; border-bottom: 1px solid var(--line); }
.ci-toc li a { display: flex; gap: .7rem; padding: .62rem 0; font-size: .82rem; line-height: 1.6; text-decoration: none; color: var(--ink-soft); }
.ci-toc li a::before { content: counter(toc, decimal-leading-zero); font-family: var(--display); font-size: .9rem; color: var(--gold-text); }
.ci-toc li a:hover, .ci-toc li a.is-on { color: var(--ink); }
.ci-toc li a.is-on { font-weight: 700; }
.ci-toc__cta { display: none; }
@media (min-width: 1024px) {
  .ci-toc summary { pointer-events: none; }
  .ci-toc summary::after { content: none; }
  .ci-toc__cta { display: grid; grid-template-columns: 64px 1fr; gap: .9rem; align-items: center; margin-top: 1.4rem; padding: .9rem; background: var(--ink); color: var(--paper); text-decoration: none; font-size: .74rem; line-height: 1.7; }
  .ci-toc__cta img { border-radius: 6px; }
  .ci-toc__cta b { display: block; font-family: var(--mincho); font-size: .95rem; font-weight: 500; }
}

/* ── 先に答え ── */
.ci-points { padding: clamp(1.4rem, 4vw, 2.2rem); background: var(--ink); color: var(--paper); }
.ci-points h2 { margin: 0 0 1rem; font-family: var(--display); font-style: italic; font-weight: 400; font-size: 1.25rem; letter-spacing: .08em; color: #d9bd94; }
.ci-points ul { margin: 0; padding: 0; list-style: none; }
.ci-points li { display: grid; gap: .1rem; padding: .85rem 0; border-top: 1px solid rgba(246, 241, 232, .22); font-size: .93rem; line-height: 1.8; }
.ci-points li b { font-family: var(--mincho); font-weight: 500; font-size: 1.02rem; }
.ci-points li span { color: rgba(246, 241, 232, .82); }
@media (min-width: 640px) { .ci-points li { grid-template-columns: 11rem 1fr; gap: 1.2rem; } }
.ci-disclosure { margin: 1.2rem 0 0; padding: .9rem 1rem; border: 1px solid var(--line); font-size: .78rem; line-height: 1.8; color: var(--ink-soft); }

/* ── 見出しと地の文 ── */
.ci-sec { margin-top: clamp(3.4rem, 9vw, 6rem); }
.ci-no { margin: 0; font-family: var(--display); font-size: clamp(2.6rem, 8vw, 4.2rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold); letter-spacing: .02em; }
.ci-sec > h2 { margin: .5rem 0 1.4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--ink); font-family: var(--mincho); font-weight: 500; font-size: clamp(1.45rem, 4.6vw, 2.1rem); line-height: 1.5; letter-spacing: .02em; word-break: keep-all; overflow-wrap: anywhere; }
.ci-body h3 { margin: 2.6rem 0 .8rem; padding-left: .9rem; border-left: 2px solid var(--gold); font-family: var(--mincho); font-weight: 600; font-size: 1.18rem; line-height: 1.6; }
.ci-body h4 { margin: 1.6rem 0 .4rem; font-size: .95rem; font-weight: 700; }
.ci-body p { margin: 0 0 1.1rem; }
.ci-body p.ci-lead { font-family: var(--mincho); font-size: 1.12rem; line-height: 2; }
.ci-body strong { font-weight: 700; background: linear-gradient(transparent 68%, rgba(176, 137, 90, .28) 68%); }
.ci-body :where(p, li, td) a { color: var(--gold-text); text-underline-offset: .3em; }
.ci-body ul, .ci-body ol { margin: 0 0 1.2rem; padding-left: 1.4em; }
.ci-body li { margin-bottom: .35rem; }
.ci-body li::marker { color: var(--gold-text); }

/* ── 表 ── */
.ci-scroll { margin: 1.4rem calc(var(--gutter) * -1) 1.6rem; padding: 0 var(--gutter); overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (min-width: 1024px) { .ci-scroll { margin-inline: 0; padding: 0; } }
.ci-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .86rem; line-height: 1.7; background: var(--white); }
.ci-table--wide { min-width: 860px; }
.ci-table th, .ci-table td { padding: .8rem .9rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.ci-table thead th { background: var(--ink); color: var(--paper); font-weight: 500; font-size: .78rem; letter-spacing: .06em; border-color: var(--ink); white-space: nowrap; }
.ci-table tbody th { background: var(--paper-2); font-weight: 700; white-space: nowrap; }
.ci-table .is-own th, .ci-table .is-own td { background: #f3e9d8; }
.ci-table .is-yes { font-weight: 700; }
.ci-cap { margin: -.6rem 0 1.6rem; font-size: .76rem; line-height: 1.8; color: var(--ink-soft); }

/* ── 写真（本物の招待状） ── */
.ci-fig { margin: 2rem 0; }
.ci-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.6rem, 2.4vw, 1.4rem); padding: clamp(1.2rem, 4vw, 2.2rem); background: var(--paper-2); }
.ci-shots--2 { grid-template-columns: repeat(2, 1fr); max-width: 30rem; }
.ci-shots--5 { grid-template-columns: repeat(5, 1fr); }
.ci-shots img { border-radius: clamp(8px, 2vw, 16px); border: 1px solid var(--ink); }
.ci-shots > :nth-child(even) { margin-top: 1.6rem; }
.ci-fig--pc img { border: 1px solid var(--ink); }
.ci-fig figcaption { margin-top: .7rem; font-size: .76rem; color: var(--ink-soft); line-height: 1.8; }
@media (max-width: 560px) { .ci-shots--5 { grid-template-columns: repeat(3, 1fr); } .ci-shots--5 > :nth-child(n+4) { display: none; } }

/* ── 良い点・気をつける点 ── */
.ci-cols { display: grid; gap: 1px; margin: 1.6rem 0; background: var(--ink); border: 1px solid var(--ink); }
.ci-cols > div { padding: 1.4rem 1.3rem; background: var(--white); }
.ci-cols h4 { margin: 0 0 .8rem; font-family: var(--display); font-style: italic; font-weight: 400; font-size: 1.15rem; letter-spacing: .08em; color: var(--gold-text); }
.ci-cols ul { margin: 0; font-size: .92rem; }
@media (min-width: 640px) { .ci-cols { grid-template-columns: 1fr 1fr; } }

/* ── 囲み ── */
.ci-note { margin: 1.6rem 0; padding: 1.3rem 1.4rem; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gold); font-size: .93rem; }
.ci-note > :last-child { margin-bottom: 0; }
.ci-note h4 { margin-top: 0; }

/* ── 番号つきの決まり・手順 ── */
.ci-rules { margin: 1.6rem 0; padding: 0; list-style: none; counter-reset: rule; border-top: 1px solid var(--ink); }
.ci-rules > li { counter-increment: rule; position: relative; margin: 0; padding: 1.2rem 0 1.2rem 3.6rem; border-bottom: 1px solid var(--line); }
.ci-rules > li::before { content: counter(rule, decimal-leading-zero); position: absolute; left: 0; top: .9rem; font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--gold-text); }
.ci-rules > li > b { display: block; font-family: var(--mincho); font-weight: 600; font-size: 1.05rem; }
.ci-rules > li > span { display: block; font-size: .92rem; color: var(--ink-soft); }

/* ── 時期の図 ── */
.ci-timeline { margin: 2rem 0; padding: 0; list-style: none; border-left: 1px solid var(--ink); }
.ci-timeline li { position: relative; margin: 0; padding: 0 0 1.8rem 1.6rem; }
.ci-timeline li::before { content: ""; position: absolute; left: -5px; top: .75rem; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1px solid var(--ink); }
.ci-timeline li.is-key::before { background: var(--gold); border-color: var(--gold); }
.ci-timeline time { display: block; font-family: var(--display); font-size: 1.5rem; line-height: 1.5; }
.ci-timeline time small { font-family: var(--sans); font-size: .78rem; margin-left: .5rem; color: var(--ink-soft); }
.ci-timeline b { display: block; font-family: var(--mincho); font-weight: 600; font-size: 1.05rem; }
.ci-timeline span { display: block; font-size: .9rem; color: var(--ink-soft); }

/* ── 文例 ── */
.ci-sample { margin: 1.2rem 0 1.6rem; border: 1px solid var(--ink); background: var(--white); }
.ci-sample__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem .9rem; background: var(--ink); color: var(--paper); font-size: .78rem; letter-spacing: .06em; }
.ci-sample__head button { border: 1px solid rgba(246, 241, 232, .6); background: none; color: var(--paper); font: inherit; font-size: .72rem; padding: .2rem .8rem; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.ci-sample__head button:hover { background: var(--paper); color: var(--ink); }
.ci-sample__text { margin: 0; padding: 1.2rem 1.2rem 1.3rem; font-size: .93rem; line-height: 2.1; white-space: pre-line; }
.ci-sample--letter .ci-sample__text { font-family: var(--mincho); font-size: 1rem; background: var(--paper); }
.ci-sample--chat .ci-sample__text { margin: 1.1rem 1.1rem 1.2rem auto; width: fit-content; max-width: min(92%, 30rem); padding: .9rem 1.1rem; background: #e9f3df; border-radius: 16px 16px 4px 16px; line-height: 1.9; }
.ci-sample__memo { margin: 0; padding: .7rem 1.2rem; border-top: 1px solid var(--line); font-size: .78rem; color: var(--ink-soft); }

/* ── 確かめる一覧 ── */
.ci-check { margin: 1.4rem 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.ci-check li { position: relative; margin: 0; padding: .8rem 0 .8rem 2.2rem; border-bottom: 1px solid var(--line); font-size: .95rem; }
.ci-check li::before { content: ""; position: absolute; left: .2rem; top: 1.25rem; width: 14px; height: 14px; border: 1px solid var(--ink); }
.ci-check li::after { content: ""; position: absolute; left: .42rem; top: 1.2rem; width: 5px; height: 10px; border: solid var(--gold-text); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ── 手数料の試算（横棒の図） ── */
.ci-bars { margin: 1.6rem 0 .6rem; padding: 1.4rem 1.3rem; background: var(--white); border: 1px solid var(--ink); }
.ci-bars h4 { margin: 0 0 .2rem; font-family: var(--mincho); font-weight: 600; font-size: 1.05rem; }
.ci-bars > p { margin: 0 0 1rem; font-size: .78rem; color: var(--ink-soft); }
.ci-bars dl { margin: 0; }
.ci-bars dl > div { display: grid; grid-template-columns: 1fr auto; gap: .1rem 1rem; padding: .55rem 0; border-top: 1px solid var(--line); font-size: .86rem; }
.ci-bars dt { font-weight: 700; }
.ci-bars dt small { font-weight: 400; color: var(--ink-soft); margin-left: .4rem; }
.ci-bars dd { margin: 0; font-family: var(--display); font-size: 1.25rem; line-height: 1.5; font-variant-numeric: lining-nums; }
.ci-bars dd small { font-family: var(--sans); font-size: .72rem; margin-left: .15rem; }
.ci-bars i { grid-column: 1 / -1; display: block; height: 8px; width: var(--w); min-width: 2px; background: var(--ink); }
.ci-bars .is-own i { background: var(--gold); }

/* ── サービスの札 ── */
.ci-card { margin: 1.6rem 0; padding: 1.5rem 1.4rem; background: var(--white); border: 1px solid var(--ink); }
.ci-card.is-own { border-width: 2px; }
.ci-card h3 { margin: 0 0 .2rem; padding: 0; border: 0; font-size: 1.35rem; }
.ci-card__kind { margin: 0 0 1rem; font-size: .78rem; color: var(--ink-soft); }
.ci-card dl { margin: 0 0 1rem; border-top: 1px solid var(--line); }
.ci-card dl > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: .8rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .88rem; line-height: 1.8; }
.ci-card dt { color: var(--ink-soft); }
.ci-card dd { margin: 0; }
.ci-card__fit { margin: 0; font-size: .9rem; }
.ci-card__fit b { color: var(--gold-text); }
.ci-card__src { margin: .8rem 0 0; font-size: .74rem; color: var(--ink-soft); }

/* ── 途中の案内 ── */
.ci-cta { display: grid; gap: 1.4rem; align-items: center; margin: 2.6rem 0; padding: clamp(1.4rem, 4vw, 2.2rem); background: var(--ink); color: var(--paper); }
.ci-cta img { width: 130px; border-radius: 12px; border: 1px solid rgba(246, 241, 232, .5); justify-self: center; }
.ci-cta h4 { margin: 0 0 .5rem; font-family: var(--mincho); font-weight: 500; font-size: 1.4rem; line-height: 1.5; }
.ci-cta p { margin: 0 0 1.1rem; font-size: .88rem; color: rgba(246, 241, 232, .85); }
.ci-cta a { display: inline-block; padding: .8rem 1.8rem; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: .88rem; font-weight: 700; text-decoration: none; }
@media (min-width: 640px) { .ci-cta { grid-template-columns: 130px 1fr; } }

/* ── よくある質問 ── */
.ci-faq { border-top: 1px solid var(--ink); }
.ci-faq details { border-bottom: 1px solid var(--line); }
.ci-faq summary { position: relative; padding: 1.1rem 2.4rem 1.1rem 0; font-family: var(--mincho); font-weight: 600; font-size: 1.02rem; line-height: 1.7; cursor: pointer; list-style: none; }
.ci-faq summary::-webkit-details-marker { display: none; }
.ci-faq summary::after { content: "＋"; position: absolute; right: .2rem; top: 1.1rem; font-family: var(--sans); font-weight: 400; color: var(--gold-text); }
.ci-faq details[open] summary::after { content: "−"; }
.ci-faq details p { margin: 0 0 1.2rem; font-size: .93rem; color: var(--ink-soft); }

/* ── 続けて読む ── */
.ci-next { display: grid; gap: 1px; margin-top: 1.4rem; background: var(--ink); border: 1px solid var(--ink); }
.ci-next a { display: block; padding: 1.2rem 1.3rem; background: var(--white); text-decoration: none; }
.ci-next a:hover { background: var(--paper-2); }
.ci-next small { display: block; font-family: var(--display); font-style: italic; letter-spacing: .08em; color: var(--gold-text); }
.ci-next b { font-family: var(--mincho); font-weight: 600; font-size: 1.05rem; line-height: 1.6; }
@media (min-width: 640px) { .ci-next { grid-template-columns: 1fr 1fr; } }

/* ── しめ ── */
.ci-end { padding: clamp(3rem, 8vw, 6rem) var(--gutter); background: var(--ink); color: var(--paper); text-align: left; overflow: hidden; }
.ci-end .ci-eyebrow { color: #d9bd94; }
.ci-end__covers { display: flex; gap: clamp(.6rem, 1.6vw, 1.2rem); margin: 0 calc(var(--gutter) * -1) clamp(2.4rem, 6vw, 4rem); padding: 0 var(--gutter); overflow: hidden; }
.ci-end__covers img { flex: 0 0 clamp(88px, 13vw, 170px); border-radius: clamp(8px, 1.2vw, 14px); border: 1px solid rgba(246, 241, 232, .45); }
.ci-end__covers img:nth-child(even) { margin-top: 1.4rem; }
.ci-end__title { margin: 0 0 1rem; font-family: var(--mincho); font-weight: 500; font-size: clamp(2rem, 6.4vw, 4rem); line-height: 1.35; }
.ci-end__lead { max-width: 32rem; margin: 0 0 1.8rem; font-size: .95rem; color: rgba(246, 241, 232, .85); }
.ci-end .ci-btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.ci-end .ci-btn:hover { background: transparent; color: var(--paper); }

.ci-foot { display: grid; gap: 1.2rem; padding: 2.6rem var(--gutter) 3rem; font-size: .8rem; color: var(--ink-soft); }
.ci-foot__logo { font-family: var(--display); font-size: 1.4rem; color: var(--ink); text-decoration: none; }
.ci-foot nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.ci-foot nav a { text-decoration: none; }
.ci-foot nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
.ci-foot p { margin: 0; }

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