/* Base */
:root {
  --bg: #ffffff;
  --ink: #132322;
  --muted: #5a6b69;
  --brand: #1fc6a6;
  --brand-ink: #0e6b5d;
  --surface: #f4fbfa;
  --card: #ffffff;
  --shadow: 0 8px 24px rgba(0,0,0,.08);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Noto Sans JP', system-ui, -apple-system, Segoe UI, Roboto, 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
}

img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(1200px, 98%);
  margin: 0 auto;
}

@media (max-width: 768px) {
  .container {
    width: min(1200px, 92%);
  }
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e9efee;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; }
.brand__logo { display: inline-flex; align-items: center; justify-content: center; }
.brand__logo-img { height: auto; max-height: 40px; width: auto; object-fit: contain; }
.brand__logo-img--mobile { display: none; }
.brand__logo-img--desktop { display: block; }
.brand__divider { width: 1px; height: 18px; background: #d8e7e4; }
.brand__product { font-weight: 700; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.menu-toggle__bar { display: block; width: 24px; height: 3px; background: var(--ink); border-radius: 2px; transition: all 0.3s ease; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

.site-nav { display: flex; gap: 18px; align-items: center; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }

/* Hero */
.hero { position: relative; padding: 80px 0 64px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background: linear-gradient(140deg, var(--surface), #e9fbf7 60%, #ffffff); z-index: -1; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }
.hero__grid--single { grid-template-columns: 1fr; }
.eyebrow { color: var(--brand-ink); font-weight: 700; margin: 0 0 10px; }
.hero h1 { font-size: clamp(24px, 4vw, 40px); line-height: 1.4; margin: 0 0 18px; }
.hero .lead { color: var(--muted); margin: 0 0 24px; max-width: 92%; }

.em { color: var(--brand-ink); background: linear-gradient(transparent 55%, rgba(31,198,166,.25) 55%); padding: 0 2px; }

.hero__ctas { display: flex; gap: 12px; margin: 18px 0 12px; flex-wrap: wrap; }
.trust { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { background: #e8f9f5; color: var(--brand-ink); border: 1px solid #c7efe6; padding: 4px 10px; border-radius: 999px; font-size: 12px; }

.hero__visual { position: relative; min-height: 420px; }

/* Devices mock */
.devices { position: relative; height: 460px; }
.tablet, .phone { position: absolute; background: #000; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.25), 0 15px 40px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.1); overflow: hidden; transform-style: preserve-3d; }
.tablet { width: 520px; height: 360px; right: 10px; top: 20px; padding: 6px; transform: perspective(1200px) rotateY(-3deg) rotateX(2deg); z-index: 1; }
.tablet::before { content: ''; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 120px; height: 5px; background: #1a1a1a; border-radius: 0 0 5px 5px; z-index: 10; }
.tablet::after { content: ''; position: absolute; inset: 6px; border-radius: 8px; background: #fff; z-index: 1; }
.phone { width: 250px; height: 410px; left: 15px; bottom: 10px; padding: 6px; transform: perspective(1200px) rotateY(3deg) rotateX(-2deg); z-index: 2; }
.phone::before { content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: #000; border-radius: 0 0 6px 6px; z-index: 10; }
.phone::after { content: ''; position: absolute; inset: 6px; border-radius: 8px; background: #fff; z-index: 1; }
.chat { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 12px; height: 100%; background: linear-gradient(180deg, #f9fdfc, #f1fbf7); padding: 16px; border-radius: 8px; overflow: hidden; box-shadow: inset 0 2px 8px rgba(0,0,0,.04); }
.phone .chat { padding: 12px; gap: 10px; border-radius: 6px; }
.chat__item { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 4px; }
.chat__item--sys { justify-content: flex-start; }
.chat__item--user { justify-content: flex-end; flex-direction: row-reverse; }
.chat__icon { flex-shrink: 0; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,.12); z-index: 1; }
.chat__icon--ai { background: linear-gradient(135deg, rgba(31,198,166,.3), rgba(31,198,166,.2)); }
.chat__icon--user { background: linear-gradient(135deg, rgba(233,238,251,1), rgba(217,224,240,.9)); }
.chat__bubble { max-width: 75%; padding: 10px 14px; border-radius: 16px; font-size: 12px; line-height: 1.5; box-shadow: 0 2px 8px rgba(0,0,0,.08); position: relative; }
.phone .chat__bubble { padding: 8px 12px; font-size: 11px; }
.chat__bubble--sys { background: linear-gradient(135deg, #e8f9f5, #d4f3ea); color: var(--brand-ink); border-bottom-left-radius: 6px; margin-left: 4px; }
.chat__bubble--sys::before { content: ''; position: absolute; left: -8px; bottom: 10px; width: 0; height: 0; border-right: 8px solid #e8f9f5; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.chat__bubble--user { background: linear-gradient(135deg, #e9eefb, #d9e0f0); color: #2a3560; border-bottom-right-radius: 6px; margin-right: 4px; }
.chat__bubble--user::after { content: ''; position: absolute; right: -8px; bottom: 10px; width: 0; height: 0; border-left: 8px solid #e9eefb; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 10px; border: 1px solid #d7ece8; background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; box-shadow: 0 2px 0 rgba(0,0,0,.02); }
.btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--ghost { background: transparent; }
.btn--lg { padding: 14px 22px; font-size: 18px; }

/* Sections */
.section { padding: 72px 0; }
.section--alt { background: var(--surface); }
.section--cta { background: linear-gradient(180deg, var(--surface), #dff7f0); }
.section__title { text-align: center; margin: 0 0 28px; font-size: clamp(20px, 3.2vw, 32px); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid #e7f0ee; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card__image { width: 100%; height: 200px; object-fit: cover; border-radius: 10px; margin-bottom: 16px; }
.card h3 { margin: 0 0 10px; font-size: 18px; text-align: center; }
.card p { margin: 0 0 10px; color: var(--muted); }
.list { padding-left: 18px; margin: 0; }
.cards .card:nth-child(1),
.cards .card:nth-child(2),
.cards .card:nth-child(3) {
  grid-column: span 2;
}
.cards .card:nth-child(4) {
  grid-column: 2 / span 2;
}
.cards .card:nth-child(5) {
  grid-column: 4 / span 2;
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; list-style: none; padding: 0; position: relative; }
.steps::before { content: ''; position: absolute; top: 60px; left: 16.6%; right: 16.6%; height: 3px; background: linear-gradient(90deg, var(--brand) 0%, var(--brand) 50%, #d7ece8 50%, #d7ece8 100%); z-index: 0; }
.steps > li { background: var(--card); border: 2px solid #e7f0ee; border-radius: var(--radius); padding: 80px 20px 20px; box-shadow: var(--shadow); position: relative; text-align: center; transition: all 0.3s ease; }
.steps > li:hover { border-color: var(--brand); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.12); }
.steps > li h3 { margin: 0 0 10px; padding-left: 0; font-size: 18px; color: var(--ink); }
.steps > li p { color: var(--muted); line-height: 1.6; }
.steps > li::before { counter-increment: step; content: counter(step); position: absolute; left: 50%; top: 24px; transform: translateX(-50%); width: 52px; height: 52px; border-radius: 999px; background: linear-gradient(135deg, var(--brand), #17a085); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 24px; box-shadow: 0 4px 12px rgba(31,198,166,.3); z-index: 1; border: 4px solid #fff; }
.steps > li::after { content: '→'; position: absolute; right: -26px; top: 46px; font-size: 28px; color: var(--brand); font-weight: 700; z-index: 2; }
.steps > li:last-child::after { display: none; }
.cta-center { text-align: center; margin-top: 32px; }

/* Benefits */
.benefits { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.benefit { background: var(--card); border: 1px solid #e7f0ee; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.benefit h3 { margin: 0 0 6px; text-align: center; }
.benefit p { margin: 0; color: var(--muted); }

/* Accordion */
.accordion details { background: var(--card); border: 1px solid #e7f0ee; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; box-shadow: var(--shadow); }
.accordion summary { cursor: pointer; font-weight: 700; }
.accordion__content { color: var(--muted); padding-top: 8px; }

/* CTA */
.cta { text-align: center; }
.cta__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }

/* Form */
.contact-form { max-width: 600px; margin: 32px auto 0; background: var(--card); border: 1px solid #e7f0ee; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 700; color: var(--ink); }
.form-group .required { color: #e85454; }
.form-group input,
.form-group select,
.form-group textarea { width: 100%; padding: 10px 14px; border: 1px solid #d7ece8; border-radius: 8px; font-family: inherit; font-size: 14px; transition: border-color 0.2s; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,198,166,.1); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit { text-align: center; margin-top: 24px; }
.form-submit .btn { min-width: 200px; }

/* Footer */
.site-footer { background: #0f2927; color: #c8e1de; padding: 22px 0; }
.footer-inner { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.footer-brand { display: inline-flex; gap: 8px; align-items: center; }
.footer__logo { height: auto; max-height: 24px; width: auto; object-fit: contain; }
.site-footer a { color: #c8e1de; }

/* Responsive */
@media (max-width: 960px) {
  .hero { padding: 60px 0 48px; }
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero .lead { max-width: 100%; }
  .hero__visual { min-height: 340px; }
  .steps, .benefits { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards .card:nth-child(1),
  .cards .card:nth-child(2),
  .cards .card:nth-child(3),
  .cards .card:nth-child(4),
  .cards .card:nth-child(5) {
    grid-column: span 1;
  }
  .devices { height: 360px; }
  .tablet { width: 100%; max-width: 480px; right: 0; top: 10px; transform: none; padding: 6px; }
  .tablet::before { top: 8px; width: 100px; height: 5px; }
  .tablet::after { inset: 6px; }
  .phone { left: 12px; width: 200px; transform: none; }
}

@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; position: relative; }
  .menu-toggle { display: flex; }
  .brand__logo-img--desktop { display: none; }
  .brand__logo-img--mobile { display: block; max-height: 36px; }
  .site-nav { display: none; flex-direction: column; width: 100%; gap: 10px; order: 3; padding-top: 12px; border-top: 1px solid #e9efee; margin-top: 12px; }
  .site-nav.is-open { display: flex; }
  .site-nav a { width: 100%; text-align: center; padding: 10px; }
  .hero { padding: 40px 0 32px; }
  .hero h1 { font-size: 24px; }
  .hero__ctas { flex-direction: column; width: 100%; }
  .hero__ctas .btn { width: 100%; }
  .trust { justify-content: center; }
  .hero__visual { min-height: 300px; }
  .devices { height: 320px; }
  .tablet { max-width: 100%; height: auto; aspect-ratio: 4/3; }
  .phone { width: 160px; height: 300px; }
  .section { padding: 48px 0; }
  .section__title { font-size: 24px; }
  .cards, .steps, .benefits { gap: 16px; }
  .cards { grid-template-columns: 1fr !important; }
  .cards .card:nth-child(1),
  .cards .card:nth-child(2),
  .cards .card:nth-child(3),
  .cards .card:nth-child(4),
  .cards .card:nth-child(5) {
    grid-column: span 1 !important;
  }
  .card, .benefit { padding: 16px; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .steps > li { padding: 70px 16px 16px; }
  .steps > li::after { display: none; }
  .steps > li::before { width: 48px; height: 48px; font-size: 22px; top: 16px; }
  .cta__actions { flex-direction: column; width: 100%; }
  .cta__actions .btn { width: 100%; }
  .footer-inner { flex-direction: column; text-align: center; }
}


