:root {
  --p-gold: #c6a35f;
  --p-black: #0f1419;
  --p-white: #ffffff;
  --p-gray: #f4f7f9;
  --font-serif: "Noto Serif JP", serif;
}

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

body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--p-black);
  line-height: 1.8;
  overflow-x: hidden;
}

/* 全体の余白設計（贅沢に 10%） */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 10%;
}

.container.narrow {
  max-width: 1000px;
}

.text-center {
  text-align: center;
}

/* --- Header --- */
.p-header {
  padding: 40px 0;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
}

.h-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.p-logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
}

.p-logo span {
  color: var(--p-gold);
}

@media screen and (min-width: 768px) {
  .p-logo {
    font-size: 32px;
  }
}

.p-nav a {
  text-decoration: none;
  color: inherit;
  margin-left: 40px;
  font-weight: 700;
  font-size: 16px;
}

.nav-btn {
  background: var(--p-black);
  color: #fff !important;
  padding: 12px 30px;
  border-radius: 50px;
}

/* --- Hero --- */
.p-hero {
  height: 85vh;
  display: flex;
  align-items: center;
  background: var(--p-gray);
}

.hero-copy {
  font-family: var(--font-serif);
  font-size: clamp(40px, 8vw, 90px);
  line-height: 1.1;
}

.hero-copy .line {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s ease forwards;
}

.hero-copy .line:nth-child(1) {
  animation-delay: 0.2s;
}

.hero-copy .line:nth-child(3) {
  animation-delay: 0.7s;
}

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

.hero-sub {
  margin-top: 35px;
    font-size: 18px;
    color: #666;
    letter-spacing: 0.2em;
    font-weight: 300;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 1.3s;
  /* 表示タイミング */
}

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

@media screen and (min-width: 768px) {
  .hero-sub {
    font-size: 24px;
  }
}

.p-gold {
  color: var(--p-gold);
}

/* --- Sections --- */
.p-section {
  padding: 140px 0;
}

.s-header {
  margin-bottom: 30px;
  margin-top: 20px;
}

.s-header .en {
  font-family: 'Montserrat', sans-serif;
  color: var(--p-gold);
  font-size: 12px;
  letter-spacing: 5px;
}

@media screen and (min-width: 768px) {
  .s-header .en {
    font-size: 16px;
  }
}



.s-header .jp {
  font-size: clamp(24px, 4vw, 36px);
  font-family: var(--font-serif);
}

/* --- ハンバーガーボタンのデザイン --- */
.menu-btn {
  display: none;
  /* 基本は非表示 */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-btn span {
  width: 100%;
  height: 2px;
  background-color: var(--p-black);
  transition: all 0.3s ease;
}

/* --- スマホ用メニュー本体 --- */
.sp-nav {
  position: fixed;
  top: 0;
  right: -100%;
  /* 最初は画面外に隠す */
  width: 80%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 100px 40px;
  transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
}

.sp-nav.active {
  right: 0;
  /* 画面内に滑り込ませる */
}

.sp-nav ul {
  list-style: none;
}

.sp-nav li {
  margin-bottom: 30px;
}

.sp-nav a {
  text-decoration: none;
  color: var(--p-black);
  font-size: 24px;
  font-family: var(--font-serif);
  font-weight: 700;
}

.sp-nav-btn {
  display: inline-block;
  background: var(--p-gold);
  color: #fff !important;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 16px !important;
}

/* --- 開いた時のボタンのアニメーション (JSで.openを付与) --- */
.menu-btn.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.menu-btn.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* --- レスポンシブ切り替え --- */
@media (max-width: 900px) {
  .p-nav {
    display: none;
  }

  /* PCナビ隠す */
  .menu-btn {
    display: flex;
  }

  /* ハンバーガー表示 */
}

/* --- Message (Representative) --- */
.message-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}

.m-para {
  font-size: 15px;
  color: #444;
  text-align: justify;
  margin-bottom: 40px;
}

@media screen and (min-width: 768px) {
  .m-para {
    font-size: 20px;
  }
}

.style-modern {
  margin-top: 50px;
}

.m-sig-line {
  width: 40px;
  height: 1px;
  background: var(--p-gold);
  margin-bottom: 20px;
}

.style-modern .m-role {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--p-gold);
}

@media screen and (min-width: 768px) {
  .style-modern .m-role {
    font-size: 16px;
  }
}

.style-modern .m-name {
  font-size: 24px;
  font-family: var(--font-serif);
  margin-top: 5px;
}

@media screen and (min-width: 768px) {
  .style-modern .m-name {
    font-size: 32px;
  }
}

.style-modern .m-name span {
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  margin-left: 15px;
  color: #999;
}

@media screen and (min-width: 768px) {
  .style-modern .m-name span {
    font-size: 18px;
  }
}



/* --- Plan --- */
.bg-dark {
  background: var(--p-black);
  color: #fff;
}

.s-header.white .jp {
  color: #fff;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.plan-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 50px 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.plan-card.active {
  border: 1px solid var(--p-gold);
  background: rgba(255, 255, 255, 0.06);
}

