/* かずのは税理士事務所（自主制作・架空のサービス）
   2026-09-24 改訂：①（やわらかい・写真・明朝）と振り幅を取るため、
   「色面×図形イラスト×丸ゴシック・写真なし」のポップな方向に作り直した。配色は自作。 */

:root {
  --blue: #2F5BEA;      /* 主色（白文字に対し約5.5:1） */
  --blue-deep: #1E3FB8;
  --yellow: #FFD23F;    /* 差し色（濃紺文字に対し約11:1） */
  --pink: #FF8FB1;      /* 装飾のみ */
  --mint: #7FD6C2;      /* 装飾のみ */
  --ink: #1A1F36;       /* 濃紺の文字 */
  --ink-soft: #464C66;
  --cream: #FFF8E6;
  --white: #FFFFFF;
  --line: #1A1F36;
  --round: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif;
  --max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--round); font-size: 16px; line-height: 1.85; letter-spacing: .02em; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--blue-deep); font-weight: 700; }
h1, h2, h3 { font-weight: 800; line-height: 1.35; margin: 0; }
p { margin: 0; }
.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }

/* 0. 架空サービスの表示帯（線6）＝黄色いテープ */
.fiction-bar { background: var(--yellow); color: var(--ink); font-size: 12px; font-weight: 700; text-align: center; padding: 6px 16px; line-height: 1.6; border-bottom: 2px solid var(--ink); }

/* ヘッダー */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--white); border-bottom: 2px solid var(--ink); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; }
.brand-name { display: grid; line-height: 1.2; }
.brand-name strong { font-size: 17px; font-weight: 800; white-space: nowrap; }
.brand-name small { font-size: 10px; letter-spacing: .1em; color: var(--blue); font-weight: 700; }
.header-nav { display: none; gap: 22px; font-size: 14px; }
.header-nav a { color: var(--ink); text-decoration: none; }
.header-nav a:hover { color: var(--blue); }

/* ボタン＝太い輪郭とずらした影 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--yellow); color: var(--ink); font-family: var(--round); font-weight: 800; font-size: 17px;
  text-decoration: none; border: 2.5px solid var(--ink); border-radius: 999px; padding: 14px 28px;
  box-shadow: 4px 4px 0 var(--ink); cursor: pointer; transition: transform .15s, box-shadow .15s; white-space: nowrap;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn--white { background: var(--white); }
.btn--small { font-size: 13px; padding: 7px 14px; box-shadow: 3px 3px 0 var(--ink); flex: none; }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* セクション共通：左寄せの大見出し＋色つき番号 */
section { padding: 72px 0; position: relative; overflow: hidden; }
.sec-title { display: flex; align-items: baseline; gap: 14px; margin-bottom: 36px; }
.sec-title .no { font-size: 15px; font-weight: 800; background: var(--ink); color: var(--yellow); border-radius: 999px; padding: 2px 12px; flex: none; }
.sec-title h2 { font-size: clamp(26px, 6.4vw, 40px); }
.sec-lead { margin: -20px 0 32px; color: var(--ink-soft); }
.bg-blue { background: var(--blue); color: var(--white); }
.bg-blue .sec-title .no { background: var(--yellow); color: var(--ink); }
.bg-cream { background: var(--cream); }
.bg-yellow { background: var(--yellow); }

