/* ============================================================
   能登杜氏組合 テストサイト 共通スタイル
   配色: 生成り #f7f4ee / 墨 #1f1d1a / 金 #b39142 / 藍 #2a4073
   ============================================================ */

:root {
  --kinari: #f7f4ee;
  --paper: #fffdf8;
  --sumi: #1f1d1a;
  --sumi-soft: #3a372f;
  --gold: #b39142;
  --gold-deep: #8f7330;
  --ai: #2a4073;
  --line: #ddd5c4;
  --serif: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--sumi);
  background-color: var(--kinari);
  /* 和紙風の淡いノイズ */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  line-height: 2;
  letter-spacing: 0.06em;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.12em;
}

/* ---------- 共通レイアウト ---------- */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(179, 145, 66, 0.35);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--sumi);
  color: var(--kinari);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 2px var(--kinari), 0 0 0 1px var(--gold);
}

.brand-text {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.brand-text small {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--gold-deep);
  font-weight: 500;
}

/* ナビ */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

.global-nav ul {
  display: flex;
  gap: 4px;
}

.global-nav a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  position: relative;
}

.global-nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.global-nav a:hover::after,
.global-nav a.current::after { transform: scaleX(1); }

.global-nav a.current { color: var(--gold-deep); }

/* ---------- ヒーロー（トップ） ---------- */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  color: #fdfbf5;
}

.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  animation: heroZoom 18s ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,14,0.25) 0%, rgba(20,18,14,0.15) 40%, rgba(20,18,14,0.6) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 48px 80px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 40px;
}

.hero-copy {
  writing-mode: vertical-rl;
  /* 縦書きではブロック要素が右→左に並ぶ（flexにすると下に回り込むので使わない） */
}

.hero-copy h1 {
  /* 縦書きは絶対に折り返さない。画面の幅と高さ両方に連動して縮む */
  white-space: nowrap;
  font-size: clamp(26px, min(5vw, 7vh), 56px);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}

.hero-copy p {
  white-space: nowrap;
  font-family: var(--serif);
  font-size: clamp(12px, min(1.6vw, 2.6vh), 17px);
  letter-spacing: 0.3em;
  margin-block-start: 28px; /* 見出しの左隣に間隔を空けて配置 */
  padding-top: 8px;
  color: rgba(253, 251, 245, 0.9);
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}

.hero-foot {
  position: absolute;
  z-index: 2;
  left: 48px; bottom: 36px;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(253,251,245,0.75);
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-foot::before {
  content: "";
  width: 64px; height: 1px;
  background: var(--gold);
}

/* ---------- ページヘッダー（下層） ---------- */
.page-header {
  position: relative;
  margin-top: 72px;
  padding: 88px 24px 64px;
  text-align: center;
  color: #fdfbf5;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.page-header::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(24, 22, 18, 0.55);
}

.page-header.plain {
  color: var(--sumi);
  background: none;
  border-bottom: 1px solid var(--line);
}
.page-header.plain::after { display: none; }

.page-header .inner { position: relative; z-index: 2; }

.page-header .en {
  display: block;
  font-size: 12px;
  letter-spacing: 0.42em;
  color: var(--gold);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.page-header h1 {
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: 0.24em;
}

/* ---------- セクション見出し ---------- */
.sec-title {
  margin-bottom: 40px;
}

.sec-title .en {
  display: block;
  font-size: 12px;
  letter-spacing: 0.42em;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.sec-title h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  letter-spacing: 0.2em;
}

.sec-title h2::after {
  content: "";
  display: block;
  width: 56px; height: 2px;
  margin-top: 18px;
  background: linear-gradient(90deg, var(--gold), rgba(179,145,66,0));
}

.sec-title.center { text-align: center; }
.sec-title.center h2::after { margin-left: auto; margin-right: auto;
  background: linear-gradient(90deg, rgba(179,145,66,0), var(--gold), rgba(179,145,66,0)); }

/* ---------- 汎用 ---------- */
.section-pad { padding: 96px 0; }

.lead {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 2.4;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 36px;
  border: 1px solid var(--sumi);
  font-size: 14px;
  letter-spacing: 0.2em;
  background: transparent;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.btn::after {
  content: "→";
  font-family: var(--sans);
  transition: transform 0.3s;
}

.btn:hover {
  background: var(--sumi);
  color: var(--kinari);
  border-color: var(--sumi);
}

.btn:hover::after { transform: translateX(4px); }

.btn.gold { border-color: var(--gold-deep); color: var(--gold-deep); }
.btn.gold:hover { background: var(--gold-deep); color: #fff; }
.btn.light { border-color: rgba(253,251,245,0.8); color: #fdfbf5; }
.btn.light:hover { background: #fdfbf5; color: var(--sumi); }

/* 青海波帯 */
.seigaiha-band {
  height: 56px;
  background-color: var(--kinari);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'%3E%3Cg fill='none' stroke='%23b39142' stroke-opacity='0.28' stroke-width='1'%3E%3Cpath d='M0 40a40 40 0 0 1 80 0M8 40a32 32 0 0 1 64 0M16 40a24 24 0 0 1 48 0M24 40a16 16 0 0 1 32 0M32 40a8 8 0 0 1 16 0'/%3E%3Cpath d='M-40 0a40 40 0 0 1 80 0M-32 0a32 32 0 0 1 64 0' transform='translate(0 40)'/%3E%3Cpath d='M40 0a40 40 0 0 1 80 0M48 0a32 32 0 0 1 64 0' transform='translate(0 40)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 40px;
  background-repeat: repeat;
  opacity: 0.9;
}

/* ---------- トップ: お知らせ ---------- */
.news-list {
  border-top: 1px solid var(--line);
}

.news-list li {
  border-bottom: 1px solid var(--line);
}

.news-list a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 28px;
  padding: 22px 8px;
  transition: background 0.3s;
}

.news-list a:hover { background: rgba(179, 145, 66, 0.07); }

.news-date {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--sumi-soft);
  font-feature-settings: "tnum";
  min-width: 96px;
}

.news-cat {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
  border: 1px solid var(--gold);
  padding: 1px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.news-title { font-size: 15px; flex: 1; min-width: 240px; }

/* ---------- トップ: 能登杜氏とは ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: center;
}

.about-photo {
  position: relative;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: 20px 20px 0 rgba(179, 145, 66, 0.18);
}

.about-photo .tate-label {
  position: absolute;
  top: -18px; right: -14px;
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.34em;
  color: var(--gold-deep);
  background: var(--paper);
  padding: 18px 8px;
  border: 1px solid var(--line);
}

/* ---------- カード類 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(31, 29, 26, 0.12);
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-body { padding: 22px 24px 26px; }

.card-body h3 {
  font-size: 18px;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}

.card-body p {
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--sumi-soft);
}

.card-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold-deep);
  border-bottom: 1px solid var(--gold);
  margin-bottom: 10px;
  padding-bottom: 2px;
}

/* 杜氏プロフィール */
.toji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.toji-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px 24px 28px;
  text-align: center;
}

.toji-mon {
  width: 76px; height: 76px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--sumi);
  color: var(--kinari);
  font-family: var(--serif);
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 3px var(--kinari), 0 0 0 1px var(--gold);
}

.toji-card h3 { font-size: 19px; letter-spacing: 0.2em; }

.toji-role {
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--gold-deep);
  margin: 4px 0 14px;
}

.toji-card p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--sumi-soft);
  text-align: left;
}

