/*
Theme Name: CuMARi Hair Salon
Theme URI: https://www.cumari-hair.com/
Author: CuMARi
Author URI: https://www.cumari-hair.com/
Description: CuMARi - 池袋 隠れ家プライベートヘアサロン WordPress Original Theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cumari
*/

/* CuMARi — Shared Stylesheet */
/* Design: Warm dark brown x ivory x amber gold — inspired by salon interior */

:root {
  --ink:        #120d08;
  --brown:      #1c1309;
  --surface:    #241810;
  --card:       #2e1f13;
  --border:     rgba(200,164,106,0.14);
  --border-hover: rgba(200,164,106,0.35);
  --gold:       #c8a46a;
  --gold-light: #e4c99a;
  --gold-dim:   rgba(200,164,106,0.55);
  --ivory:      #f4ede0;
  --cream:      #e0d5c5;
  --cream-muted:#b5a898;
  --silver:     #8a8070;
  --sage:       #4a5c3a;
  --radius:     2px;
  --text:       #ddd5c8;
  --text-sub:   #c4b9ab;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--ink);
  color: var(--ivory);
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--gold); }

/* ── Selection ── */
::selection { background: rgba(200,164,106,0.25); color: var(--ivory); }

/* ── Typography ── */
.font-display { font-family: 'Cormorant Garamond', serif; }
.section-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Lines ── */
.gold-line-v {
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
  margin: 0 auto;
}
.gold-line-h {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
}
.gold-line-h.left {
  background: linear-gradient(to right, var(--gold), transparent);
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--ink);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  padding: 13px 36px;
  border-radius: var(--radius);
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(200,164,106,0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(200,164,106,0.4);
  color: var(--gold);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  padding: 12px 32px;
  border-radius: var(--radius);
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn-outline:hover {
  background: rgba(200,164,106,0.08);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
}
.btn-text:hover { color: var(--gold-light); letter-spacing: 0.18em; }

/* ── Navigation ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.5s, border-color 0.5s;
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(18,13,8,0.97);
  border-bottom-color: var(--border);
  backdrop-filter: blur(20px);
}
.nav-link {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(244,237,224,0.55);
  text-decoration: none;
  transition: color 0.3s;
  text-transform: uppercase;
}
.nav-link:hover, .nav-link.active { color: var(--gold); }

/* ── Lang toggle ── */
.lang-btn {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(200,164,106,0.5);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.3s;
}
.lang-btn.active { color: var(--gold); }
.lang-toggle-wrap {
  border: 1px solid rgba(200,164,106,0.2);
  border-radius: 1px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.lang-sep { color: rgba(200,164,106,0.2); font-size: 12px; }

/* Polylang language switcher */
.lang-toggle-wrap ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}
.lang-toggle-wrap li {
  display: flex;
  align-items: center;
}
.lang-toggle-wrap li a {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(200,164,106,0.5);
  text-decoration: none;
  padding: 4px 8px;
  transition: color 0.3s;
  text-transform: uppercase;
}
.lang-toggle-wrap li.current-lang a {
  color: var(--gold);
}

/* ── Cards ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.5s cubic-bezier(0.16,1,0.3,1);
}
.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

/* ── Image placeholder (replace with real img) ── */
.img-ph {
  background: linear-gradient(135deg, var(--surface) 0%, var(--card) 50%, var(--surface) 100%);
  position: relative;
  overflow: hidden;
}
.img-ph::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,164,106,0.04) 0%, rgba(200,164,106,0.1) 100%);
}
.img-ph-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  color: rgba(200,164,106,0.25);
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.3em;
}

/* ── Gallery hover ── */
.gallery-item { overflow: hidden; cursor: pointer; }
.gallery-item .inner { transition: transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.gallery-item:hover .inner { transform: scale(1.06); }

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.reveal.vis { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s !important; }
.d2 { transition-delay: 0.18s !important; }
.d3 { transition-delay: 0.30s !important; }
.d4 { transition-delay: 0.44s !important; }

/* ── Page hero ── */
.page-hero {
  background: var(--brown);
  position: relative;
  overflow: hidden;
}
.page-hero-inner {
  padding: 140px 0 64px;
  position: relative;
  z-index: 2;
}
.page-hero-bg-text {
  position: absolute;
  bottom: -20px;
  right: -20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(80px, 15vw, 180px);
  font-weight: 300;
  color: rgba(200,164,106,0.04);
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
  letter-spacing: 0.05em;
  user-select: none;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(200,164,106,0.45);
}
.breadcrumb a { color: inherit; text-decoration: none; transition: color 0.3s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: rgba(200,164,106,0.25); }

/* ── Ornament divider ── */
.ornament {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
}
.ornament::before, .ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(200,164,106,0.3));
}
.ornament::after { background: linear-gradient(to left, transparent, rgba(200,164,106,0.3)); }

/* ── Noise texture ── */
.noise-layer {
  position: relative;
}
.noise-layer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  z-index: 0;
}