/* 1. ヒーロー＝青の色面＋図形 */
.hero { background: var(--blue); color: var(--white); padding: 48px 0 64px; border-bottom: 2px solid var(--ink); }
.hero .container { display: grid; gap: 28px; align-items: center; }
.hero h1 { font-size: clamp(34px, 9.6vw, 62px); letter-spacing: .02em; }
.hero h1 .mark { color: var(--yellow); }
.hero-lead { margin: 18px 0 22px; font-size: 16px; max-width: 30em; }
.chips { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 700; }
.hero-art { width: 100%; max-width: 480px; margin-inline: auto; }
.float { animation: float 6s ease-in-out infinite; transform-origin: center; }
.float.d2 { animation-delay: -2s; } .float.d3 { animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* 2. 悩み＝チャットの吹き出し */
.chat { display: grid; gap: 14px; max-width: 720px; }
.bubble { display: flex; gap: 12px; align-items: flex-end; }
.bubble .face { width: 44px; height: 44px; flex: none; }
.bubble p { background: var(--white); border: 2px solid var(--ink); border-radius: 22px 22px 22px 4px; padding: 12px 18px; font-size: 15px; }
.bubble p strong { display: block; font-size: 16px; }
.bubble.reply { flex-direction: row-reverse; margin-left: auto; }
.bubble.reply p { background: var(--yellow); border-radius: 22px 22px 4px 22px; font-weight: 700; }

/* 3. 約束＝大きな丸数字 */
.promises { display: grid; gap: 20px; }
.promise { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: start; }
.promise .num { width: 72px; height: 72px; border-radius: 50%; border: 2.5px solid var(--ink); display: grid; place-items: center; font-size: 30px; font-weight: 800; background: var(--yellow); color: var(--ink); }
.promise:nth-child(2) .num { background: var(--pink); }
.promise:nth-child(3) .num { background: var(--mint); }
.promise h3 { font-size: 20px; margin-bottom: 4px; }
.promise p { font-size: 15px; opacity: .92; }

/* 4. サービス＝色違いのカード（少し傾ける） */
.services { display: grid; gap: 18px; }
.service { border: 2.5px solid var(--ink); border-radius: 20px; padding: 24px; box-shadow: 6px 6px 0 var(--ink); background: var(--white); }
.service:nth-child(1) { background: var(--yellow); }
.service:nth-child(3) { background: #DCE5FF; }
.service:nth-child(4) { background: #FFE1EA; }
.service-icon { width: 56px; height: 56px; margin-bottom: 8px; }
.service h3 { font-size: 20px; margin-bottom: 6px; }
.service p { font-size: 15px; color: var(--ink-soft); }
.service .for { margin-top: 12px; display: inline-block; background: var(--ink); color: var(--white); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }

/* 5. 流れ＝点線でつながる道 */
.path { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; position: relative; counter-reset: s; }
.path::before { content: ""; position: absolute; left: 27px; top: 20px; bottom: 20px; border-left: 3px dashed var(--ink); }
.path li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; position: relative; }
.path li::before { content: counter(s); width: 56px; height: 56px; border-radius: 16px; border: 2.5px solid var(--ink); background: var(--white); display: grid; place-items: center; font-size: 24px; font-weight: 800; }
.path li:nth-child(2)::before { background: var(--yellow); } .path li:nth-child(3)::before { background: var(--pink); } .path li:nth-child(4)::before { background: var(--mint); }
.path h3 { font-size: 18px; } .path p { font-size: 15px; color: var(--ink-soft); }
.path-note { margin-top: 28px; display: inline-block; background: var(--white); border: 2.5px solid var(--ink); border-radius: 16px; padding: 12px 18px; font-weight: 700; box-shadow: 4px 4px 0 var(--ink); }

/* 6. 料金＝チケット型カード */
.fiction-sticker { display: inline-block; background: var(--pink); color: var(--ink); border: 2px solid var(--ink); border-radius: 10px; padding: 6px 14px; font-weight: 800; font-size: 14px; transform: rotate(-2deg); margin-bottom: 24px; }
.tickets { display: grid; gap: 16px; }
.ticket { background: var(--white); border: 2.5px solid var(--ink); border-radius: 18px; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; }
.ticket-head { background: var(--blue); color: var(--white); padding: 10px 18px; font-weight: 800; font-size: 17px; border-bottom: 2.5px dashed var(--ink); }
.ticket:nth-child(1) .ticket-head { background: var(--mint); color: var(--ink); }
.ticket-body { padding: 16px 18px 6px; font-size: 14px; color: var(--ink-soft); }
.ticket-price { padding: 6px 18px 18px; font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ticket-price { white-space: nowrap; }
.ticket-price small { display: block; font-size: 12px; font-weight: 700; color: var(--ink-soft); line-height: 1.4; }
.price-notes { margin-top: 18px; font-size: 13px; color: var(--ink-soft); display: grid; gap: 4px; }
.price-notes .fiction { color: var(--ink); font-weight: 800; font-size: 15px; background: var(--yellow); display: inline-block; padding: 0 6px; }

/* 7. 代表 */
.profile { display: grid; gap: 24px; align-items: center; }
.profile-art { width: 220px; margin-inline: auto; }
.profile .role { display: inline-block; background: var(--ink); color: var(--yellow); font-size: 12px; font-weight: 700; padding: 2px 12px; border-radius: 999px; }
.profile h3 { font-size: 30px; margin-top: 8px; }
.profile h3 small { font-size: 14px; margin-left: 8px; font-weight: 700; opacity: .8; }
.profile p { margin-top: 12px; }
.profile .values { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.profile .values li { background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: 12px; padding: 6px 14px; font-weight: 700; font-size: 14px; }

/* 8. 声 */
.voices { display: grid; gap: 16px; }
.voice { margin: 0; background: var(--white); border: 2.5px solid var(--ink); border-radius: 20px; padding: 20px; position: relative; }
.voice::after { content: ""; position: absolute; left: 28px; bottom: -12px; width: 20px; height: 20px; background: var(--white); border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); }
.voice p { font-size: 15px; }
.voice footer { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--blue-deep); }
.fiction-note { display: block; font-size: 11px; color: #B0305A; font-weight: 700; }

/* 9. FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border: 2.5px solid var(--ink); border-radius: 16px; padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 32px 14px 38px; position: relative; font-weight: 800; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 0; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: var(--white); display: grid; place-items: center; font-size: 14px; line-height: 28px; text-align: center; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 8px; font-size: 26px; font-weight: 800; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 16px 38px; color: var(--ink-soft); font-size: 15px; }

/* 10. 事務所案内 */
.office { display: grid; gap: 24px; align-items: center; }
.info-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; background: var(--white); border: 2.5px solid var(--ink); border-radius: 18px; overflow: hidden; }
.info-table th, .info-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 2px solid #E6E8F0; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table th { width: 32%; background: var(--cream); font-weight: 800; }
.office-art { width: 100%; max-width: 380px; margin-inline: auto; }

/* 11. 最後のCTA＝黄色の色面 */
.final-cta { background: var(--yellow); text-align: center; border-top: 2px solid var(--ink); }
.final-cta h2 { font-size: clamp(26px, 6.6vw, 42px); margin-bottom: 14px; }
.final-cta p { margin-bottom: 26px; font-weight: 700; }
.final-cta .btn { background: var(--blue); color: var(--white); }
.final-cta .btn--white { background: var(--white); color: var(--ink); }
.final-cta .btn-row { justify-content: center; }

/* 12. フッター */
.site-footer { background: var(--ink); color: #E6E8F0; padding: 44px 0 28px; font-size: 13px; }
.footer-links { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--yellow); }
.footer-note { border-top: 1px solid rgba(230,232,240,.25); padding-top: 18px; line-height: 1.8; }

/* 下層（ダミーページ） */
.sub-page { padding: 44px 0 72px; background: var(--cream); }
.sub-page .container { max-width: 760px; }
.sub-page h1 { font-size: clamp(24px, 6.4vw, 34px); margin-bottom: 22px; }
.sub-page h2 { font-size: 18px; margin: 30px 0 8px; }
.sub-page p, .sub-page li { color: var(--ink-soft); font-size: 15px; }
.dummy-notice { background: var(--pink); border: 2px solid var(--ink); color: var(--ink) !important; border-radius: 14px; padding: 12px 16px; font-weight: 700; margin-bottom: 26px; }
.form { display: grid; gap: 18px; background: var(--white); border: 2.5px solid var(--ink); padding: 24px 20px; border-radius: 20px; box-shadow: 6px 6px 0 var(--ink); }
.form label { display: grid; gap: 6px; font-weight: 800; font-size: 14px; }
.form input, .form select, .form textarea { font: inherit; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--white); }
.form .check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.form-result { display: none; background: var(--mint); border: 2px solid var(--ink); padding: 14px; border-radius: 14px; font-weight: 800; margin-top: 16px; }
.form-result.is-shown { display: block; }
.back-link { display: inline-block; margin-top: 30px; }

/* ふわっと表示 */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float { animation: none; }
  .btn { transition: none; }
}

