/* クリスタルライト 公式サイト 共通スタイル */
:root {
  --ink: #3d3a3a;
  --ink-soft: #6b6666;
  --paper: #ffffff;
  --paper-warm: #faf8f5;
  --line: #e8e3dc;
  --accent: #5b4fa8;
  --accent-deep: #463c8a;
  --rainbow: linear-gradient(90deg, #e2007f, #e60012, #f39800, #fff100, #009944, #0068b7, #1d2088, #920783);
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 2; letter-spacing: .04em;
  font-feature-settings: "palt" 1;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-deep); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter); }

/* ヘッダー */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand img { width: 150px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink); text-decoration: none; font-size: 14px; letter-spacing: .08em; white-space: nowrap;
  padding: 8px 12px; border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--paper-warm); color: var(--accent-deep); }
.nav a.store-link { background: var(--accent); color: #fff; margin-left: 8px; padding: 8px 18px; }
.nav a.store-link:hover { background: var(--accent-deep); color: #fff; }
.menu-toggle { display: none; }

@media (max-width: 1080px) {
  .site-header .wrap { height: 60px; }
  .brand img { width: 128px; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff;
    color: var(--ink); font: inherit; font-size: 13px; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 60px; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; gap: 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a.store-link { margin: 12px 0 0; text-align: center; border-radius: 999px; border-bottom: 0; }
}

/* ヒーロー */
.hero { position: relative; min-height: min(86vh, 820px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero picture, .hero picture img, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video { background: #6c8aa3 center / cover no-repeat; }
.hero-caption { position: absolute; right: var(--gutter); bottom: 14px; z-index: 1; font-size: 12px; letter-spacing: .08em; opacity: .9; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(20,16,30,.55) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-bottom: clamp(40px, 8vh, 88px); width: 100%; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 5.4vw, 56px); line-height: 1.5; letter-spacing: .12em; margin: 0 0 16px; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.hero p { margin: 0; max-width: 34em; font-size: clamp(15px, 1.8vw, 17px); text-shadow: 0 1px 10px rgba(0,0,0,.35); }

.page-hero { position: relative; height: clamp(260px, 46vh, 460px); overflow: hidden; }
.page-hero img { width: 100%; height: 100%; object-fit: cover; }
.page-title { text-align: center; padding: clamp(48px, 8vw, 88px) 0 8px; }
.page-title .en { display: block; font-size: 12px; letter-spacing: .4em; color: var(--ink-soft); text-transform: uppercase; }
.page-title h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 4vw, 40px); letter-spacing: .14em; margin: 10px 0 0; line-height: 1.6; }

/* セクション */
section { padding: clamp(56px, 9vw, 112px) 0; }
section.tint { background: var(--paper-warm); }
.eyebrow { display: block; font-size: 12px; letter-spacing: .4em; color: var(--ink-soft); text-transform: uppercase; margin-bottom: 12px; }
h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 3.2vw, 32px); line-height: 1.7; letter-spacing: .1em; margin: 0 0 28px; }
h2::after { content: ""; display: block; width: 56px; height: 2px; background: var(--rainbow); margin-top: 18px; border-radius: 2px; }
.center { text-align: center; }
.center h2::after { margin-left: auto; margin-right: auto; }
h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(19px, 2.4vw, 23px); letter-spacing: .1em; line-height: 1.7; margin: 0 0 14px; }
p { margin: 0 0 1.4em; }
.lead { font-size: clamp(16px, 1.9vw, 18px); line-height: 2.2; }
.quote { font-family: var(--serif); font-size: clamp(17px, 2.2vw, 21px); line-height: 2.1; letter-spacing: .1em; border-left: 2px solid transparent; border-image: var(--rainbow) 1; padding: 4px 0 4px 22px; margin: 32px 0; }
.quote small { display: block; font-family: var(--sans); font-size: 13px; color: var(--ink-soft); letter-spacing: .06em; margin-top: 8px; }
.muted { color: var(--ink-soft); font-size: 14px; }

/* 2カラム */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split figure { margin: 0; }
.split img { width: 100%; border-radius: 4px; }
@media (max-width: 780px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

figure { margin: 0; }
figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 10px; letter-spacing: .06em; line-height: 1.7; }

/* 入口カード */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 32px); }
.card { display: block; color: var(--ink); text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(60,40,90,.08); color: var(--ink); }
.card img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.card .body { padding: 20px 22px 24px; }
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; font-size: 14px; line-height: 1.9; color: var(--ink-soft); }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* ギャラリー */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery figure { overflow: hidden; border-radius: 4px; background: var(--paper-warm); }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .6s ease; }
.gallery a:hover img { transform: scale(1.03); }
.gallery .wide { grid-column: span 2; }
.gallery .wide img { aspect-ratio: 3 / 2; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* 写真の帯 */
.band { position: relative; height: clamp(280px, 60vh, 620px); overflow: hidden; }
.band img, .band video { width: 100%; height: 100%; object-fit: cover; }
.band .caption { position: absolute; left: var(--gutter); bottom: 18px; color: #fff; font-size: 13px; letter-spacing: .08em; text-shadow: 0 1px 8px rgba(0,0,0,.5); }

/* 動画 */
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #111; border-radius: 6px; overflow: hidden; }
.video-frame iframe, .video-frame video, .video-frame img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.yt-facade { cursor: pointer; border: 0; padding: 0; margin: 0; display: block; width: 100%; height: 100%; background: none; }
.yt-facade .play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.yt-facade .play::before { content: ""; position: absolute; left: 31px; top: 24px; border-left: 22px solid var(--accent); border-top: 14px solid transparent; border-bottom: 14px solid transparent; }

/* 年表 */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 28px 28px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 10px; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); }
.timeline .year { font-family: var(--serif); font-size: 18px; letter-spacing: .1em; color: var(--accent-deep); display: block; line-height: 1.6; }

/* ボタン */
.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; padding: 14px min(32px, 6vw); border-radius: 999px; font-size: min(16px, 3.9vw); letter-spacing: .1em; white-space: nowrap; transition: background .2s ease; }
.btn:hover { background: var(--accent-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--accent-deep); border: 1px solid var(--accent); }
.btn.ghost:hover { background: var(--accent); color: #fff; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* 結びの帯 */
.cta { text-align: center; }
.cta p { color: var(--ink-soft); }

/* 会社情報の表 */
.info { width: 100%; border-collapse: collapse; font-size: 15px; }
.info th, .info td { text-align: left; vertical-align: top; padding: 16px 8px; border-bottom: 1px solid var(--line); line-height: 1.9; }
.info th { width: 9em; font-weight: 500; color: var(--ink-soft); white-space: nowrap; }
@media (max-width: 560px) { .info th, .info td { display: block; width: auto; padding: 4px 0; border: 0; } .info tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); } }

/* フッター */
.site-footer { background: #2f2b38; color: #d9d4e4; padding: 56px 0 40px; font-size: 14px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.footer-head { margin: 0 0 10px; font-size: 12px; letter-spacing: .3em; color: #a9a2bb; font-weight: 500; line-height: 1.6; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 4px 0; }
.footer-logo { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; }
.footer-logo img { width: 150px; }
.copy { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; color: #a9a2bb; }
.rainbow-rule { height: 3px; background: var(--rainbow); }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; } }

/* ふわっと表示 */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
