/* RAKLUMO サイト共通の見た目（2026/11/07 改善：親しみやすさ × 信頼感 × 洗練）。
   基本は濃い紺と青緑。淡いミント・水色・暖色を差し色に。外部のフォント・画像は使わない */
:root {
  --navy: #1b2a41; --navy2: #2c3e5c; --teal: #2a7f78; --teal-dark: #1f6660; --teal-soft: #e6f2f1;
  --mint: #e3f4ee; --mint-ink: #2a7f78;
  --sky: #e6f0fa; --sky-ink: #2f6aa3;
  --warm: #fdeedd; --warm-ink: #b9682a;
  --sun: #fbf3d9; --sun-ink: #9a7412;
  --ink: #1f2933; --muted: #5b6672; --line: #e3e8ec; --soft: #f6f9fa; --white: #fff;
  --shadow: 0 1px 2px rgba(27, 42, 65, .06), 0 6px 20px rgba(27, 42, 65, .07);
  --shadow-hover: 0 2px 4px rgba(27, 42, 65, .08), 0 12px 28px rgba(27, 42, 65, .12);
  --radius: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: 16px; line-height: 1.8; color: var(--ink); background: var(--white); }
a { color: var(--teal-dark); }
a:hover { color: var(--navy); }
.inner { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.inner.narrow { max-width: 820px; }
h1, h2, h3 { color: var(--navy); line-height: 1.4; }
h2 { font-size: 24px; margin: 44px 0 14px; }
.inner.narrow h2 { padding-bottom: 8px; border-bottom: 2px solid var(--teal-soft); }
h2:first-child { margin-top: 0; }

/* ヘッダー */
.site-header { background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.logo { font-weight: 800; letter-spacing: .14em; font-size: 22px; color: var(--navy); text-decoration: none; }
.logo::first-letter { color: var(--teal); }
.site-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav a { color: var(--navy); text-decoration: none; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--teal-dark); border-bottom-color: var(--teal); }

/* ボタン */
.btn { display: inline-block; padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--teal); color: var(--teal-dark); background: var(--white);
  text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.4; text-align: center; transition: background .15s, box-shadow .15s, transform .15s; }
.btn:hover { background: var(--teal-soft); color: var(--teal-dark); }
.btn.primary { background: var(--teal); border-color: var(--teal); color: var(--white); box-shadow: 0 4px 14px rgba(42, 127, 120, .28); }
.btn.primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); transform: translateY(-1px); }
.btn.ghost { background: transparent; border-color: #c9d6dd; color: var(--navy); }
.btn.ghost:hover { background: var(--white); border-color: var(--teal); color: var(--teal-dark); }
.btn.large { padding: 14px 28px; font-size: 16px; }

/* 最初の画面 */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px;
  background: radial-gradient(600px 360px at 88% 18%, var(--sky) 0, transparent 70%),
              radial-gradient(520px 340px at 70% 92%, var(--warm) 0, transparent 70%),
              radial-gradient(700px 420px at 8% 10%, var(--mint) 0, transparent 70%),
              linear-gradient(180deg, #fbfdfd, var(--white)); }
.hero::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -60px; bottom: -80px; border: 26px solid rgba(42, 127, 120, .07); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.eyebrow { display: inline-block; margin: 0 0 18px; padding: 4px 14px; border-radius: 999px; background: var(--white); color: var(--teal-dark); font-size: 14px; font-weight: 700; box-shadow: var(--shadow); }
.hero h1 { font-size: 54px; line-height: 1.25; margin: 0 0 20px; letter-spacing: .02em; }
.hero h1 .hl { color: var(--teal); background: linear-gradient(transparent 68%, rgba(253, 222, 186, .9) 68%); }
.hero-lead { font-size: 17px; max-width: 560px; color: var(--ink); margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.hero-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow);
  text-decoration: none; color: var(--navy); font-weight: 700; font-size: 14px; line-height: 1.5; transition: transform .15s, box-shadow .15s; }
.tile:nth-child(2), .tile:nth-child(4) { transform: translateY(18px); }
.tile:hover { box-shadow: var(--shadow-hover); color: var(--navy); }

/* アイコンと色（サービスごと） */
.icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; flex: none; }
.icon svg { width: 26px; height: 26px; }
.tone-mint .icon { background: var(--mint); color: var(--mint-ink); }
.tone-sky .icon { background: var(--sky); color: var(--sky-ink); }
.tone-warm .icon { background: var(--warm); color: var(--warm-ink); }
.tone-sun .icon { background: var(--sun); color: var(--sun-ink); }

