:root {
  /* Chic palette: ivory × deep navy × muted gold */
  --bg: #FAF8F4;
  --gray: #F0ECE4;
  --surface: #FFFDF9;
  --ink: #1B2A3A;
  --text: #3A414B;
  --sub: #6E6C67;
  --line: #E2DACC;
  --accent: #A8885A;
  --accent-text: #86693F;
  --error: #A6402E;
  --on-ink: #FAF8F4;
  --en: "Inter", "Helvetica Neue", Arial, sans-serif;
  --ja: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--ja); font-size: 15px; line-height: 1.9; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--on-ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.nw { white-space: nowrap; }
.sp { display: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 28px; border-radius: 999px; background: var(--ink); color: var(--on-ink); border: 1.5px solid var(--ink); font: 500 15px/1 var(--ja); text-decoration: none; transition: background .2s, border-color .2s, color .2s; }
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.btn--sm { height: 38px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 60px; padding: 0 40px; font-size: 16px; }
.btn--disabled { background: var(--gray); border-color: var(--gray); color: var(--sub); cursor: default; }
.btn--disabled:hover { background: var(--gray); border-color: var(--gray); }
.textlink { font-size: 14px; color: var(--sub); text-decoration: none; }
.textlink:hover { color: var(--accent-text); }

/* header */
.header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(250,248,244,.94); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { height: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; }
.logo__name { font: 700 18px/1 var(--ja); letter-spacing: .02em; display: inline-flex; align-items: flex-end; gap: 3px; }
.logo__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-bottom: 2px; }
.logo__sub { font: 500 11px/1 var(--en); color: var(--sub); letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { font: 500 14px/1 var(--en); text-decoration: none; color: var(--ink); }
.nav a:not(.btn):hover { color: var(--accent); }
.menu-btn { display: none; }

/* hero */
.hero { padding: clamp(72px, 12vw, 160px) 0 clamp(80px, 11vw, 150px); }
.hero__title { font: 700 clamp(30px, 8vw, 96px)/1.25 var(--ja); letter-spacing: .01em; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__lead { margin-top: clamp(28px, 4vw, 44px); max-width: 40em; color: var(--sub); font-size: clamp(15px, 1.3vw, 17px); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }

/* sections */
.section { padding: clamp(80px, 10vw, 128px) 0; }
.section--gray { background: var(--gray); }
.section--tight { padding: clamp(56px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.head { margin-bottom: clamp(36px, 5vw, 56px); }
.head__en { font: 700 clamp(32px, 4vw, 56px)/1.1 var(--en); letter-spacing: -.02em; }
.head__ja { margin-top: 10px; font-size: 14px; color: var(--sub); }
.head__lead { margin-top: 20px; max-width: 36em; font-size: 16px; }
.split { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.split .head { margin-bottom: 0; }

/* product tiles */
.tabs { display: flex; gap: 28px; margin-bottom: 40px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { font: 500 15px/1 var(--ja); background: none; border: 0; padding: 0 0 14px; color: var(--sub); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 3.5vw, 48px) clamp(16px, 2.5vw, 32px); }
.tile__link { display: flex; flex-direction: column; text-decoration: none; height: 100%; }
.icon { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 22%; overflow: hidden; font: 700 clamp(40px, 5vw, 64px)/1 var(--en); color: #fff; margin-bottom: 18px; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.icon--img { background: var(--gray); }
.icon--img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.icon--soon { border: 1.5px dashed var(--line); color: var(--sub); font-weight: 400; background: var(--surface); }
.tile__name { font-size: 16px; font-weight: 700; line-height: 1.5; transition: color .2s; }
.tile__tagline { margin-top: 4px; font-size: 13px; line-height: 1.7; color: var(--sub); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
a.tile__link:hover .icon { transform: scale(1.03); }
a.tile__link:hover .tile__name { color: var(--accent); }
.status { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; color: var(--sub); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #C9C2B6; }
.status--live::before { background: var(--accent); }
.empty { color: var(--sub); padding: 24px 0; }

/* service */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.service { background: var(--surface); padding: clamp(28px, 4vw, 48px); }
.service__no { font: 700 15px/1 var(--en); color: var(--accent-text); }
.service h3 { margin: 18px 0 10px; font-size: clamp(19px, 1.8vw, 22px); font-weight: 700; line-height: 1.5; }
.service p { color: var(--text); }
.services__note { margin-top: 28px; color: var(--sub); }
.service .service__ex { margin-top: 14px; font-size: 13px; color: var(--sub); }

/* about + process */
.about { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__lines { font: 700 clamp(28px, 3.4vw, 44px)/1.5 var(--ja); }
.about__text p + p { margin-top: 1.2em; }
.about__text p { font-size: 16px; color: var(--text); }
.process { margin-top: clamp(72px, 9vw, 120px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line); }
.process__title { font: 700 clamp(24px, 2.4vw, 32px)/1.2 var(--en); letter-spacing: -.01em; }
.process__lead { margin-top: 10px; color: var(--sub); font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin-top: 36px; }
.steps li { position: relative; padding-top: 22px; border-top: 2px solid var(--ink); }
.steps li:first-child { border-top-color: var(--accent); }
.steps__no { display: block; font: 500 12px/1 var(--en); color: var(--sub); }
.steps strong { display: block; margin: 8px 0 8px; font: 700 18px/1.3 var(--en); }
.steps p { font-size: 13px; line-height: 1.8; color: var(--sub); }

/* news / company */
.list li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.list li:first-child { border-top: 1px solid var(--line); }
.list time { font: 500 14px/1.9 var(--en); color: var(--sub); }
.table { margin: 0; }
.table div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.table div:first-child { border-top: 1px solid var(--line); }
.table dt { color: var(--sub); font-size: 14px; }
.table dd { margin: 0; }

/* contact (contact.html) */
.page-contact main { min-height: calc(100vh - var(--header-h) - 120px); background: var(--gray); }
.contact { background: var(--gray); padding: clamp(88px, 11vw, 144px) 0; text-align: center; }
.contact__title { font: 700 clamp(28px, 4vw, 48px)/1.4 var(--ja); }
.contact p { margin: 20px auto 36px; max-width: 34em; color: var(--sub); }
.cform { max-width: 640px; margin: 0 auto; text-align: left; }
.cform__field { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.cform__label { display: block; margin-bottom: 8px; padding: 0; font: 500 14px/1.6 var(--ja); color: var(--ink); }
.cform__req, .cform__opt { margin-left: 8px; font-size: 11px; font-weight: 500; color: var(--accent-text); }
.cform__opt { color: var(--sub); }
.cform__input { display: block; width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: 400 16px/1.6 var(--ja); transition: border-color .2s; -webkit-appearance: none; appearance: none; }
.cform__input:hover { border-color: #C9BFAE; }
.cform__input:focus { outline: none; border-color: var(--ink); }
.cform__input[aria-invalid="true"] { border-color: var(--error); }
.cform__textarea { height: auto; min-height: 180px; padding: 14px 16px; resize: vertical; }
.cform__textarea::placeholder { color: #A39E95; font-size: 14px; }
.cform__choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; transition: background .2s, border-color .2s, color .2s; }
.choice:hover span { border-color: var(--ink); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.cform__err { min-height: 0; margin: 6px 0 0 !important; font-size: 13px; line-height: 1.5; color: var(--error) !important; text-align: left; }
.cform__err:empty { display: none; }
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform__submit { margin-top: 36px; text-align: center; }
.cform__submit .btn { cursor: pointer; min-width: 240px; justify-content: center; }
.cform__submit .btn:disabled { opacity: .55; cursor: default; }
.cform__submit .btn:disabled:hover { background: var(--ink); border-color: var(--ink); }
.contact .cform__note { margin: 16px auto 0; font-size: 12px; }
.contact .cform__status { margin: 16px auto 0; font-size: 14px; color: var(--error); text-align: center; }
.contact .cform__status:empty { display: none; }
.cform__status a { color: var(--ink); }
.cform__done { max-width: 640px; margin: 0 auto; padding: 48px 24px; background: var(--surface); outline: none; }
.contact .cform__done p { margin: 0 auto; }
.contact .cform__done .cform__done-title { margin-bottom: 8px; font-weight: 700; font-size: 18px; color: var(--ink); }
.cform__again { margin-top: 20px; border: 0; background: none; cursor: pointer; text-decoration: underline; font-family: var(--ja); }

/* footer */
.footer { padding: 48px 0; background: var(--ink); color: var(--on-ink); }
.footer .logo__sub, .footer__nav a, .footer__copy { color: #B9B4AA !important; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.footer__nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__nav a { font: 400 13px/1 var(--en); color: var(--sub); text-decoration: none; }
.footer__nav a:hover { color: var(--accent) !important; }
.footer__copy { font-size: 12px; color: var(--sub); }

/* detail */
.detail { padding: clamp(48px, 8vw, 104px) 0 clamp(80px, 10vw, 128px); min-height: 70vh; }
.detail__grid { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: clamp(36px, 7vw, 104px); align-items: start; }
.detail__media .icon { margin: 0; font-size: 96px; }
.detail__cat { font-size: 13px; color: var(--sub); }
.detail__name { margin-top: 6px; font: 700 clamp(36px, 5vw, 56px)/1.15 var(--en); letter-spacing: -.02em; }
.detail__tagline { margin-top: 24px; font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; line-height: 1.6; }
.detail__desc { margin-top: 16px; color: var(--text); max-width: 36em; }
.detail__tags { margin-top: 18px; font-size: 13px; color: var(--sub); }
.detail__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 36px; }
.notfound { text-align: center; padding: 64px 0; }
.notfound h1 { font-size: 24px; font-weight: 700; }
.notfound p { margin: 12px 0 28px; color: var(--sub); }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1024px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
}
@media (max-width: 860px) {
  :root { --header-h: 56px; }
  .menu-btn { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; margin-right: -10px; border: 0; background: transparent; cursor: pointer; z-index: 60; }
  .menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .3s; }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav:not(.nav--simple) { position: fixed; inset: 0; background: var(--bg); flex-direction: column; justify-content: center; gap: 28px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
  .nav:not(.nav--simple).is-open { opacity: 1; visibility: visible; }
  .nav:not(.nav--simple) a:not(.btn) { font-size: 20px; }
  .nav--simple { gap: 16px; }
  .split, .about, .detail__grid { grid-template-columns: 1fr; }
  .split { gap: 24px; }
  .services { grid-template-columns: 1fr; }
  .detail__media { max-width: 280px; }
  .pc { display: none; }
}
@media (max-width: 600px) {
  .cform__row { grid-template-columns: 1fr; }
  .cform__submit .btn { width: 100%; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .list li, .table div { grid-template-columns: 1fr; gap: 2px; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .sp { display: inline; }
  .nav--simple a:not(.btn) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
