/*
Theme Name: Revolare
Theme URI: https://revolare.jp
Author: Revolare
Author URI: https://revolare.jp
Description: オーダーメイドスーツ Revolare のオリジナルWordPressテーマ。ダークターコイズ×ゴールドの洗練されたデザイン、アコーディオン式セクション。
Version: 1.0.0
License: Private
Text Domain: revolare
*/

/* ==============================
   CSS Variables
============================== */
:root {
  --tq1: #0d3d3a;
  --tq2: #0f5f56;
  --tq3: #1a7a6e;
  --tq4: #22998a;
  --tq5: #2dbba8;
  --tq6: #4dd4c0;
  --gold: #b8956a;
  --text-light: #e8f5f3;
  --text-muted: #8ec4bc;
}

/* ==============================
   Reset & Base
============================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Noto Serif JP', serif;
  background: #0a2e2b;
  color: var(--text-light);
  overflow-x: hidden;
}

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

/* ==============================
   NAV
============================== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 46, 43, 0.97);
  border-bottom: 1px solid rgba(77, 212, 192, 0.08);
}

.site-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  letter-spacing: 0.12em;
  line-height: 1;
}

.site-logo a {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--text-light);
  line-height: 1;
}

.site-logo small {
  font-size: 9px;
  letter-spacing: 0.45em;
  display: block;
  color: var(--gold);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
}

.nav-menu {
  display: flex;
  gap: 28px;
}

.nav-menu a {
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--text-muted);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a { color: var(--tq5); }

/* ==============================
   HERO
============================== */
.hero {
  min-height: 100vh;
  padding-top: 80px;
  background: linear-gradient(135deg, var(--tq1) 0%, var(--tq2) 40%, var(--tq3) 70%, var(--tq1) 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(77, 212, 192, 0.12), transparent 60%);
  animation: pulse 6s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, #0a2e2b);
}

@keyframes pulse { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 5%;
  max-width: 560px;
}

.hero-eyebrow {
  font-size: 9px;
  letter-spacing: 0.5em;
  color: var(--gold);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 1s ease 0.3s forwards;
}

.hero-badge {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid rgba(184, 149, 106, 0.4);
  font-size: 9px;
  letter-spacing: 0.5em;
  color: var(--gold);
  font-family: 'Noto Sans JP', sans-serif;
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(52px, 8vw, 88px);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: 0.05em;
  opacity: 0;
  animation: fadeUp 1s ease 0.5s forwards;
}

.hero-title span { color: var(--tq5); }

.hero-tagline {
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  margin: 20px 0 36px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  line-height: 2;
  opacity: 0;
  animation: fadeUp 1s ease 0.7s forwards;
}

.btn-primary {
  display: inline-block;
  padding: 13px 32px;
  border: 1px solid var(--tq5);
  color: var(--tq5);
  font-size: 10px;
  letter-spacing: 0.4em;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  position: relative;
  overflow: hidden;
  transition: color 0.4s;
  cursor: pointer;
  background: transparent;
  opacity: 0;
  animation: fadeUp 1s ease 0.9s forwards;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--tq5);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.btn-primary:hover { color: #0a2e2b; }
.btn-primary:hover::before { transform: scaleX(1); }
.btn-primary span { position: relative; z-index: 1; }

.hero-photo-side {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 48%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to right, var(--tq2), transparent);
}

.hero-photo-side .hero-img {
  width: 85%;
  height: 72%;
  object-fit: cover;
}

.hero-photo-placeholder {
  width: 85%; height: 72%;
  background: rgba(45, 187, 168, 0.05);
  border: 1px solid rgba(77, 212, 192, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--tq5);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  opacity: 0.3;
}

/* モバイル背景透かし: PC側では非表示 */
.hero-bg-mobile {
  display: none;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 10;
  opacity: 0;
  animation: fadeUp 1s ease 1.4s forwards;
}

.scroll-indicator span {
  font-size: 8px;
  letter-spacing: 0.5em;
  color: var(--text-muted);
  font-family: 'Noto Sans JP', sans-serif;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--tq5), transparent);
  animation: sline 2s ease-in-out infinite;
}

@keyframes sline {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ==============================
   BAND DIVIDERS
============================== */
.gold-band {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.tq-band {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--tq5), transparent);
}

