/* ============================================================
   OJAPAN TRUST — 高級感 × インフラの堅実さ
   ============================================================ */

/* ---- モバイル必須ガード（全フロント案件共通規約） ---- */
html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
}
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;       /* 子の絶対配置がbody外に出るのを防ぐ */
  overscroll-behavior: none;
  /* body への touch-action 指定は禁止（Chrome系でマウスホイールが効かなくなる）。横保護は overflow-x: hidden で足りる */
}
img, video, iframe { max-width: 100%; height: auto; }
table { max-width: 100%; }
input, textarea, select { max-width: 100%; box-sizing: border-box; }
pre, code { max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }

/* ---- 変数 ---- */
:root {
  --ink: #10151d;           /* 深い墨紺 */
  --ink-2: #1a2230;
  --paper: #f7f4ee;         /* 生成り */
  --paper-2: #efe9df;
  --gold: #b3924f;
  --gold-light: #d4bc86;
  --text: #2a2d33;
  --text-dim: #6b6f78;
  --text-on-dark: #e9e4da;
  --text-on-dark-dim: #9aa1ad;
  --line: rgba(179, 146, 79, 0.35);
  --serif-ja: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --serif-en: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--serif-ja);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ---- 言語切替（非表示側の言語だけを隠す＝各要素本来のdisplayを保つ） ---- */
html[lang="ja"] [data-lang-block="en"] { display: none !important; }
html[lang="en"] [data-lang-block="ja"] { display: none !important; }
html[lang="en"] body { font-family: var(--serif-en), var(--serif-ja); letter-spacing: 0.02em; }

/* ---- ヘッダー ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16, 21, 29, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.brand {
  color: var(--text-on-dark);
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}
.brand .mark {
  font-family: var(--serif-en);
  font-size: 1.35rem;
  letter-spacing: 0.18em;
  color: var(--gold-light);
}
.brand .sub {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-on-dark-dim);
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.82rem;
  color: var(--text-on-dark-dim);
  letter-spacing: 0.12em;
}
.header-nav a:hover { color: var(--gold-light); }
.lang-toggle {
  border: 1px solid var(--line);
  color: var(--gold-light);
  background: transparent;
  font-family: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.lang-toggle:hover { background: rgba(179, 146, 79, 0.15); }

/* ---- ヒーロー ---- */
.hero {
  background:
    radial-gradient(ellipse 900px 480px at 70% -10%, rgba(179, 146, 79, 0.18), transparent 60%),
    linear-gradient(170deg, var(--ink) 0%, var(--ink-2) 60%, #232c3d 100%);
  color: var(--text-on-dark);
  padding: 110px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, var(--gold));
}
.hero .kicker {
  font-size: 0.78rem;
  letter-spacing: 0.5em;
  color: var(--gold-light);
  margin-bottom: 26px;
}
.hero h1 {
  font-weight: 500;
  font-size: clamp(1.7rem, 4.6vw, 3rem);
  letter-spacing: 0.14em;
  line-height: 1.7;
  margin-bottom: 26px;
}
.hero .lead {
  color: var(--text-on-dark-dim);
  font-size: 0.95rem;
  max-width: 620px;
  margin: 0 auto 40px;
}
.hero-cta {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 14px 46px;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  transition: background 0.25s, color 0.25s;
}
.hero-cta:hover { background: var(--gold); color: var(--ink); }

