/*
Theme Name: EIGHT-OU
Theme URI: https://eight-ou.local
Author: EIGHT-OU
Description: 八王子発のストリートウェアブランド「EIGHT-OU」公式ブロックテーマ。黒を基調に赤を差し色とした和モダン×ストリートのデザイン。
Version: 2.0.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eight-ou
Tags: block-patterns, full-site-editing, black, one-column
*/

/* ==========================================================================
   EIGHT-OU — base
   ========================================================================== */

:root {
  --eo-black: #0a0a0a;
  --eo-surface: #131313;
  --eo-white: #f2efe8;
  --eo-kinari: #ddd5c2;
  --eo-red: #b4202a;
  --eo-red-bright: #d92832;
  --eo-red-deep: #6f1119;
  --eo-muted: #b3aea3;
  --eo-line: #2c2c2c;
  --eo-mono: "Space Mono", "Courier New", monospace;
  --eo-mincho: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --eo-gothic: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --eo-header-h: 72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--eo-header-h) + 12px);
}

html.eo-lock { overflow: hidden; }

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 和紙のようなノイズを全体に薄く敷く */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

::selection {
  background: var(--eo-red);
  color: var(--eo-white);
}

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

mark {
  background: none;
  color: var(--eo-red-bright);
}

/* ==========================================================================
   Intro overlay（JSが生成）
   ========================================================================== */

.eo-intro {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  pointer-events: auto;
}

.eo-intro-panel {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50.5%;
  background: #060606;
  transition: transform .85s cubic-bezier(.76, 0, .24, 1);
}

.eo-intro-panel--top { top: 0; }
.eo-intro-panel--bottom { bottom: 0; }

.eo-intro.is-open .eo-intro-panel--top { transform: translateY(-101%); }
.eo-intro.is-open .eo-intro-panel--bottom { transform: translateY(101%); }

.eo-intro-center {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 18px;
  transition: opacity .4s ease, transform .4s ease;
}

.eo-intro.is-open .eo-intro-center {
  opacity: 0;
  transform: scale(.94);
}

.eo-intro-kanji {
  width: clamp(150px, 24vw, 230px);
  height: auto;
  overflow: visible;
}

.eo-intro-kanji path {
  fill: none;
  stroke: var(--eo-white);
  stroke-width: 30;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: eo-stroke .7s cubic-bezier(.55, 0, .35, 1) forwards;
}

.eo-intro-kanji path:nth-child(1) { animation-delay: .15s; }
.eo-intro-kanji path:nth-child(2) { animation-delay: .5s; }

@keyframes eo-stroke {
  to { stroke-dashoffset: 0; }
}

.eo-intro-seal {
  position: absolute;
  right: -14%;
  bottom: 4%;
  writing-mode: vertical-rl;
  font-family: var(--eo-mincho);
  font-weight: 700;
  font-size: clamp(.8rem, 1.6vw, 1rem);
  letter-spacing: .2em;
  line-height: 1.1;
  color: var(--eo-red-bright);
  border: 2px solid var(--eo-red-bright);
  padding: .5em .28em;
  border-radius: 2px;
  opacity: 0;
  animation: eo-stamp .3s cubic-bezier(.2, 1.6, .4, 1) forwards 1.12s;
}

@keyframes eo-stamp {
  from { opacity: 0; transform: scale(1.9) rotate(4deg); }
  to   { opacity: 1; transform: scale(1) rotate(-6deg); }
}

.eo-intro-word {
  font-family: var(--eo-mono);
  font-size: .72rem;
  letter-spacing: .55em;
  text-indent: .55em;
  color: var(--eo-muted);
  text-transform: uppercase;
  opacity: 0;
  animation: eo-fade .5s ease forwards 1.3s;
}

/* ==========================================================================
   Header
   ========================================================================== */

.eo-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--eo-header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(10,10,10,.92), rgba(10,10,10,.55));
  transition: background .4s ease, border-color .4s ease, backdrop-filter .4s ease;
}

