/* スグペラ公式サイト（sugupera.com）
   変えたら全ページの site.css?v= を1つ上げる（scripts/build_site.py の CSS_V も） */
:root {
  --navy: #14304a;
  --navy-2: #1f4766;
  --orange: #e8572a;
  --orange-soft: #fdeee7;
  --cream: #fbf8f2;
  --paper: #ffffff;
  --ink: #1d2733;
  --ink-2: #4d5a66;
  --line: #e6e0d4;
  --green: #2f9e6a;
  --radius: 16px;
  --wrap: 1080px;
  --read: 720px;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.85; letter-spacing: .02em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-underline-offset: 3px; }
a:hover { color: var(--orange); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.read { max-width: var(--read); margin: 0 auto; padding: 0 16px; }
[lang="en"] { font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, var(--font); letter-spacing: 0; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251, 248, 242, .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: .04em; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand small { display: block; font-size: 10px; font-weight: 600; color: var(--ink-2); letter-spacing: .06em; line-height: 1.2; }
.brand span { line-height: 1.15; }
.header-nav { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 600; }
.header-nav a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.header-nav a:hover, .header-nav a[aria-current="page"] { color: var(--orange); }
.header-cta { background: var(--orange); color: #fff !important; padding: 7px 14px; border-radius: 999px; white-space: nowrap; }
.header-cta:hover { background: #cf4519; }
@media (max-width: 720px) {
  .header-nav .nav-opt { display: none; }
  .header-nav { gap: 12px; }
}
@media (max-width: 420px) {
  .brand small { display: none; }
  .brand { font-size: 17px; }
  .header-nav { font-size: 13px; gap: 10px; }
  .header-cta { padding: 6px 11px; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 800; text-decoration: none; font-size: 16px; line-height: 1.3; }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(232, 87, 42, .28); }
.btn--primary:hover { background: #cf4519; color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn small { font-weight: 600; font-size: 12px; opacity: .9; }

/* hero (top) */
.hero-top { background: linear-gradient(160deg, var(--navy) 0%, #0e2337 100%); color: #fff; overflow: hidden; }
.hero-top .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero-top .eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: #ffd2c2; background: rgba(232, 87, 42, .2); padding: 4px 12px; border-radius: 999px; margin: 0 0 16px; }
.hero-top h1 { font-size: clamp(28px, 4.4vw, 48px); line-height: 1.3; margin: 0 0 18px; letter-spacing: .03em; }
.hero-top h1 em { font-style: normal; color: #ff9b78; }
.hero-top .lead { font-size: 17px; color: #d7e1ea; margin: 0 0 26px; }
.hero-top .cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-top .note { font-size: 13px; color: #a9bccb; margin: 14px 0 0; }
.hero-top .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }
.hero-top .btn--ghost:hover { background: #fff; color: var(--navy); }
.hero-phones { position: relative; display: flex; justify-content: center; gap: 14px; }
.hero-phones .phone { width: 46%; max-width: 220px; }
.hero-phones .phone:nth-child(2) { transform: translateY(28px); }
@media (max-width: 820px) {
  .hero-top .wrap { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 44px; }
  .hero-phones .phone { width: 42%; }
}

.phone { border-radius: 28px; overflow: hidden; border: 6px solid #0b1520; background: #0b1520; box-shadow: 0 18px 40px rgba(0, 0, 0, .28); }
.phone img { width: 100%; }

/* sections */
.section { padding: 64px 0; }
.section--paper { background: var(--paper); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section-head .kicker { color: var(--orange); font-weight: 800; font-size: 13px; letter-spacing: .12em; margin: 0 0 6px; }
.section-head h2 { font-size: clamp(24px, 3.6vw, 34px); line-height: 1.4; margin: 0 0 12px; color: var(--navy); }
.section-head p { color: var(--ink-2); margin: 0; }

.problem-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.problem-list li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; font-weight: 700; color: var(--navy); }
.problem-list li span { display: block; font-size: 28px; margin-bottom: 6px; }
@media (max-width: 720px) { .problem-list { grid-template-columns: 1fr; } }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin: 0 auto 56px; max-width: 920px; }
.feature:last-child { margin-bottom: 0; }
.feature--rev .feature__media { order: 2; }
.feature__media { display: flex; justify-content: center; }
.feature__media .phone { width: 260px; }
.feature__no { color: var(--orange); font-weight: 900; font-size: 14px; letter-spacing: .1em; margin: 0 0 6px; }
.feature h3 { font-size: 24px; line-height: 1.45; color: var(--navy); margin: 0 0 12px; }
.feature p { margin: 0 0 12px; color: var(--ink-2); }
.feature ul { margin: 0; padding-left: 1.2em; color: var(--ink-2); }
@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; gap: 20px; }
  .feature--rev .feature__media { order: 0; }
  .feature__media .phone { width: 210px; }
}

.gojun-demo { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; max-width: 640px; margin: 0 auto; }
.gojun-demo .row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.gojun-demo .chip { padding: 6px 12px; border-radius: 10px; font-weight: 700; font-size: 15px; }
.gojun-demo .chip--ja { background: #eef2f6; color: var(--navy); }
.gojun-demo .chip--en { background: var(--orange-soft); color: #b13a12; }
.gojun-demo .label { font-size: 12px; font-weight: 800; color: var(--ink-2); letter-spacing: .08em; margin: 14px 0 0; }

.price-box { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 820px; margin: 0 auto; }
.price-box > div { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 24px; }
.price-box > div.is-premium { border-color: var(--orange); }
.price-box h3 { margin: 0 0 4px; color: var(--navy); font-size: 20px; }
.price-box .price { font-size: 26px; font-weight: 900; color: var(--orange); margin: 0 0 10px; }
.price-box .price small { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.price-box ul { margin: 0; padding-left: 1.2em; }
@media (max-width: 720px) { .price-box { grid-template-columns: 1fr; } }

.series { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.series li a { display: flex; gap: 14px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-decoration: none; color: var(--ink); height: 100%; }
.series li a:hover { border-color: var(--orange); }
.series img { width: 60px; height: 60px; border-radius: 14px; flex: none; }
.series b { display: block; font-size: 15px; color: var(--navy); line-height: 1.45; }
.series small { display: block; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }

.cast-row { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.cast-row figure { margin: 0; display: flex; gap: 12px; align-items: center; max-width: 320px; }
.cast-row img { width: 72px; height: 72px; border-radius: 50%; flex: none; }
.cast-row figcaption { font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.cast-row b { color: var(--navy); font-size: 15px; }

.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; margin: 0 0 10px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 16px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 22px; color: var(--orange); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 16px; color: var(--ink-2); }
.faq details > div p { margin: 0 0 8px; }

.final-cta { background: var(--navy); color: #fff; text-align: center; }
.final-cta h2 { color: #fff; }
.final-cta p { color: #c9d6e1; }
.final-cta img.icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 18px; }

/* article cards */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.article-card a { display: block; height: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.article-card a:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20, 48, 74, .1); }
.article-card__image { aspect-ratio: 1200 / 630; background: #eee; }
.article-card__image img { width: 100%; height: 100%; object-fit: cover; }
.article-card__body { padding: 14px 16px 16px; }
.article-card__cat { display: inline-block; font-size: 12px; font-weight: 700; color: var(--orange); margin: 0 0 4px; }
.article-card__title { font-size: 16.5px; line-height: 1.55; margin: 0 0 6px; color: var(--navy); }
.article-card__desc { font-size: 13.5px; color: var(--ink-2); margin: 0 0 6px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-card__date { font-size: 12px; color: #8a949d; margin: 0; }
.more-link { text-align: center; margin: 28px 0 0; }

.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; justify-content: center; }
.cat-nav a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; font-size: 14px; font-weight: 600; color: var(--navy); }
.cat-nav a[aria-current="page"], .cat-nav a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* page (blog index / static pages) */
.page-head { padding: 40px 0 8px; text-align: center; }
.page-head h1 { font-size: clamp(26px, 4vw, 36px); color: var(--navy); margin: 0 0 10px; line-height: 1.4; }
.page-head p { color: var(--ink-2); margin: 0 auto; max-width: 680px; }
.breadcrumb { font-size: 13px; color: var(--ink-2); padding: 14px 0 0; }
.breadcrumb a { color: var(--ink-2); }

/* article / doc body */
.article, .doc { padding-top: 8px; padding-bottom: 56px; }
.article h1, .doc h1 { font-size: clamp(24px, 4.2vw, 32px); line-height: 1.5; color: var(--navy); margin: 18px 0 10px; }
.page-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-2); margin: 0 0 18px; }
.page-meta span + span::before { content: "・"; margin-right: 6px; color: #b5bcc3; }
.hero { margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.article h2, .doc h2 { font-size: 22px; line-height: 1.5; color: var(--navy); margin: 48px 0 16px; padding: 0 0 10px; border-bottom: 3px solid var(--navy); position: relative; }
.article h2::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 64px; height: 3px; background: var(--orange); }
.article h3, .doc h3 { font-size: 18px; color: var(--navy); margin: 32px 0 10px; padding-left: 12px; border-left: 4px solid var(--orange); line-height: 1.5; }
.article p, .doc p { margin: 0 0 18px; }
.article ul, .article ol, .doc ul, .doc ol { padding-left: 1.4em; margin: 0 0 18px; }
.article li, .doc li { margin: 0 0 6px; }
.article strong { background: linear-gradient(transparent 62%, #ffe0d3 62%); }
.article table, .doc table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 15px; background: var(--paper); }
.article th, .article td, .doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.article th, .doc th { background: #f2efe8; color: var(--navy); white-space: nowrap; }
.table-scroll { overflow-x: auto; margin: 0 0 20px; }
.table-scroll table { margin: 0; min-width: 520px; }

.keypoints { background: var(--paper); border: 2px solid var(--navy); border-radius: var(--radius); padding: 16px 20px 6px; margin: 0 0 26px; }
.keypoints > p { margin: 0 0 6px; font-weight: 800; color: var(--navy); }
.keypoints ul { margin: 0 0 10px; padding-left: 1.3em; }

/* speech bubbles: hachi = left, pera = right */
.speech { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0; }
.speech--right { flex-direction: row-reverse; }
.speech__avatar { margin: 0; flex: none; width: 64px; text-align: center; }
.speech__avatar img { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--line); background: #f3ead9; }
.speech__avatar figcaption { font-size: 11px; color: var(--ink-2); margin-top: 2px; line-height: 1.3; }
.speech__bubble { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; font-size: 15px; line-height: 1.75; max-width: calc(100% - 80px); }
.speech--hachi .speech__bubble { background: #fff6ea; border-color: #f0d9b8; }
.speech--pera .speech__bubble { background: #eaf5fd; border-color: #c4e0f3; }
.speech__bubble::before { content: ""; position: absolute; top: 20px; left: -8px; width: 14px; height: 14px; background: inherit; border-left: 1px solid; border-bottom: 1px solid; border-color: inherit; transform: rotate(45deg); }
.speech--right .speech__bubble::before { left: auto; right: -8px; border-left: 0; border-bottom: 0; border-right: 1px solid; border-top: 1px solid; border-color: inherit; }

/* phrase card with play button */
.phrase { background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--orange); border-radius: 12px; padding: 12px 16px; margin: 0 0 14px; }
.phrase .en { display: flex; align-items: flex-start; gap: 10px; font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.5; margin: 0; }
.phrase .ja { font-size: 14.5px; color: var(--ink-2); margin: 4px 0 0; }
.phrase .gj { font-size: 13px; color: #8a6a5a; margin: 2px 0 0; }
.phrase .gj::before { content: "語順直訳："; font-weight: 700; }
.say-btn { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--orange-soft); color: var(--orange); cursor: pointer; font-size: 14px; line-height: 30px; padding: 0; margin-top: 1px; }
.say-btn:hover, .say-btn.is-playing { background: var(--orange); color: #fff; }

/* compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.compare__side { background: #f1f4f7; padding: 16px; text-align: center; }
.compare__side--now { background: var(--orange-soft); }
.compare__label { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--ink-2); margin: 0 !important; }
.compare__icon { font-size: 30px; margin: 4px 0 !important; line-height: 1.3; }
.compare__text { font-weight: 800; color: var(--navy); font-size: 17px; margin: 0 !important; }
.compare__sub { font-size: 13px; color: var(--ink-2); margin: 2px 0 0 !important; line-height: 1.6; }

/* tips */
.tips { counter-reset: tip; list-style: none; padding: 0 !important; margin: 0 0 24px !important; }
.tips li { counter-increment: tip; position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 12px 54px; font-weight: 700; color: var(--navy); margin: 0 0 8px !important; }
.tips li::before { content: counter(tip); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: #fff; text-align: center; line-height: 28px; font-weight: 900; font-size: 14px; }

/* app cta */
.app-cta { display: flex; gap: 16px; align-items: flex-start; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 22px; margin: 40px 0 28px; }
.app-cta img { width: 72px; height: 72px; border-radius: 16px; flex: none; }
.app-cta .cta-title { font-weight: 800; font-size: 17px; margin: 0 0 6px; }
.app-cta p { margin: 0 0 12px; color: #d5e0ea; font-size: 15px; }
.app-cta .cta-button { display: inline-block; background: var(--orange); color: #fff; font-weight: 800; padding: 10px 20px; border-radius: 999px; text-decoration: none; margin: 0 12px 8px 0; }
.app-cta .cta-button:hover { background: #cf4519; color: #fff; }
.app-cta .cta-sub { color: #fff; font-size: 14px; }
@media (max-width: 520px) { .app-cta { flex-direction: column; } }

.related { margin-top: 36px; }
.related ul { padding-left: 1.2em; }
.disclaimer { font-size: 13px; color: var(--ink-2); background: #f2efe8; border-radius: 10px; padding: 12px 14px; margin-top: 28px; }

/* support */
.contact-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; margin: 0 0 12px; }
.contact-form iframe { width: 100%; height: 1100px; border: 0; display: block; }
.info-table th { width: 30%; }

/* footer */
.site-footer { background: #0e2337; color: #b8c6d2; font-size: 14px; padding: 40px 0 28px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #ff9b78; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.footer-grid p { margin: 0 0 8px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 0 0 6px; }
.footer-grid .f-title { color: #fff; font-weight: 800; margin-bottom: 10px; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 16px; font-size: 12px; margin: 0; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

.nb { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
