/*
Theme Name: noka Pilates
Theme URI: https://example.com/noka-pilates
Author: noka Studio
Author URI: https://example.com
Description: noka Pilates スタジオ専用テーマ。ヒーロー・コンセプト・特徴・体験の流れ・料金・フッターの各セクションをWordPress管理画面からテキスト・画像・料金を自由に編集できます。
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: noka
Tags: pilates, studio, landing-page, one-page, custom-colors, custom-logo, featured-images, full-width-template, editor-style, block-patterns
*/

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── VARIABLES ── */
:root {
  --cream:        #F6F2EA;
  --cream-light:  #FBF8F2;
  --sage:         #75806B;
  --sage-light:   #9BA78E;
  --sand:         #E6DED0;
  --sand-mid:     #D9DFD1;
  --sand-border:  #D7CEBE;
  --ink:          #343831;
  --ink-mid:      #555C50;
  --serif: 'Playfair Display', 'Noto Serif JP', Georgia, serif;
  --sans:  'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; min-height: 100%; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#primary { flex: 1; }

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

/* ── HEADER ── */
#site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(246,242,234,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(117,128,107,0.12);
}

.logo-wrap { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-ham { font-size: 22px; color: var(--ink); }
.logo-text .name {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.05em;
  color: var(--ink);
  display: block;
  line-height: 1;
}
.logo-text .sub {
  font-size: 9px;
  letter-spacing: 0.32em;
  color: var(--sage);
  display: block;
  margin-top: 3px;
}
.header-logo-img { height: 36px; width: auto; display: block; }

#site-nav { display: flex; gap: 32px; }
#site-nav a {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-decoration: none;
  transition: color .2s;
}
#site-nav a:hover { color: var(--sage); }

.btn-reserve {
  display: inline-flex;
  align-items: center;
  background: var(--sage);
  color: var(--cream) !important;
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-decoration: none;
  transition: opacity .2s;
}
.btn-reserve:hover { opacity: .85; }
.btn-reserve-fixed {
  display: none;
}

/* ── HERO ── */
#hero {
  position: relative;
  height: 100vh;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(47,51,46,0.40);
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: fadeUp 1.2s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-logo-area {
  font-family: var(--serif);
  font-size: clamp(72px, 12vw, 120px);
  line-height: 1;
  letter-spacing: -0.08em;
  color: #fff;
}
.hero-logo-img { height: clamp(60px, 10vw, 120px); width: auto; }

.hero-h1 {
  font-family: var(--sans);
  font-size: clamp(13px, 2vw, 16px);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
}

.hero-sub {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: #fff;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.8);
  color: #fff;
  padding: 14px 36px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-decoration: none;
  transition: background .25s, color .25s;
}
.btn-hero:hover { background: #fff; color: var(--sage); }

.btn-hero-trial {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: var(--sage, #6b7b6e);
  padding: 14px 36px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-decoration: none;
  margin-top: 12px;
  transition: background .25s, color .25s, opacity .25s;
}
.btn-hero-trial:hover { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.8); }

/* ── SECTIONS COMMON ── */
.noka-section { padding: 80px 64px; }
.section-label {
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--sage);
  margin-bottom: 18px;
}
.section-heading {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: .02em;
  color: var(--ink);
  margin-bottom: 28px;
}
.section-body {
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: .05em;
  color: var(--ink-mid);
}

/* ── TWO COL ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 48px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}
.two-col.reverse .col-image { order: -1; }

.col-image {
  position: relative;
  height: 420px;
  border-radius: 32px;
  overflow: hidden;
  background: var(--sand-mid);
}
.col-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.col-image-deco {
  position: absolute;
  right: -40px;
  top: 30px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(117,128,107,.12);
  pointer-events: none;
}

/* ── CONCEPT ── */
#concept { background: var(--cream); }

/* ── PHILOSOPHY ── */
#philosophy { background: var(--cream-light); }
#philosophy .section-heading {
  font-family: 'Cormorant Garamond', var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 72px);
}

/* ── FEATURES ── */
#features {
  background: var(--sand);
  position: relative;
  overflow: hidden;
}
.features-deco {
  position: absolute;
  left: -80px; top: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: var(--cream);
  pointer-events: none;
}
.features-inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
}
.features-sub {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--ink-mid);
  margin-top: 8px;
  margin-bottom: 0;
}

.feature-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 32px;
  padding: 32px 0;
}
.feature-row + .feature-row { border-top: 1px solid rgba(117,128,107,.15); }

.feature-circle {
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 1px solid var(--sage);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-circle .pt-label {
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--sage);
}
.feature-circle .pt-num {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
  color: var(--sage);
}
.feature-mark {
  height: 96px;
  border-radius: 999px;
  background: rgba(246,242,234,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--sage);
}
.feature-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--ink);
}
.feature-text {
  font-size: 14px;
  line-height: 2;
  letter-spacing: .04em;
  color: var(--ink-mid);
}