.eo-header.is-scrolled {
  background: rgba(10, 10, 10, .82);
  border-bottom-color: var(--eo-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.eo-header-inner {
  width: min(1400px, 100%);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.eo-header .wp-block-site-logo img {
  width: 58px;
  height: auto;
  transition: transform .3s ease;
}

.eo-header .wp-block-site-logo a:hover img {
  transform: scale(1.06) rotate(-2deg);
}

.eo-header .wp-block-navigation {
  font-family: var(--eo-gothic);
  font-weight: 500;
  font-size: .98rem;
  letter-spacing: .1em;
}

.eo-header .wp-block-navigation a {
  position: relative;
  padding-block: .35em;
}

.eo-header .wp-block-navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--eo-red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}

.eo-header .wp-block-navigation a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.eo-header-store a {
  font-family: var(--eo-mono) !important;
  letter-spacing: .15em;
}

/* モバイルメニュー（オーバーレイ）*/
.wp-block-navigation__responsive-container.is-menu-open {
  background: rgba(10,10,10,.96) !important;
  backdrop-filter: blur(10px);
  font-family: var(--eo-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  padding-top: 24vh;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a {
  font-size: 1.4rem;
}

/* ==========================================================================
   共通パーツ
   ========================================================================== */

/* セクションラベル（英字 mono ＋ 赤線） */
.eo-label {
  font-family: var(--eo-mono);
  font-size: .75rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--eo-kinari);
  display: flex;
  align-items: center;
  gap: 1em;
}

.eo-label::after {
  content: "";
  display: inline-block;
  width: 56px;
  height: 1px;
  background: var(--eo-red);
}

/* 英字アクセント */
.eo-en {
  font-family: var(--eo-mono);
  letter-spacing: .22em;
  text-transform: uppercase;
}

/* 縦書きテキスト */
.eo-vertical {
  writing-mode: vertical-rl;
  letter-spacing: .35em;
  font-family: var(--eo-mincho);
  color: var(--eo-muted);
}

/* 印章（ハンコ） */
.eo-seal {
  display: inline-block;
  writing-mode: vertical-rl;
  font-family: var(--eo-mincho);
  font-weight: 700;
  color: var(--eo-red-bright);
  border: 2px solid var(--eo-red-bright);
  padding: .55em .3em;
  line-height: 1.1;
  letter-spacing: .18em;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(180,32,42,.25), inset 0 0 12px rgba(180,32,42,.14);
}

/* 赤アンダーライン付きリンク */
.eo-arrow-link a {
  font-family: var(--eo-mono);
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--eo-white);
  display: inline-flex;
  align-items: center;
  gap: .8em;
  padding-bottom: .5em;
  border-bottom: 1px solid var(--eo-line);
  transition: border-color .3s ease, gap .3s ease;
}

.eo-arrow-link a::after {
  content: "→";
  color: var(--eo-red-bright);
  transition: transform .3s ease;
}

.eo-arrow-link a:hover { border-bottom-color: var(--eo-red); }
.eo-arrow-link a:hover::after { transform: translateX(6px); }

/* ボタン */
.wp-block-button__link {
  font-family: var(--eo-mono);
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  border-radius: 0;
  transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}

.is-style-outline > .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
  border: 1px solid var(--eo-white);
  color: var(--eo-white);
}

.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--eo-red);
  border-color: var(--eo-red);
  color: var(--eo-white);
  box-shadow: 0 8px 30px rgba(180,32,42,.35);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.eo-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 80% 20%, #161616 0%, transparent 60%),
    var(--eo-black);
}

/* 背面の巨大アウトライン文字 */
.eo-hero-bgtext {
  position: absolute;
  z-index: 0;
  left: -2%;
  bottom: -4%;
  margin: 0;
  font-family: var(--eo-mincho);
  font-weight: 800;
  font-size: clamp(9rem, 24vw, 21rem);
  line-height: 1;
  letter-spacing: .02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 239, 232, .09);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  will-change: transform;
}

/* 右側の写真（斜めに切る） */
.eo-hero-photo {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  width: min(46vw, 660px);
  height: 100%;
  margin: 0;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}

.eo-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  filter: saturate(.86) contrast(1.05) brightness(.92);
  animation: eo-kenburns 14s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes eo-kenburns {
  from { transform: scale(1.02); }
  to   { transform: scale(1.1) translateY(-1.5%); }
}

/* 写真の左端を黒に溶かす＋赤の刷毛 */
.eo-hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(100deg, var(--eo-black) 0%, rgba(10,10,10,.55) 26%, rgba(10,10,10,0) 55%),
              linear-gradient(to top, rgba(10,10,10,.85) 0%, rgba(10,10,10,0) 34%);
}

