:root {
  --primary: #9c7d4a;
  --primary-light: #c4a46b;
  --bg: #ffffff;
  --bg-cream: #faf6f1;
  --bg-dark: #2c2420;
  --text: #2c2420;
  --text-sub: #7a6a5a;
  --border: #e8ddd0;
  --radius: 4px;
  --good: #5b8a5b;
  --bad: #b96a6a;
}

body {
  font-family: 'Noto Sans JP', 'Noto Serif JP', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 15px;
}

.serif { font-family: 'Cormorant Garamond', 'Noto Serif JP', serif; }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / Nav */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
#header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.07); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { font-size: 1rem; font-weight: 700; letter-spacing: 0.08em; color: var(--text); }
.nav-logo span { color: var(--primary); }
.nav-left { display: flex; align-items: center; gap: 14px; }
.nav-back { font-size: 0.8rem; color: var(--text-sub); display: flex; align-items: center; gap: 4px; white-space: nowrap; transition: color 0.2s; }
.nav-back:hover { color: var(--primary); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 0.82rem; letter-spacing: 0.04em; color: var(--text-sub); transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }
.nav-links .nav-cta { background: var(--primary); color: #fff; padding: 9px 20px; border-radius: var(--radius); font-size: 0.8rem; letter-spacing: 0.06em; }
.nav-links .nav-cta:hover { background: var(--primary-light); color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 24px; }
.nav-toggle span { display: block; height: 1.5px; background: var(--text); transition: 0.3s; }

/* Hero */
.hero { padding: 140px 0 76px; background: var(--bg-cream); text-align: center; position: relative; overflow: hidden; }
.hero-img { width: 100%; height: 480px; object-fit: cover; position: absolute; top: 0; left: 0; opacity: 0.16; }
.hero-inner { position: relative; z-index: 1; }
.hero-en { font-size: 0.7rem; letter-spacing: 0.5em; color: var(--primary); margin-bottom: 18px; display: block; }
.hero-title { font-size: clamp(1.6rem, 4vw, 2.7rem); font-weight: 700; line-height: 1.5; margin-bottom: 20px; letter-spacing: 0.03em; }
.hero-sub { font-size: 0.9rem; color: var(--text-sub); margin-bottom: 34px; line-height: 1.9; max-width: 520px; margin-left: auto; margin-right: auto; }
.hero-proof { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-bottom: 36px; }
.proof-item { font-size: 0.78rem; color: var(--text-sub); display: flex; align-items: center; gap: 6px; }
.proof-item::before { content: '✦'; color: var(--primary); font-size: 0.68rem; }

.btn-primary { display: inline-block; background: var(--primary); color: #fff; padding: 15px 38px; font-size: 0.85rem; letter-spacing: 0.1em; border-radius: var(--radius); transition: background 0.2s, transform 0.2s; }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-2px); }
.btn-outline { display: inline-block; border: 1px solid var(--primary); color: var(--primary); padding: 13px 34px; font-size: 0.82rem; letter-spacing: 0.08em; border-radius: var(--radius); transition: 0.2s; }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* Sections */
section { padding: 76px 0; }
.section-muted { background: var(--bg-cream); }
.section-dark { background: var(--bg-dark); }
.section-header { text-align: center; margin-bottom: 44px; }
.section-en { font-size: 0.7rem; letter-spacing: 0.5em; color: var(--primary); margin-bottom: 10px; }
.section-title { font-size: clamp(1.2rem, 2.5vw, 1.55rem); font-weight: 700; letter-spacing: 0.04em; margin-bottom: 12px; }
.section-lead { font-size: 0.86rem; color: var(--text-sub); line-height: 1.9; }

/* Compare table */
.compare-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 16px; overflow-x: auto; }
table.compare { width: 100%; min-width: 460px; border-collapse: separate; border-spacing: 0; font-size: 0.82rem; }
table.compare th, table.compare td { padding: 13px 8px; text-align: center; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.compare thead th { font-size: 0.72rem; color: var(--text-sub); font-weight: 700; letter-spacing: 0.04em; }
table.compare thead th.highlight { color: var(--primary); }
table.compare tbody th { text-align: left; font-size: 0.78rem; color: var(--text-sub); font-weight: 700; padding-left: 4px; }
table.compare tbody tr:last-child td, table.compare tbody tr:last-child th { border-bottom: none; }
table.compare td.highlight { background: linear-gradient(135deg, rgba(156,125,74,.08), rgba(196,164,107,.08)); font-weight: 700; color: var(--text); }
.mark-good { color: var(--good); }
.mark-bad { color: var(--bad); }
.compare-note { text-align: center; font-size: 0.85rem; color: var(--text); line-height: 1.9; margin: 22px 4px 0; }

/* Flow */
.flow-list { display: flex; flex-direction: column; gap: 0; max-width: 640px; margin: 0 auto; }
.flow-item { display: flex; gap: 22px; align-items: flex-start; padding: 26px 0; border-bottom: 1px solid var(--border); }
.flow-item:last-child { border-bottom: none; }
.flow-num { flex-shrink: 0; width: 42px; height: 42px; border: 1px solid var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.flow-body h3 { font-size: 0.92rem; font-weight: 700; margin-bottom: 6px; }
.flow-body p { font-size: 0.82rem; color: var(--text-sub); line-height: 1.8; margin-bottom: 6px; }
.flow-time { display: inline-block; font-size: 0.7rem; color: var(--primary); background: rgba(156,125,74,.1); padding: 2px 10px; border-radius: 20px; }

.editor-shot { margin-top: 40px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: 0 14px 36px rgba(44,36,32,.09); max-width: 640px; margin-left: auto; margin-right: auto; }
.editor-shot img { display: block; width: 100%; height: auto; }
.editor-caption { text-align: center; font-size: 0.78rem; color: var(--text-sub); margin: 12px 0 0; }

/* Demo / works gallery */
.demo-gallery { display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 16px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; justify-content: center; flex-wrap: wrap; }
.demo-card { flex: none; width: 190px; scroll-snap-align: start; }
.demo-card img { display: block; width: 100%; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: 0 10px 28px rgba(44,36,32,.10); transition: transform 0.3s; }
.demo-card:hover img { transform: translateY(-4px); }
.demo-caption { text-align: center; font-size: 0.78rem; font-weight: 700; color: var(--text); margin: 10px 0 0; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-item { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-note { text-align: center; font-size: 0.75rem; color: var(--text-sub); margin-top: 16px; }

.template-swatches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 460px; margin: 0 auto; }
.template-swatch { border-radius: var(--radius); padding: 46px 18px; text-align: center; color: #fff; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; }

/* Features grid */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.feature-card { text-align: center; padding: 32px 22px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; transition: box-shadow 0.3s, transform 0.3s; }
.feature-card:hover { box-shadow: 0 10px 28px rgba(44,36,32,.08); transform: translateY(-3px); }
.feature-num { font-size: 1.5rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.8rem; color: var(--text-sub); line-height: 1.8; }

/* Pricing (single flat-price card) */
.price-wrap { display: flex; justify-content: center; }
.price-card { border: 1px solid var(--primary); border-radius: var(--radius); padding: 40px 44px; background: #fff; text-align: center; max-width: 380px; width: 100%; position: relative; }
.price-amount { font-size: 2.3rem; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.price-amount span { font-size: 0.82rem; font-weight: 400; color: var(--text-sub); margin-left: 6px; }
.price-list { text-align: left; display: flex; flex-direction: column; gap: 10px; margin: 22px 0 0; }
.price-list li { font-size: 0.82rem; color: var(--text-sub); padding-left: 20px; position: relative; }
.price-list li::before { content: '✓'; color: var(--primary); position: absolute; left: 0; }
.price-note { text-align: center; margin-top: 20px; font-size: 0.76rem; color: var(--text-sub); }

/* Operator profile */
.profile-card { display: flex; gap: 20px; align-items: flex-start; max-width: 640px; margin: 0 auto; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; background: #fff; }
.profile-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--bg-cream); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 26px; flex: none; }
.profile-name { font-size: 0.92rem; font-weight: 700; margin-bottom: 8px; }
.profile-text { font-size: 0.83rem; line-height: 1.9; color: var(--text-sub); }

/* FAQ accordion */
.faq-list { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 4px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q { padding: 18px 20px; font-size: 0.88rem; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; }
.faq-q::after { content: '+'; font-size: 1.2rem; color: var(--primary); font-weight: 300; transition: transform 0.3s; flex: none; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 20px 18px; }
.faq-a p { font-size: 0.82rem; color: var(--text-sub); line-height: 1.9; }
.faq-more { text-align: center; font-size: 0.8rem; margin-top: 20px; }
.faq-more a { color: var(--primary); }

/* Cross-link banner */
.nav-other { background: var(--bg-cream); border-top: 1px solid var(--border); text-align: center; padding: 40px 24px; }
.nav-other p { font-size: 0.85rem; color: var(--text-sub); margin-bottom: 14px; }

/* Footer */
#footer { background: var(--bg-dark); color: rgba(255,255,255,0.5); padding: 44px 0; text-align: center; }
.footer-logo { font-size: 0.95rem; font-weight: 700; color: rgba(255,255,255,0.85); letter-spacing: 0.1em; margin-bottom: 16px; }
.footer-links { margin: 0 0 14px; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 0.76rem; }
.footer-copy { font-size: 0.72rem; }

/* Fade-in */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.6s, transform 0.6s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .fade-in { transition: none; opacity: 1; transform: none; } }

/* Floating CTA (mobile only) */
.floating-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 10px 16px; background: rgba(255,255,255,.97); border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(0,0,0,.08); transform: translateY(100%); transition: transform 0.25s ease; display: none; }
.floating-cta.visible { transform: translateY(0); }
.floating-cta a { display: block; text-align: center; padding: 12px; font-size: 0.85rem; }

/* Legal / info pages (FAQ, tokushoho, terms, privacy) */
.legal-page{padding:120px 0 60px;}
.legal-wrap{max-width:720px;margin:0 auto;padding:0 24px;}
.legal-header{text-align:center;margin-bottom:36px;}
.legal-header h1{font-family:'Cormorant Garamond','Noto Serif JP',serif;font-size:1.5rem;font-weight:700;letter-spacing:.04em;margin:0 0 8px;}
.legal-header p{font-size:0.8rem;color:var(--text-sub);margin:0;}
.legal-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:28px 24px;}
.legal-body{font-size:0.85rem;line-height:1.9;color:var(--text);}
.legal-body h2{font-size:0.92rem;margin:26px 0 10px;padding-bottom:6px;border-bottom:1px solid var(--border);color:var(--primary);font-weight:700;}
.legal-body h2:first-child{margin-top:0;}
.legal-body p{margin:0 0 10px;}
.legal-body ol, .legal-body ul{margin:0 0 10px;padding-left:1.4em;}
.legal-body li{margin-bottom:4px;}
.legal-note{font-size:0.72rem;color:var(--text-sub);margin-top:24px;line-height:1.8;}
.legal-back{display:block;text-align:center;margin-top:28px;font-size:0.8rem;color:var(--text-sub);}
.legal-back a{color:var(--primary);}

table.legal-table{width:100%;border-collapse:collapse;font-size:0.82rem;line-height:1.8;}
table.legal-table th{width:34%;text-align:left;vertical-align:top;padding:14px 10px;border-top:1px solid var(--border);color:var(--primary);font-weight:700;font-size:0.76rem;}
table.legal-table td{padding:14px 10px;border-top:1px solid var(--border);vertical-align:top;}
table.legal-table tr:last-child th, table.legal-table tr:last-child td{border-bottom:1px solid var(--border);}

.faq-section-title{font-size:0.92rem;margin:32px 0 12px;padding-bottom:8px;border-bottom:1px solid var(--border);color:var(--primary);font-weight:700;}
.faq-section-title:first-of-type{margin-top:0;}
details.faq-item{border-bottom:1px solid var(--border);}
details.faq-item:last-child{border-bottom:none;}
details.faq-item summary{list-style:none;cursor:pointer;padding:14px 4px;font-size:0.85rem;font-weight:700;color:var(--text);display:flex;gap:10px;align-items:flex-start;}
details.faq-item summary::-webkit-details-marker{display:none;}
details.faq-item summary::before{content:"Q";flex-shrink:0;color:var(--primary);font-weight:700;}
details.faq-item[open] summary{color:var(--primary);}
details.faq-item .faq-answer{display:flex;gap:10px;padding:0 4px 16px;font-size:0.8rem;line-height:1.85;color:var(--text);}
details.faq-item .faq-answer::before{content:"A";flex-shrink:0;color:var(--text-sub);font-weight:700;}
details.faq-item .faq-answer p{margin:0;}

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 22px; gap: 18px; align-items: flex-start; }
  .nav-links.open { display: flex; }
  .nav-links .nav-cta { align-self: stretch; text-align: center; }
  .nav-toggle { display: flex; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 116px 0 56px; }
  .hero-proof { gap: 14px; }
  .flow-item { gap: 16px; }
  .profile-card { flex-direction: column; align-items: center; text-align: center; }
  .floating-cta { display: block; }
  section { padding: 56px 0; }
}