/* ---------- 表 ---------- */
.def-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--line);
}

.def-table th, .def-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  text-align: left;
  vertical-align: top;
  line-height: 1.9;
}

.def-table th {
  width: 200px;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--sumi);
  background: rgba(179, 145, 66, 0.08);
  white-space: nowrap;
}

/* 沿革 */
.timeline {
  border-left: 2px solid var(--gold);
  margin-left: 8px;
  padding-left: 36px;
}

.timeline li {
  position: relative;
  padding-bottom: 34px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -43px; top: 10px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--kinari);
  border: 2px solid var(--gold-deep);
}

.timeline .era {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
  display: block;
}

.timeline p { font-size: 14.5px; color: var(--sumi-soft); }

/* ---------- 数字ハイライト ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.stats > div {
  background: var(--paper);
  padding: 36px 20px;
  text-align: center;
}

.stats .num {
  font-family: var(--serif);
  font-size: 40px;
  color: var(--gold-deep);
  letter-spacing: 0.06em;
  line-height: 1.3;
}

.stats .num small { font-size: 16px; letter-spacing: 0.1em; }

.stats .label {
  font-size: 12.5px;
  letter-spacing: 0.22em;
  color: var(--sumi-soft);
  margin-top: 6px;
}

/* ---------- CTA帯 ---------- */
.cta-band {
  position: relative;
  padding: 96px 24px;
  text-align: center;
  color: #fdfbf5;
  background-size: cover;
  background-position: center;
}

.cta-band::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(24, 22, 18, 0.6);
}

.cta-band .inner { position: relative; z-index: 2; }

.cta-band h2 {
  font-size: clamp(22px, 3.4vw, 30px);
  letter-spacing: 0.22em;
  margin-bottom: 16px;
}

.cta-band p { font-size: 14.5px; margin-bottom: 32px; }

/* ---------- フッター ---------- */
.site-footer {
  background: var(--sumi);
  color: rgba(247, 244, 238, 0.85);
  padding: 72px 24px 32px;
  font-size: 13.5px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.22em;
  color: var(--kinari);
  margin-bottom: 12px;
}

.footer-brand small {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.34em;
  color: var(--gold);
  margin-top: 4px;
}

.footer-addr { line-height: 2.1; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 24px;
  align-content: start;
}

.footer-nav a {
  display: block;
  padding: 6px 0;
  letter-spacing: 0.14em;
  border-bottom: 1px solid rgba(247,244,238,0.12);
  transition: color 0.3s;
}

.footer-nav a:hover { color: var(--gold); }

.footer-note {
  max-width: 1080px;
  margin: 48px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(247,244,238,0.15);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: rgba(247,244,238,0.55);
}

.demo-note { color: var(--gold); }

/* ---------- スクロールフェード ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header-inner { height: 64px; }
  .brand-text { font-size: 17px; }

  /* ハンバーガー */
  .nav-toggle-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 40px; height: 40px;
    cursor: pointer;
    padding: 8px;
  }

  .nav-toggle-label span {
    display: block;
    height: 1.5px;
    background: var(--sumi);
    transition: transform 0.3s, opacity 0.3s;
  }

  .global-nav {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(247, 244, 238, 0.98);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .global-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 20px;
  }

  .global-nav a { padding: 12px 4px; font-size: 15px; }

  .nav-toggle:checked ~ .global-nav { max-height: 420px; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .hero-inner { padding: 100px 28px 80px; justify-content: center; }
  .hero-copy h1 { font-size: clamp(24px, min(9vw, 6.5vh), 40px); }
  .hero-foot { left: 28px; }

  .section-pad { padding: 64px 0; }
  .page-header { margin-top: 64px; padding: 64px 20px 48px; }

  .def-table th { width: auto; display: block; border-bottom: none; padding-bottom: 4px; }
  .def-table td { display: block; padding-top: 4px; }
}