.eo-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 2%;
  right: 30%;
  width: min(30vw, 420px);
  aspect-ratio: 700 / 560;
  background: url("assets/images/brush.svg") no-repeat center / contain;
  opacity: .5;
  pointer-events: none;
}

.eo-hero-content {
  position: relative;
  z-index: 3;
  width: min(1400px, 100%);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  padding-top: calc(var(--eo-header-h) + 3vh);
  padding-bottom: 9vh;
}

/* 左端の縦書きと重ならないよう、広い画面ではコンテンツを右に寄せる */
@media (min-width: 1081px) {
  .eo-hero-content { padding-left: clamp(5.5rem, 7vw, 7.5rem); }
}

.eo-hero-content > * { max-width: 640px; }

.eo-hero h1 {
  font-family: var(--eo-mincho);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: .06em;
  text-shadow: 0 6px 40px rgba(0,0,0,.7);
}

.eo-hero-sub {
  font-family: var(--eo-mono);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--eo-kinari);
}

.eo-hero-logo img {
  width: min(190px, 40vw);
  filter: drop-shadow(0 18px 44px rgba(0,0,0,.65));
}

/* 縦書き（ヒーロー左端） */
.eo-hero-vertical {
  position: absolute;
  z-index: 3;
  left: clamp(8px, 1.6vw, 28px);
  top: 54%;
  transform: translateY(-50%);
  font-size: .78rem;
  display: flex;
  gap: 1.6em;
  height: min(56vh, 460px);
}

.eo-hero-vertical p {
  writing-mode: vertical-rl;
  font-family: var(--eo-mincho);
  letter-spacing: .35em;
  color: var(--eo-muted);
  margin: 0;
}

/* 印章：写真の縁に重ねる */
.eo-hero-seal {
  position: absolute;
  z-index: 3;
  right: min(44vw, 630px);
  bottom: 12%;
  transform: rotate(-5deg);
  display: grid;
  gap: 1em;
  justify-items: center;
}

.eo-hero-seal .eo-seal { font-size: 1.15rem; }

/* スクロールインジケータ */
.eo-scroll-hint {
  position: absolute;
  z-index: 3;
  bottom: 24px;
  left: clamp(1.25rem, 4vw, 3rem);
  font-family: var(--eo-mono);
  font-size: .62rem;
  letter-spacing: .4em;
  color: var(--eo-muted);
  text-transform: uppercase;
  padding-bottom: 44px;
}

.eo-scroll-hint::after {
  content: "";
  position: absolute;
  left: 1em;
  bottom: 0;
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--eo-red-bright), transparent);
  animation: eo-drip 2s ease-in-out infinite;
}

@keyframes eo-drip {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --- ヒーロー登場アニメーション（イントロ明け） --- */

html.eo-js .eo-hero-content > * {
  opacity: 0;
  transform: translateY(34px);
  animation: eo-rise .95s cubic-bezier(.22,1,.36,1) forwards;
}

html.eo-js .eo-hero-content > *:nth-child(1) { animation-delay: 1.95s; }
html.eo-js .eo-hero-content > *:nth-child(2) { animation-delay: 2.1s; }
html.eo-js .eo-hero-content > *:nth-child(3) { animation-delay: 2.3s; }
html.eo-js .eo-hero-content > *:nth-child(4) { animation-delay: 2.45s; }
html.eo-js .eo-hero-content > *:nth-child(5) { animation-delay: 2.6s; }

/* イントロをスキップした2回目以降は JS が .eo-fast を付けて即座に出す */
html.eo-js.eo-fast .eo-hero-content > *:nth-child(1) { animation-delay: .1s; }
html.eo-js.eo-fast .eo-hero-content > *:nth-child(2) { animation-delay: .22s; }
html.eo-js.eo-fast .eo-hero-content > *:nth-child(3) { animation-delay: .36s; }
html.eo-js.eo-fast .eo-hero-content > *:nth-child(4) { animation-delay: .48s; }
html.eo-js.eo-fast .eo-hero-content > *:nth-child(5) { animation-delay: .6s; }

@keyframes eo-rise {
  to { opacity: 1; transform: none; }
}

html.eo-js .eo-hero-photo {
  clip-path: polygon(100% 0, 100% 0, 100% 100%, 82% 100%);
  animation: eo-photo-in 1.1s cubic-bezier(.76,0,.24,1) forwards;
  animation-delay: 2.05s;
}

html.eo-js.eo-fast .eo-hero-photo { animation-delay: .15s; }

@keyframes eo-photo-in {
  to { clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); }
}

