/* ========================================
   Plan Detail Pages — mimo
   ======================================== */

:root {
  --pd-brown: #8b5c2a;
  --pd-dark: #3a3a3a;
  --pd-text: #5a4a3a;
  --pd-light-bg: #F2F0ED;
  --pd-border: #e0d6cc;
  --pd-white: #fff;
  --pd-accent: #c9a96e;
  --pd-font-serif: 'Yu Mincho', '游明朝', serif;
  --pd-font-sans: 'Noto Sans JP', 'Yu Gothic', '游ゴシック', sans-serif;
  --pd-font-en: 'Libre Baskerville', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--pd-font-sans);
  color: var(--pd-brown);
  background: var(--pd-light-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ----------------------------------------
   Header / Nav
   ---------------------------------------- */
.pd-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--pd-light-bg);
}

.pd-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 16px 24px;
}

.pd-nav a {
  text-decoration: none;
  color: var(--pd-brown);
  font-size: 13px;
  letter-spacing: 0.18em;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border 0.2s;
}

.pd-nav a:hover,
.pd-nav a.active {
  border-bottom: 2px solid var(--pd-brown);
}

.pd-insta-link {
  display: flex;
  align-items: center;
  line-height: 1;
}

.pd-insta-link svg {
  width: 22px;
  height: 22px;
  fill: var(--pd-brown);
  transition: fill 0.3s;
}

.pd-insta-link:hover svg {
  fill: var(--pd-brown);
}

@media (max-width: 768px) {
  .pd-nav {
    gap: 12px;
    padding: 12px 16px;
    flex-wrap: nowrap;
  }
  .pd-nav a {
    font-size: 10px;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .pd-nav {
    gap: 8px;
    padding: 10px 8px;
  }
  .pd-nav a {
    font-size: 8px;
    letter-spacing: 0.05em;
  }
}

/* Google Fonts: Noto Sans JPを補完（TOP互換） */

/* ----------------------------------------
   Page Hero
   ---------------------------------------- */
.pd-hero {
  position: relative;
  height: 300px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.pd-hero-text {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--pd-white);
}

.pd-hero-en {
  font-family: var(--pd-font-en);
  font-size: 2.4rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.pd-hero-line {
  width: 40px;
  height: 1px;
  background: var(--pd-white);
  margin: 12px auto;
}

.pd-hero-ja {
  font-size: 0.9rem;
  letter-spacing: 0.15em;
}

@media (max-width: 768px) {
  .pd-hero {
    height: 220px;
  }
  .pd-hero-en {
    font-size: 1.8rem;
  }
}

/* ----------------------------------------
   Main Content Layout
   ---------------------------------------- */
.pd-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.pd-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 48px 0 32px;
  max-width: 640px;
}

.pd-content-left {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (max-width: 768px) {
  .pd-content {
    padding: 24px 0 16px;
  }
  .pd-main {
    padding: 0 16px;
  }
}

/* ----------------------------------------
   Plan Overview
   ---------------------------------------- */
.pd-overview h2 {
  font-family: var(--pd-font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--pd-brown);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.pd-overview-note {
  font-size: 0.85rem;
  color: #888;
  margin-top: 8px;
}

/* ----------------------------------------
   Accordion
   ---------------------------------------- */
.pd-accordion {
  border-bottom: 1px solid var(--pd-border);
}

.pd-accordion:first-child {
  border-top: 1px solid var(--pd-border);
}

.pd-accordion-header {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 18px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--pd-dark);
  letter-spacing: 0.05em;
  text-align: left;
  gap: 12px;
  transition: color 0.3s;
}

.pd-accordion-header:hover {
  color: var(--pd-brown);
}

.pd-accordion-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--pd-border);
  flex-shrink: 0;
}

.pd-accordion-circle svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: var(--pd-dark);
  stroke-width: 2;
}

.pd-accordion-title {
  flex: 1;
}

.pd-accordion-toggle {
  font-size: 1.2rem;
  color: #aaa;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.pd-accordion.is-open .pd-accordion-toggle {
  transform: rotate(45deg);
}

.pd-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.pd-accordion.is-open .pd-accordion-body {
  opacity: 1;
}

.pd-accordion-inner {
  padding: 0 0 24px 40px;
}

/* Price table styles */
.pd-price-group {
  margin-bottom: 20px;
}

.pd-price-group-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pd-brown);
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px dashed var(--pd-border);
}

.pd-price-list {
  list-style: none;
  padding: 0;
}

.pd-price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--pd-text);
  border-bottom: 1px dotted #eee;
}

.pd-price-list li:last-child {
  border-bottom: none;
}

.pd-price-name {
  flex: 1;
}

.pd-price-value {
  font-weight: 600;
  color: var(--pd-dark);
  white-space: nowrap;
  margin-left: 16px;
}

.pd-price-note {
  font-size: 0.8rem;
  color: #999;
  margin-top: 4px;
  padding-left: 4px;
}

.pd-price-sub {
  font-size: 0.8rem;
  color: #888;
  display: block;
  margin-top: 2px;
}

.pd-info-text {
  font-size: 0.85rem;
  color: var(--pd-text);
  line-height: 1.9;
  margin-top: 12px;
  padding: 12px;
  background: var(--pd-light-bg);
  border-radius: 6px;
}

/* ----------------------------------------
   Gallery (scroll-snap slider)
   ---------------------------------------- */
.pd-gallery {
  margin-top: 16px;
}

/* ----------------------------------------
   Gallery — 全幅独立セクション
   ---------------------------------------- */
.pd-gallery-section {
  width: 100%;
  padding-bottom: 40px;
}

/* スマホ: 全幅・縦長2:3 */
.sg-main {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: #f5f2ee;
  width: 100%;
  aspect-ratio: 2 / 3;
}

.sg-main::-webkit-scrollbar {
  display: none;
}

/* PC: 幅を抑えて縦長維持・中央寄せ */
@media (min-width: 769px) {
  .sg-main {
    max-width: 480px;
    margin: 0 auto;
  }
}

.sg-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  width: 100%;
  height: 100%;
}

/* 枠と写真が同比率(2:3) → coverでトリミングなし */
.sg-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* サムネイル */
.sg-thumbs {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

@media (min-width: 769px) {
  .sg-thumbs {
    max-width: 480px;
    margin: 8px auto 0;
    padding: 0;
  }
}

.sg-thumbs::-webkit-scrollbar {
  display: none;
}

.sg-thumb {
  flex-shrink: 0;
  width: 54px;
  height: 81px;
  object-fit: cover;
  border-radius: 3px;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  transition: opacity 0.2s, border-color 0.2s;
}

.sg-thumb.is-active {
  opacity: 1;
  border-color: var(--pd-accent);
}

/* ----------------------------------------
   Back Link
   ---------------------------------------- */
.pd-back {
  padding: 40px 0;
  text-align: center;
}

.pd-back a {
  display: inline-block;
  padding: 12px 32px;
  color: var(--pd-brown);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  border: 1px solid var(--pd-brown);
  border-radius: 4px;
  transition: all 0.3s;
}

.pd-back a:hover {
  background: var(--pd-brown);
  color: var(--pd-light-bg);
  border-color: var(--pd-brown);
}

/* ----------------------------------------
   Footer
   ---------------------------------------- */
.pd-footer {
  text-align: center;
  padding: 24px;
  font-size: 0.75rem;
  color: #aaa;
  border-top: 1px solid var(--pd-border);
  margin-top: 0;
}