@media (max-width: 400px) {
  .brand img { width: 30px; height: 30px; }
  .brand-name strong { font-size: 15px; }
  .brand-name small { font-size: 9px; }
}

/* PC */
@media (min-width: 768px) {
  section { padding: 104px 0; }
  .header-nav { display: flex; }
  .hero { padding: 72px 0 88px; }
  .hero .container { grid-template-columns: 1.1fr 1fr; gap: 40px; }
  .promises { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .promise { grid-template-columns: 1fr; }
  .services { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .service:nth-child(odd) { transform: rotate(-1deg); }
  .service:nth-child(even) { transform: rotate(1deg) translateY(16px); }
  .path { grid-template-columns: repeat(4, 1fr); }
  .path::before { left: 28px; right: 28px; top: 27px; bottom: auto; border-left: 0; border-top: 3px dashed var(--ink); }
  .path li { grid-template-columns: 1fr; }
  .tickets { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .ticket-price { font-size: 22px; }
  .profile { grid-template-columns: 260px 1fr; gap: 48px; }
  .profile-art { width: 260px; }
  .voices { grid-template-columns: repeat(3, 1fr); }
  .faq { grid-template-columns: repeat(2, 1fr); align-items: start; }
  .office { grid-template-columns: 1fr 1fr; gap: 48px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .tickets { grid-template-columns: repeat(3, 1fr); }
}
