/* Shared styles for jife.com content pages (guides). Colours and type follow brand/tokens.css. */
:root {
  --paper: #F6F7F2; --white: #FFFFFF; --ink: #0F1E3D; --soft: #3D4C73;
  --blue: #1E4BD2; --pale: #E3ECFC; --red: #D8331B;
  --sans: 'Instrument Sans', 'Helvetica Neue', Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Noto Sans JP', Meiryo, sans-serif;
  --display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --mincho: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif JP', serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; }
a { color: var(--blue); }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
[lang="ja"] { font-family: var(--sans); }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: clamp(16px, 4vw, 40px); padding-right: clamp(16px, 4vw, 40px); }

/* Header */
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 28px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--ink); text-decoration: none; }
.seal { width: 38px; height: 38px; border-radius: 8px; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--mincho); font-weight: 800; font-size: 24px; line-height: 1; }
.word { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: -0.03em; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 24px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; }
.site-nav a.cta { padding: 0 18px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; }

/* Breadcrumb and article header */
.crumbs { font-size: 14px; color: var(--soft); margin: 8px 0 0; }
.crumbs a { color: var(--soft); }
.article-head { padding: 28px 0 8px; max-width: 820px; }
.kicker { margin: 0; display: flex; align-items: baseline; gap: 12px; color: var(--blue); }
.kicker .ja { font-family: var(--mincho); font-weight: 800; font-size: 20px; letter-spacing: 0.15em; }
.kicker .en { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
h1 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.08; letter-spacing: -0.02em; margin: 12px 0 16px; text-wrap: balance; }
.lede { font-size: 20px; line-height: 1.55; color: var(--soft); margin: 0 0 14px; text-wrap: pretty; }
.meta { font-size: 14px; color: var(--soft); margin: 0; }

/* Layout */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; padding: 24px 0 72px; }
@media (max-width: 960px) { .article-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } .side { order: 2; } }
.side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 960px) { .side { position: static; } }

.in-short { background: var(--white); border: 2px solid var(--ink); border-radius: 14px; padding: 20px 24px; margin: 0 0 32px; }
.prose .in-short h2 { font-family: var(--sans); font-size: 14px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 8px; color: var(--red); }
.in-short ul { margin: 0; padding-left: 20px; }
.in-short li { margin: 6px 0; }

.toc { background: var(--pale); border-radius: 14px; padding: 18px 20px; font-size: 15px; }
.toc h2 { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 18px; }
.toc li { margin: 6px 0; }
.toc a { color: var(--ink); }

/* Prose */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -0.01em; margin: 48px 0 12px; scroll-margin-top: 16px; }
.prose h3 { font-size: 21px; line-height: 1.3; margin: 32px 0 8px; scroll-margin-top: 16px; }
.prose p, .prose li { color: #24335A; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 24px 0; padding: 4px 20px; border-left: 4px solid var(--red); background: var(--white); border-radius: 0 10px 10px 0; }
.table-wrap { overflow-x: auto; margin: 20px 0; border: 2px solid var(--ink); border-radius: 12px; background: var(--white); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--pale); }
.prose th { background: var(--pale); font-weight: 700; color: var(--ink); white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose code { font-size: 0.92em; background: var(--pale); padding: 1px 5px; border-radius: 4px; }

/* FAQ, sources, related */
.block-title { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; margin: 56px 0 12px; }
.faq details { border-top: 2px solid var(--ink); padding: 16px 0; }
.faq details:last-child { border-bottom: 2px solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; margin-left: 16px; color: var(--red); font-weight: 800; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: 10px 0 0; color: var(--soft); }
.sources { font-size: 15px; color: var(--soft); }
.sources li { margin: 4px 0; overflow-wrap: anywhere; }
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 16px; margin-top: 12px; }

/* Cards (related + guides index) */
.card { display: flex; flex-direction: column; background: var(--white); border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; color: var(--ink); text-decoration: none; }
.card:hover { color: var(--ink); transform: translateY(-2px); }
.card img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-bottom: 2px solid var(--ink); }
.card .card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.card .card-cat { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.card .card-title { font-weight: 800; font-size: 18px; line-height: 1.3; }
.card .card-desc { font-size: 15px; color: var(--soft); line-height: 1.5; }

/* Sign-up box */
.signup-box { background: var(--blue); color: #fff; border-radius: 16px; padding: 24px; }
.signup-box h2 { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.2; margin: 0 0 8px; }
.signup-box p { margin: 0 0 12px; color: var(--pale); font-size: 15px; }
.signup-box label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.signup-box input[type=email] { width: 100%; height: 48px; padding: 0 14px; border: 2px solid #fff; border-radius: 10px; background: var(--blue); color: #fff; font: inherit; font-size: 16px; }
.signup-box input::placeholder { color: #D6E2FF; }
.signup-box button { margin-top: 10px; width: 100%; height: 48px; border: 0; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.signup-box button[disabled] { opacity: 0.6; cursor: wait; }
.signup-box .jife-status { margin: 10px 0 0; font-weight: 700; color: #fff; min-height: 1px; }
.signup-box .small { font-size: 13px; margin: 10px 0 0; color: var(--pale); }
.signup-box a { color: #fff; }
.jife-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.pin-save { background: var(--white); border: 2px solid var(--ink); border-radius: 16px; padding: 16px; text-align: center; font-size: 14px; }
.pin-save img { border-radius: 10px; display: block; margin: 0 auto 12px; }
.pin-save a.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 10px; background: var(--red); color: #fff; font-weight: 700; text-decoration: none; }

/* Guides index */
.guides-head { padding: 32px 0 8px; max-width: 820px; }
.guide-group { padding: 24px 0 8px; }
.guide-group h2 { font-family: var(--display); font-weight: 800; font-size: 28px; margin: 0 0 16px; display: flex; align-items: baseline; gap: 12px; }
.guide-group h2 .ja { font-family: var(--mincho); color: var(--blue); font-size: 20px; letter-spacing: 0.15em; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 20px; }

/* Footer */
.site-footer { border-top: 2px solid var(--ink); margin-top: 24px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; padding-top: 28px; padding-bottom: 36px; font-size: 14px; color: var(--soft); }
.site-footer a { color: inherit; }
.site-footer .reg { flex-basis: 100%; font-size: 13px; margin: 0; }
