/*
Theme Name: JOMONOW
Theme URI: https://jomonow.com
Author: iiYOU Inc.
Description: JOMONÖW オリジナルテーマ
Version: 2.2
*/

/* ============================================================
   CSS カスタムプロパティ
   ============================================================ */
:root {
  --color-burgundy: #5c0b2e;
  --color-gold:     #e1b41f;
  --color-white:    #f7f6f6;
  --color-black:    #1a1a1a;
}

/* ============================================================
   リセット・ベース
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--color-white);
  color: var(--color-black);
  font-family: 'fot-tsukuaoldmin-pr6n', serif;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   オープニング（一切変更禁止）
   ============================================================ */
#opening {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-burgundy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background-color 1.2s ease;
}

#opening.op-phase-light {
  background: var(--color-white);
  -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 30px), transparent 100%);
  mask-image: linear-gradient(to bottom, black calc(100% - 30px), transparent 100%);
}

#opening.is-hidden {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.op-text-group {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.op-line {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: 'dnp-shuei-anti-std', 'DNP 秀英アンチック Std', serif;
  font-size: 24px;
  line-height: 1.75;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  opacity: 0;
  transition: opacity 0.8s ease;
  white-space: nowrap;
  padding: 0 14px;
}

.op-line.is-visible { opacity: 1; }

.op-icon-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.8s ease, transform 1.2s ease;
}

.op-icon-wrap.is-visible { opacity: 1; }

.op-icon-wrap.is-shrink {
  transform: translate(-50%, -50%) scale(0.543);
}

.op-icon {
  width: 140px;
  height: auto;
}

.op-logo-wrap {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 1s ease 0.3s;
  width: 100%;
  text-align: center;
  z-index: 2;
}

.op-logo-wrap.is-visible { opacity: 1; }

.op-logotype {
  width: 31.25%;
  height: auto;
}

.op-pattern-band {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--color-gold);
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.2s ease;
  z-index: 1;
}

#opening.op-phase-light .op-pattern-band {
  opacity: 1;
}

.op-pb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.op-pb-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-family: 'Goudy Bookletter 1911', serif;
  font-size: 56px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--color-burgundy);
  white-space: nowrap;
}

/* ============================================================
   ヘッダー
   ============================================================ */
.site-header {
  position: relative;
  background: var(--color-white);
  text-align: center;
  padding-top: 28px;
  transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
}

/* JOMONÖWロゴタイプ */
.logo-type {
  height: 46px;
  width: auto;
  /* バーガンディ着色 */
  filter: brightness(0) saturate(100%) invert(5%) sepia(80%) saturate(3000%) hue-rotate(305deg) brightness(60%);
  transition: height 0.3s ease, filter 0.3s ease;
}

/* ロゴアイコン */
.logo-icon {
  height: 28px;
  width: auto;
  filter: brightness(0) saturate(100%) invert(5%) sepia(80%) saturate(3000%) hue-rotate(305deg) brightness(60%);
  transition: filter 0.3s ease;
}