/* ── FLOW ── */
#flow { background: var(--cream); }
.flow-inner { max-width: 960px; margin: 0 auto; }
.flow-title-wrap { text-align: center; margin-bottom: 56px; }
.flow-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 32px;
}
.flow-card-top {
  position: relative;
  height: 280px;
  border-radius: 120px 120px 16px 16px;
  border: 1px solid var(--sand-border);
  background: var(--cream-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
}
.flow-badge {
  position: absolute;
  left: 16px; top: 16px;
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 1px solid var(--sage);
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.flow-badge .st-label {
  font-family: var(--serif);
  font-size: 8px;
  letter-spacing: .2em;
  color: var(--sage);
}
.flow-badge .st-num {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
  color: var(--sage);
}
.flow-mark {
  font-size: 48px;
  color: rgba(117,128,107,.65);
  margin-top: 24px;
}
.flow-card-top.has-flow-img { padding: 0; overflow: hidden; }
.flow-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at center, #000 50%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 80% at center, #000 50%, transparent 100%);
}
.has-flow-img .flow-badge {
  z-index: 1;
  background: rgba(246,242,234,.9);
}
.flow-card-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--ink);
}
.flow-card-text {
  font-size: 13px;
  line-height: 2;
  letter-spacing: .04em;
  color: var(--ink-mid);
}

/* ── PRICE ── */
#price { background: var(--cream); padding-left: 0; padding-right: 0; padding-bottom: 0; padding-top: 80px; }
.price-outer {
  background: var(--sand);
  border-radius: 80px 80px 0 0;
  padding: 80px 64px;
}
.price-title-wrap { text-align: center; margin-bottom: 56px; }
.price-title-wrap .section-heading { color: var(--sage); }
.price-title-wrap .price-sub { font-size: 11px; letter-spacing: .14em; color: var(--sage); }

.price-card {
  background: var(--cream-light);
  border-radius: 32px;
  padding: 48px;
  max-width: 960px;
  margin: 0 auto;
}
.campaign-wrap { text-align: center; margin-bottom: 40px; }
.campaign-title {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--sage);
  margin-bottom: 14px;
}
.campaign-banner {
  display: inline-block;
  background: var(--sand-mid);
  border-radius: 16px;
  padding: 12px 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--ink);
}

/* 体験 & 入会金 ハイライト行 */
.price-highlight-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.price-highlight-item {
  background: var(--sage);
  border-radius: 24px;
  padding: 32px 28px;
  text-align: center;
  position: relative;
}
.price-highlight-item .price-item-label {
  background: rgba(255,255,255,.2);
  color: #fff;
}
.price-original {
  display: block;
  font-size: 16px;
  color: rgba(255,255,255,.6);
  text-decoration: line-through;
  margin-bottom: 4px;
}
.price-free {
  color: #fff !important;
}
.price-discount {
  color: #fff !important;
}
.price-badge {
  display: inline-block;
  background: rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 4px 16px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  letter-spacing: .06em;
  margin-top: 8px;
}

/* セクションタイトル */
.price-section-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-mid);
  letter-spacing: .1em;
  text-align: center;
  margin-bottom: 16px;
  margin-top: 8px;
}

/* 通常グリッド */
.price-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}
.price-grid-4 { grid-template-columns: repeat(4, 1fr); }
.price-grid-3 { grid-template-columns: repeat(3, 1fr); }

.price-item {
  background: #fff;
  border: 1px solid var(--sand-border);
  border-radius: 24px;
  padding: 28px 20px;
  text-align: center;
  position: relative;
}
.price-item-best {
  border-color: var(--sage);
  box-shadow: 0 0 0 1px var(--sage);
}
.price-best-label {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sage);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  padding: 3px 14px;
  border-radius: 999px;
}
.price-item-label {
  display: block;
  background: var(--sand);
  border-radius: 999px;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 20px;
}
.price-num {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--sage);
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}
.price-unit {
  display: block;
  font-size: 12px;
  color: var(--ink-mid);
  margin-top: 4px;
}
.price-suffix { font-size: 12px; color: var(--ink-mid); }
.price-note {
  text-align: center;
  font-size: 11px;
  color: var(--ink-mid);
  line-height: 1.8;
  margin-top: 24px;
}

/* ── FOOTER ── */
#colophon { background: var(--cream); }
.footer-inner {
  background: var(--sand);
  border-radius: 80px 80px 0 0;
  padding: 80px 64px 10px;
  text-align: center;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 56px;
  letter-spacing: -0.06em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
  text-decoration: none;
  display: block;
}
.footer-logo-img { height: 48px; width: auto; display: inline-block; }
.footer-logo-sub {
  font-size: 11px;
  letter-spacing: .26em;
  color: var(--sage);
  margin-bottom: 28px;
}
.footer-sns { display: flex; justify-content: center; gap: 20px; margin-bottom: 32px; }
.footer-sns a {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  color: var(--ink); text-decoration: none; transition: opacity .2s;
}
.footer-sns a:hover { opacity: .6; }
.footer-nav {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px 24px;
  max-width: 640px;
  margin: 0 auto 40px;
}
.footer-nav ul,
.footer-nav .menu {
  display: contents;
  list-style: none !important;
  margin: 0;
  padding: 0;
}
.footer-nav li {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}
.footer-nav a {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--ink);
  text-decoration: none;
  transition: color .2s;
}
.footer-nav a:hover { color: var(--sage); }

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--sage);
  color: var(--cream);
  padding: 18px 48px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-decoration: none;
  transition: opacity .2s;
  margin-bottom: 40px;
}
.btn-cta:hover { opacity: .85; }