html.eo-js .eo-hero-bgtext,
html.eo-js .eo-hero-vertical,
html.eo-js .eo-hero-seal,
html.eo-js .eo-scroll-hint {
  opacity: 0;
  animation: eo-fade 1.1s ease forwards 2.9s;
}

html.eo-js.eo-fast .eo-hero-bgtext,
html.eo-js.eo-fast .eo-hero-vertical,
html.eo-js.eo-fast .eo-hero-seal,
html.eo-js.eo-fast .eo-scroll-hint { animation-delay: .8s; }

@keyframes eo-fade { to { opacity: 1; } }

/* 見出しの一文字ずつ回転リベール（JSが .eo-char を生成） */
.eo-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(.6em) rotate(6deg);
  animation: eo-char-in .7s cubic-bezier(.22,1,.36,1) forwards;
  animation-delay: calc(var(--eo-char-base, 2.05s) + var(--eo-char-i, 0) * .055s);
}

@keyframes eo-char-in {
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   Marquee（少し傾けて単調さを崩す）
   ========================================================================== */

.eo-marquee {
  overflow: hidden;
  border-top: 1px solid var(--eo-line);
  border-bottom: 1px solid var(--eo-line);
  background: var(--eo-surface);
  padding-block: 15px;
  position: relative;
  z-index: 4;
  transform: rotate(-1.3deg) scale(1.02);
  margin-block: -1rem;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
}

.eo-marquee-track {
  display: flex;
  width: max-content;
  animation: eo-marquee 30s linear infinite;
  font-family: var(--eo-mincho);
  font-size: .95rem;
  letter-spacing: .3em;
  color: var(--eo-kinari);
  white-space: nowrap;
  margin: 0;
}

.eo-marquee:hover .eo-marquee-track { animation-play-state: paused; }

.eo-marquee-track mark { color: var(--eo-red-bright); }

@keyframes eo-marquee {
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Featured products（ずらしグリッド）
   ========================================================================== */

.eo-featured { position: relative; }

/* 背面の巨大英字 */
.eo-featured::before {
  content: "STREET";
  position: absolute;
  top: 2%;
  right: -2%;
  font-family: var(--eo-mono);
  font-weight: 700;
  font-size: clamp(5rem, 13vw, 11rem);
  letter-spacing: .04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242,239,232,.07);
  pointer-events: none;
  user-select: none;
}

.eo-card {
  position: relative;
  overflow: visible;
}

/* デスクトップでカードを互い違いに */
@media (min-width: 782px) {
  .eo-products .wp-block-column:nth-child(2) { transform: translateY(3.4rem); }
  .eo-products .wp-block-column:nth-child(3) { transform: translateY(1.1rem); }
  .eo-products .wp-block-column:nth-child(4) { transform: translateY(4.6rem); }
  .eo-products { padding-bottom: 5rem; }
}

.eo-card-num {
  font-family: var(--eo-mono);
  font-size: .68rem;
  letter-spacing: .3em;
  color: var(--eo-red-bright);
  margin-bottom: .8em !important;
}

.eo-card-media {
  position: relative;
  aspect-ratio: 4 / 4.7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--eo-line);
  transition: border-color .4s ease, transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s ease;
}

.eo-card:hover .eo-card-media {
  border-color: rgba(217,40,50,.65);
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
}

/* ロゴのみのカード（生地なし） */
.eo-card-media img {
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}

.eo-card-media > figure,
.eo-card-media .wp-block-image {
  margin: 0;
  width: 100%;
  height: 100%;
}

/* 写真カード：全面カバー */
.eo-card-media--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92);
}

/* ロゴカード：中央に62% */
.eo-card-media--logo { padding: 8%; }
.eo-card-media--logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.eo-card:hover .eo-card-media img { transform: scale(1.07); }

.eo-card-media::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--eo-red-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.22,1,.36,1);
  z-index: 2;
}

.eo-card:hover .eo-card-media::after { transform: scaleX(1); }

.eo-card h3 {
  font-family: var(--eo-mono);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-top: 1.2em !important;
}

.eo-card-price {
  font-family: var(--eo-mono);
  font-size: .78rem;
  color: var(--eo-muted);
  letter-spacing: .1em;
}