/* ヘッダー内縄文紋様帯 */
.header-pattern {
  position: relative;
  height: 56px;
  overflow: hidden;
  background: var(--color-burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hpattern-scroll-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  width: 200%;
  animation: patternScroll 24s linear infinite;
}

.hpattern-scroll-wrap img {
  width: 50%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  flex-shrink: 0;
  display: block;
}

.header-section-label {
  position: relative;
  z-index: 2;
  font-family: 'Goudy Bookletter 1911', serif;
  font-size: 12px;
  letter-spacing: 0.35em;
  color: var(--color-gold);
  font-style: italic;
}

/* スクロール後：縮小固定 */
.site-header.is-sticky {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: 6px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.site-header.is-sticky .header-inner {
  padding-bottom: 6px;
  gap: 0;
}

.site-header.is-sticky .logo-type {
  height: 24px;
}

.site-header.is-sticky .logo-icon,
.site-header.is-sticky .header-pattern {
  display: none;
}

/* ネガポジ：ダーク背景上（STATEMENTなど） */
.site-header.on-dark {
  background: var(--color-burgundy);
}

.site-header.on-dark .logo-type,
.site-header.on-dark .logo-icon {
  filter: brightness(0) invert(1);
}

/* ネガポジ：ゴールド背景上（MANIFESTなど） */
.site-header.on-gold {
  background: var(--color-gold);
}

.site-header.on-gold .logo-type,
.site-header.on-gold .logo-icon {
  filter: brightness(0) saturate(100%) invert(5%) sepia(80%) saturate(3000%) hue-rotate(305deg) brightness(60%);
}

/* ============================================================
   左縦スパインナビ
   ============================================================ */
.spine-nav {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.spine-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.spine-nav a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--color-burgundy);
  opacity: 0.35;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.spine-nav a.is-active,
.spine-nav a:hover {
  opacity: 1;
}

/* ネガポジ */
.spine-nav.on-dark a { color: var(--color-white); }
.spine-nav.on-gold a { color: var(--color-burgundy); }

@media (max-width: 768px) {
  .spine-nav { display: none; }
}

/* ============================================================
   縄文紋様帯（セクション区切り）
   ============================================================ */
.pattern-divider {
  position: relative;
  height: 68px;
  overflow: hidden;
  background: var(--color-burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pattern-scroll-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  width: 200%;
  animation: patternScroll 22s linear infinite;
}

.pattern-scroll {
  width: 50%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.5;
  flex-shrink: 0;
  display: block;
}

@keyframes patternScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.divider-label {
  position: relative;
  z-index: 2;
  font-family: 'Goudy Bookletter 1911', serif;
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.35em;
  color: var(--color-gold);
  text-shadow: 0 0 12px rgba(92,11,46,0.8);
}

/* ============================================================
   STATEMENTセクション
   ============================================================ */
.statement {
  background: var(--color-black);
  min-height: 56.25vw;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* 動画背景 */
.stmt-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 1;
  z-index: 0;
  display: block;
}

/* 動画未設定時プレースホルダー */
.stmt-video:not([src]):not(:has(source)) {
  background: #1e1a18;
}

/* ステートメント本文：縦組み */
.stmt-body {
  position: relative;
  z-index: 2;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  color: var(--color-gold);
  font-family: 'fot-tsukuaoldmin-pr6n', serif;
  font-size: 60px;        /* 仕様：60pt */
  line-height: 1.75;      /* 行間105pt / 60pt = 1.75 */
  letter-spacing: 0.14em;
  padding: 40px 0;
  display: flex;
  flex-direction: row;
  gap: 60px;
  max-height: 90%;
  overflow: hidden;
}

.stmt-group {
  opacity: 1;
}

.stmt-group.is-in {
  opacity: 1;
}

.stmt-group.is-out {
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* ============================================================
   DESIGNセクション
   ============================================================ */
.design {
  background: var(--color-white);
  padding: 0;
}

.design-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.design-item {
  position: relative;
}

.design-banner-link {
  display: block;
  text-decoration: none;
}

.design-banner-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #888;
}

/* バナー画像 */
.design-banner-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: filter 0.5s ease, transform 0.6s ease;
  filter: brightness(0.82);
}

.design-banner-link:hover .design-banner-img {
  filter: brightness(1.08);
  transform: scale(1.015);
}

/* 画像未設定時 */
.design-banner-img.no-image {
  background-color: #9a9a9a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.design-banner-img.no-image::after {
  content: '16:9  ( 1440 × 810px )';
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  opacity: 0.6;
}

/* キャプション行 */
.design-caption {
  padding: 16px 48px 48px;
  background: var(--color-white);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.design-caption-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.caption-main {
  font-family: 'fot-tsukuaoldmin-pr6n', serif;
  font-size: 13px;
  color: var(--color-black);
  letter-spacing: 0.1em;
}

.caption-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  font-style: italic;
  color: var(--color-black);
  opacity: 0.5;
}

/* ヘビのようにニョロリと動く矢印 */
.design-caption-arrow {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-top: 3px;
  overflow: hidden;
}

.arrow-line {
  display: block;
  height: 1px;
  background: var(--color-black);
  width: 0;
  transform-origin: left center;
}

.arrow-head {
  font-size: 18px;
  line-height: 1;
  color: var(--color-black);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease 0.4s, transform 0.2s ease 0.4s;
}

/* ホバー：ニョロリアニメーション */
.design-item:hover .arrow-line {
  animation: snakeIn 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.design-item:hover .arrow-head {
  opacity: 1;
  transform: translateX(0);
}

@keyframes snakeIn {
  0%   { width: 0;    transform: scaleY(1); }
  18%  { width: 10px; transform: scaleY(2.4); }
  35%  { width: 24px; transform: scaleY(0.4); }
  52%  { width: 36px; transform: scaleY(1.9); }
  70%  { width: 44px; transform: scaleY(0.6); }
  85%  { width: 48px; transform: scaleY(1.4); }
  100% { width: 48px; transform: scaleY(1); }
}

/* ============================================================
   MANIFESTセクション
   ============================================================ */
.manifest {
  background: var(--color-gold);
  padding: 100px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  position: relative;
  overflow: hidden;
}

.manifest-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;
  gap: 80px;
}

/* 縦組み日本語テキスト */
.manifest-jp {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: flex;
  flex-direction: row;
  gap: 32px;
  font-family: 'dnp-shuei-anti-std', serif;
  font-size: 56px;                     /* 仕様：56pt */
  line-height: 1.75;                   /* 行間98pt / 56pt = 1.75 */
  letter-spacing: 0.15em;
  color: var(--color-burgundy);
  -webkit-text-stroke: 0.5px var(--color-gold); /* 黄色罫0.5ptで細く */
}

/* 英文SVG */
.manifest-en {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 8px;
}

.manifest-en-svg {
  height: 300px;
  width: auto;
  display: block;
  /* バーガンディ着色 */
  filter: brightness(0) saturate(100%) invert(5%) sepia(80%) saturate(3000%) hue-rotate(305deg) brightness(60%);
}

/* ============================================================
   ABOUTセクション
   ============================================================ */
.about {
  background: var(--color-white);
  display: grid;
  grid-template-columns: 80px 1fr;
  min-height: 60vh;
  position: relative;
  overflow: hidden;
}

/* 背景パターン（pattern-pc-1_2.svg / 薄く全面） */
.about-bg-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.about-bg-pattern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.06;
}

/* サイドバー（ABOUT縦書き） */
.about-sidebar {
  position: relative;
  z-index: 1;
  background: transparent;
  border-right: 1px solid rgba(92, 11, 46, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  padding: 40px 0;
}

/* サイドバー内パターン */
.about-sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  pointer-events: none;
}

.about-label {
  position: relative;
  z-index: 1;
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--color-burgundy);
  opacity: 0.55;
}

