/*
 * style.css
 * インペリアルグループ コーポレートサイトの共通スタイル。
 * デザイン方針：ネイビー×ゴールドの重厚コーポレート／IR的な堅牢さ。
 * 見出しは明朝体（Noto Serif JP）、本文はゴシック体（Noto Sans JP）。
 */

/* ============ デザイントークン（色・余白・タイポ） ============ */
:root {
  --navy-900: #0a1730;   /* 最深部・フッター・ヒーロー */
  --navy-800: #0d2149;   /* ヘッダー・面 */
  --navy-700: #16305f;   /* ホバー面 */
  --navy-600: #24427c;
  --gold-500: #c4a052;   /* 差し色（ゴールド） */
  --gold-400: #d4b671;
  --gold-300: #e3cf9c;
  --ink-900:  #1a1e26;   /* 本文テキスト */
  --ink-600:  #4a5160;   /* 補足テキスト */
  --ink-400:  #8a90a0;
  --line:     #e4e2da;   /* 罫線 */
  --paper:    #f7f6f2;   /* 背景（オフホワイト） */
  --paper-2:  #efece4;   /* 面の背景 */
  --white:    #ffffff;

  --serif: "Noto Serif JP", "Shippori Mincho", "Yu Mincho", "游明朝", serif;
  --sans:  "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "游ゴシック", sans-serif;

  --wrap: 1160px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --header-h: 76px;
}

