/* CLT Trust — site styles (mobile first) */
:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #efebe2;
  --ink: #14213a;
  --muted: #5e6675;
  --line: #e2ddd2;
  --navy: #142a4c;
  --navy-2: #1f4078;
  --navy-soft: #e8edf6;
  --gold: #b07d27;
  --gold-2: #946618;
  --gold-soft: #f7efdf;
  --green: #2c7a57;
  --green-soft: #e4f2ea;
  --amber: #9c6410;
  --amber-soft: #fbf0dc;
  --red: #b33a2b;
  --red-soft: #fbe9e6;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 33, 58, .06), 0 6px 20px rgba(20, 33, 58, .06);
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", YuGothic, Meiryo, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.8;
  font-feature-settings: "palt" 1;
}
html[lang="en"] body { line-height: 1.65; font-feature-settings: normal; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { line-height: 1.45; margin: 0 0 .6em; letter-spacing: .01em; }
h1 { font-size: 1.65rem; }
h2 { font-size: 1.32rem; }
h3 { font-size: 1.06rem; }
p { margin: 0 0 1em; }
small, .small { font-size: .86rem; }
.muted { color: var(--muted); }
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.page { padding: 28px 0 56px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
@media (max-width: 759px) { .hide-sm { display: none !important; } }
@media (min-width: 760px) { .hide-lg { display: none !important; } }

/* header */
.notice-bar { background: var(--navy); color: #fff; font-size: .86rem; text-align: center; padding: 6px 16px; }
.notice-bar a { color: #f3d9a6; }
.site-header { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(6px); }
.site-header .container { display: flex; align-items: center; gap: 10px; height: 64px; }
.logo { flex: none; display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 1.18rem; letter-spacing: .02em; white-space: nowrap; }
.logo svg { width: 32px; height: 32px; flex: none; }
.logo .trust { color: var(--gold); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; white-space: nowrap; }
.nav a.navlink { text-decoration: none; color: var(--ink); padding: 8px 10px; border-radius: 10px; font-size: .92rem; }
.nav a.navlink:hover { background: var(--surface-2); }
.badge-dot { display: inline-block; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: .72rem; text-align: center; font-weight: 700; vertical-align: 1px; }

/* language chip */
.lang { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 12.5px; line-height: 1; white-space: nowrap; flex-shrink: 0; }
.lang a, .lang span { display: inline-block; padding: 7px 11px; border-radius: 999px; font-weight: 700; text-decoration: none; color: var(--muted); }
.lang .on { background: var(--navy); color: #fff; }
.lang a:hover, .lang a:focus-visible { background: var(--navy-soft); color: var(--navy); }
@media (max-width: 480px) { .lang a, .lang span { padding: 6px 8px; } .site-header .container { gap: 6px; } .logo { font-size: 1.05rem; } .logo svg { width: 28px; height: 28px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 20px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: .96rem; line-height: 1.3; text-decoration: none; cursor: pointer; transition: background .15s, box-shadow .15s, color .15s; text-align: center; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-2); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); color: var(--navy); }
.btn-danger { background: #fff; color: var(--red); border-color: #e9c2bc; }
.btn-danger:hover { background: var(--red-soft); color: var(--red); }
.btn-sm { padding: 7px 13px; font-size: .86rem; border-radius: 10px; }
.btn-lg { padding: 14px 26px; font-size: 1.04rem; }
.btn-block { display: flex; width: 100%; }
button.btn:disabled { opacity: .55; cursor: default; }

/* cards & tags */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 22px; }
.card h3 { margin-bottom: .35em; }
a.card { color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
a.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20,33,58,.06), 0 12px 28px rgba(20,33,58,.09); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink); font-size: .78rem; font-weight: 600; line-height: 1.7; white-space: nowrap; }
.tag-navy { background: var(--navy-soft); color: var(--navy); }
.tag-gold { background: var(--gold-soft); color: var(--gold-2); }
.tag-green { background: var(--green-soft); color: var(--green); }
.tag-amber { background: var(--amber-soft); color: var(--amber); }
.tag-red { background: var(--red-soft); color: var(--red); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
.notice { background: var(--gold-soft); color: #5b4113; border-radius: 12px; padding: 12px 16px; font-size: .93rem; }
.notice-navy { background: var(--navy-soft); color: var(--navy); }
.notice-red { background: var(--red-soft); color: var(--red); }

/* flash */
.flash { list-style: none; padding: 0; margin: 16px 0 0; }
.flash li { padding: 12px 16px; border-radius: 12px; margin-bottom: 8px; background: var(--navy-soft); color: var(--navy); font-size: .94rem; }
.flash li.success { background: var(--green-soft); color: var(--green); }
.flash li.warning { background: var(--amber-soft); color: var(--amber); }
.flash li.error { background: var(--red-soft); color: var(--red); }

/* hero */
.hero { background: radial-gradient(1200px 400px at 85% -10%, #2a4f8a 0%, rgba(42,79,138,0) 60%), linear-gradient(160deg, #10223f 0%, #183461 70%, #1c3d70 100%); color: #fff; padding: 56px 0 64px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 460px; height: 460px; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 0 0 60px rgba(255,255,255,.02), 0 0 0 120px rgba(255,255,255,.015); pointer-events: none; }
.hero .eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .14em; color: #f0d59f; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.55rem, 6.4vw, 2.9rem); line-height: 1.38; margin-bottom: 18px; letter-spacing: .02em; }
html[lang="en"] .hero h1 { font-family: Georgia, "Times New Roman", serif; line-height: 1.2; }
.hero .lead { font-size: 1.06rem; color: #dfe6f2; max-width: 640px; margin-bottom: 30px; }
.entrances { display: grid; gap: 14px; position: relative; z-index: 1; }
@media (min-width: 760px) { .entrances { grid-template-columns: 1fr 1fr; max-width: 900px; } }
.entrance { display: block; background: #fff; color: var(--ink); border-radius: 16px; padding: 22px 22px 20px; text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.18); border-top: 4px solid var(--gold); transition: transform .15s; }
.entrance.alt { border-top-color: var(--navy-2); }
.entrance:hover { transform: translateY(-3px); color: var(--ink); }
.entrance .who { font-size: .8rem; font-weight: 700; color: var(--gold-2); letter-spacing: .06em; }
.entrance.alt .who { color: var(--navy-2); }
.entrance h2 { font-size: 1.22rem; margin: 4px 0 6px; }
.entrance p { font-size: .9rem; color: var(--muted); margin: 0 0 12px; }
.entrance .go { font-weight: 700; color: var(--navy); font-size: .94rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; color: #c9d4e8; font-size: .86rem; position: relative; z-index: 1; }
.hero-facts b { color: #fff; }

/* sections */
.section { padding: 52px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 24px; }
.section-head .kicker { font-size: .78rem; letter-spacing: .14em; color: var(--gold-2); font-weight: 700; text-transform: uppercase; }
.section-head h2 { font-size: 1.5rem; margin: 4px 0 6px; }
.section-head p { color: var(--muted); margin: 0; }
.steps { counter-reset: step; display: grid; gap: 14px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: relative; }
.section-alt .step { background: var(--bg); }
.step::before { counter-increment: step; content: counter(step); display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: .9rem; align-items: center; justify-content: center; margin-bottom: 10px; }
.step h3 { font-size: 1rem; margin-bottom: 4px; }
.step p { font-size: .88rem; color: var(--muted); margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 600; }
.chip:hover { border-color: var(--navy-2); color: var(--navy); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip .n { color: var(--muted); font-weight: 500; font-size: .8rem; }
.chip.on .n { color: #c9d4e8; }
.field-card { padding: 18px 20px; }
.field-card h3 { font-size: 1rem; margin-bottom: 2px; }
.field-card p { font-size: .86rem; color: var(--muted); margin: 0; }
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; border-radius: 18px; padding: 30px 26px; display: grid; gap: 16px; align-items: center; }
@media (min-width: 760px) { .cta-band { grid-template-columns: 1fr auto; padding: 34px 38px; } }
.cta-band h2 { margin: 0 0 4px; font-size: 1.32rem; }
.cta-band p { margin: 0; color: #d6deec; font-size: .94rem; }

/* experts */
.expert-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; height: 100%; }
.expert-head { display: flex; gap: 12px; align-items: center; }
.avatar { width: 54px; height: 54px; border-radius: 14px; flex: none; object-fit: cover; background: var(--navy-soft); color: var(--navy); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; border: 1px solid var(--line); }
.avatar-lg { width: 96px; height: 96px; border-radius: 20px; font-size: 1.8rem; }
.expert-name { font-weight: 800; font-size: 1.02rem; line-height: 1.4; }
.expert-title { font-size: .82rem; color: var(--muted); line-height: 1.5; }
.expert-card .headline { font-size: .93rem; margin: 0; }
.expert-card .meta { font-size: .8rem; color: var(--muted); margin-top: auto; }
.filters { display: grid; gap: 10px; margin-bottom: 18px; }
@media (min-width: 760px) { .filters { grid-template-columns: 1fr 1fr 1.4fr auto; align-items: end; } }
.filters label { font-size: .8rem; font-weight: 700; color: var(--muted); display: block; margin-bottom: 4px; }
.profile-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.profile-head h1 { margin: 0; }
.dl { display: grid; grid-template-columns: 8.5em 1fr; gap: 8px 14px; font-size: .93rem; margin: 0; }
html[lang="en"] .dl { grid-template-columns: 9.5em 1fr; }
.dl dt { color: var(--muted); font-weight: 600; }
.dl dd { margin: 0; overflow-wrap: anywhere; }
.prose { overflow-wrap: anywhere; }
.prose p { white-space: pre-line; }
.two-col { display: grid; gap: 20px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 320px; align-items: start; } .two-col .side { position: sticky; top: 84px; } }

/* forms */
.form .field { margin-bottom: 18px; }
.form .lbl { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.req { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 6px; background: var(--red-soft); color: var(--red); font-size: .7rem; font-weight: 700; vertical-align: 2px; line-height: 1.7; }
.form input[type=text], .form input[type=email], .form input[type=password], .form input[type=url], .form input[type=number], .form input[type=tel], .form select, .form textarea, .input {
  width: 100%; padding: 11px 13px; border: 1px solid #cfc8ba; border-radius: 10px; background: #fff; font: inherit; font-size: 16px; color: var(--ink); line-height: 1.5;
}
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus, .input:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(31,64,120,.15); }
.help { font-size: .82rem; color: var(--muted); margin-top: 5px; line-height: 1.6; }
.errorlist { list-style: none; padding: 0; margin: 6px 0 0; color: var(--red); font-size: .86rem; font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { margin-top: 6px; width: 18px; height: 18px; flex: none; accent-color: var(--navy); }
.check label { font-weight: 600; font-size: .94rem; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border: 1px solid #d6cfc1; border-radius: 999px; background: #fff; font-size: .9rem; cursor: pointer; user-select: none; }
.choices label:has(input:checked) { background: var(--navy-soft); border-color: var(--navy-2); color: var(--navy); font-weight: 700; }
.choices input { accent-color: var(--navy); margin: 0; }
.form-section { font-size: .8rem; letter-spacing: .1em; color: var(--gold-2); font-weight: 800; text-transform: uppercase; margin: 26px 0 12px; padding-top: 18px; border-top: 1px dashed var(--line); }
.form-section:first-child, .form-section.first { margin-top: 0; padding-top: 0; border-top: 0; }

/* lists */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.list-title { font-weight: 700; text-decoration: none; color: var(--ink); }
.list-title:hover { color: var(--navy-2); }
.list .meta { font-size: .82rem; color: var(--muted); }
.empty { padding: 26px; text-align: center; color: var(--muted); font-size: .92rem; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: .92rem; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--navy); border-bottom-color: var(--gold); }
.panel-title { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.panel-title h2 { margin: 0; font-size: 1.12rem; }

/* messages */
.thread { display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: 88%; padding: 12px 15px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); overflow-wrap: anywhere; }
.bubble.me { align-self: flex-end; background: var(--navy-soft); border-color: #cdd8ec; }
.bubble .who { font-size: .76rem; color: var(--muted); margin-bottom: 3px; }
.bubble .body { white-space: pre-line; font-size: .95rem; }
.proposal-box { border-left: 4px solid var(--gold); }

/* faq */
details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; padding: 15px 0; font-weight: 700; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before { content: "Q"; color: var(--gold); font-weight: 800; margin-right: 10px; }
details.faq[open] summary { border-bottom: 1px dashed var(--line); }
details.faq .a { padding: 12px 0 16px; font-size: .94rem; }
.legal h2 { font-size: 1.1rem; margin-top: 1.8em; }
.legal ol, .legal ul { padding-left: 1.4em; }
.legal li { margin-bottom: .4em; }

/* pagination */
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.pager a, .pager span { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; text-decoration: none; font-size: .9rem; }

/* footer */
.site-footer { background: #0f1f39; color: #b9c4d8; padding: 40px 0 34px; font-size: .88rem; margin-top: 40px; }
.site-footer .logo { color: #fff; }
.site-footer a { color: #dfe6f2; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; gap: 22px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links b { color: #fff; font-size: .8rem; letter-spacing: .08em; margin-bottom: 4px; }
.copyright { border-top: 1px solid rgba(255,255,255,.1); margin-top: 26px; padding-top: 16px; font-size: .8rem; color: #8e9ab0; }