/* ---- セクション共通 ---- */
.section { padding: 90px 0; }
.section.alt { background: var(--paper-2); }
.section.dark { background: var(--ink); color: var(--text-on-dark); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .en-label {
  font-family: var(--serif-en);
  font-size: 0.8rem;
  letter-spacing: 0.45em;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}
.section-head h2 {
  font-weight: 500;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  letter-spacing: 0.18em;
}
.section.dark .section-head h2 { color: var(--text-on-dark); }
.section-head .desc {
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 0.92rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.section.dark .section-head .desc { color: var(--text-on-dark-dim); }

/* ---- 信頼の柱 ---- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.trust-item {
  background: var(--ink);
  padding: 38px 28px;
}
.trust-item .num {
  font-family: var(--serif-en);
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  display: block;
  margin-bottom: 14px;
}
.trust-item h3 {
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  color: var(--text-on-dark);
}
.trust-item p {
  font-size: 0.85rem;
  color: var(--text-on-dark-dim);
  line-height: 1.9;
}

/* ---- 旗艦商品 ---- */
.flagship {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.flagship-visual {
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 96px;
  background: linear-gradient(160deg, #16283f, #1c3a5e 55%, #2a5580);
  border: 1px solid var(--line);
  position: relative;
}
.flagship-visual::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(212, 188, 134, 0.25);
  pointer-events: none;
}
.flagship-body .en-label {
  font-family: var(--serif-en);
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
}
.flagship-body h2 {
  font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: 0.1em;
  line-height: 1.7;
  margin-bottom: 20px;
}
.flagship-body p {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 26px;
}
.flagship-price {
  font-family: var(--serif-en);
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.flagship-price-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.btn-outline {
  display: inline-block;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 12px 40px;
  font-size: 0.82rem;
  letter-spacing: 0.25em;
  transition: background 0.25s, color 0.25s;
  cursor: pointer;
  background: transparent;
  font-family: inherit;
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  border: 1px solid var(--gold);
  padding: 13px 44px;
  font-size: 0.84rem;
  letter-spacing: 0.25em;
  transition: opacity 0.25s;
  cursor: pointer;
  font-family: inherit;
}
.btn-gold:hover { opacity: 0.85; }

/* ---- 商品カタログ ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 34px;
}
.product-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(16, 21, 29, 0.12);
}
.product-thumb {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 58px;
  color: #fff;
}
.product-body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.product-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.badge {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border: 1px solid var(--gold);
  color: #8a6f3a;
}
.badge.own { background: var(--gold); color: var(--ink); }
.product-body h3 {
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.06em;
  line-height: 1.6;
  margin-bottom: 10px;
}
.product-body .tagline {
  font-size: 0.8rem;
  color: var(--text-dim);
  flex: 1;
  margin-bottom: 16px;
}
.product-body .price {
  font-family: var(--serif-en);
  font-size: 1.08rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 14px;
}
.product-body .price small { font-size: 0.7rem; color: var(--text-dim); font-family: var(--sans); }

/* ---- 経済圏 ---- */
.eco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.eco-item {
  border: 1px solid var(--line);
  padding: 28px 22px;
  background: rgba(255, 255, 255, 0.03);
}
.eco-item.current { background: rgba(179, 146, 79, 0.12); border-color: var(--gold); }
.eco-item .tag {
  font-family: var(--serif-en);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}
.eco-item h3 { font-weight: 500; font-size: 0.98rem; letter-spacing: 0.08em; margin-bottom: 8px; }
.eco-item p { font-size: 0.8rem; color: var(--text-on-dark-dim); line-height: 1.8; }

/* ---- 提携募集 ---- */
.partner-cta {
  text-align: center;
  border: 1px solid var(--line);
  padding: 64px 32px;
  background:
    radial-gradient(ellipse 600px 300px at 50% 120%, rgba(179, 146, 79, 0.12), transparent 65%),
    var(--paper-2);
}
.partner-cta h2 { font-weight: 500; font-size: 1.4rem; letter-spacing: 0.16em; margin-bottom: 18px; }
.partner-cta p { color: var(--text-dim); font-size: 0.9rem; max-width: 620px; margin: 0 auto 32px; }

/* ---- 商品詳細モーダル ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 21, 29, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.modal-overlay.show { display: flex; }
.modal-panel {
  background: var(--paper);
  max-width: 860px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  border-top: 3px solid var(--gold);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 26px;
  color: var(--text-dim);
  cursor: pointer;
  line-height: 1;
  z-index: 2;
}
.modal-grid { display: grid; grid-template-columns: 1fr 1.2fr; }
.modal-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 88px;
  min-height: 320px;
  color: #fff;
}
.modal-body { padding: 40px 38px; }
.modal-body h2 { font-weight: 500; font-size: 1.3rem; letter-spacing: 0.08em; line-height: 1.6; margin: 12px 0 16px; }
.modal-body .desc { font-size: 0.9rem; color: var(--text-dim); margin-bottom: 24px; }
.modal-body .price { font-family: var(--serif-en); font-size: 1.4rem; }
.modal-body .price-note { font-size: 0.78rem; color: var(--text-dim); margin-bottom: 26px; }

/* ---- 問い合わせフォーム ---- */
.inquiry-form { max-width: 640px; margin: 0 auto; }
.form-row { margin-bottom: 22px; }
.form-row label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  color: var(--text-dim);
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #fff;
  padding: 13px 14px;
  font-family: var(--sans);
  font-size: 0.92rem;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--gold);
}
.form-note { font-size: 0.75rem; color: var(--text-dim); margin: 14px 0 26px; }

/* ---- フッター ---- */
.site-footer {
  background: var(--ink);
  color: var(--text-on-dark-dim);
  padding: 56px 0 40px;
  font-size: 0.8rem;
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer-brand .mark {
  font-family: var(--serif-en);
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  color: var(--gold-light);
  display: block;
  margin-bottom: 10px;
}
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a:hover { color: var(--gold-light); }
.copyright { margin-top: 36px; text-align: center; font-size: 0.72rem; color: #5a6270; }

/* ---- レスポンシブ ---- */
@media (max-width: 860px) {
  .header-nav { display: none; }
  .flagship { grid-template-columns: 1fr; gap: 32px; }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-visual { min-height: 200px; }
  .section { padding: 64px 0; }
  .hero { padding: 80px 0 70px; }
}