/* ============ リセット・基盤 ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink-900);
  background: var(--paper);
  line-height: 1.8;
  letter-spacing: .02em;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s, opacity .2s; }
ul { list-style: none; }

.wrap { width: min(var(--wrap), 92%); margin-inline: auto; }
.serif { font-family: var(--serif); }
.gold { color: var(--gold-500); }

/* セクション共通 */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--paper2 { background: var(--paper-2); }
.section--navy { background: var(--navy-800); color: #eef1f7; }

.section-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head .en {
  display: block;
  font-family: var(--serif);
  font-size: .72rem;
  letter-spacing: .35em;
  color: var(--gold-500);
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.section-head .ja {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy-900);
}
.section--navy .section-head .ja { color: #fff; }
.section-head .lead { margin-top: 1rem; color: var(--ink-600); max-width: 640px; }
.section--navy .section-head .lead { color: #c3ccdd; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--serif);
  font-size: .92rem;
  padding: .95rem 2.1rem;
  border: 1px solid var(--gold-500);
  color: var(--navy-900);
  background: transparent;
  letter-spacing: .1em;
  cursor: pointer;
  transition: background .25s, color .25s, transform .2s;
}
.btn:hover { background: var(--gold-500); color: #fff; }
.btn--gold { background: var(--gold-500); color: #fff; }
.btn--gold:hover { background: var(--gold-400); border-color: var(--gold-400); }
.btn--ghost-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ============ ヘッダー ============ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(10, 23, 48, 0);
  transition: background .3s, box-shadow .3s, height .3s;
}
.header.scrolled,
.header.solid {
  background: var(--navy-900);
  box-shadow: 0 2px 24px rgba(0,0,0,.18);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; width: min(var(--wrap), 94%); }
.brand { display: flex; align-items: center; gap: .8rem; color: #fff; }
.brand__logo { height: 40px; width: auto; display: block; }
.brand__mark {
  width: 40px; height: 40px; flex: none;
  border: 1.5px solid var(--gold-500); color: var(--gold-400);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 1.15rem;
}
.brand__mark img { width: 100%; height: 100%; object-fit: contain; }
.brand__name { font-family: var(--serif); line-height: 1.25; }
.brand__name b { display: block; font-size: 1.02rem; font-weight: 600; letter-spacing: .06em; }
.brand__name span { display: block; font-size: .62rem; letter-spacing: .28em; color: var(--gold-300); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { color: #eaeef6; font-size: .9rem; letter-spacing: .06em; position: relative; padding: .3rem 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--gold-500); transition: width .25s;
}
.nav a:hover { color: #fff; }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav__cta { border: 1px solid var(--gold-500); padding: .55rem 1.3rem !important; }
.nav__cta:hover { background: var(--gold-500); }
.nav__cta::after { display: none; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 34px; height: 26px; position: relative; }
.nav-toggle span { position: absolute; left: 0; width: 100%; height: 2px; background: #fff; transition: .3s; }
.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 12px; }
.nav-toggle span:nth-child(3) { top: 22px; }
.nav-toggle.open span:nth-child(1) { top: 12px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 12px; transform: rotate(-45deg); }

/* ============ ヒーロー ============ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background:
    radial-gradient(1200px 700px at 75% -5%, rgba(196,160,82,.16), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: #fff; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(1000px 700px at 70% 30%, #000, transparent 75%);
}
.hero__inner { position: relative; z-index: 2; padding-top: var(--header-h); }
.hero__eyebrow {
  font-family: var(--serif); letter-spacing: .32em; font-size: .78rem;
  color: var(--gold-400); margin-bottom: 1.6rem;
}
.hero__eyebrow::before { content: ""; display: inline-block; width: 42px; height: 1px; background: var(--gold-500); vertical-align: middle; margin-right: 1rem; }
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.3rem, 6vw, 4.4rem); line-height: 1.28;
  letter-spacing: .04em; margin-bottom: 1.6rem;
}
.hero h1 .accent { color: var(--gold-400); }
.hero__lead { max-width: 620px; color: #cfd6e4; font-size: clamp(.98rem, 1.6vw, 1.1rem); margin-bottom: 2.6rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; color: var(--gold-300); font-size: .68rem; letter-spacing: .3em;
  writing-mode: vertical-rl; display: flex; align-items: center; gap: .8rem;
}
.hero__scroll::after { content: ""; width: 1px; height: 54px; background: linear-gradient(var(--gold-500), transparent); animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0%,100% { opacity:.3; transform: scaleY(.6); transform-origin: top; } 50% { opacity:1; transform: scaleY(1); } }

/* ============ 指標ストリップ ============ */
.stats { background: var(--navy-900); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 2.6rem 1.5rem; text-align: center; border-left: 1px solid rgba(255,255,255,.08); }
.stat:first-child { border-left: 0; }
.stat__num { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.9rem); color: var(--gold-400); line-height: 1; }
.stat__num small { font-size: .5em; margin-left: .2em; color: var(--gold-300); }
.stat__label { margin-top: .8rem; font-size: .8rem; letter-spacing: .12em; color: #b9c2d4; }

/* ============ カードグリッド（会社・ブランド） ============ */
.card-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .28s, box-shadow .28s, border-color .28s;
  position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--gold-500); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(10,23,48,.12); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__logo {
  height: 140px; display: grid; place-items: center; padding: 1.5rem;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.card__logo img { max-height: 88px; max-width: 82%; object-fit: contain; }
/* 店舗・施設の写真はカード上部いっぱいに敷く */
.card__photo { padding: 0 !important; background: var(--navy-900); overflow: hidden; }
.card__photo img { max-height: none; max-width: none; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__photo img { transform: scale(1.05); }
.card__kind { font-size: .68rem; letter-spacing: .12em; color: var(--ink-400); }
.card__monogram {
  width: 76px; height: 76px; display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.7rem; font-weight: 700;
  color: #fff; background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  border: 1px solid var(--gold-500); letter-spacing: .02em;
}
.card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card__cat { font-size: .68rem; letter-spacing: .14em; color: var(--gold-500); font-weight: 700; margin-bottom: .55rem; }
.card__name { font-family: var(--serif); font-size: 1.08rem; font-weight: 600; color: var(--navy-900); line-height: 1.5; margin-bottom: .5rem; }
.card__type { display: inline-block; font-size: .64rem; color: var(--ink-400); border: 1px solid var(--line); padding: .1rem .5rem; margin-bottom: .7rem; }
.card__desc { font-size: .84rem; color: var(--ink-600); line-height: 1.75; flex: 1; }
.card__foot { margin-top: 1rem; display: flex; align-items: center; justify-content: space-between; }
.card__link { font-family: var(--serif); font-size: .82rem; color: var(--navy-700); letter-spacing: .04em; }
.card__link:hover { color: var(--gold-500); }
.card__link .arrow { transition: transform .2s; display: inline-block; }
.card__link:hover .arrow { transform: translateX(3px); }
.card__operator { font-size: .68rem; color: var(--ink-400); }

/* ============ メッセージ ============ */
.message { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.message__label { font-family: var(--serif); letter-spacing: .3em; font-size: .72rem; color: var(--gold-500); }
.message__title { font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 2.2rem); color: var(--navy-900); line-height: 1.55; margin: 1rem 0 1.8rem; }
.message__body p { color: var(--ink-600); margin-bottom: 1.1rem; }
.message__sign { margin-top: 2rem; font-family: var(--serif); }
.message__sign span { display: block; font-size: .78rem; color: var(--ink-400); letter-spacing: .1em; }
.message__sign b { font-size: 1.25rem; font-weight: 600; color: var(--navy-900); letter-spacing: .08em; }
.message__visual { aspect-ratio: 4/5; background: linear-gradient(150deg, var(--navy-800), var(--navy-900)); position: relative; display: grid; place-items: center; }
.message__visual::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(196,160,82,.4); }
.message__visual .crest { font-family: var(--serif); font-size: 4.5rem; color: var(--gold-500); opacity: .5; }

/* ============ 会社概要テーブル ============ */
.profile-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
.profile-table th, .profile-table td { text-align: left; padding: 1.25rem 1.6rem; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: top; }
.profile-table tr:last-child th, .profile-table tr:last-child td { border-bottom: 0; }
.profile-table th { width: 30%; background: var(--paper); font-family: var(--serif); color: var(--navy-900); font-weight: 600; letter-spacing: .05em; }
.profile-table td { color: var(--ink-900); }

/* 沿革 */
.history { border-left: 2px solid var(--line); margin-left: .5rem; }
.history li { position: relative; padding: 0 0 2rem 2rem; }
.history li::before { content: ""; position: absolute; left: -7px; top: .4rem; width: 12px; height: 12px; border-radius: 50%; background: var(--gold-500); border: 2px solid var(--paper); }
.history .year { font-family: var(--serif); color: var(--navy-700); font-weight: 600; letter-spacing: .06em; }
.history .text { color: var(--ink-600); font-size: .92rem; margin-top: .2rem; }

/* ============ ニュース ============ */
.news-list { border-top: 1px solid var(--line); }
.news-item { display: flex; gap: 1.6rem; align-items: center; padding: 1.35rem .5rem; border-bottom: 1px solid var(--line); transition: background .2s; flex-wrap: wrap; }
.news-item:hover { background: var(--white); }
.news-item .date { font-family: var(--serif); color: var(--navy-700); font-size: .88rem; letter-spacing: .05em; min-width: 96px; }
.news-item .tag { font-size: .68rem; letter-spacing: .1em; color: var(--gold-500); border: 1px solid var(--gold-300); padding: .15rem .8rem; }
.news-item .title { flex: 1; min-width: 240px; color: var(--ink-900); font-size: .94rem; }

/* ============ CTA バンド ============ */
.cta-band {
  background:
    radial-gradient(800px 400px at 80% 20%, rgba(196,160,82,.14), transparent 60%),
    linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: #fff; text-align: center;
}
.cta-band h2 { font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 2.3rem); margin-bottom: 1rem; }
.cta-band p { color: #cfd6e4; margin-bottom: 2rem; }

/* ============ フッター ============ */
.footer { background: var(--navy-900); color: #aeb8cb; padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; font-size: .86rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand .brand { margin-bottom: 1.2rem; }
.footer__brand p { color: #8f9ab1; line-height: 1.9; }
.footer__col h4 { font-family: var(--serif); color: #fff; font-size: .82rem; letter-spacing: .14em; margin-bottom: 1.1rem; }
.footer__col li { margin-bottom: .7rem; }
.footer__col a:hover { color: var(--gold-400); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.8rem; flex-wrap: wrap; gap: 1rem; }
.footer__bottom small { color: #6f7a90; letter-spacing: .06em; }
.footer__bottom .domain { font-family: var(--serif); color: var(--gold-400); letter-spacing: .1em; }

/* ============ ページ見出し（下層ページ用ヒーロー） ============ */
.page-hero {
  padding: calc(var(--header-h) + 4.5rem) 0 4rem;
  background:
    radial-gradient(900px 500px at 80% 0%, rgba(196,160,82,.14), transparent 60%),
    linear-gradient(150deg, var(--navy-900), var(--navy-800));
  color: #fff;
}
.page-hero .en { font-family: var(--serif); letter-spacing: .34em; font-size: .74rem; color: var(--gold-400); }
.page-hero h1 { font-family: var(--serif); font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 600; margin-top: .8rem; letter-spacing: .05em; }
.breadcrumb { margin-top: 1.4rem; font-size: .76rem; color: #9fabc2; letter-spacing: .06em; }
.breadcrumb a:hover { color: var(--gold-400); }
.breadcrumb span { margin: 0 .5rem; opacity: .5; }

/* サブセクション見出し */
.subhead { font-family: var(--serif); font-size: 1.35rem; color: var(--navy-900); font-weight: 600; margin-bottom: 1.6rem; padding-left: 1rem; border-left: 3px solid var(--gold-500); }

/* お問い合わせ情報 */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.contact-card { background: #fff; border: 1px solid var(--line); padding: 2.2rem; }
.contact-card h3 { font-family: var(--serif); color: var(--navy-900); font-size: 1.1rem; margin-bottom: 1.2rem; }
.contact-card dl { display: grid; grid-template-columns: auto 1fr; gap: .7rem 1.4rem; }
.contact-card dt { font-family: var(--serif); color: var(--gold-500); font-size: .82rem; }
.contact-card dd { color: var(--ink-900); font-size: .92rem; }

/* ============ アニメーション（スクロール表示） ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============ レスポンシブ ============ */
@media (max-width: 900px) {
  .message { grid-template-columns: 1fr; }
  .message__visual { max-width: 340px; }
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--navy-900); padding: 1rem 6%;
    transform: translateY(-120%); transition: transform .35s; box-shadow: 0 20px 40px rgba(0,0,0,.3);
  }
  .nav.open { transform: translateY(0); }
  .nav a { width: 100%; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav__cta { border: 0 !important; padding: 1rem 0 !important; color: var(--gold-400); }
  .nav-toggle { display: block; }
  .header { background: var(--navy-900); }
  .profile-table th { width: 40%; }
  .profile-table th, .profile-table td { padding: 1rem; font-size: .86rem; }
}
