@charset "UTF-8";
/* ==========================================================================
   GReddy × RAYS TRUST 50周年記念モデル LP
   ========================================================================== */

:root {
  --bg: #0b0b0c;
  --bg-2: #141416;
  --line: #2a2a2e;
  --text: #f2f0ec;
  --muted: #a9a6a0;
  --bronze: #c08a52;
  --bronze-light: #d39b60;
  --bronze-deep: #8a5f35;
  --navy: #0d3a5e;
  --paper: #f4f2ee;
  --ink: #1a1714;
  --ink-muted: #6b655e;
  --font-ja: "Noto Sans JP", sans-serif;
  --font-en: "Oswald", "Noto Sans JP", sans-serif;
  --gutter: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ja);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
  line-break: strict;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

.en { font-family: var(--font-en); letter-spacing: .06em; }
.wrap { width: min(1120px, 100% - var(--gutter) * 2); margin-inline: auto; }
section { padding: 96px 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; background: var(--bronze); color: #111; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.sec-head { margin-bottom: 48px; font-weight: inherit; }
.sec-head .en { display: block; font-size: clamp(32px, 5vw, 52px); font-weight: 500; line-height: 1.1; }
.sec-head .ja { display: block; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--bronze); letter-spacing: .12em; }

/* header ---------------------------------------------------------------- */
.site-header { position: absolute; inset: 0 0 auto; z-index: 10; padding: 18px 0; }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.site-header .brand { font-family: var(--font-en); font-size: 14px; letter-spacing: .2em; text-decoration: none; color: var(--muted); white-space: nowrap; }
.site-nav { display: flex; gap: 20px; }
.site-nav a { font-size: 13px; text-decoration: none; color: var(--muted); transition: color .2s; }
.site-header a:hover { color: var(--text); }
.menu-toggle { display: none; }

