/* Creavid IT — 共通スタイル */
:root {
  --paper: #EFEAE0;
  --paper-2: #E4DDCF;
  --ink: #1A1A18;
  --ink-2: #4A463F;
  --rec: #C8563A;
  --rec-dark: #A9482A;
  --white: #FFFFFF;
  --night-text: #D6CFC2;
  --f-display: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --f-body: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
  --f-mono: 'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.8; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; }
a { color: var(--rec-dark); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--rec); outline-offset: 2px; }
.gutter { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 1240px; margin: 0 auto; }
.mono { font-family: var(--f-mono); letter-spacing: 0.16em; font-size: 12px; }
.eyebrow { font-family: var(--f-mono); letter-spacing: 0.16em; font-size: 12px; color: var(--rec-dark); display: block; }
.h2 { margin: 8px 0 20px; font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.45; text-wrap: balance; }
.lead { color: var(--ink-2); margin: 0 0 16px; }
.btn { display: inline-block; text-decoration: none; background: var(--ink); color: #F4F0E8; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 15px; }
.btn:hover { background: var(--rec-dark); color: #fff; }
.price-line { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1px solid var(--paper-2); border-bottom: 1px solid var(--paper-2); padding-block: 14px; margin-top: 24px; }
.price-line strong { font-family: var(--f-display); font-size: 30px; white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags span { font-size: 13px; border: 1px solid var(--paper-2); border-radius: 999px; padding: 4px 12px; }

/* ---------- ヘッダー・フッター ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--paper-2); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 14px; }
.logo { font-family: var(--f-display); font-size: 24px; font-weight: 800; letter-spacing: 0.06em; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo img { width: 68px; height: auto; flex: 0 0 auto; }
.logo small { font-family: var(--f-body); font-size: 12px; font-weight: 500; letter-spacing: 0; line-height: 1.5; color: var(--ink-2); }
.site-nav { display: flex; gap: 20px; overflow-x: auto; font-size: 14px; font-weight: 500; max-width: 100%; padding-block: 4px; }
.site-nav a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.site-nav a[aria-current="page"] { color: var(--rec-dark); font-weight: 700; }
.site-nav a.nav-cta { background: var(--ink); color: #F4F0E8; padding: 4px 14px; border-radius: 999px; }
.site-footer { background: var(--ink); color: var(--night-text); padding-block: 48px; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.site-footer a { color: #F4F0E8; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-name { font-family: var(--f-display); font-size: 22px; font-weight: 800; color: #F4F0E8; display: flex; align-items: center; gap: 10px; }
.footer-name img { width: 84px; height: auto; background: var(--paper); border-radius: 8px; padding: 8px; }
.breadcrumb { font-size: 13px; color: var(--ink-2); padding-block: 16px 0; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "／"; margin-right: 6px; color: var(--paper-2); }

/* ---------- レンズ（トップ・動画） ---------- */
.lens-wrap { position: relative; height: 260vh; }
.lens-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--paper); }
.lens-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s; }
.lens-stage canvas.ready { opacity: 1; }
.lens-copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding-block: 28px; pointer-events: none; }
.lens-copy a { pointer-events: auto; }
.lens-head { max-width: 640px; }
.lens-head h1 { margin: 0 0 14px; font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 5.2vw, 58px); line-height: 1.4; text-wrap: balance; }
.lens-head p { margin: 0 0 18px; color: var(--ink-2); max-width: 34em; }
.rec-dot { color: var(--rec); }
.scroll-hint { display: flex; align-items: center; gap: 10px; }
.scroll-hint .bar { width: 1px; height: 36px; background: var(--ink); animation: hint 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

.no-3d .lens-wrap { height: auto; }
.no-3d .lens-stage { position: relative; height: auto; }
.no-3d .lens-copy { position: relative; min-height: 70svh; }
.no-3d .scroll-hint { display: none; }

/* ---------- 入口カード ---------- */
.who { background: var(--paper); padding-block: 88px; }
.who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.who-card { display: flex; flex-direction: column; gap: 10px; background: var(--white); color: var(--ink); text-decoration: none; border-radius: 6px; padding: 26px; border: 1px solid transparent; transition: border-color .2s, transform .2s; }
.who-card:hover { border-color: var(--rec); transform: translateY(-2px); color: var(--ink); }
.who-card .q { font-family: var(--f-display); font-size: 21px; font-weight: 800; line-height: 1.5; }
.who-card .a { font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.who-card .go { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--rec-dark); }

/* ---------- 開業パック（お店が組み上がる） ---------- */
.pack-wrap { position: relative; height: 300vh; background: var(--paper); }
.pack-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.pack-inner { height: 100%; display: flex; flex-wrap: wrap; align-items: center; align-content: center; gap: 24px 40px; }
.pack-text { flex: 1 1 320px; min-width: 0; max-width: 440px; }
.pack-text .lead { margin-bottom: 18px; }
.pack-view { flex: 1 1 480px; min-width: 0; height: min(68svh, 600px); position: relative; }
.pack-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.checks { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; align-items: center; gap: 12px; color: var(--ink-2); transition: color .3s; }
.checks .ck { flex: 0 0 24px; height: 24px; border-radius: 999px; border: 1.5px solid var(--ink-2); display: inline-flex; align-items: center; justify-content: center; transition: background .3s, border-color .3s; }
.checks .ck svg { width: 14px; height: 14px; opacity: 0; transition: opacity .3s; }
.checks li.on { color: var(--ink); font-weight: 700; }
.checks li.on .ck { background: var(--rec); border-color: var(--rec); }
.checks li.on .ck svg { opacity: 1; }
.pack-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.pack-price strong { font-family: var(--f-display); font-size: 44px; line-height: 1; }
.no-3d .pack-wrap { height: auto; }
.no-3d .pack-stage { position: static; height: auto; padding-block: 64px; }
.no-3d .pack-view { display: none; }
@media (max-width: 760px) {
  .pack-inner { gap: 8px; }
  .pack-view { flex-basis: 100%; height: 42svh; order: -1; }
  .pack-text .lead { display: none; }
  .checks { grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 14px; margin-bottom: 10px; }
  .pack-price strong { font-size: 34px; }
}

/* ---------- ホームページ（3Dのスマホ） ---------- */
.hp { background: var(--white); padding-block: 96px; overflow: hidden; }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split-text { flex: 1 1 340px; min-width: 0; max-width: 460px; }
.phone-stage { flex: 1 1 440px; min-width: 0; height: 600px; display: flex; align-items: center; justify-content: center; perspective: 1400px; position: relative; }
.rig { position: relative; transform-style: preserve-3d; transform: rotateY(var(--ry, -30deg)) rotateX(var(--rx, 8deg)) rotateZ(var(--rz, 3deg)); }
.phone { position: relative; width: 250px; height: 520px; border-radius: 40px; background: var(--ink); padding: 11px; box-shadow: 30px 40px 60px rgba(26,26,24,0.28); transform: translateZ(40px); }
.screen { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #FFFDF9; position: relative; }
.notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 80px; height: 20px; border-radius: 999px; background: var(--ink); z-index: 2; }
.site { animation: siteScroll 14s ease-in-out infinite alternate; }
@keyframes siteScroll { 0%, 8% { transform: translateY(0); } 92%, 100% { transform: translateY(calc(-100% + 498px)); } }
.s-hero { height: 250px; background: radial-gradient(circle at 70% 30%, rgba(255,200,140,.7), transparent 45%), linear-gradient(160deg, #5A4636, #2B231C); color: #FFF7EC; padding: 44px 18px 18px; display: flex; flex-direction: column; justify-content: flex-end; }
.s-hero b { font-family: var(--f-display); font-size: 24px; line-height: 1.4; }
.s-hero small { font-size: 11px; opacity: .85; }
.s-btn { margin-top: 10px; align-self: flex-start; background: var(--rec); color: #fff; font-size: 11px; padding: 6px 12px; border-radius: 999px; }
.s-sec { padding: 16px 18px; border-bottom: 1px solid #EEE7DB; font-size: 11px; color: #4A463F; }
.s-sec b { display: block; margin: 0 0 8px; font-size: 13px; color: var(--ink); }
.s-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.s-card { height: 70px; border-radius: 8px; background: linear-gradient(135deg, #E8D9C4, #CDB89C); }
.s-map { height: 110px; border-radius: 8px; background: repeating-linear-gradient(0deg, #E4DDCF 0 18px, #F4F0E8 18px 20px), #EFEAE0; position: relative; }
.s-map::after { content: ""; position: absolute; left: 55%; top: 35%; width: 14px; height: 14px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--rec); }
.browser { position: absolute; left: -210px; top: 40px; width: 420px; height: 280px; border-radius: 10px; background: #FFFDF9; box-shadow: 0 30px 60px rgba(26,26,24,0.18); transform: translateZ(-90px); overflow: hidden; border: 1px solid #E4DDCF; }
.browser .bar { height: 26px; background: #EFEAE0; display: flex; align-items: center; gap: 6px; padding-left: 10px; }
.browser .bar i { width: 8px; height: 8px; border-radius: 50%; background: #CFC7B8; display: block; }
.browser .b-hero { height: 130px; background: radial-gradient(circle at 75% 35%, rgba(255,200,140,.7), transparent 40%), linear-gradient(160deg, #5A4636, #2B231C); }
.browser .b-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px; }
.browser .b-row span { height: 60px; border-radius: 6px; background: linear-gradient(135deg, #E8D9C4, #CDB89C); display: block; }
@media (max-width: 640px) { .browser { display: none; } .phone-stage { height: 560px; } }

/* ---------- Googleマップ（ミニチュアの街） ---------- */
.town { background: var(--white); padding-block: 96px; }
.town-view { flex: 1 1 520px; min-width: 0; position: relative; height: clamp(360px, 52vw, 560px); border-radius: 6px; background: var(--paper); overflow: hidden; }
.town-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pin-label { position: absolute; left: 0; top: 0; transform: translate(-50%, -130%); background: var(--ink); color: #F4F0E8; font-size: 12px; line-height: 1.4; padding: 5px 10px; border-radius: 999px; white-space: nowrap; pointer-events: none; }
.pin-label.you { background: var(--rec); font-weight: 700; }
.town-caption { position: absolute; left: 14px; bottom: 12px; color: var(--ink-2); }
.no-3d .town-view::before { content: "天神のまち（イメージ）"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--ink-2); }

/* ---------- ネット機器（つながる線） ---------- */
.net { background: var(--ink); color: #F4F0E8; padding-block: 96px; }
.net .lead { color: var(--night-text); }
.net .eyebrow { color: var(--rec); }
.net .price-line { border-color: #3A352E; }
.net-view { flex: 1 1 520px; min-width: 0; }
.net-view svg { width: 100%; height: auto; display: block; }
.wave { animation: wave 2.4s ease-out infinite; transform-origin: 320px 196px; }
.wave.w2 { animation-delay: .8s; } .wave.w3 { animation-delay: 1.6s; }
@keyframes wave { from { opacity: .8; transform: scale(.6); } to { opacity: 0; transform: scale(1.6); } }

/* ---------- 料金表 ---------- */
.prices { background: var(--paper); padding-block: 96px; }
.price-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 6px; overflow: hidden; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--paper-2); vertical-align: top; }
.price-table td.yen { text-align: right; font-weight: 700; white-space: nowrap; }
.price-table tr.featured { background: #FBF3EE; }
.price-table a { color: var(--ink); }
.table-box { overflow-x: auto; }
.note { font-size: 13px; color: var(--ink-2); margin-top: 16px; }

/* ---------- 代表 ---------- */
.about { background: var(--white); padding-block: 96px; }

/* ---------- 下層ページ ---------- */
.page-hero { padding-block: 40px 72px; }
.page-hero h1 { margin: 10px 0 18px; font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 4.6vw, 50px); line-height: 1.4; text-wrap: balance; max-width: 18em; }
.page-hero .lead { max-width: 36em; font-size: 17px; }
.hero-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin: 24px 0; }
.hero-price strong { font-family: var(--f-display); font-size: 48px; line-height: 1; }
.block { padding-block: 80px; }
.block.white { background: var(--white); }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--white); border-radius: 6px; padding: 24px; }
.block.white .card { background: var(--paper); }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; font-size: 15px; color: var(--ink-2); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; counter-reset: step; }
.steps li { border-top: 3px solid var(--ink); padding-top: 14px; counter-increment: step; }
.steps li::before { content: "STEP " counter(step); display: block; font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; color: var(--rec-dark); margin-bottom: 4px; }
.steps b { display: block; font-size: 17px; margin-bottom: 4px; }
.steps span { font-size: 14px; color: var(--ink-2); }
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--white); border-radius: 6px; padding: 18px 22px; }
.block.white .faq details { background: var(--paper); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 12px 0 0; color: var(--ink-2); }
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.related a { display: block; background: var(--white); border-radius: 6px; padding: 18px 20px; text-decoration: none; color: var(--ink); font-weight: 700; }
.related a span { display: block; font-weight: 400; font-size: 13px; color: var(--ink-2); }

/* ---------- 問い合わせ ---------- */
.contact { background: var(--paper); padding-block: 96px; text-align: center; }
.contact .inner { max-width: 760px; margin: 0 auto; }
.contact p { margin: 0 0 12px; color: var(--ink-2); }
.contact .inner { max-width: 1040px; }
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 32px 0 8px; text-align: left; }
.way { background: var(--white); border-radius: 6px; padding: 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.way b { font-size: 18px; }
.way span { font-size: 14px; color: var(--ink-2); }
.way .btn, .way .mail { margin-top: auto; }
.qr { width: 140px; height: 140px; border-radius: 6px; }
.btn.line { background: #06C755; color: var(--ink); }
.btn.line:hover { background: #05B84E; color: var(--ink); }
.way .mail { font-size: 15px; padding: 12px 20px; }
@media (hover: none) and (pointer: coarse) { .qr { display: none; } }
.mail { display: inline-block; margin-top: 12px; font-family: var(--f-mono); font-size: 20px; letter-spacing: 0.06em; background: var(--ink); color: #F4F0E8; padding: 14px 28px; border-radius: 999px; text-decoration: none; user-select: all; }
.mail:hover { background: var(--rec-dark); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint .bar, .site, .wave { animation: none; }
}
