/* ==========================================
   ととのえ予約 プロダクトサイト
   ========================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0b3a68;
  --teal: #cc436d;
  --teal-light: #f4d7e0;
  --navy-light: #eef3fa;
  --gray-50: #f7f9fc;
  --gray-100: #edf2f7;
  --gray-300: #c8d8e8;
  --gray-400: #8fa5be;
  --gray-600: #4a6882;
  --gray-900: #1a2e3f;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 2px 16px rgba(11,58,104,.08);
  --shadow-lg: 0 8px 40px rgba(11,58,104,.14);
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Noto Sans JP', 'Inter', sans-serif; font-size: 17px; line-height: 1.75; color: var(--gray-900); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--teal); text-transform: uppercase; display: block; margin-bottom: 10px; }
.accent-teal { color: var(--teal); }

h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; line-height: 1.2; color: var(--navy); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 800; line-height: 1.3; color: var(--navy); }
h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.4; color: var(--navy); margin-bottom: 8px; }
.lead { font-size: 1.1rem; line-height: 1.85; color: var(--gray-600); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 8px; font-weight: 700; font-size: .92rem; transition: all .18s; cursor: pointer; border: none; text-decoration: none; }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: #b43159; transform: translateY(-1px); }
.btn-outline { background: var(--white); color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy-light); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* ── Header ── */
.kk-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--gray-100); box-shadow: 0 1px 8px rgba(0,0,0,.05); }
.kk-header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.kk-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.25rem; color: var(--navy); flex-shrink: 0; }
.kk-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.kk-brand-sub { display: block; font-size: .68rem; font-weight: 700; color: var(--teal); letter-spacing: .1em; margin-top: 3px; }
.kk-brand-logo { height: 58px; width: auto; display: inline-block; padding: 0; }
.kk-nav { display: flex; align-items: center; gap: 6px; font-size: .92rem; font-weight: 700; }
.kk-nav a { padding: 8px 12px; border-radius: 999px; }
.kk-nav a { color: var(--gray-600); transition: color .15s; }
.kk-nav a:hover { color: var(--navy); }
.kk-nav-cta { background: var(--teal); color: var(--white) !important; padding: 8px 18px; border-radius: 6px; }
.kk-nav-cta:hover { background: #b43159 !important; }
.kk-nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.kk-nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: .2s; }
.kk-nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.kk-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.kk-nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.kk-hero { background: linear-gradient(135deg, #eef3fa 0%, #fcf3f6 100%); padding: 72px 0 64px; }
.kk-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.kk-hero-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }

/* ── Sections ── */
.section { padding: 80px 0; }
.section-sm { padding: 40px 0; }
.section-alt { background: var(--gray-50); }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head h2 { margin-top: 6px; margin-bottom: 14px; }
.section-head > p { color: var(--gray-600); }
.section-head.center > p { max-width: 600px; margin: 0 auto; }

/* ── Grid ── */
.grid-2 { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ── Card base ── */
.card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 10px; }

/* ── Contact form ── */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 7px; color: var(--navy); font-weight: 700; font-size: .92rem; }
.form input, .form select, .form textarea { width: 100%; border: 1px solid var(--gray-100); background: var(--white); border-radius: 10px; padding: 12px 14px; font: inherit; color: var(--gray-900); }
.form textarea { min-height: 160px; resize: vertical; }
.field-optional { font-size: .75rem; font-weight: 400; color: var(--gray-600); margin-left: 6px; }
.card-title-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.card-title-row h3 { margin: 0; }
.icon-pill { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 12px; color: var(--teal); background: var(--teal-light); font-weight: 900; flex-shrink: 0; }
.service-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.service-list li { display: flex; gap: 10px; color: var(--gray-600); font-size: .92rem; }
.service-list li::before { content: ""; margin-top: .72em; width: 7px; height: 7px; border-radius: 99px; background: var(--teal); flex: 0 0 auto; }
.profile-link { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--gray-100); background: var(--white); color: var(--navy); font-weight: 700; font-size: .88rem; transition: box-shadow .16s ease, color .16s ease; }
.profile-link:hover { box-shadow: var(--shadow); color: var(--teal); }