/* ==============================
   ACCORDION SECTIONS
============================== */
.acc-wrapper { background: #0a2e2b; }

.acc-section {
  border-bottom: 1px solid rgba(77, 212, 192, 0.1);
  overflow: hidden;
  position: relative;
}

.acc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  cursor: pointer;
  min-height: 96px;
  background: linear-gradient(to right, rgba(13, 61, 58, 0.5), rgba(10, 46, 43, 0.5));
  transition: background 0.4s;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.acc-header::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, transparent, var(--tq5), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.acc-header:hover {
  background: linear-gradient(to right, rgba(15, 95, 86, 0.2), rgba(10, 46, 43, 0.5));
}

.acc-header:hover::before,
.acc-section.open .acc-header::before { opacity: 1; }

.acc-section.open .acc-header {
  background: linear-gradient(to right, rgba(15, 95, 86, 0.25), rgba(10, 46, 43, 0.5));
}

.acc-header-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.acc-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  font-weight: 300;
  color: rgba(45, 187, 168, 0.15);
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.4s;
}

.acc-section.open .acc-number { color: rgba(45, 187, 168, 0.35); }

.acc-titles { display: flex; flex-direction: column; gap: 4px; }

.acc-title-ja {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 300;
  letter-spacing: 0.2em;
}

.acc-title-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(10px, 1.5vw, 13px);
  color: var(--gold);
  letter-spacing: 0.5em;
  font-weight: 300;
}

.acc-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.acc-cta-text {
  font-size: 9px;
  letter-spacing: 0.4em;
  color: var(--text-muted);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  transition: color 0.4s;
  white-space: nowrap;
}

.acc-section.open .acc-cta-text { color: rgba(232, 245, 243, 0.3); }