.section { padding: 64px 0; }
.section.soft { background: var(--soft); }
.section-head { margin-bottom: 24px; }
.section-head h2 { margin: 0 0 4px; }
.section-head p { margin: 0; color: var(--muted); }

/* サービスのカード */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--white); display: flex; flex-direction: column;
  box-shadow: var(--shadow); transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.card h3 { font-size: 20px; margin: 0 0 8px; }
.card h3 a { color: var(--navy); text-decoration: none; }
.card h3 a:hover { color: var(--teal-dark); }
.card-for { color: var(--muted); font-size: 13.5px; margin: 0; line-height: 1.5; }
.card-text { margin: 0 0 14px; font-size: 15.5px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; }
.card-tags span { font-size: 12.5px; color: var(--muted); background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; }
.card-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.card-actions .btn { flex: 1 1 auto; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; color: var(--teal-dark); background: var(--teal-soft); border-radius: 999px; padding: 0 9px; vertical-align: middle; margin-left: 6px; }

/* 安心のポイント */
.points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.point { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.point .icon { background: var(--teal-soft); color: var(--teal-dark); width: 42px; height: 42px; border-radius: 12px; }
.point .icon svg { width: 22px; height: 22px; }
.point h3 { font-size: 16px; margin: 12px 0 6px; }
.point p { margin: 0; font-size: 14.5px; color: var(--ink); line-height: 1.7; }
.points-note { margin: 22px 0 0; font-size: 14px; color: var(--muted); line-height: 1.8; }
.points-note a { margin: 0 8px 0 2px; white-space: nowrap; }

/* 表（紹介ページ） */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); font-size: 15px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
table.data th, table.data td { border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
table.data tr:last-child th, table.data tr:last-child td { border-bottom: 0; }
table.data th { background: var(--soft); color: var(--navy); width: 30%; font-weight: 700; }

/* 紹介ページ */
.page-head { padding: 44px 0 36px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--soft), var(--white)); }
.page-head.tone-mint { background: radial-gradient(600px 300px at 90% 0, var(--mint) 0, transparent 70%), linear-gradient(180deg, #fbfdfd, var(--white)); }
.page-head.tone-sky { background: radial-gradient(600px 300px at 90% 0, var(--sky) 0, transparent 70%), linear-gradient(180deg, #fbfdfd, var(--white)); }
.page-head.tone-warm { background: radial-gradient(600px 300px at 90% 0, var(--warm) 0, transparent 70%), linear-gradient(180deg, #fffdfb, var(--white)); }
.page-head.tone-sun { background: radial-gradient(600px 300px at 90% 0, var(--sun) 0, transparent 70%), linear-gradient(180deg, #fffefa, var(--white)); }
.page-head h1 { font-size: 32px; margin: 4px 0 12px; }
.page-head .lead { font-size: 17px; max-width: 800px; margin: 0; }
.page-head .card-top { margin: 0 0 4px; }
.crumb { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.crumb a { color: var(--muted); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; font-size: 14px; }
.toc a { text-decoration: none; color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; }
.toc a:hover { border-color: var(--teal); color: var(--teal-dark); }
ul.check { list-style: none; padding: 0; }
ul.check li { position: relative; padding-left: 30px; margin: 10px 0; }
ul.check li::before { content: "✓"; position: absolute; left: 4px; top: 0; color: var(--teal); font-weight: 800; }
ol.steps { list-style: none; counter-reset: s; padding: 0; }
ol.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 60px; margin: 0 0 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
ol.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: var(--white); font-weight: 700; text-align: center; line-height: 30px; }
ol.steps b { display: block; color: var(--navy); }
details.faq { border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; margin: 0 0 10px; background: var(--white); }
details.faq[open] { border-color: #cfe3e1; box-shadow: var(--shadow); }
details.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 14px 0; }
details.faq summary::marker { color: var(--teal); }
details.faq p { margin: 0 0 16px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 44px 0 0; padding: 28px; border-radius: var(--radius); background: var(--mint); }

/* フッター */
.site-footer { background: var(--navy); color: #dfe6ee; padding: 44px 0 28px; font-size: 14px; }
.foot-logo { font-weight: 800; letter-spacing: .14em; font-size: 18px; color: var(--white); }
.foot-copy { margin: 4px 0 18px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 18px; }
.foot-nav a { color: #dfe6ee; text-decoration: none; }
.foot-nav a:hover { color: var(--white); text-decoration: underline; }
.foot-note { font-size: 13px; color: #b9c5d3; margin: 0 0 8px; }
.foot-small { font-size: 12px; color: #9fb0c3; margin: 0; }

/* タブレット・スマートフォン */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual { max-width: 520px; }
  .points { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero { padding: 40px 0 44px; }
  .hero h1 { font-size: 34px; }
  .hero-lead { font-size: 16px; }
  .hero-visual { gap: 10px; }
  .tile { padding: 14px; font-size: 13px; flex-direction: row; align-items: center; }
  .tile .icon { width: 38px; height: 38px; border-radius: 10px; }
  .tile .icon svg { width: 21px; height: 21px; }
  .tile:nth-child(2), .tile:nth-child(4) { transform: none; }
  .cards.two { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .points { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .page-head h1 { font-size: 25px; }
  h2 { font-size: 21px; }
  .hero-actions .btn, .cta .btn, .card-actions .btn { flex: 1 1 100%; }
  .site-header .inner { min-height: 56px; padding-top: 6px; padding-bottom: 6px; }
  table.data th { width: 38%; }
}

/* 使い方の画像（実際の画面）と拡大表示（CSSの :target だけで動く） */
.shot-note { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
ol.steps figure.shot { margin: 12px 0 4px; }
figure.shot a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); cursor: zoom-in; background: var(--white); }
figure.shot img { display: block; width: 100%; height: auto; }
figure.shot figcaption { font-size: 14px; color: var(--ink); margin-top: 8px; line-height: 1.7; }
.zoom { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(15, 23, 36, .82); padding: 24px; align-items: center; justify-content: center; }
.zoom:target { display: flex; }
.zoom-close { position: relative; display: block; max-width: min(1200px, 100%); cursor: zoom-out; }
.zoom-close img { display: block; max-width: 100%; max-height: calc(100vh - 80px); width: auto; height: auto; border-radius: 10px; background: var(--white); }
.zoom-close span { position: absolute; top: -34px; right: 0; color: var(--white); font-weight: 700; font-size: 14px; }
@media (max-width: 640px) { ol.steps li { padding-left: 52px; padding-right: 12px; } ol.steps li::before { left: 12px; } .zoom { padding: 44px 8px 12px; } }

/* ロゴ（2026/11/07：正式ロゴの原案を組み込み。ロゴの色・形は変えない） */
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo::first-letter { color: inherit; }
.logo img { display: block; height: 40px; width: auto; }
/* フッター：ロゴの紺の文字が見えるよう、淡い背景に（濃い紺の背景から変更） */
.site-footer { background: var(--soft); color: var(--ink); border-top: 1px solid var(--line); }
.foot-logo img { display: block; width: 260px; height: auto; margin-bottom: 14px; }
.foot-nav a { color: var(--navy); }
.foot-nav a:hover { color: var(--teal-dark); }
.foot-note { color: var(--muted); }
.foot-small { color: var(--muted); }
@media (max-width: 640px) { .logo img { height: 32px; } .foot-logo img { width: 220px; } }

/* フッターのロゴをヘッダーと同じ「Rマーク＋RAKLUMO」に、標語はロゴの下に文字で（2026/11/07） */
.foot-logo img { width: auto; height: 40px; margin-bottom: 6px; }
.foot-copy { margin: 0 0 18px; color: var(--navy); font-weight: 600; letter-spacing: .04em; }
@media (max-width: 640px) { .foot-logo img { width: auto; height: 34px; } }
/* 国の判定のデータの出典（DB-IP、CC BY 4.0 の条件。全ページに置く。2026/11/07） */
.foot-attr { margin-left: 14px; }
.foot-attr a { color: inherit; }