.eo-tone-1 { background: radial-gradient(120% 120% at 30% 20%, #1d1d1d 0%, #101010 60%); }
.eo-tone-2 { background: radial-gradient(120% 120% at 70% 20%, #241616 0%, #101010 60%); }
.eo-tone-3 { background: radial-gradient(120% 120% at 30% 80%, #1a1c18 0%, #101010 60%); }
.eo-tone-4 { background: radial-gradient(120% 120% at 70% 80%, #1c1a16 0%, #101010 60%); }

/* ==========================================================================
   Craftsmanship（コラージュ）
   ========================================================================== */

.eo-craft { position: relative; }

.eo-craft-collage {
  position: relative;
  padding-bottom: 4.5rem;
  padding-right: 2rem;
}

.eo-craft-collage .eo-craft-main {
  margin: 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.eo-craft-collage .eo-craft-main img {
  display: block;
  transition: transform 1.2s cubic-bezier(.22,1,.36,1);
}

.eo-craft-collage:hover .eo-craft-main img { transform: scale(1.04); }

.eo-craft-collage .eo-craft-over {
  position: absolute;
  z-index: 2;
  right: -4%;
  bottom: 0;
  width: 42%;
  margin: 0;
  transform: rotate(3deg);
  border: 6px solid #060606;
  box-shadow: 0 26px 60px rgba(0,0,0,.6);
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}

.eo-craft-collage:hover .eo-craft-over { transform: rotate(1deg) translateY(-6px); }

.eo-craft-collage .eo-seal {
  position: absolute;
  z-index: 3;
  left: -10px;
  top: -22px;
  font-size: .95rem;
  transform: rotate(-7deg);
  background: rgba(10,10,10,.7);
}

/* ==========================================================================
   Philosophy
   ========================================================================== */

.eo-philosophy {
  position: relative;
  overflow: hidden;
}

.eo-philosophy::before {
  content: "";
  position: absolute;
  left: -8%;
  bottom: -12%;
  width: min(46vw, 560px);
  aspect-ratio: 1;
  background: url("assets/images/enso.svg") no-repeat center / contain;
  opacity: .5;
  pointer-events: none;
}

/* 「天狗」タイポアート */
.eo-tengu-art {
  position: relative;
  aspect-ratio: 4 / 4.4;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--eo-line);
  background:
    radial-gradient(80% 60% at 70% 25%, rgba(180,32,42,.24) 0%, transparent 60%),
    linear-gradient(160deg, #191919 0%, #0d0d0d 70%);
  overflow: hidden;
  transform: rotate(-1.2deg);
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
}

.eo-tengu-art p {
  font-family: var(--eo-mincho);
  font-weight: 700;
  writing-mode: vertical-rl;
  font-size: clamp(5rem, 11vw, 9rem);
  line-height: 1;
  letter-spacing: .12em;
  color: var(--eo-white);
  text-shadow: 0 10px 60px rgba(0,0,0,.8);
  margin: 0;
}

.eo-tengu-art .eo-seal {
  position: absolute;
  right: 12%;
  bottom: 11%;
  font-size: .9rem;
  transform: rotate(5deg);
}

.eo-tengu-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/images/brush.svg") no-repeat 88% 112% / 74%;
  opacity: .4;
  pointer-events: none;
}

.eo-philosophy-tagline {
  font-family: var(--eo-mincho);
  color: var(--eo-kinari);
  border-left: 2px solid var(--eo-red-bright);
  padding-left: 1.2em;
  line-height: 2;
}

/* ==========================================================================
   Lookbook（コラージュ）
   ========================================================================== */

.eo-lookbook { position: relative; overflow: visible; }

.eo-lookbook::before {
  content: "LOOKBOOK";
  position: absolute;
  left: -1%;
  top: -2%;
  font-family: var(--eo-mono);
  font-weight: 700;
  font-size: clamp(4rem, 11vw, 9rem);
  letter-spacing: .04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242,239,232,.07);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.eo-look-collage {
  position: relative;
  min-height: 200px;
}

.eo-look-main {
  margin: 0;
  width: 62%;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.eo-look-main img { display: block; width: 100%; }

.eo-look-sub {
  position: absolute;
  z-index: 2;
  right: 2%;
  top: 14%;
  width: 40%;
  margin: 0;
  transform: rotate(2.5deg);
  border: 6px solid #060606;
  box-shadow: 0 26px 60px rgba(0,0,0,.6);
}

.eo-look-caption {
  position: absolute;
  z-index: 3;
  right: 44%;
  bottom: 6%;
  writing-mode: vertical-rl;
  font-family: var(--eo-mincho);
  font-size: 1rem;
  letter-spacing: .4em;
  color: var(--eo-white);
  background: rgba(10,10,10,.72);
  padding: 1em .5em;
  border-left: 2px solid var(--eo-red-bright);
}

/* ==========================================================================
   Eight Kings features（罫線を消して左寄せ・互い違い）
   ========================================================================== */

.eo-kings {
  background: var(--eo-surface);
  border-top: 1px solid var(--eo-line);
  border-bottom: 1px solid var(--eo-line);
}

@media (min-width: 782px) {
  .eo-kings-cols .wp-block-column:nth-child(2) { transform: translateY(1.8rem); }
  .eo-kings-cols .wp-block-column:nth-child(4) { transform: translateY(1.8rem); }
  .eo-kings-cols { padding-bottom: 2.2rem; }
}

.eo-king {
  text-align: left;
  padding: 1.4em 1.2em;
  border-left: 1px solid var(--eo-line);
  transition: border-color .35s ease, background .35s ease;
}

.eo-king:hover {
  border-left-color: var(--eo-red-bright);
  background: rgba(180,32,42,.05);
}

.eo-king svg {
  width: 40px;
  height: 40px;
  stroke: var(--eo-red-bright);
  fill: none;
  stroke-width: 1.6;
  margin-bottom: 14px;
}

.eo-king h3 {
  font-family: var(--eo-mincho);
  font-size: 1.05rem;
  letter-spacing: .12em;
  font-weight: 600;
  margin: 0 0 .6em;
}

.eo-king p {
  font-size: .82rem;
  color: var(--eo-muted);
  letter-spacing: .06em;
  margin: 0;
}

/* ==========================================================================
   Join / newsletter
   ========================================================================== */

.eo-join {
  position: relative;
  overflow: hidden;
}

.eo-join::after {
  content: "八";
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%) rotate(6deg);
  font-family: var(--eo-mincho);
  font-weight: 700;
  font-size: clamp(14rem, 30vw, 26rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(217, 40, 50, .4);
  pointer-events: none;
}

.eo-form {
  display: flex;
  max-width: 460px;
  border: 1px solid var(--eo-line);
  background: rgba(19,19,19,.8);
  transition: border-color .3s ease;
}

.eo-form:focus-within { border-color: var(--eo-red-bright); }

.eo-form input[type="email"] {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--eo-white);
  font-family: var(--eo-gothic);
  font-size: .9rem;
  letter-spacing: .06em;
  padding: 16px 18px;
}

.eo-form input::placeholder { color: var(--eo-muted); }

.eo-form button {
  background: transparent;
  border: 0;
  border-left: 1px solid var(--eo-line);
  color: var(--eo-red-bright);
  font-size: 1.1rem;
  padding: 0 22px;
  cursor: pointer;
  transition: background .3s ease, color .3s ease;
}

.eo-form button:hover {
  background: var(--eo-red);
  color: var(--eo-white);
}

.eo-form-note {
  font-family: var(--eo-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--eo-muted);
  text-transform: uppercase;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.eo-footer {
  border-top: 1px solid var(--eo-line);
  background: #070707;
  position: relative;
  z-index: 2;
}

.eo-footer .wp-block-site-logo img { width: 72px; }

/* 視認性優先: 文字は大きく・明るく（薄いグレー禁止） */
.eo-footer-tagline {
  font-family: var(--eo-mincho);
  font-size: 1rem;
  line-height: 2;
}

.eo-footer-nav h2 {
  font-family: var(--eo-gothic) !important;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--eo-red-bright);
}

.eo-footer-nav a,
.eo-footer p {
  font-family: var(--eo-gothic);
  font-size: .98rem;
  letter-spacing: .08em;
  line-height: 2.2;
}

.eo-footer-nav a {
  text-decoration: none;
  color: var(--eo-white);
  transition: color .3s ease;
}

.eo-footer-nav a:hover { color: var(--eo-red-bright); }

.eo-footer-copy {
  color: var(--eo-kinari);
  border-top: 1px solid var(--eo-line);
}

.eo-footer-copy p {
  font-family: var(--eo-mono);
  font-size: .88rem;
  letter-spacing: .14em;
}

.eo-footer-copy mark { color: var(--eo-red-bright); }

/* ==========================================================================
   Reveal animations（JSが .is-inview を付与。JSが動く環境のみ非表示から開始）
   ========================================================================== */

html.eo-js .eo-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--eo-delay, 0s);
}

html.eo-js .eo-reveal.is-inview {
  opacity: 1;
  transform: none;
}

/* ずらしグリッドの transform と衝突しないよう、リベールは列の中身に付ける */

html.eo-js .eo-reveal-clip {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--eo-delay, 0s);
}

html.eo-js .eo-reveal-clip.is-inview { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
  }
  html.eo-js .eo-reveal,
  html.eo-js .eo-reveal-clip,
  html.eo-js .eo-hero-content > *,
  html.eo-js .eo-hero-photo,
  html.eo-js .eo-hero-bgtext,
  html.eo-js .eo-hero-vertical,
  html.eo-js .eo-hero-seal,
  html.eo-js .eo-scroll-hint,
  .eo-char {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    animation: none !important;
  }
  .eo-intro { display: none !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .eo-hero-vertical { display: none; }
  .eo-hero-photo { width: 52vw; }
}

@media (max-width: 781px) {
  :root { --eo-header-h: 60px; }

  .eo-header-store .wp-block-button__link {
    padding: .55em 1em !important;
    font-size: .68rem !important;
  }

  /* ヒーロー：写真を下半分の背景に */
  .eo-hero { min-height: 100svh; }

  .eo-hero h1 {
    --wp--preset--font-size--giant: clamp(2.1rem, 9.4vw, 2.9rem);
    font-size: clamp(2.1rem, 9.4vw, 2.9rem) !important;
  }

  .eo-hero-photo {
    width: 100%;
    height: 54%;
    top: auto;
    bottom: 0;
    clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%);
  }

  html.eo-js .eo-hero-photo {
    clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%);
    animation: eo-fade 1s ease forwards;
    animation-delay: 2.05s;
    opacity: 0;
  }

  html.eo-js.eo-fast .eo-hero-photo { animation-delay: .2s; }

  .eo-hero-photo::before {
    background: linear-gradient(to bottom, var(--eo-black) 4%, rgba(10,10,10,.35) 40%, rgba(10,10,10,.2) 100%);
  }

  .eo-hero-content {
    padding-top: calc(var(--eo-header-h) + 4vh);
    padding-bottom: 52svh;
  }

  .eo-hero-seal {
    right: 6%;
    bottom: 6%;
  }

  .eo-hero-seal .eo-seal { font-size: .9rem; }

  .eo-hero-bgtext {
    font-size: clamp(6rem, 26vw, 9rem);
    bottom: 42%;
  }

  .eo-hero::after {
    right: -18%;
    top: 40%;
    width: 70vw;
    opacity: .4;
  }

  .eo-hero-logo img { width: min(140px, 34vw); }

  .eo-scroll-hint { display: none; }

  .eo-marquee { transform: rotate(-1.6deg) scale(1.04); }

  .eo-card-media { aspect-ratio: 4 / 4.4; }

  /* 商品カードはスマホで2列グリッド＋軽いずらし */
  .eo-products.wp-block-columns {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1rem !important;
    padding-bottom: 2rem;
  }

  .eo-products .wp-block-column { width: 100% !important; }
  .eo-products .wp-block-column:nth-child(even) { transform: translateY(1.6rem); }

  .eo-craft-collage { padding-right: 0; }
  .eo-craft-collage .eo-craft-over { right: -2%; width: 46%; }

  .eo-look-main { width: 78%; }
  .eo-look-sub { width: 50%; right: -2%; top: 20%; }
  .eo-look-caption { right: auto; left: 4%; bottom: -4%; font-size: .85rem; }

  .eo-tengu-art { aspect-ratio: 16 / 11; }
  .eo-tengu-art p { font-size: clamp(4rem, 18vw, 6rem); }

  .eo-king { border-left: none; border-top: 1px solid var(--eo-line); padding: 1.2em .4em; }

  .eo-join::after { opacity: .5; }

  .eo-footer .wp-block-columns { gap: 2rem !important; }
}