.p-badge {
  position: absolute;
  top: -12px;
  left: 30px;
  background: var(--p-gold);
  font-size: 10px;
  padding: 2px 12px;
  color: #fff;
}

.p-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  color: var(--p-gold);
}

.p-price {
  font-size: 36px;
  font-weight: 700;
  margin: 25px 0;
}

.p-price span {
  font-size: 16px;
  opacity: 0.6;
}

.p-list {
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
  font-size: 14px;
  opacity: 0.8;
}

@media screen and (min-width: 768px) {
  .p-list {
    font-size: 16px;
  }
}

.p-list li {
  margin-bottom: 12px;
}

/* --- Profile Table --- */
.profile-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
}

.profile-table th,
.profile-table td {
  padding: 25px 0;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.profile-table th {
  width: 30%;
  font-size: 14px;
  font-weight: 700;
  color: var(--p-gold);
}
@media screen and (min-width: 768px) {
  .profile-table th {
    font-size: 18px;
  }
}

.profile-table td {
  font-size: 15px;
}

@media screen and (min-width: 768px) {
  .profile-table td {
    font-size: 20px;
  }
}

/* --- Contact & Footer --- */
.contact-box {
  padding: 80px 0;
  border: 1px solid #eee;
}

.btn-main {
  display: inline-block;
  margin-top: 40px;
  padding: 20px 60px;
  background: var(--p-black);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 2px;
}

.p-highlight{
  color: var(--p-gold);
  font-weight: 700;
}

/* 詳細を見るボタン */
.btn-detail {
  display: block;
  /* ブロック要素にする */
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  background: transparent;
  background-color: var(--p-gold);
  border: 1px solid rgba(255, 255, 255, 0.3);
  /* 元の色の枠線 */
    color: #fff;
  /* テキストの色 */
  text-align: center;
  /* 文字を中央に */
  text-decoration: none;
  /* 下線を消す */
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  transition: all 0.3s;
  cursor: pointer;
}

@media screen and (min-width: 768px) {
  .btn-detail {
    font-size: 16px;
    padding: 15px;
  }
}

.btn-detail:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* アコーディオン部分の制御 */
.p-detail-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
}

.p-detail-content.is-open {
  max-height: 500px;
  /* 開いた時の高さ（自動調整） */
}

.p-detail-inner {
  padding: 20px 0 10px;
  font-size: 13px;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 20px;
}

.p-detail-summary {
  color: var(--p-gold);
  font-weight: 700;
  margin-bottom: 12px;
}

.p-detail-section {
  margin-bottom: 15px;
}

.p-detail-label {
  display: block;
  font-weight: 700;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
}

.p-detail-section p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.p-footer {
  padding: 60px 0;
  text-align: center;
  font-size: 11px;
  color: #999;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .message-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .v-box {
    height: 300px;
    order: -1;
  }

  .container {
    padding: 0 5%;
  }
}


/* 詳細ページ全体のベース */
.detail-page {
  background-color: #050505;
  color: #ffffff;
  margin: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.detail-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 20px;
}

/* プランの見出しエリア */
.category-section {
  scroll-margin-top: 50px;
  margin-bottom: 120px;
}

.plan-header {
  margin-bottom: 60px;
  border-left: 2px solid var(--p-gold);
  padding-left: 30px;
}

.plan-label {
  font-size: 13px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  font-weight: 700;
}

@media screen and (min-width: 768px) {
  .plan-label {
    font-size: 16px;
  }
}

.plan-title {
  font-size: clamp(24px, 5vw, 36px);
  margin: 10px 0;
  font-weight: 700;
}

.plan-lead {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
}

/* カテゴリーのグリッドレイアウト */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.category-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--p-gold);
  padding: 40px;
  transition: background 0.3s ease;
}

.category-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* カテゴリー内のタグとテキスト */
.cat-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 12px;
  margin-bottom: 25px;
  letter-spacing: 1px;
  background-color: var(--p-gold);
}

@media screen and (min-width: 768px) {
  .cat-tag {
    font-size: 14px;
  }
}

.price-display {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
}

.price-display span {
  font-size: 14px;
  font-weight: normal;
  color: rgba(255, 255, 255, 0.5);
}

.cat-headline {
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 700;
}

@media screen and (min-width: 768px) {
  .cat-headline {
    font-size: 24px;
  }
}

.cat-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  margin: 0;
}

@media screen and (min-width: 768px) {
  .cat-text {
    font-size: 18px;
  }
}

/* 戻るボタン */
.navigation-area {
  margin-top: 60px;
  text-align: center;
}

.back-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 5px;
  transition: 0.3s;
}


@media screen and (min-width: 768px) {
  .back-link {
    font-size: 16px;
  }
}

.back-link:hover {
  border-color: #ffffff;
  opacity: 0.7;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
  .detail-wrapper {
    padding: 60px 20px;
  }

  .category-item {
    padding: 30px;
  }
}