.footer-copy {
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--sage);
}

/* ── MEMBER FIXED NAV ── */
.member-fixed-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--sand-border, #e0dcd4);
  display: flex; justify-content: center; gap: 8px;
  padding: 6px 16px;
  box-shadow: 0 -2px 12px rgba(52,56,49,0.08);
}
.member-fixed-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-decoration: none; color: var(--ink-mid, #888);
  font-size: 10px; padding: 4px 16px; border-radius: 8px;
  transition: color .2s, background .2s;
}
.member-fixed-nav-item:hover { color: var(--sage); background: var(--cream-light, #faf8f4); }
.member-fixed-nav-item.is-active { color: var(--sage); font-weight: 700; }
.member-fixed-nav-icon { font-size: 20px; line-height: 1; }
.member-fixed-nav-label { letter-spacing: 0.04em; white-space: nowrap; }

/* フッター本体に固定ナビ分の余白を確保 */
body.logged-in #colophon { padding-bottom: 64px; }

/* PC: 横長バーをコンパクトに */
@media (min-width: 769px) {
  .member-fixed-nav {
    left: auto; right: 24px; bottom: 24px;
    border-radius: 999px; border: 1px solid var(--sand-border, #e0dcd4);
    padding: 6px 8px; gap: 4px;
    width: auto; box-shadow: 0 4px 20px rgba(52,56,49,0.12);
  }
  .member-fixed-nav-item {
    flex-direction: row; gap: 6px; padding: 8px 14px; font-size: 13px;
  }
  .member-fixed-nav-icon { font-size: 16px; }
  body.logged-in #colophon { padding-bottom: 0; }
}

/* ── PAGE / SINGLE / ARCHIVE (固定ページ・投稿・一覧) ── */
.page-article { padding-top: 64px; }

.page-hero {
  background: var(--sand-mid);
  padding: 40px 64px 36px;
  text-align: center;
}
.page-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: .04em;
  color: var(--ink);
}
.page-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.entry-content {
  font-size: 15px;
  line-height: 2.05;
  letter-spacing: .04em;
  color: var(--ink-mid);
}
.entry-content > * + * { margin-top: 1.4em; }
.entry-content h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  margin-top: 2em;
  padding-bottom: .4em;
  border-bottom: 1px solid var(--sand-border);
}
.entry-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 1.8em;
}
.entry-content a {
  color: var(--sage);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.entry-content ul,
.entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: .4em; }
.entry-content img { border-radius: 4px; }
.entry-content blockquote {
  border-left: 3px solid var(--sage);
  padding-left: 20px;
  color: var(--ink-mid);
  font-style: italic;
}

/* 投稿一覧 */
.post-entry {
  padding: 32px 0;
  border-bottom: 1px solid var(--sand-border);
}
.post-entry:first-child { padding-top: 0; }
.post-entry-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 12px;
}
.post-entry-title a { text-decoration: none; }
.post-entry-title a:hover { color: var(--sage); }

/* ページネーション・ページ内リンク */
.page-links,
.pagination .nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 48px;
}
.page-links a,
.page-links > span,
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--sand-border);
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
}
.pagination .page-numbers.current {
  background: var(--sage);
  color: #fff;
  border-color: var(--sage);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .noka-section { padding: 56px 24px; }
  .page-hero { padding: 32px 24px 28px; }
  .page-body { padding: 40px 12px 72px; }
  #site-header { padding: 0 20px; }
  #site-nav { display: none; }
  .btn-reserve-header { display: none; }
  .btn-reserve-fixed {
    display: inline-flex;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    padding: 14px 28px;
    font-size: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
  }

  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse .col-image { order: 0; }
  .col-image { height: 260px; }

  .feature-row { grid-template-columns: 80px 1fr; gap: 16px; }
  .feature-circle { width: 80px; height: 80px; }
  .feature-circle .pt-num { font-size: 28px; }

  .flow-grid { grid-template-columns: 1fr; }

  .price-outer { border-radius: 48px 48px 0 0; padding: 56px 24px; }
  .price-card { padding: 28px 20px; }
  .price-highlight-row { grid-template-columns: 1fr; }
  .price-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .price-grid-3 { grid-template-columns: 1fr; }
  .price-item { padding: 20px 12px; border-radius: 18px; }
  .price-num { font-size: 28px; }
  .price-item-label { font-size: 11px; padding: 6px 0; margin-bottom: 14px; }

  .footer-inner { border-radius: 48px 48px 0 0; padding: 56px 24px 10px; }
  .footer-nav { grid-template-columns: repeat(2,1fr); }

  .features-deco { width: 200px; height: 200px; left: -60px; top: -60px; }
}

/* ── WordPress Admin Bar Offset ── */
.admin-bar #site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar #site-header { top: 46px; }
}