.acc-icon {
  width: 36px; height: 36px;
  border: 1px solid rgba(77, 212, 192, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.4s;
  position: relative;
}

.acc-icon::before,
.acc-icon::after {
  content: '';
  position: absolute;
  background: var(--tq5);
  border-radius: 1px;
  transition: all 0.4s;
}

.acc-icon::before { width: 12px; height: 1px; }
.acc-icon::after  { width: 1px;  height: 12px; }

.acc-section.open .acc-icon {
  background: rgba(45, 187, 168, 0.1);
  border-color: rgba(77, 212, 192, 0.5);
}

.acc-section.open .acc-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.acc-section.open .acc-body { max-height: 1200px; }

.acc-inner {
  padding: 56px 5% 64px;
  background: linear-gradient(135deg, rgba(13, 58, 55, 0.4), rgba(10, 46, 43, 0.6));
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease 0.15s, transform 0.5s ease 0.15s;
}

.acc-section.open .acc-inner {
  opacity: 1;
  transform: translateY(0);
}

.acc-content-layout {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

/* 縦文字 */
.acc-vert-title {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 300;
  letter-spacing: 0.3em;
  color: rgba(45, 187, 168, 0.12);
  line-height: 1;
  flex-shrink: 0;
  white-space: nowrap;
  transition: color 0.4s;
}

.acc-section.open .acc-vert-title { color: rgba(45, 187, 168, 0.2); }

.acc-text-block { flex: 1; }

.acc-subtitle {
  font-size: 9px;
  letter-spacing: 0.5em;
  color: var(--gold);
  font-family: 'Noto Sans JP', sans-serif;
  margin-bottom: 16px;
}

.acc-heading {
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
  line-height: 1.4;
}

.divider {
  width: 36px; height: 1px;
  background: var(--gold);
  margin-bottom: 20px;
}

.acc-text {
  font-size: 13px;
  line-height: 2.2;
  color: rgba(232, 245, 243, 0.7);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
}

.acc-text + .acc-text { margin-top: 12px; }

/* 写真 */
.acc-photo {
  flex-shrink: 0;
  width: 300px;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.acc-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.acc-photo-placeholder {
  width: 100%; height: 100%;
  background: rgba(45, 187, 168, 0.04);
  border: 1px solid rgba(77, 212, 192, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(77, 212, 192, 0.3);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  min-height: 380px;
}

/* ==============================
   FEATURES GRID
============================== */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(77, 212, 192, 0.08);
  margin-top: 36px;
}

.feat-item {
  padding: 28px 22px;
  background: rgba(10, 46, 43, 0.95);
  transition: background 0.3s;
}

.feat-item:hover { background: rgba(15, 75, 68, 0.4); }

.feat-n {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  font-weight: 300;
  color: rgba(45, 187, 168, 0.15);
  line-height: 1;
  margin-bottom: 12px;
}

.feat-line {
  width: 20px; height: 1px;
  background: var(--gold);
  margin-bottom: 12px;
}

.feat-name {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  margin-bottom: 10px;
  font-family: 'Noto Serif JP', serif;
}

.feat-desc {
  font-size: 11px;
  color: rgba(232, 245, 243, 0.5);
  line-height: 1.85;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
}

/* ==============================
   BLOG CARDS
============================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.blog-card {
  border: 1px solid rgba(77, 212, 192, 0.1);
  transition: border-color 0.3s, transform 0.4s;
}

.blog-card:hover {
  border-color: rgba(77, 212, 192, 0.3);
  transform: translateY(-3px);
}

.blog-card a { display: block; }

.blog-img {
  height: 160px;
  overflow: hidden;
}

.blog-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-img img { transform: scale(1.04); }

.blog-img-placeholder {
  width: 100%; height: 100%;
  background: rgba(45, 187, 168, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(77, 212, 192, 0.25);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 9px;
  letter-spacing: 0.3em;
}

.blog-body { padding: 16px; }

.blog-date {
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--gold);
  font-family: 'Noto Sans JP', sans-serif;
  margin-bottom: 6px;
}

.blog-ttl {
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.blog-cat {
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  font-family: 'Noto Sans JP', sans-serif;
}

/* ==============================
   CONTACT FORM
============================== */
.contact-form {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-size: 9px;
  letter-spacing: 0.4em;
  color: var(--text-muted);
  font-family: 'Noto Sans JP', sans-serif;
}

.form-input {
  background: rgba(45, 187, 168, 0.04);
  border: 1px solid rgba(77, 212, 192, 0.15);
  padding: 12px 14px;
  color: var(--text-light);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
}

.form-input:focus { border-color: rgba(77, 212, 192, 0.4); }
.form-input::placeholder { color: rgba(232, 245, 243, 0.18); }

textarea.form-input {
  height: 100px;
  resize: vertical;
}

.btn-submit {
  margin-top: 4px;
  padding: 14px;
  background: transparent;
  border: 1px solid var(--tq5);
  color: var(--tq5);
  font-size: 10px;
  letter-spacing: 0.5em;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.4s;
  width: 100%;
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--tq5);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.btn-submit:hover { color: #0a2e2b; }
.btn-submit:hover::before { transform: scaleX(1); }
.btn-submit span { position: relative; z-index: 1; }

/* ==============================
   FOOTER
============================== */
.site-footer {
  padding: 48px 5%;
  background: var(--tq1);
  border-top: 1px solid rgba(77, 212, 192, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.15em;
}

.footer-logo small {
  font-size: 9px;
  letter-spacing: 0.3em;
  display: block;
  color: var(--text-muted);
  margin-top: 3px;
  font-family: 'Noto Sans JP', sans-serif;
}

.footer-menu {
  display: flex;
  gap: 24px;
}

.footer-menu a {
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  font-family: 'Noto Sans JP', sans-serif;
  transition: color 0.3s;
}

.footer-menu a:hover { color: var(--tq5); }

.footer-copy {
  font-size: 9px;
  color: rgba(232, 245, 243, 0.25);
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.2em;
}

/* ==============================
   Animations
============================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==============================
   WordPress標準クラスのサポート
============================== */
.wp-block-image { margin: 0; }
.screen-reader-text { display: none; }
.aligncenter { text-align: center; }

/* ==============================
   Mobile
============================== */
@media (max-width: 768px) {
  .nav-menu { display: none; }

  /* ---- Hero: 画像を背景透かしとして全面表示 ---- */
  .hero {
    position: relative;
  }

  /* PC版のサイドパネルは非表示に */
  .hero-photo-side {
    display: none;
  }

  /* モバイル用: 画像をheroの背景全面に透かし表示 */
  .hero::before {
    /* アニメーションは残しつつ画像レイヤーを追加 */
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 30%, rgba(77, 212, 192, 0.12), transparent 60%);
    animation: pulse 6s ease-in-out infinite;
    z-index: 0;
  }

  /* 背景画像レイヤー (JS で data-bg-src を設定) */
  .hero-bg-mobile {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    /* 左→右でテキスト側を暗く、右側は画像を透かして見せる */
    -webkit-mask-image: linear-gradient(
      to bottom,
      rgba(0,0,0,0.0) 0%,
      rgba(0,0,0,0.18) 20%,
      rgba(0,0,0,0.30) 50%,
      rgba(0,0,0,0.18) 80%,
      rgba(0,0,0,0.0) 100%
    );
    mask-image: linear-gradient(
      to bottom,
      rgba(0,0,0,0.0) 0%,
      rgba(0,0,0,0.18) 20%,
      rgba(0,0,0,0.30) 50%,
      rgba(0,0,0,0.18) 80%,
      rgba(0,0,0,0.0) 100%
    );
    /* ターコイズグラデーションと画像を重ねる */
    /* background-blend-mode は background-imageを2層にする場合に使用 */
  }

  /* テキストコンテンツは最前面 */
  .hero-content {
    max-width: 100%;
    position: relative;
    z-index: 2;
  }

  .acc-content-layout { flex-direction: column; gap: 32px; }
  .acc-vert-title { writing-mode: horizontal-tb; font-size: 18px; color: rgba(45,187,168,0.2); }
  .acc-photo { width: 100%; }
  .feat-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .acc-cta-text { display: none; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .footer-menu { flex-wrap: wrap; gap: 16px; }
}