/* ── Sticky CTA ── */
.sticky-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 80;
  transition: all 0.4s;
}
.sticky-cta.hidden { opacity: 0; transform: translateY(8px) scale(0.95); pointer-events: none; }

/* ── Mobile menu ── */
.mobile-nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16,1,0.3,1);
}
.mobile-nav.open { max-height: 520px; }
.burger span {
  display: block; width: 22px; height: 1px;
  background: var(--gold); margin: 5px 0;
  transition: all 0.3s;
}
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ── Inbound badge ── */
.inbound-badge {
  background: rgba(200,164,106,0.1);
  border: 1px solid rgba(200,164,106,0.28);
  color: var(--gold);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 1px;
  white-space: nowrap;
}

/* ── Table ── */
.info-table { border-collapse: collapse; width: 100%; }
.info-table tr { border-bottom: 1px solid rgba(200,164,106,0.1); }
.info-table tr:last-child { border-bottom: none; }
.info-table td { padding: 14px 0; vertical-align: top; }
.info-table .label {
  color: var(--gold-dim);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  width: 90px;
  white-space: nowrap;
}

/* ── Price table ── */
.price-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid rgba(200,164,106,0.08);
}
.price-item:last-child { border-bottom: none; }
.price-name { font-size: 14px; color: var(--ivory); font-family: 'Noto Serif JP', serif; }
.price-sub  { font-size: 11px; color: var(--cream-muted); margin-top: 2px; font-family: 'Noto Sans JP', sans-serif; }
.price-val  {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 300;
  color: var(--gold);
  white-space: nowrap;
  margin-left: 20px;
}
.price-tax  { font-size: 10px; color: var(--cream-muted); font-family: 'Noto Sans JP', sans-serif; }

/* ── Corner marks ── */
.corner-tl { position: absolute; top: 12px; left: 12px; width: 24px; height: 24px; border-top: 1px solid rgba(200,164,106,0.5); border-left: 1px solid rgba(200,164,106,0.5); }
.corner-br { position: absolute; bottom: 12px; right: 12px; width: 24px; height: 24px; border-bottom: 1px solid rgba(200,164,106,0.5); border-right: 1px solid rgba(200,164,106,0.5); }

/* ── FAQ ── */
.faq-btn {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--ivory);
  font-family: 'Noto Serif JP', serif;
  font-size: 13px;
  line-height: 1.5;
  transition: background 0.3s;
}
.faq-btn:hover { background: rgba(200,164,106,0.05); }
.faq-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border: 1px solid rgba(200,164,106,0.35);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 14px;
  transition: all 0.3s;
}
.faq-icon.open { transform: rotate(45deg); background: rgba(200,164,106,0.1); }
.faq-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1);
}
.faq-body-inner {
  padding: 0 20px 18px;
  font-size: 13px;
  color: var(--cream-muted);
  line-height: 1.9;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
}

/* ── Form ── */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--gold-dim);
}
.form-input, .form-textarea, .form-select {
  background: var(--card);
  border: 1px solid rgba(200,164,106,0.2);
  color: var(--ivory);
  font-family: 'Noto Serif JP', serif;
  font-size: 13px;
  padding: 12px 14px;
  border-radius: var(--radius);
  transition: border-color 0.3s;
  outline: none;
  width: 100%;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--gold);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-input::placeholder, .form-textarea::placeholder { color: var(--silver); opacity: 0.5; }
.required { color: var(--gold); margin-left: 2px; }

/* ── Map ── */
.map-wrap {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.map-wrap iframe { filter: invert(88%) hue-rotate(178deg) grayscale(20%) brightness(0.88) saturate(0.8); }

/* ── Tag / badge ── */
.tag {
  display: inline-block;
  background: rgba(200,164,106,0.1);
  border: 1px solid rgba(200,164,106,0.25);
  color: var(--gold);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 9px;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border-radius: 1px;
}
.tag.new { background: rgba(200,164,106,0.2); }

/* ── Base Body Text (全ページ共通) ── */

/* 本文テキスト：16px + 読みやすいカラーに統一 */
section p,
section li,
.card p,
.faq-body-inner,
.info-table td,
.page-hero + section p,
.page-hero + section li {
  font-size: 16px !important;
  color: var(--text) !important;
  line-height: 1.9;
}

/* テーブルのラベル列 */
.info-table .label {
  font-size: 12px !important;
  color: var(--gold-dim) !important;
}

/* サブテキスト（補足説明）*/
.price-sub,
.inbound-badge,
.tag,
.breadcrumb,
.section-eyebrow {
  font-size: inherit;
}

/* price-item は専用サイズを維持 */
.price-item .price-name {
  font-size: 16px !important;
  color: var(--ivory) !important;
}
.price-item .price-sub {
  font-size: 13px !important;
  color: var(--text-sub) !important;
}
.price-item .price-val {
  color: var(--gold) !important;
}

/* カード内の説明テキスト */
.card h3,
.card h4 {
  color: var(--ivory) !important;
}

/* FAQ */
.faq-btn span:first-child {
  font-size: 15px !important;
  color: var(--ivory) !important;
}
.faq-body-inner {
  font-size: 15px !important;
  color: var(--text-sub) !important;
  line-height: 2;
}

/* フッター内は小さめに維持 */
footer p,
footer li,
footer span,
footer div {
  font-size: inherit;
  color: inherit;
}
footer .nav-link {
  font-size: 11px !important;
}

/* ナビ・ヘッダー内は除外 */
#navbar p, #navbar span, #navbar li {
  font-size: inherit !important;
  color: inherit !important;
}