/* hero ------------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  min-height: min(100svh, 860px);
  display: flex; align-items: center;
  padding: 80px 0 200px;
  --hero-title-size: clamp(26px, 3.6vw, 40px);
  background: #000;
}
.hero-photo { position: absolute; inset: 0 0 0 auto; width: 62%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #000 0%, rgba(0,0,0,.55) 28%, rgba(0,0,0,0) 60%);
}
.hero-inner { position: relative; z-index: 2; }
.hero-50 { width: clamp(180px, 24vw, 290px); margin-bottom: clamp(64px, 9vw, 120px); }
/* ロゴ幅は下の見出し「TRUST 50周年記念モデル」の文字幅（約11.8文字分）に合わせる */
.hero-logos { width: calc(var(--hero-title-size) * 11.8); margin-bottom: 36px; }
.hero h1 { font-size: var(--hero-title-size); font-weight: 900; line-height: 1.35; }
.hero .sub { color: var(--muted); font-size: clamp(15px, 1.6vw, 19px); letter-spacing: .08em; margin-top: 6px; }
.hero-release {
  margin-top: 40px; display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 18px;
  border: 1px solid var(--bronze-deep); padding: 12px 22px; background: rgba(0,0,0,.4);
}
.hero-release .d { font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; color: var(--bronze); line-height: 1; }
.hero-release .t { font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.hero-limited { margin-top: 14px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.hero-limited .en { font-size: clamp(15px, 1.6vw, 18px); font-weight: 600; letter-spacing: .14em; color: var(--bronze); }
.hero-limited .t { font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.scroll {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 2;
  font-size: 11px; letter-spacing: .3em; color: var(--muted);
  padding-bottom: 44px;
}
.scroll::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 36px;
  background: linear-gradient(var(--bronze), transparent);
  transform-origin: top; animation: scroll-line 2.2s var(--ease) infinite;
}
@keyframes scroll-line {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* hero intro animation */
/* 表示順: 50thロゴ → GReddy×RAYSロゴ → 見出し（タイプライター） → 英字サブ → 受注開始ボックス */
.hero-photo { animation: fade 1.6s ease both; }
.hero-50 { animation: rise .9s var(--ease) both; }
.hero-logos { animation: scale-in 1.2s var(--ease) .25s both; }
.hero .sub { animation: rise .9s var(--ease) 2.1s both; }
.hero-release { animation: scale-in .9s var(--ease) 2.6s both; }
.hero-limited { animation: rise .9s var(--ease) 2.9s both; }

/* 見出しのタイプライター演出。文字の分割と表示はmain.jsで行う。
   JSが動かなかった場合も、フォールバックのアニメーションで見出しを表示する */
.js .hero h1 { opacity: 0; animation: fade .4s ease 2.2s forwards; }
.js .hero h1.is-typing { opacity: 1; animation: none; }
.tw-char { position: relative; opacity: 0; }
.tw-char.is-shown { opacity: 1; }
.tw-char.is-current::after {
  content: ""; position: absolute; top: .12em; bottom: .08em; right: -.1em; width: .08em;
  background: var(--bronze); animation: caret-blink .8s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }
@keyframes scale-in { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* intro ----------------------------------------------------------------- */
.intro { background: var(--bg-2); text-align: center; }
.intro .lead { font-size: clamp(20px, 2.6vw, 28px); font-weight: 700; line-height: 1.7; }
.intro .body { max-width: 720px; margin: 28px auto 0; color: var(--muted); text-align: left; }
@media (min-width: 600px) { .intro .body { text-align: center; } }

/* features -------------------------------------------------------------- */
.features-grid { display: grid; gap: 72px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature:nth-child(even) .feature-media { order: 2; }
.feature .num { color: var(--bronze); font-size: 15px; letter-spacing: .2em; }
.feature h3 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; line-height: 1.5; margin: 8px 0 16px; }
.feature-body > p:not(.num) { color: var(--muted); }

.feature-media { aspect-ratio: 4 / 3; position: relative; overflow: hidden; }
.feature-media--product {
  background: radial-gradient(circle at 50% 55%, #2a2622 0%, #141416 55%, var(--bg) 100%);
  display: grid; place-items: center;
}
.feature-media--product img { width: 78%; filter: drop-shadow(0 24px 32px rgba(0,0,0,.6)); }

.feature-media--spec {
  background: linear-gradient(135deg, #17171a, #0f0f11);
  border: 1px solid var(--line);
  display: grid; place-items: center; padding: 24px;
}
.offset-visual { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.offset-visual > div { text-align: center; padding: 8px 12px; }
.offset-visual > div + div { border-left: 1px solid var(--line); }
.offset-visual dt { font-size: clamp(12px, 1.3vw, 15px); color: var(--muted); letter-spacing: .14em; }
.offset-visual dd { font-size: clamp(56px, 8vw, 104px); font-weight: 500; color: var(--bronze); line-height: 1.1; }
.offset-visual dd.sz { font-size: clamp(14px, 1.6vw, 18px); color: var(--text); letter-spacing: .1em; }

.feature-media--gallery { aspect-ratio: auto; overflow: visible; }
.engraving-main { width: 100%; aspect-ratio: 800 / 533; object-fit: cover; transition: opacity .3s; }
.engraving-main.is-switching { opacity: 0; }
.engraving-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.engraving-thumbs button { position: relative; display: block; opacity: .5; transition: opacity .2s; }
.engraving-thumbs button::after { content: ""; position: absolute; inset: 0; border: 2px solid transparent; transition: border-color .2s; }
.engraving-thumbs button:hover { opacity: .85; }
.engraving-thumbs button.is-active { opacity: 1; }
.engraving-thumbs button.is-active::after { border-color: var(--bronze); }
.engraving-thumbs img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.engraving-thumbs span {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.feature--text { grid-template-columns: 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 0; }
.feature--text .feature-body { max-width: 720px; }

.spec-list { margin-top: 16px; border-top: 1px solid var(--line); }
.spec-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.spec-list li span { display: inline-block; min-width: 150px; font-weight: 500; color: var(--bronze); }

/* colors ---------------------------------------------------------------- */
.colors { background: var(--paper); color: var(--ink); }
.color-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.color-card { background: #fff; padding: 20px 16px 22px; text-align: center; }
.color-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; transition: transform .5s var(--ease); }
.color-card:hover img { transform: scale(1.06); }
.color-card .ja { font-weight: 700; margin-top: 14px; font-size: 15px; line-height: 1.5; }
.color-card .ja sup { font-size: .7em; margin-left: 2px; }
.color-card .en { font-size: 13px; color: var(--ink-muted); }
.color-note { font-size: 12px; color: var(--ink-muted); margin-top: 16px; text-align: right; }

/* price & release ------------------------------------------------------- */
.buy { background: var(--navy); padding: 0; overflow: hidden; }
.buy-grid { display: grid; grid-template-columns: 1fr 1fr; }
.buy-cell { padding: 72px 48px; }
.buy-cell + .buy-cell { border-left: 1px solid rgba(255,255,255,.18); }
.buy-cell .label { font-size: 14px; letter-spacing: .2em; color: rgba(255,255,255,.75); }
.buy-cell .label b { font-family: var(--font-ja); font-weight: 700; margin-left: 8px; letter-spacing: .06em; }
.release-date { font-weight: 600; font-size: clamp(46px, 6.4vw, 76px); line-height: 1.1; margin-top: 10px; }
.price-list { margin-top: 14px; display: grid; gap: 10px; }
.price-list div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 18px; }
.price-list dt { font-size: clamp(16px, 1.8vw, 20px); font-weight: 600; letter-spacing: .04em; color: rgba(255,255,255,.75); min-width: 5.2em; }
.price-list dd .en { font-weight: 600; font-size: clamp(36px, 4.6vw, 54px); line-height: 1.15; }
.price-list dd small { font-size: 14px; font-weight: 700; margin-left: 4px; }
.release-ja { font-size: clamp(20px, 2.4vw, 26px); font-weight: 900; margin-top: 6px; }
.release-en { font-size: 14px; color: rgba(255,255,255,.75); letter-spacing: .04em; }
.buy-bar { height: 6px; background: linear-gradient(90deg, var(--navy) 0 calc(100% / 3), #e3a320 calc(100% / 3) calc(100% * 2 / 3), #1aa0c8 calc(100% * 2 / 3) 100%); }

/* size ------------------------------------------------------------------ */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.size-table { width: 100%; min-width: 640px; border-collapse: collapse; }
.size-table thead th { background: #1c1416; font-size: 13px; font-weight: 500; padding: 14px 12px; text-align: center; white-space: nowrap; }
.size-table thead th .en { display: block; font-size: 11px; color: var(--muted); }
.size-table tbody th, .size-table td {
  padding: 22px 12px; border-bottom: 1px solid var(--line);
  text-align: center; font-weight: 700; font-size: 17px;
}
.size-table tbody th, .size-table td:nth-child(2) { white-space: nowrap; }
.size-table td.app { font-size: 15px; line-height: 1.6; }
.size-table td.app span { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }

/* cta ------------------------------------------------------------------- */
.cta { background: var(--bg-2); text-align: center; }
.cta p { color: var(--muted); }

/* footer ---------------------------------------------------------------- */
.site-footer { padding: 48px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: var(--text); }
.site-footer small { font-size: inherit; }

/* scroll reveal (JS有効時のみ) ------------------------------------------- */
.js .js-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .js-reveal.is-visible { opacity: 1; transform: none; }
.js .color-grid .js-reveal:nth-child(2) { transition-delay: .08s; }
.js .color-grid .js-reveal:nth-child(3) { transition-delay: .16s; }
.js .color-grid .js-reveal:nth-child(4) { transition-delay: .24s; }
/* イントロ: 見出しはスケールイン、本文は少し遅れてフェードイン */
.js .js-reveal--scale { transform: scale(.85); transition-duration: 1.1s; }
.js .js-reveal--scale.is-visible { transform: none; }
.js .js-reveal--delay { transition-delay: .5s; }
/* 価格・発売日: PRICEは左から、RELEASEは右からスライドイン */
.js .js-reveal--left, .js .js-reveal--right { transition-duration: 1s; }
.js .js-reveal--left { transform: translateX(-48px); }
.js .js-reveal--right { transform: translateX(48px); transition-delay: .8s; }
.js .js-reveal--left.is-visible, .js .js-reveal--right.is-visible { transform: none; }

/* responsive ------------------------------------------------------------ */
@media (max-width: 820px) {
  section { padding: 72px 0; }
  .site-header { padding: 14px 0; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 12px; }

  /* ハンバーガーメニュー（JS有効時のみ。無効時は通常のナビを表示） */
  .js .menu-toggle {
    display: grid; place-items: center;
    position: fixed; top: 10px; right: 10px; z-index: 30;
    width: 48px; height: 48px;
    background: rgba(11,11,12,.72);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.12);
  }
  .menu-toggle-bar, .menu-toggle-bar::before, .menu-toggle-bar::after {
    display: block; width: 20px; height: 2px; background: var(--text);
    transition: transform .3s var(--ease), background-color .3s;
  }
  .menu-toggle-bar { position: relative; }
  .menu-toggle-bar::before, .menu-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .menu-toggle-bar::before { transform: translateY(-6px); }
  .menu-toggle-bar::after { transform: translateY(6px); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bar { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bar::before { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bar::after { transform: rotate(-45deg); }

  .js .site-nav {
    position: fixed; inset: 0; z-index: 20;
    flex-direction: column; justify-content: center; gap: 0;
    padding: 80px 32px;
    background: rgba(11,11,12,.97);
    visibility: hidden; opacity: 0;
    transition: opacity .3s var(--ease), visibility 0s linear .3s;
  }
  .js .site-nav.is-open { visibility: visible; opacity: 1; transition: opacity .3s var(--ease); }
  .js .site-nav a {
    display: block; padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: 18px; font-weight: 700; letter-spacing: .08em; color: var(--text);
  }
  .js .site-nav a:first-child { border-top: 1px solid var(--line); }
  .js .site-nav a:hover { color: var(--bronze); }
  .js body.is-menu-open { overflow: hidden; }
  .hero { align-items: flex-end; min-height: min(100svh, 720px); padding: 96px 0 150px; }
  .hero-photo { width: 100%; }
  .scroll { display: none; }
  .hero-inner { text-align: center; }
  .hero-50, .hero-logos { margin-inline: auto; }
  .hero-release { justify-content: center; }
  .hero-limited { justify-content: center; }
  .hero-photo img { object-position: 72% center; opacity: .6; }
  .hero-photo::after { background: linear-gradient(0deg, #000 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.25) 100%); }
  .features-grid { gap: 56px; }
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .feature:nth-child(even) .feature-media { order: 0; }
  .feature-media--spec { aspect-ratio: auto; padding: 40px 16px; }
  .feature--text { padding: 32px 0; }
  .color-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .color-card { padding: 14px 10px 16px; }
  .color-card .ja { font-size: 14px; }
  .color-note { text-align: left; }
  .buy-grid { grid-template-columns: 1fr; }
  .buy-cell { padding: 48px 0; }
  .js .js-reveal--left, .js .js-reveal--right { transform: translateY(24px); }
  .buy-cell + .buy-cell { border-left: 0; border-top: 1px solid rgba(255,255,255,.18); }
  .size-table tbody th, .size-table td { font-size: 15px; }
}
@media (max-width: 480px) {
  html:not(.js) .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 6px; }
  .spec-list li span { display: block; min-width: 0; }
}

/* reduced motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .js-reveal { opacity: 1; transform: none; }
  .js .hero h1 { opacity: 1; }
  .scroll::after { transform: none; }
}
