/* ===============================================
   style.css — METIS BOOK リデザイン版
   ネイビー × ゴールド：信頼・権威・洗練
=============================================== */

@charset "utf-8";

/* ===== CSS Variables ===== */
:root {
  --navy:       #0b1f3a;
  --navy-mid:   #1a3258;
  --gold:       #b8913a;
  --gold-light: #f5edd8;
  --text:       #1a1a2e;
  --muted:      #5a6070;
  --bg:         #f6f5f0;
  --white:      #ffffff;
  --border:     #e0ddd5;
  --serif:      'Noto Serif JP', 'Hiragino Mincho ProN', Georgia, serif;
  --sans:       'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
ul  { list-style: none; }
a   { color: #1c5fa8; text-decoration: none; transition: color .15s; }
a:hover { text-decoration: underline; }

/* ===== HEADER ===== */
header {
  background: var(--navy);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: box-shadow .3s;
}
header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.28);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-wrap img {
  height: 28px;
  width: auto;
}
.logo-wrap span {
  font-family: var(--serif);
  font-size: .95rem;
  color: #fff;
  font-weight: 300;
  letter-spacing: .1em;
}
.logo-wrap:hover { text-decoration: none; }

/* Nav */
nav#navMenu {
  display: flex;
  gap: .1rem;
}
nav#navMenu a {
  color: rgba(255,255,255,.65);
  font-size: .72rem;
  letter-spacing: .04em;
  padding: .3rem .65rem;
  border-radius: 2px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
nav#navMenu a:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
  text-decoration: none;
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255,255,255,.7);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
  transform-origin: center;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  background: var(--navy);
  padding: 2.2rem 2rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 500px 280px at 90% 50%, rgba(28,95,168,.2), transparent 70%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.hero-text h1 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300;
  color: #fff;
  letter-spacing: .04em;
  line-height: 1.35;
  margin-bottom: .5rem;
}
.hero-text p {
  font-size: .83rem;
  color: rgba(255,255,255,.55);
  line-height: 1.8;
}
.hero-badge {
  border: 1px solid rgba(184,145,58,.5);
  padding: .5rem 1.1rem;
  flex-shrink: 0;
  text-align: center;
}
.hero-badge .num {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--gold);
  line-height: 1;
  display: block;
}
.hero-badge .lab {
  font-size: .62rem;
  color: rgba(255,255,255,.45);
  letter-spacing: .12em;
  margin-top: .2rem;
  display: block;
}

/* ===== LAYOUT ===== */
.bg-white { background: var(--white); }
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section { padding: 2.2rem 0; }
.section + .section { border-top: 1px solid var(--border); }

.sec-head {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.sec-head h2 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: .04em;
}
.tag {
  font-size: .62rem;
  letter-spacing: .14em;
  color: var(--gold);
  text-transform: uppercase;
  border: 1px solid rgba(184,145,58,.4);
  padding: .12rem .45rem;
  border-radius: 2px;
}

/* ===== CARDS — 横並び固定 ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.card {
  background: var(--white);
  padding: 1.4rem;
  display: grid;
  /* 番号 / 画像 / タイトル / 説明文(伸縮) / リンク */
  grid-template-rows: auto auto auto 1fr auto;
  position: relative;
  transition: background .2s;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  transition: background .25s;
}
.card:hover { background: #fafaf8; }
.card:hover::before { background: var(--gold); }

.card-num {
  font-size: .62rem;
  color: var(--gold);
  letter-spacing: .15em;
  margin-bottom: .65rem;
}
.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: top center;
  border-radius: 2px;
  margin-bottom: .9rem;
  background: var(--bg);
}
.card h3 {
  font-family: var(--serif);
  font-size: .9rem;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: .45rem;
}
.card p {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: .9rem;
}
.card-link {
  font-size: .73rem;
  letter-spacing: .07em;
  color: var(--navy);
  border-bottom: 1px solid rgba(11,31,58,.28);
  padding-bottom: 1px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  transition: color .15s, border-color .15s;
}
.card-link::after {
  content: '→';
  font-size: .82em;
  transition: transform .15s;
  display: inline-block;
}
.card-link:hover {
  color: var(--gold);
  border-color: var(--gold);
  text-decoration: none;
}
.card-link:hover::after { transform: translateX(3px); }