/* ── Pain list ── */
.pain-list { list-style: none; display: flex; flex-direction: column; gap: 14px; max-width: 820px; margin: 0 auto; }
.pain-list li { display: flex; align-items: flex-start; gap: 16px; background: var(--white); border: 1px solid var(--gray-100); border-radius: 12px; padding: 20px 24px; box-shadow: 0 1px 8px rgba(0,0,0,.04); }
.pain-icon { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: rgba(200,40,40,.1); color: #c03030; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; margin-top: 2px; }
.pain-list li strong { display: block; font-size: 1rem; color: var(--navy); margin-bottom: 4px; }
.pain-list li p { font-size: .9rem; color: var(--gray-600); margin: 0; }

/* ── Feature grid ── */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feature-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.feature-card-img { background: var(--navy-light); padding: 20px 20px 0; border-bottom: 1px solid var(--gray-100); overflow: hidden; }
.feature-card-img img { width: 100%; height: 200px; object-fit: cover; object-position: top; border-radius: 8px 8px 0 0; box-shadow: 0 2px 18px rgba(11,58,104,.14); display: block; transition: transform .3s ease; cursor: zoom-in; }
.feature-card-img:hover img { transform: scale(1.04); }
.feature-card-body { padding: 22px 28px 28px; }
.feature-card-body p { font-size: .95rem; color: var(--gray-600); }
.feature-number { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: var(--white); font-size: .75rem; font-weight: 900; margin-bottom: 10px; }

/* ── Flow ── */
.flow-scroll-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
.flow-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.flow-cols-3 { grid-template-columns: repeat(3, minmax(260px, 1fr)); min-width: 840px; gap: 32px; }
.flow-col-head { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.flow-badge { display: inline-block; padding: 5px 14px; border-radius: 20px; font-size: .78rem; font-weight: 800; background: var(--navy); color: var(--white); letter-spacing: .03em; }
.flow-badge-user { background: var(--teal); }
.flow-badge-guest { background: #374151; }
.flow-steps { display: flex; flex-direction: column; }
.flow-step { display: flex; gap: 16px; position: relative; padding-bottom: 24px; }
.flow-step:last-child { padding-bottom: 0; }
.flow-step::before { content: ''; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--gray-100); }
.flow-step:last-child::before { display: none; }
.flow-step-num { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--white); font-size: .78rem; font-weight: 900; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.flow-step-num-user { background: var(--teal); }
.flow-step-num-guest { background: #374151; }
.flow-step-body { padding-top: 4px; }
.flow-step-body h4 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.flow-step-body p { font-size: .9rem; color: var(--gray-600); }

/* ── Dual screens ── */
.dual-screens { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dual-screen-item { display: flex; flex-direction: column; gap: 12px; }
.dual-img-wrap { overflow: hidden; border-radius: 12px; box-shadow: var(--shadow); }
.dual-img-wrap img { width: 100%; height: 320px; object-fit: cover; object-position: top; display: block; transition: transform .3s ease; cursor: zoom-in; }
.dual-img-wrap:hover img { transform: scale(1.04); }

/* ── Role cards ── */
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.role-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.role-card-head { padding: 20px; color: var(--white); }
.role-admin { background: #0b3a68; }
.role-guest { background: #374151; }
.role-customer { background: #cc436d; }
.role-card-head h3 { color: var(--white); font-size: .95rem; margin-bottom: 4px; }
.role-icon { font-size: 22px; margin-bottom: 8px; }
.role-desc { font-size: .76rem; opacity: .88; line-height: 1.5; }
.role-card-body { padding: 16px 18px 20px; }
.role-section-label { font-size: .68rem; font-weight: 800; letter-spacing: .08em; color: var(--gray-400); text-transform: uppercase; margin-top: 14px; margin-bottom: 6px; display: block; }
.role-section-label:first-child { margin-top: 0; }
.role-feature-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.role-feature-list li { display: flex; align-items: flex-start; gap: 7px; font-size: .875rem; line-height: 1.5; color: var(--gray-600); }
.role-feature-list li.yes::before { content: '○'; color: var(--teal); font-weight: 700; flex-shrink: 0; }
.role-feature-list li.no::before { content: '✕'; color: #c03030; font-weight: 700; flex-shrink: 0; }
.role-feature-list li.no { opacity: .65; }

/* ── Platform cards ── */
.platform-card { text-align: center; }
.platform-icon { font-size: 34px; margin-bottom: 14px; }
.platform-card p { font-size: .875rem; color: var(--gray-600); }

/* ── CTA band ── */
.cta-band { background: linear-gradient(135deg, #0b3a68 0%, #1a5296 100%); color: var(--white); border-radius: 20px; padding: 44px 48px; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.cta-band h2 { color: var(--white); margin-top: 8px; }
.cta-band p { color: rgba(255,255,255,.78); margin-top: 12px; font-size: .92rem; }
.cta-band-badge { display: inline-block; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: var(--white); font-size: .72rem; font-weight: 800; padding: 3px 12px; border-radius: 20px; letter-spacing: .05em; }
.cta-band .btn-outline { border: 2px solid rgba(255,255,255,.35); color: var(--white); background: rgba(255,255,255,.08); white-space: nowrap; flex-shrink: 0; }
.cta-band .btn-outline:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.6); }

/* ── CTA bottom ── */
.cta-bottom { text-align: center; padding: 80px 24px; background: var(--gray-50); }
.cta-bottom h2 { margin-bottom: 14px; }
.cta-bottom p:not(.eyebrow) { color: var(--gray-600); margin-bottom: 32px; }
.btn-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
.kk-footer { background: var(--gray-50); border-top: 1px solid var(--gray-100); color: var(--gray-600); padding: 44px 0 0; }
.kk-footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.kk-footer .kk-brand { color: var(--navy); }
.kk-footer .kk-brand-sub { color: var(--teal); }
.kk-footer-links { display: flex; flex-wrap: wrap; gap: 14px; font-size: .85rem; align-items: flex-start; }
.kk-footer-links a { color: var(--gray-600); }
.kk-footer-links a:hover { color: var(--navy); }
.kk-footer-studio-link { color: var(--teal); text-decoration: underline; }
.kk-copyright { margin-top: 28px; font-size: .78rem; border-top: 1px solid var(--gray-100); padding: 18px 0; text-align: center; color: var(--gray-400); }

/* ── Breadcrumb ── */
.breadcrumb { font-size: .82rem; color: var(--gray-400); margin-bottom: 20px; }
.breadcrumb a { color: rgba(255,255,255,.55); text-decoration: underline; }
.breadcrumb a:hover { color: var(--white); }

/* ── Features detail page ── */
.features-hero { background: linear-gradient(135deg, #eef3fa 0%, #fcf3f6 100%); padding: 56px 0 48px; }
.features-hero .breadcrumb a { color: var(--gray-400); }
.tab-nav { display: flex; gap: 0; border-bottom: 2px solid var(--gray-100); margin-bottom: 48px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tab-btn { padding: 16px 28px; font-size: 1rem; font-weight: 700; color: var(--gray-600); background: none; border: none; border-bottom: 3px solid transparent; margin-bottom: -2px; cursor: pointer; white-space: nowrap; transition: color .15s, border-color .15s; font-family: inherit; }
.tab-btn:hover { color: var(--navy); }
.tab-btn.active { color: var(--teal); border-bottom-color: var(--teal); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Feature detail blocks */
.feat-block { padding: 52px 0; border-bottom: 1px solid var(--gray-100); }
.feat-block:last-child { border-bottom: none; padding-bottom: 16px; }
.feat-tag { display: inline-block; font-size: .82rem; font-weight: 800; letter-spacing: .1em; color: var(--white); padding: 5px 14px; border-radius: 20px; margin-bottom: 14px; text-transform: uppercase; }
.feat-tag-admin { background: var(--navy); }
.feat-tag-staff { background: #1a5296; }
.feat-tag-customer { background: #cc436d; }
.feat-tag-public { background: #15803d; }

/* Phone layout: text LEFT, image RIGHT */
.feat-block-phone { display: grid; grid-template-columns: 1fr 240px; gap: 48px; align-items: start; }
.feat-block-phone .feat-img { order: 2; overflow: hidden; border-radius: 22px; box-shadow: var(--shadow-lg); }
.feat-block-phone .feat-body { order: 1; }
.feat-block-phone .feat-img img { width: 100%; height: auto; display: block; transition: transform .3s ease; cursor: zoom-in; }
.feat-img:hover img { transform: scale(1.04); }

/* Desktop layout: image TOP, text BELOW */
.feat-block-desktop { display: flex; flex-direction: column; gap: 28px; }
.feat-block-desktop .feat-img { overflow: hidden; border-radius: 12px; box-shadow: var(--shadow-lg); }
.feat-block-desktop .feat-img img { width: 100%; max-height: 420px; object-fit: cover; object-position: top; display: block; transition: transform .3s ease; cursor: zoom-in; }
.feat-block-desktop .feat-body { max-width: 760px; }

.feat-title { font-size: 1.2rem; font-weight: 800; color: var(--navy); margin-bottom: 16px; line-height: 1.35; }
.feat-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.feat-list li { display: flex; align-items: flex-start; gap: 9px; font-size: .95rem; color: var(--gray-600); line-height: 1.75; }
.feat-list li::before { content: '✓'; color: var(--teal); font-weight: 900; flex-shrink: 0; margin-top: 2px; }
.feat-note { margin-top: 20px; padding: 14px 18px; background: var(--teal-light); border-left: 3px solid var(--teal); border-radius: 0 10px 10px 0; font-size: .88rem; color: var(--gray-600); line-height: 1.7; }
.feat-note strong { color: var(--navy); }

/* ── Footer brand logo ── */
.kk-footer .kk-brand-logo { height: 28px; padding: 0; }

/* ── Float CTA ── */
.kk-float-cta { position: fixed; bottom: 28px; right: 28px; z-index: 200; width: 210px; background: var(--white); border-radius: 14px; padding: 28px 18px 18px; box-shadow: 0 8px 40px rgba(11,58,104,.18), 0 2px 8px rgba(11,58,104,.08); animation: kk-float-pulse 3s ease-in-out infinite; }
.kk-float-cta-close { position: absolute; top: 8px; right: 10px; background: none; border: none; cursor: pointer; color: var(--gray-400); font-size: 1rem; line-height: 1; padding: 4px; font-family: inherit; }
.kk-float-cta-close:hover { color: var(--navy); }
.kk-float-cta-label { display: block; font-size: .78rem; font-weight: 700; color: var(--gray-600); line-height: 1.65; margin: 0 0 12px; }
.kk-float-cta-btn { display: block; text-align: center; background: #cc436d; color: var(--white); border-radius: 8px; padding: 11px 0; font-weight: 800; font-size: .88rem; text-decoration: none; transition: background .15s; }
.kk-float-cta-btn:hover { background: #b43159; }
@keyframes kk-float-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 8px 40px rgba(11,58,104,.18), 0 2px 8px rgba(11,58,104,.08); }
  50% { opacity: .8; box-shadow: 0 4px 20px rgba(11,58,104,.09), 0 1px 4px rgba(11,58,104,.04); }
}
@media (max-width: 480px) {
  .kk-float-cta { bottom: 16px; right: 16px; width: 190px; }
}

/* ── Lightbox ── */
.kk-lightbox { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.88); align-items: center; justify-content: center; padding: 20px; }
.kk-lightbox.is-open { display: flex; }
.kk-lightbox-img { max-width: 100%; max-height: 90vh; border-radius: 8px; box-shadow: 0 16px 64px rgba(0,0,0,.5); }
.kk-lightbox-close { position: fixed; top: 20px; right: 24px; background: rgba(255,255,255,.15); border: none; color: #fff; font-size: 1.5rem; line-height: 1; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.kk-lightbox-close:hover { background: rgba(255,255,255,.3); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .role-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .kk-hero-inner { grid-template-columns: 1fr; }
  .kk-hero-img { display: block; }
  .kk-hero-img img { height: 240px; width: 100%; object-fit: cover; object-position: top; }
  .feature-grid, .grid-2, .grid-3, .flow-cols, .dual-screens { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .flow-cols-3 { grid-template-columns: repeat(3, minmax(240px, 1fr)); }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 28px 28px; }
  .role-grid { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; padding-bottom: 16px; gap: 16px; }
  .role-card { flex-shrink: 0; width: 280px; scroll-snap-align: start; }
  .kk-nav {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--white); flex-direction: column; align-items: flex-start;
    padding: 16px 24px; gap: 16px;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
  }
  .kk-nav.is-open { display: flex; }
  .kk-nav-toggle { display: flex; }
  .kk-footer-inner { flex-direction: column; }
  .kk-footer-links { flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .feat-block-phone { grid-template-columns: 1fr; }
  .feat-block-phone .feat-img { order: -1; max-width: 240px; margin: 0 auto; }
  .feat-block-phone .feat-body { order: 0; }
  .feat-block-desktop .feat-img img { max-height: 240px; }
  .tab-btn { padding: 12px 16px; font-size: .88rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn-group { flex-direction: column; align-items: center; }
  .cta-band { padding: 28px 20px; }
}