/* 本文エリア */
.about-body {
  position: relative;
  z-index: 1;
  padding: 80px 80px 80px 60px;
  max-width: 720px;
  align-self: start;
}

/* iiYÖUロゴ（SVG） */
.about-name {
  margin: 0 0 8px;
  line-height: 1;
}

.about-name-svg {
  height: 58px;
  width: auto;
  display: block;
  filter: brightness(0) saturate(100%) invert(5%) sepia(80%) saturate(3000%) hue-rotate(305deg) brightness(60%);
}

.about-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--color-burgundy);
  opacity: 0.65;
  margin: 0 0 44px;
  letter-spacing: 0.08em;
}

/* 本文テキスト */
.about-text p {
  font-family: 'fot-tsukuaoldmin-pr6n', serif;
  font-size: 13px;
  line-height: 2.6;
  color: var(--color-black);
  letter-spacing: 0.04em;
}

/* ruby：日縄 にちじょう */
ruby { ruby-align: center; }

rt {
  font-size: 12px;
  font-family: 'fot-tsukuaoldmin-pr6n', serif;
  letter-spacing: 0.04em;
}

/* ============================================================
   フッター
   ============================================================ */
.site-footer {
  background: var(--color-burgundy);
  padding: 72px 40px 40px;
  text-align: center;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.footer-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* SVGゴールド着色 */
.footer-jomonow-svg,
.footer-icon-svg {
  filter: brightness(0) saturate(100%) invert(76%) sepia(55%) saturate(650%) hue-rotate(2deg) brightness(105%);
}

/* jomonow-imaginethewhy.svg：横長ロゴ */
.footer-jomonow-svg { height: 76px; width: auto; }
.footer-icon-svg    { height: 26px; width: auto; }

/* SNSリンク */
.footer-sns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
}

.footer-sns a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  opacity: 0.65;
  transition: opacity 0.2s ease;
}

.footer-sns a:hover { opacity: 1; }

/* 著作権テキスト */
.footer-copy {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  line-height: 2;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  opacity: 0.4;
  text-align: center;
}

.footer-domain {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--color-gold);
  opacity: 0.3;
  margin-top: -20px;
}

/* メールアイコン（Contactリンク） */
.footer-mail-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.footer-mail-link:hover { opacity: 1; }

.footer-mail-icon {
  width: 28px;
  height: 28px;
}

/* ============================================================
   レスポンシブ（768px以下）
   ============================================================ */
@media (max-width: 768px) {
  /* Header */
  .logo-type { height: 36px; }
  .header-pattern { height: 44px; }

  /* Statement */
  .stmt-body { font-size: 36px; gap: 32px; padding: 48px 0; }

  /* Design */
  .design-caption { padding: 12px 20px 32px; }
  .caption-main { font-size: 12px; }

  /* Manifest */
  .manifest { padding: 80px 24px; min-height: auto; }
  .manifest-inner { flex-direction: column; align-items: center; gap: 40px; }
  .manifest-jp { font-size: 36px; gap: 20px; }
  .manifest-en-svg { height: 180px; }

  /* About */
  .about { grid-template-columns: 1fr; }
  .about-sidebar { display: none; }
  .about-body { padding: 60px 24px; max-width: 100%; }
  .about-name-svg { height: 44px; }
  .about-text p { font-size: 12px; }

  /* Footer */
  .footer-inner { gap: 24px; }
  .footer-jomonow-svg { height: 56px; }
  .footer-sns { gap: 8px 16px; }
  .footer-sns a { font-size: 11px; }
  .footer-copy { font-size: 9px; }
}

@media (max-width: 480px) {
  .stmt-body { font-size: 28px; gap: 24px; }
  .manifest-jp { font-size: 28px; gap: 16px; }
  .manifest-en-svg { height: 140px; }
  .footer-sns { gap: 8px 12px; }
}