/* ── Single Post Content ── */
.single-content {
  font-size: 16px;
  color: var(--text);
  line-height: 2.2;
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
}
.single-content p {
  margin-bottom: 1.6em;
}
.single-content h1, .single-content h2 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--ivory);
  font-weight: 300;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: 0.04em;
  margin: 2em 0 0.8em;
  line-height: 1.4;
}
.single-content h3 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold);
  font-weight: 400;
  font-size: clamp(18px, 2.5vw, 24px);
  letter-spacing: 0.04em;
  margin: 1.8em 0 0.6em;
  line-height: 1.4;
}
.single-content h4, .single-content h5, .single-content h6 {
  color: var(--ivory);
  font-weight: 400;
  font-size: 18px;
  margin: 1.5em 0 0.5em;
  line-height: 1.5;
}
.single-content ul, .single-content ol {
  margin: 1em 0 1.5em 1.5em;
  padding: 0;
}
.single-content ul { list-style: disc; }
.single-content ol { list-style: decimal; }
.single-content li {
  margin-bottom: 0.5em;
  line-height: 1.9;
  color: var(--text);
}
.single-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.5em 0;
  display: block;
}
.single-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s;
}
.single-content a:hover {
  color: var(--gold-light);
}
.single-content strong, .single-content b {
  color: var(--ivory);
  font-weight: 500;
}
.single-content blockquote {
  border-left: 2px solid var(--gold);
  padding: 12px 20px;
  margin: 1.5em 0;
  color: var(--text-sub);
  font-style: italic;
  background: rgba(200,164,106,0.04);
}
.single-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(200,164,106,0.3), transparent);
  margin: 2em 0;
}
.single-content figure {
  margin: 1.5em 0;
}
.single-content figcaption {
  font-size: 11px;
  color: rgba(181,168,152,0.6);
  text-align: center;
  margin-top: 8px;
}

/* ── Contact Form 7 スタイル統合 ── */
.contact-form-wrap .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-form-wrap .wpcf7-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-form-wrap .wpcf7-form .form-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px !important;
  letter-spacing: 0.15em;
  color: var(--gold-dim) !important;
}
.contact-form-wrap .wpcf7-form input[type="text"],
.contact-form-wrap .wpcf7-form input[type="email"],
.contact-form-wrap .wpcf7-form input[type="tel"],
.contact-form-wrap .wpcf7-form textarea,
.contact-form-wrap .wpcf7-form-control:not([type="submit"]) {
  background: var(--card) !important;
  border: 1px solid rgba(200,164,106,0.2) !important;
  color: var(--ivory) !important;
  font-family: 'Noto Serif JP', serif;
  font-size: 14px !important;
  padding: 12px 14px !important;
  border-radius: var(--radius);
  transition: border-color 0.3s;
  outline: none;
  width: 100%;
}
.contact-form-wrap .wpcf7-form-control:focus {
  border-color: var(--gold) !important;
}
.contact-form-wrap .wpcf7-form textarea {
  resize: vertical;
  min-height: 140px;
}
.contact-form-wrap .wpcf7-form input::placeholder,
.contact-form-wrap .wpcf7-form textarea::placeholder {
  color: var(--silver) !important;
  opacity: 0.5;
}
.contact-form-wrap .wpcf7-form input[type="submit"],
.contact-form-wrap .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gold) !important;
  color: var(--ink) !important;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px !important;
  font-weight: 400;
  letter-spacing: 0.15em;
  padding: 14px 36px !important;
  border-radius: var(--radius);
  border: none !important;
  cursor: pointer;
  width: 100%;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
.contact-form-wrap .wpcf7-submit:hover {
  background: var(--gold-light) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(200,164,106,0.35);
}
.contact-form-wrap .wpcf7-response-output {
  border-color: var(--gold) !important;
  color: var(--text) !important;
  font-size: 13px;
  padding: 12px 16px;
  margin: 12px 0 0 !important;
  border-radius: var(--radius);
}
.contact-form-wrap .wpcf7-not-valid-tip {
  color: #e57373 !important;
  font-size: 11px;
  margin-top: 4px;
}
.contact-form-wrap .wpcf7 .wpcf7-spinner {
  display: none;
}

/* ── Footer ── */
footer {
  background: var(--brown);
  border-top: 1px solid rgba(200,164,106,0.1);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .page-hero-inner { padding: 120px 0 48px; }
  .info-table .label { width: 70px; font-size: 10px !important; }
  .price-val { font-size: 17px; }
  section p, section li, .card p, .faq-body-inner, .info-table td {
    font-size: 15px !important;
  }
  .price-item .price-name { font-size: 15px !important; }
}