.section-note {
  font-size: .78rem;
  color: var(--muted);
  margin-top: .9rem;
  line-height: 1.75;
}

/* ===== PUBLISHER ===== */
.pub-section {
  background: var(--navy);
  padding: 2.2rem 0;
}
.pub-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}
.pub-label {
  font-size: .62rem;
  letter-spacing: .16em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.pub-section h2 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 300;
  color: #fff;
  letter-spacing: .04em;
  margin-bottom: 1.1rem;
}
.pub-dl dt {
  font-size: .62rem;
  letter-spacing: .13em;
  color: rgba(184,145,58,.8);
  text-transform: uppercase;
  margin-top: .9rem;
}
.pub-dl dt:first-child { margin-top: 0; }
.pub-dl dd {
  color: rgba(255,255,255,.6);
  font-size: .8rem;
  line-height: 1.8;
}
.pub-dl ul { list-style: none; padding: 0; }
.pub-dl li {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  margin-bottom: .15rem;
}
.isbn-num {
  font-family: 'Courier New', monospace;
  font-size: .88rem;
  color: #fff;
  font-weight: 600;
  letter-spacing: .05em;
  flex-shrink: 0;
}
.isbn-note {
  font-size: .72rem;
  color: rgba(255,255,255,.35);
}
.pub-story {
  border-left: 1px solid rgba(184,145,58,.22);
  padding-left: 1.75rem;
}
.pub-story p {
  color: rgba(255,255,255,.62);
  font-size: .82rem;
  line-height: 1.95;
  font-weight: 300;
}
.pub-story strong { color: rgba(255,255,255,.88); font-weight: 500; }

/* ===== CONTACT ===== */
.contact-strip {
  background: var(--gold-light);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(184,145,58,.18);
  border-bottom: 1px solid rgba(184,145,58,.18);
}
.contact-text h2 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: .2rem;
}
.contact-text p {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.7;
}
.contact-text strong { color: var(--navy); font-weight: 500; }
.contact-text a { color: #1c5fa8; }
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--navy);
  color: #fff;
  font-size: .7rem;
  letter-spacing: .11em;
  padding: .65rem 1.5rem;
  border-radius: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .15s;
  flex-shrink: 0;
}
.contact-btn::after { content: '→'; }
.contact-btn:hover { background: var(--navy-mid); text-decoration: none; }

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
footer p { font-size: .7rem; color: rgba(255,255,255,.3); letter-spacing: .02em; line-height: 1.6; }
footer a { color: rgba(255,255,255,.4); }
footer a:hover { color: rgba(255,255,255,.75); text-decoration: none; }

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 860px) {
  .menu-toggle { display: flex; }
  nav#navMenu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 52px;
    left: 0; right: 0;
    background: var(--navy-mid);
    padding: .5rem 0 1rem;
    z-index: 99;
    border-bottom: 1px solid rgba(255,255,255,.08);
    gap: 0;
  }
  nav#navMenu.open { display: flex; }
  nav#navMenu a {
    padding: .8rem 2rem;
    font-size: .83rem;
    letter-spacing: .05em;
    border-bottom: 1px solid rgba(255,255,255,.05);
  }
  nav#navMenu a:last-child { border-bottom: none; }
  .hero-badge { display: none; }
  .pub-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .pub-story {
    border-left: none;
    border-top: 1px solid rgba(184,145,58,.18);
    padding-left: 0;
    padding-top: 1.25rem;
  }
  footer { flex-direction: column; text-align: center; }
}

@media screen and (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .card img { height: 140px; }
}

/* ===== 特商法ページ互換 ===== */
.tokutei-list dt {
  font-weight: bold;
  margin-top: 1.5rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: .25rem;
  font-size: 1.05rem;
}
.tokutei-list dd {
  margin-left: 0;
  padding-left: .5rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}
.tokutei-list ul {
  margin: .5rem 0 0 1.2rem;
  list-style-type: disc;
}

/* ===== グリッドラッパー互換 ===== */
.gridWrapper { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0; }
.grid { flex: 1 1 300px; }
