/*
Theme Name: JP UNIVERSE 202603
Theme URI:
Author: JP UNIVERSE Inc.
Description: JP UNIVERSE Inc. — 202603
Version: 1.6
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: jpu2ent-b
*/

/* ============================================================
   CSS Variables (Design Tokens) — Light / Entertainment
   ============================================================ */
:root {
  /* Colors — JP UNIVERSE Logo Colors */
  --color-primary:     #84329b;
  --color-primary-lt:  rgba(132, 50, 155, 0.12);
  --color-accent:      #db3eb1;
  --color-accent-mid:  #9063cd;
  --color-text:        #1e0a2e;
  --color-text-sub:    #6b3a80;
  --color-bg:          #ffffff;
  --color-bg-sub:      #fdf5ff;
  --color-border:      rgba(132, 50, 155, 0.2);

  /* Typography */
  --font-display: 'Space Grotesk', 'Noto Sans JP', sans-serif;
  --font-base:    'Noto Sans JP', sans-serif;
  --fs-sm:        0.875rem;
  --fs-base:      1rem;
  --fs-md:        1.125rem;
  --fs-lg:        1.5rem;
  --fs-xl:        2rem;
  --fs-2xl:       2.5rem;
  --fs-3xl:       3.5rem;
  --lh-base:      1.8;
  --lh-heading:   1.3;

  /* Spacing */
  --sp-xs:   0.5rem;
  --sp-sm:   1rem;
  --sp-md:   2rem;
  --sp-lg:   4rem;
  --sp-xl:   6rem;
  --sp-2xl:  10rem;

  /* Layout */
  --max-width:      1200px;
  --content-width:  800px;
  --header-h:       80px;

  /* Transitions */
  --ease: 0.3s ease;

  /* Entertainment extras */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-pill: 999px;
}

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

html {
  font-size: 16;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ============================================================
   Layout
   ============================================================ */
.l-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.l-main {
  flex: 1;
  padding-top: var(--header-h);
}

.l-container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--sp-sm);
}

.l-container--narrow {
  max-width: var(--content-width);
}

/* ============================================================
   Header — Light Glass
   ============================================================ */
.l-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(132, 50, 155, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(var(--sp-sm), 2vw, var(--sp-lg));
  z-index: 1000;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.l-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: rgba(132, 50, 155, 0.25);
  box-shadow: 0 2px 20px rgba(132, 50, 155, 0.08);
}

.l-header__logo {
  display: flex;
  align-items: center;
}

.l-header__logo img {
  height: 34px;
  width: auto;
  transition: opacity var(--ease);
}

.l-header__logo img:hover {
  opacity: 0.8;
}

.l-header__logo-text {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #84329b, #db3eb1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* PC Navigation */
.l-header__nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 8px;
}

.l-header__nav li {
  list-style: none;
}

.l-header__nav a {
  position: relative;
  display: inline-block;
  padding: 6px 12px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(30, 10, 46, 0.5);
  transition: color 0.25s ease;
}

.l-header__nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 12px;
  right: 12px;
  height: 1px;
  background: linear-gradient(90deg, #84329b, #db3eb1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.l-header__nav a:hover,
.l-header__nav .current-menu-item > a,
.l-header__nav .current-page-ancestor > a {
  color: #84329b;
}

.l-header__nav a:hover::after,
.l-header__nav .current-menu-item > a::after {
  transform: scaleX(1);
}


/* 言語スイッチャー */
.l-header__lang {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: var(--sp-sm);
}
.l-header__lang-btn {
  background: none;
  border: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(30, 10, 46, 0.35);
  cursor: pointer;
  padding: 4px 3px;
  transition: color var(--ease);
  font-family: inherit;
}
.l-header__lang-btn.is-active {
  color: #84329b;
}
.l-header__lang-btn:hover {
  color: rgba(30, 10, 46, 0.7);
}
.l-header__lang-sep {
  font-size: 10px;
  color: rgba(30, 10, 46, 0.2);
  pointer-events: none;
}
.l-header__mobile-lang {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: var(--sp-md) 0 var(--sp-sm);
  border-top: 1px solid rgba(132, 50, 155, 0.15);
  margin-top: var(--sp-sm);
}

/* Hamburger */
.l-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.l-header__toggle span {
  display: block;
  height: 1.5px;
  background: rgba(30, 10, 46, 0.65);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease;
}

.l-header__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.l-header__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.l-header__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Menu */
.l-header__mobile-nav {
  display: flex;
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-h));
  background: rgba(253, 245, 255, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-lg);
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.l-header__mobile-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.l-header__mobile-nav li {
  list-style: none;
  text-align: center;
}

.l-header__mobile-nav a {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 5vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(30, 10, 46, 0.55);
  padding-bottom: 4px;
  transition: color 0.25s ease;
}

.l-header__mobile-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #84329b, #db3eb1);
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.l-header__mobile-nav a:hover,
.l-header__mobile-nav .current-menu-item > a {
  color: #84329b;
}

.l-header__mobile-nav a:hover::after,
.l-header__mobile-nav .current-menu-item > a::after {
  transform: translateX(-50%) scaleX(1);
}

/* ============================================================
   Footer
   ============================================================ */
.l-footer {
  background: #1a0a2b;
  color: #eeeef6;
}

.l-footer__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: var(--sp-xl) var(--sp-sm) var(--sp-lg);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.6fr;
  gap: var(--sp-lg);
  align-items: start;
}

.l-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.l-footer__logo {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #eeeef6;
}

.l-footer__logo-img {
  height: 56px;
  width: auto;
  filter: brightness(2.5);
}

.l-footer__tagline {
  font-size: var(--fs-sm);
  opacity: 0.4;
  line-height: 1.8;
}

.l-footer__section-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  opacity: 0.3;
  margin-bottom: var(--sp-sm);
}

.l-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.l-footer__links a {
  font-size: var(--fs-sm);
  color: #9090bb;
  transition: color var(--ease);
}

.l-footer__links a:hover {
  color: #eeeef6;
}

.l-footer__info {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 1rem;
  row-gap: 0.5rem;
  font-size: var(--fs-sm);
  align-items: start;
}

/* 行ラッパーを透明にして dt/dd を親グリッドに直接参加させる */
.l-footer__info-row {
  display: contents;
}

.l-footer__info-row dt {
  color: #9090bb;
  opacity: 0.6;
}

.l-footer__info-row dd {
  color: #eeeef6;
  opacity: 0.8;
}

.l-footer__bottom {
  border-top: 1px solid rgba(132, 50, 155, 0.25);
  padding: var(--sp-sm) var(--sp-sm);
  max-width: var(--max-width);
  margin-inline: auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.l-footer__copy {
  font-size: var(--fs-sm);
  color: #9090bb;
  opacity: 0.4;
}

@media (max-width: 768px) {
  .l-footer__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-md);
    padding-block: var(--sp-lg);
  }
  .l-footer__bottom {
    padding-inline: var(--sp-sm);
  }
}

/* ============================================================
   Section
   ============================================================ */
.s-section {
  padding-block: var(--sp-xl);
}

.s-section--gray {
  background: var(--color-bg-sub);
}

.s-section__header {
  text-align: center;
  margin-bottom: var(--sp-lg);
}

/* セクションラベル — グラデーション文字 */
.s-section__label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #84329b, #db3eb1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--sp-xs);
}

.s-section__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: var(--lh-heading);
}

/* ============================================================
   Button
   ============================================================ */
.c-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  padding: 0.75em 2em;
  border-radius: var(--radius-pill);
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all var(--ease);
  cursor: pointer;
  border: 2px solid transparent;
}

.c-btn--primary {
  background: linear-gradient(135deg, #84329b, #db3eb1);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(132, 50, 155, 0.3);
}

.c-btn--primary:hover {
  background: linear-gradient(135deg, #9646ad, #e84ec0);
  box-shadow: 0 8px 32px rgba(132, 50, 155, 0.45);
  transform: translateY(-2px) scale(1.02);
}

.c-btn--outline {
  background: transparent;
  color: #84329b;
  border: 2px solid rgba(132, 50, 155, 0.4);
  border-radius: var(--radius-pill);
}

.c-btn--outline:hover {
  background: rgba(132, 50, 155, 0.08);
  border-color: #84329b;
  color: #84329b;
}

/* ============================================================
   Card
   ============================================================ */
.c-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-md);
}

.c-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--ease), box-shadow var(--ease), transform 0.3s ease;
}

.c-card:hover {
  border-color: rgba(132, 50, 155, 0.5);
  box-shadow: 0 12px 40px rgba(132, 50, 155, 0.12);
}

.c-card__img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(132, 50, 155, 0.05), rgba(219, 62, 177, 0.03));
  overflow: hidden;
}

.c-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-card__body {
  padding: var(--sp-md);
}

.c-card__title {
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: var(--sp-xs);
}

.c-card__text {
  font-size: var(--fs-sm);
  color: var(--color-text-sub);
  line-height: var(--lh-base);
}

/* ============================================================
   News List
   ============================================================ */
.c-news-list {
  display: flex;
  flex-direction: column;
}

.c-news-item {
  display: flex;
  align-items: baseline;
  gap: var(--sp-md);
  padding: var(--sp-sm) 0;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--ease);
}

.c-news-item:first-child {
  border-top: 1px solid var(--color-border);
}

.c-news-item:hover {
  color: #84329b;
}

.c-news-item__date {
  font-size: var(--fs-sm);
  color: var(--color-text-sub);
  white-space: nowrap;
  min-width: 100px;
}

.c-news-item__title {
  font-size: var(--fs-base);
}

/* ============================================================
   Page Header
   ============================================================ */
.c-page-header {
  background: linear-gradient(135deg, #fdf5ff 0%, rgba(219, 62, 177, 0.05) 50%, rgba(132, 50, 155, 0.08) 100%);
  border-bottom: 1px solid var(--color-border);
  padding: var(--sp-xl) var(--sp-md);
  text-align: center;
}

.c-page-header__title {
  font-size: var(--fs-2xl);
  font-weight: 700;
  line-height: var(--lh-heading);
}

.c-page-header__sub {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #84329b, #db3eb1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--sp-xs);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --fs-3xl: 2.25rem;
    --fs-2xl: 1.75rem;
    --fs-xl:  1.5rem;
    --sp-xl:  4rem;
    --sp-2xl: 6rem;
  }

  .l-header__nav {
    display: none;
  }

  .l-header__toggle {
    display: flex;
  }

  .l-container {
    padding-inline: var(--sp-sm);
  }

  .c-card-grid {
    grid-template-columns: 1fr;
  }

  .c-news-item {
    flex-direction: column;
    gap: var(--sp-xs);
  }
}

/* ============================================================
   Top Page — Partners
   ============================================================ */
.p-partners {
  padding-block: var(--sp-xl);
}

.p-partners__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-xs) var(--sp-sm);
  margin-top: var(--sp-md);
}
.p-partners__item {
  display: flex;
  align-items: center;
  justify-content: center;
}
.p-partners__item--text {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--color-text-sub);
  white-space: nowrap;
}
.p-partners__sep {
  font-size: 14px;
  color: var(--color-border);
  user-select: none;
}
.p-partners__logo {
  height: 24px;
  width: auto;
  display: block;
  opacity: 0.45;
}
@media (max-width: 768px) {
  .p-partners__logos { gap: var(--sp-xs); }
  .p-partners__item--text { font-size: 12px; }
}

/* ============================================================
   Top Page — Hero + News 固定背景ラッパー
   ============================================================ */
.p-hero-news-bg {
  position: relative;
  overflow: hidden;
  background: #000;
}
.p-hero-news-bg__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  z-index: 0;
}

/* News セクション: 動画の上に乗るよう z-index を設定 */
.p-hero-news-bg .p-news.s-section--gray {
  position: relative;
  z-index: 1;
}
.p-hero-news-bg .p-ryu-hero {
  position: relative;
  z-index: 1;
}

/* ============================================================
   Top Page — 竜宮国 Hero
   ============================================================ */
.p-ryu-hero {
  position: relative;
  min-height: 91vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: transparent;
  background-image:
    linear-gradient(to top, rgba(26, 10, 43, 0.88) 0%, rgba(26, 10, 43, 0.4) 50%, rgba(0,0,0,0.1) 100%);
  background-size: cover;
  background-position: center top;
  animation: ryuZoom 12s ease-out both;
}
@keyframes ryuZoom {
  from { background-size: 110%; }
  to   { background-size: 100%; }
}
.p-ryu-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: var(--sp-2xl) var(--sp-lg);
  padding-bottom: var(--sp-2xl);
  padding-top: 160px;
}
.p-ryu-hero__eyebrow {
  font-size: clamp(14px, 2.5vw, 30px);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--sp-sm);
  animation: heroFadeIn 0.8s ease both 0.1s;
}
.p-ryu-hero__title {
  margin-bottom: 8px;
  animation: heroFadeIn 0.8s ease both 0.25s;
}
.p-ryu-hero__title-img {
  width: 30%;
  height: auto;
  display: block;
}
@media (max-width: 768px) {
  .p-ryu-hero__title-img {
    width: auto;
    height: clamp(68px, 12vw, 143px);
  }
}
.p-ryu-hero__tagline {
  display: inline-block;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 500;
  letter-spacing: 0.15em;
  color: #db3eb1;
  border: 1px solid rgba(219, 62, 177, 0.55);
  border-radius: var(--radius-pill);
  padding: 4px 18px;
  margin-bottom: var(--sp-md);
  animation: heroFadeIn 0.8s ease both 0.4s;
}
.p-ryu-hero__sub {
  font-size: clamp(13px, 1.5vw, 16px);
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--sp-sm);
  animation: heroFadeIn 0.8s ease both 0.55s;
}
.p-ryu-hero__detail {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0;
  animation: heroFadeIn 0.8s ease both 0.65s;
}
.p-ryu-hero__detail:last-of-type {
  margin-bottom: var(--sp-lg);
}
.p-ryu-hero__actions {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  margin-top: var(--sp-lg);
  animation: heroFadeIn 0.8s ease both 0.7s;
}
.p-ryu-hero .c-btn--outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.p-ryu-hero .c-btn--outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
}
.p-ryu-hero__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: heroFadeIn 0.8s ease both 1s;
}
.p-ryu-hero__scroll span {
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.3);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  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; }
}
@media (max-width: 768px) {
  /* 動画を通常フローに戻して縦積みにする */
  .p-hero-news-bg {
    display: flex;
    flex-direction: column;
  }
  .p-hero-news-bg__video {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: center top;
    order: 0;
  }
  .p-hero-news-bg .p-ryu-hero {
    order: 1;
    min-height: unset;
    background-image: linear-gradient(to bottom, rgba(26, 10, 43, 0.92) 0%, rgba(26, 10, 43, 0.75) 100%);
  }
  .p-hero-news-bg .p-news {
    order: 2;
  }
  .p-ryu-hero__inner {
    padding: var(--sp-lg) var(--sp-md);
    padding-top: var(--sp-lg);
  }
  .p-ryu-hero__scroll {
    display: none;
  }
}

/* ============================================================
   Top Page — Hero
   ============================================================ */
.p-hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: var(--sp-2xl) var(--sp-md) var(--sp-xl);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(ellipse 70% 60% at 70% 40%, rgba(219, 62, 177, 0.1) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 30% 70%, rgba(132, 50, 155, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(144, 99, 205, 0.06) 0%, transparent 60%),
    linear-gradient(rgba(132, 50, 155, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(132, 50, 155, 0.03) 1px, transparent 1px);
  background-size: auto, auto, auto, 64px 64px, 64px 64px;
  background-position: center, center, center, center, center;
  border-bottom: 1px solid var(--color-border);
}

/* ── Product Slider ─────────────────────── */
.p-products {
  padding-block: var(--sp-xl);
}

.p-product-slider {
  position: relative;
  overflow: hidden;
  background: #000;
  user-select: none;
}

/* .p-product-slider__header は front-page では使用しない（ヘッダーをスライダー外に移動済み）
   page-products.php 等の詳細スライダーでは引き続き使用する場合のみ残す */
.p-product-slider__header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  text-align: center;
  padding: var(--sp-lg) var(--sp-md) var(--sp-xl);
  background: linear-gradient(
    to bottom,
    rgba(26, 10, 43, 0.75) 0%,
    rgba(26, 10, 43, 0.35) 60%,
    transparent 100%
  );
  pointer-events: none;
}

.p-product-slider__header .s-section__label {
  background: none;
  -webkit-text-fill-color: #ffffff;
  color: #ffffff;
}

.p-product-slider__header .s-section__title {
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.p-product-slider__track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.p-product-slider__slide {
  min-width: 100%;
  position: relative;
  overflow: hidden;
  display: block;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.p-product-slider__img {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  display: block;
  transition: transform 8s ease;
}
.p-product-slider__slide.is-active .p-product-slider__img {
  transform: scale(1.04);
}

.p-product-slider__overlay {
  position: absolute;
  inset: 0;
  background: none;
  display: flex;
  align-items: flex-end;
  /* left padding = ボタン位置(--sp-md=2rem) + ボタン幅(52px) + 余白(--sp-md) */
  padding: var(--sp-lg) var(--sp-lg) 0px calc(var(--sp-md) + 52px + var(--sp-md));
}

.p-product-slider__overlay--detail {
  padding-bottom: calc(var(--sp-xl) + 3rem);
}

.p-product-slider__body {
  max-width: 640px;
}

.p-product-slider__label {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #db3eb1;
  margin-bottom: var(--sp-xs);
}

.p-product-slider__name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--sp-sm);
  line-height: 1.2;
}

.p-product-slider__text {
  font-size: var(--fs-sm);
  color: #fff;
  line-height: 1.8;
  margin-bottom: var(--sp-xs);
}
.p-product-slider__text:last-of-type {
  margin-bottom: var(--sp-md);
}

.p-product-slider__slide--ryugukoku .p-product-slider__name {
  text-shadow: 0 2px 12px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.7);
}
.p-product-slider__slide--ryugukoku .p-product-slider__text {
  text-shadow: 0 1px 4px rgba(0,0,0,1), 0 2px 8px rgba(0,0,0,1), 0 0 16px rgba(0,0,0,1), 0 0 30px rgba(0,0,0,0.9);
}

.p-product-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(219, 62, 177, 0.5);
  background: rgba(253, 245, 255, 0.85);
  backdrop-filter: blur(8px);
  color: #84329b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.p-product-slider__btn:hover {
  background: rgba(132, 50, 155, 0.15);
  border-color: #84329b;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 4px 16px rgba(132, 50, 155, 0.2);
}
.p-product-slider__btn--prev { left: var(--sp-md); }
.p-product-slider__btn--next { right: var(--sp-md); }

.p-product-slider__dots {
  position: absolute;
  bottom: var(--sp-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
}

.p-product-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, width 0.25s;
}
.p-product-slider__dot.is-active {
  width: 28px;
  background: #db3eb1;
}

.p-product-slider--detail .p-product-slider__img {
  aspect-ratio: 16/8;
}

@media (max-width: 768px) {
  .p-product-slider__overlay {
    padding: var(--sp-md) var(--sp-sm) var(--sp-xl);
  }
  .p-product-slider__btn { width: 40px; height: 40px; }
  .p-product-slider__btn--prev { left: var(--sp-xs); }
  .p-product-slider__btn--next { right: var(--sp-xs); }
  .p-product-slider__img { aspect-ratio: 4/3; }
  .p-product-slider--detail .p-product-slider__img { aspect-ratio: 4/3; }
}

.p-hero__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  width: 100%;
}

.p-hero__eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #84329b, #db3eb1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--sp-md);
}

.p-hero__heading {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-md);
  background: linear-gradient(135deg, #1e0a2e 0%, #84329b 40%, #db3eb1 70%, #9063cd 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroFadeIn 0.8s ease both 0.3s, gradientShift 7s ease infinite;
}

.p-hero__sub {
  font-size: var(--fs-md);
  color: var(--color-text-sub);
  line-height: 1.8;
  margin-bottom: var(--sp-lg);
  max-width: 600px;
}

.p-hero__actions {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}

.p-hero__scroll {
  position: absolute;
  bottom: var(--sp-lg);
  left: 50%;
  transform: translateX(-50%);
}

.p-hero__scroll span {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, #84329b);
  margin-inline: auto;
  animation: scroll-line 1.8s ease-in-out infinite;
}

@keyframes scroll-line {
  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; }
}

/* ============================================================
   Top Page — Key Metrics
   ============================================================ */
.p-metrics {
  border-bottom: 1px solid var(--color-border);
}

.p-metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.p-metrics__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-lg) var(--sp-md);
  border-right: 1px solid var(--color-border);
}

.p-metrics__item:last-child {
  border-right: none;
}

.p-metrics__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #84329b 20%, #db3eb1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--sp-xs);
}

.p-metrics__num small {
  font-size: 0.5em;
  font-weight: 600;
}

.p-metrics__label {
  font-size: var(--fs-sm);
  color: var(--color-text-sub);
  letter-spacing: 0.05em;
}

/* ============================================================
   Top Page — About (VISION)
   ============================================================ */
.p-about {
  background: var(--color-bg);
  transition: background 0.8s ease;
}

.p-about.is-active {
  background: linear-gradient(135deg, #84329b 0%, #db3eb1 100%);
}

.p-about .p-about__heading,
.p-about .p-about__text,
.p-about .s-section__label {
  transition: color 0.8s ease, opacity 0.8s ease,
              -webkit-text-fill-color 0.8s ease;
}

.p-about.is-active .p-about__heading {
  color: #fff;
}

.p-about.is-active .p-about__text {
  color: rgba(255, 255, 255, 0.85);
}

.p-about.is-active .s-section__label {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
}
.p-about.is-active .c-btn--outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.p-about.is-active .c-btn--outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
}

.p-about__heading {
  font-size: clamp(1.5rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: var(--sp-md);
}

.p-about__text {
  color: #fff;
  line-height: var(--lh-base);
  margin-bottom: var(--sp-sm);
}

.p-about__inner {
  display: grid;
  grid-template-columns: 6fr 4fr;
  gap: var(--sp-md);
  align-items: start;
  margin-top: var(--sp-lg);
}

.p-about__img-wrap {
  min-height: 200px;
}

.p-about__img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

/* ============================================================
   Top Page — Products
   ============================================================ */
.p-products__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-md);
  margin-top: var(--sp-lg);
}

.p-product-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.p-product-card:hover {
  border-color: rgba(132, 50, 155, 0.5);
  box-shadow: 0 12px 48px rgba(132, 50, 155, 0.12);
  transform: translateY(-4px);
}

.p-product-card__img-placeholder {
  aspect-ratio: 16/7;
  background: linear-gradient(135deg, rgba(132, 50, 155, 0.06) 0%, rgba(219, 62, 177, 0.04) 100%);
  width: 100%;
}

.p-product-card__body {
  padding: var(--sp-md);
}

.p-product-card__name {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: var(--sp-xs);
}

.p-product-card__text {
  font-size: var(--fs-sm);
  color: var(--color-text-sub);
  line-height: var(--lh-base);
  margin-bottom: var(--sp-md);
}

.p-product-card__link {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #84329b;
  letter-spacing: 0.05em;
  transition: opacity var(--ease);
}

.p-product-card__link:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* ============================================================
   Top Page — News
   ============================================================ */
.p-news-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.p-news-featured:hover {
  border-color: #84329b;
  box-shadow: 0 8px 32px rgba(132, 50, 155, 0.1);
}
.p-news-featured__thumb {
  overflow: hidden;
  aspect-ratio: 4/3;
  align-self: stretch;
}
.p-news-featured__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}
.p-news-featured:hover .p-news-featured__img {
  transform: scale(1.03);
}
.p-news-featured__body {
  padding: var(--sp-lg) var(--sp-lg) var(--sp-lg) 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}
.p-news-featured__date {
  font-size: var(--fs-sm);
  color: var(--color-text-sub);
}
.p-news-featured__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.5;
}
.p-news-featured__excerpt {
  font-size: var(--fs-sm);
  color: var(--color-text-sub);
  line-height: var(--lh-base);
}
.p-news-featured__more {
  font-size: var(--fs-sm);
  color: #84329b;
  margin-top: var(--sp-xs);
}
@media (max-width: 768px) {
  .p-news-featured {
    grid-template-columns: 1fr;
  }
  .p-news-featured__body {
    padding: var(--sp-md);
  }
}

/* ============================================================
   Top Page — Featured News Slider
   ============================================================ */
.p-news-featured-slider {
  position: relative;
  overflow: hidden;
}
.p-news-featured-slider__track {
  display: flex;
  transition: transform 0.5s ease;
}
.p-news-featured-slider__slide {
  flex: 0 0 100%;
  width: 100%;
}
.p-news-featured-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  margin-top: var(--sp-sm);
}
.p-news-featured-slider__btn {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text);
  transition: border-color var(--ease), color var(--ease);
  flex-shrink: 0;
}
.p-news-featured-slider__btn:hover {
  border-color: #84329b;
  color: #84329b;
}
.p-news-featured-slider__dots {
  display: flex;
  gap: var(--sp-xs);
}
.p-news-featured-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  transition: background var(--ease);
  padding: 0;
}
.p-news-featured-slider__dot.is-active {
  background: #84329b;
}

/* ============================================================
   Top Page — Contact CTA
   ============================================================ */
.p-contact-cta__inner {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-md);
}

.p-contact-cta__heading {
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.4;
}

.p-contact-cta__text {
  color: var(--color-text-sub);
  line-height: var(--lh-base);
}

/* ============================================================
   Responsive — Top Page
   ============================================================ */
@media (max-width: 768px) {
  .p-hero__heading {
    font-size: 2.25rem;
  }

  .p-metrics__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .p-metrics__item {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .p-metrics__item:nth-child(odd) {
    border-right: 1px solid var(--color-border);
  }

  .p-metrics__item:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .p-about__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-md);
  }

  .p-products__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Vision Page
   ============================================================ */
.p-vision-mission {
  text-align: center;
  padding: var(--sp-lg) 0;
}

.p-vision-mission__statement {
  font-size: var(--fs-2xl);
  font-weight: 700;
  line-height: 1.4;
  margin-top: var(--sp-sm);
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #1e0a2e 0%, #84329b 50%, #db3eb1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.p-vision-detail {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xl);
}

.p-vision-detail__heading {
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.4;
  margin: var(--sp-xs) 0 var(--sp-md);
}

.p-vision-detail__text {
  color: var(--color-text-sub);
  line-height: var(--lh-base);
  margin-bottom: var(--sp-sm);
}

.p-vision-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
  margin-top: var(--sp-md);
}

.p-vision-pillar {
  padding: var(--sp-md);
  background: rgba(132, 50, 155, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  border-top: 3px solid #db3eb1;
  transition: border-color var(--ease), background var(--ease);
}

.p-vision-pillar:hover {
  background: rgba(132, 50, 155, 0.07);
  box-shadow: 0 8px 24px rgba(132, 50, 155, 0.08);
}

.p-vision-pillar__num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  background: linear-gradient(90deg, #84329b, #db3eb1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--sp-xs);
}

.p-vision-pillar__title {
  font-size: var(--fs-base);
  font-weight: 700;
  margin-bottom: var(--sp-xs);
}

.p-vision-pillar__text {
  font-size: var(--fs-sm);
  color: var(--color-text-sub);
  line-height: var(--lh-base);
}

/* ============================================================
   Track Record Page
   ============================================================ */
.p-tr-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: var(--sp-lg);
}

.p-tr-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-lg) var(--sp-md);
  border-right: 1px solid var(--color-border);
}

.p-tr-metric:last-child {
  border-right: none;
}

.p-tr-metric__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-xs);
  background: linear-gradient(135deg, #84329b 20%, #db3eb1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.p-tr-metric__num small {
  font-size: 0.5em;
  font-weight: 600;
}

.p-tr-metric__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: 4px;
}

.p-tr-metric__desc {
  font-size: 0.75rem;
  color: var(--color-text-sub);
}

.p-timeline {
  display: flex;
  flex-direction: column;
  margin-top: var(--sp-lg);
  border-left: 2px solid rgba(132, 50, 155, 0.2);
  padding-left: var(--sp-lg);
}

.p-timeline__item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--sp-md);
  padding-bottom: var(--sp-lg);
  position: relative;
}

.p-timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--sp-lg) - 5px);
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #84329b, #db3eb1);
  box-shadow: 0 0 10px rgba(132, 50, 155, 0.5);
}

.p-timeline__year {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #84329b;
  padding-top: 4px;
}

.p-timeline__title {
  font-size: var(--fs-base);
  font-weight: 700;
  margin-bottom: var(--sp-xs);
}

.p-timeline__text {
  font-size: var(--fs-sm);
  color: var(--color-text-sub);
  line-height: var(--lh-base);
}

/* ============================================================
   Products Page
   ============================================================ */
.p-product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
  margin-bottom: var(--sp-xl);
}

.p-product-detail--reverse {
  direction: rtl;
}

.p-product-detail--reverse > * {
  direction: ltr;
}

.p-product-detail__img-placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, rgba(132, 50, 155, 0.06) 0%, rgba(219, 62, 177, 0.04) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  width: 100%;
}

.p-product-detail__name {
  font-size: var(--fs-2xl);
  font-weight: 700;
  margin: var(--sp-xs) 0 var(--sp-md);
  line-height: 1.2;
}

.p-product-detail__text {
  color: var(--color-text-sub);
  line-height: var(--lh-base);
  margin-bottom: var(--sp-sm);
}

.p-product-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--sp-xl) 0;
}

.p-timeline__logo {
  display: block;
  height: 24px;
  width: auto;
  margin-top: var(--sp-sm);
  opacity: 0.5;
}

/* ============================================================
   Contact Page
   ============================================================ */
.p-contact-intro {
  margin-bottom: var(--sp-xl);
  padding-bottom: var(--sp-lg);
  border-bottom: 1px solid var(--color-border);
}

.p-contact-intro__text {
  font-size: var(--fs-md);
  line-height: var(--lh-base);
  margin-bottom: var(--sp-sm);
}

.p-contact-intro__note {
  font-size: var(--fs-sm);
  color: var(--color-text-sub);
}

.p-contact-result {
  padding: var(--sp-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-md);
  font-size: var(--fs-sm);
}

.p-contact-result--success {
  background: rgba(74, 222, 128, 0.06);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #15803d;
}

.p-contact-result--error {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #b91c1c;
}

.p-contact-form__form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

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

.p-form-label {
  font-size: var(--fs-sm);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.p-form-required {
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #84329b, #db3eb1);
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
}

.p-form-input,
.p-form-select,
.p-form-textarea {
  width: 100%;
  padding: 0.75em 1em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-base);
  font-size: var(--fs-base);
  color: var(--color-text);
  background: #ffffff;
  transition: border-color var(--ease), box-shadow var(--ease);
  appearance: none;
}

.p-form-input:focus,
.p-form-select:focus,
.p-form-textarea:focus {
  outline: none;
  border-color: #84329b;
  box-shadow: 0 0 0 3px rgba(132, 50, 155, 0.12);
}

.p-form-input::placeholder,
.p-form-textarea::placeholder {
  color: var(--color-text-sub);
  opacity: 0.6;
}

.p-form-select option {
  background: #ffffff;
  color: var(--color-text);
}

.p-form-textarea {
  resize: vertical;
  line-height: var(--lh-base);
}

.p-form-submit {
  margin-top: var(--sp-sm);
}

/* ============================================================
   Company（会社概要）
   ============================================================ */
.p-company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-base);
}

.p-company-table th,
.p-company-table td {
  padding: var(--sp-sm) var(--sp-md);
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.p-company-table th {
  width: 160px;
  font-weight: 600;
  color: var(--color-text-sub);
  white-space: nowrap;
}

.p-company-shareholders {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.p-company-shareholder {
  padding: var(--sp-md);
  background: rgba(132, 50, 155, 0.03);
  border: 1px solid var(--color-border);
  border-left: 3px solid #84329b;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--fs-base);
  font-weight: 500;
}

.p-company-ceo {
  display: grid;
  grid-template-columns: 260px 180px 1fr;
  gap: var(--sp-xl);
  align-items: start;
}

.p-company-ceo__photo {
  grid-row: 1 / 3;
}

.p-company-ceo__photo-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  display: block;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.p-company-ceo__title {
  font-size: var(--fs-sm);
  color: var(--color-text-sub);
  margin-bottom: var(--sp-xs);
}

.p-company-ceo__name {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 4px;
}

.p-company-ceo__name-en {
  font-size: var(--fs-sm);
  color: var(--color-text-sub);
  letter-spacing: 0.05em;
}

.p-company-ceo__text {
  color: var(--color-text);
  line-height: 1.9;
  margin-bottom: 1em;
}

.p-company-ceo__career {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
  margin-top: var(--sp-md);
}

.p-company-ceo__career li {
  padding-left: 1em;
  position: relative;
  font-size: var(--fs-sm);
  color: var(--color-text-sub);
  line-height: 1.7;
}

.p-company-ceo__career li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: #84329b;
}

/* Vision — Leader */
.p-vision-leader {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--sp-xl);
  align-items: start;
}

.p-vision-leader__role {
  font-size: var(--fs-sm);
  color: var(--color-text-sub);
  margin-bottom: var(--sp-xs);
}

.p-vision-leader__name {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
}

.p-vision-leader__text {
  color: var(--color-text);
  line-height: 1.9;
  margin-bottom: 1em;
}

/* ============================================================
   News Archive — 横並びリスト
   ============================================================ */
.p-news-list {
  margin-top: var(--sp-lg);
}

.p-news-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-md);
  padding: var(--sp-md) 0;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-text);
  transition: color var(--ease);
}

.p-news-list .p-news-row:first-child {
  border-top: 1px solid var(--color-border);
}

.p-news-row:hover {
  color: var(--color-primary);
}

.p-news-row__thumb {
  flex: 0 0 160px;
  width: 160px;
  height: 100px;
  overflow: hidden;
  background: var(--color-bg-sub);
  border-radius: var(--radius-sm);
}

.p-news-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--ease);
}

.p-news-row:hover .p-news-row__thumb img {
  transform: scale(1.04);
}

.p-news-row__thumb-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-news-row__thumb-empty svg {
  opacity: 0.2;
}

.p-news-row__body {
  flex: 1;
  min-width: 0;
}

.p-news-row__date {
  font-size: var(--fs-sm);
  color: var(--color-text-sub);
  margin-bottom: var(--sp-xs);
  transition: color var(--ease);
}

.p-news-row:hover .p-news-row__date {
  color: var(--color-primary);
}

.p-news-row__title {
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.6;
}

/* 前後ナビ */
.p-article__nav {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-md);
  margin-top: var(--sp-lg);
  padding-top: var(--sp-md);
  border-top: 1px solid var(--color-border);
}

.p-article__nav-link {
  font-size: var(--fs-sm);
  color: var(--color-text-sub);
  text-decoration: none;
  transition: color var(--ease);
  max-width: 48%;
  line-height: 1.5;
}

.p-article__nav-link:hover {
  color: var(--color-primary);
}

@media (max-width: 640px) {
  .p-news-row {
    flex-direction: column;
    gap: var(--sp-sm);
  }
  .p-news-row__thumb {
    flex: none;
    width: 100%;
    height: 56vw;
    max-height: 200px;
  }
}

/* ============================================================
   Article（ニュース記事）
   ============================================================ */
.p-article {
  padding: var(--sp-lg) 0;
}

.p-article__header {
  margin-bottom: var(--sp-lg);
  padding-bottom: var(--sp-md);
  border-bottom: 1px solid var(--color-border);
}

.p-article__meta {
  margin-bottom: var(--sp-sm);
}

.p-article__date {
  font-size: var(--fs-sm);
  color: var(--color-text-sub);
  letter-spacing: 0.05em;
}

.p-article__title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  background: linear-gradient(135deg, #84329b, #db3eb1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.p-article__body {
  line-height: 1.9;
  color: var(--color-text);
}

.p-article__body p {
  margin-bottom: 1.5em;
}

.p-article__body h2,
.p-article__body h3 {
  font-weight: 700;
  margin: 2em 0 0.75em;
}

.p-article__body a {
  color: #84329b;
  text-decoration: underline;
}

.p-article__footer {
  margin-top: var(--sp-xl);
  padding-top: var(--sp-md);
  border-top: 1px solid var(--color-border);
}

/* ============================================================
   Responsive — Sub Pages
   ============================================================ */
@media (max-width: 768px) {
  .p-vision-pillars {
    grid-template-columns: 1fr;
  }

  .p-tr-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .p-tr-metric {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .p-tr-metric:nth-child(odd) {
    border-right: 1px solid var(--color-border);
  }

  .p-tr-metric:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .p-company-table th {
    width: 100px;
  }

  .p-company-ceo {
    grid-template-columns: 1fr 1fr;
  }

  .p-vision-leader {
    grid-template-columns: 1fr;
    gap: var(--sp-md);
  }

  .p-timeline {
    padding-left: var(--sp-md);
  }

  .p-timeline__item {
    grid-template-columns: 60px 1fr;
    gap: var(--sp-sm);
  }

  .p-product-detail,
  .p-product-detail--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

/* ============================================================
   Page — Investors
   ============================================================ */
.p-investors-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}

.p-investors-pillar {
  padding: var(--sp-lg) var(--sp-md);
  background: rgba(132, 50, 155, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  border-top: 3px solid #db3eb1;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}

.p-investors-pillar:hover {
  background: rgba(132, 50, 155, 0.06);
  box-shadow: 0 8px 24px rgba(132, 50, 155, 0.08);
}

.p-investors-pillar__num {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  background: linear-gradient(90deg, #84329b, #db3eb1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--sp-sm);
}

.p-investors-pillar__title {
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: var(--sp-sm);
  line-height: var(--lh-heading);
}

.p-investors-pillar__text {
  font-size: var(--fs-sm);
  color: var(--color-text-sub);
  line-height: var(--lh-base);
}

.p-investors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-md);
}

.p-investors-card {
  padding: var(--sp-lg) var(--sp-md);
  background: var(--color-bg-sub);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: border-color var(--ease), background var(--ease), transform var(--ease);
}

.p-investors-card:hover {
  border-color: rgba(132, 50, 155, 0.4);
  background: rgba(132, 50, 155, 0.04);
}

.p-investors-card__name {
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.7;
}

.p-investors-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.p-investors-fact {
  padding: var(--sp-lg) var(--sp-md);
  text-align: center;
  border-right: 1px solid var(--color-border);
}

.p-investors-fact:last-child {
  border-right: none;
}

.p-investors-fact__label {
  font-size: var(--fs-sm);
  color: var(--color-text-sub);
  margin-bottom: var(--sp-xs);
}

.p-investors-fact__value {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  background: linear-gradient(135deg, #84329b 0%, #db3eb1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.p-investors-fact__unit {
  font-size: var(--fs-sm);
  font-weight: 400;
}

.p-investors-business__label {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  background: linear-gradient(90deg, #84329b, #db3eb1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--sp-xs);
}

.p-investors-business__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: var(--sp-sm);
}

.p-investors-business__text {
  font-size: var(--fs-sm);
  color: var(--color-text-sub);
  line-height: var(--lh-base);
  margin-bottom: var(--sp-md);
}

.p-investors-business__link {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #84329b;
  transition: opacity var(--ease);
}

.p-investors-business__link:hover {
  opacity: 0.7;
}

.p-investors-cta__text {
  margin-top: var(--sp-md);
  color: var(--color-text-sub);
  line-height: var(--lh-base);
}

@media (max-width: 768px) {
  .p-investors-pillars {
    grid-template-columns: 1fr;
  }

  .p-investors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .p-investors-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .p-investors-fact {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .p-investors-fact:nth-child(2),
  .p-investors-fact:last-child {
    border-right: none;
  }
}

/* ============================================================
   Animations & Motion
   ============================================================ */

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 0.85; transform: scale(1.06); }
}

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

@keyframes scrollIndicator {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  80%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* Hero aurora glow */
.p-hero__inner::before {
  content: '';
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(ellipse 60% 50% at 60% 40%, rgba(219, 62, 177, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 30% 70%, rgba(132, 50, 155, 0.1) 0%, transparent 60%);
  pointer-events: none;
  animation: glowPulse 5s ease-in-out infinite;
  z-index: 0;
}
.p-hero__inner {
  position: relative;
}
.p-hero__inner > * {
  position: relative;
  z-index: 1;
}

/* Hero content staggered entrance */
.p-hero__eyebrow  { animation: heroFadeIn 0.8s ease both; animation-delay: 0.1s; }
.p-hero__sub      { animation: heroFadeIn 0.8s ease both; animation-delay: 0.55s; }
.p-hero__actions  { animation: heroFadeIn 0.8s ease both; animation-delay: 0.75s; }
.p-hero__scroll   { animation: heroFadeIn 0.8s ease both; animation-delay: 1s; }

/* Scroll indicator */
.p-hero__scroll span {
  animation: scrollIndicator 2s ease-in-out infinite;
}

/* ── Scroll-triggered fade-in ──────── */
.js-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.js-reveal[data-delay="1"] { transition-delay: 0.1s; }
.js-reveal[data-delay="2"] { transition-delay: 0.2s; }
.js-reveal[data-delay="3"] { transition-delay: 0.3s; }
.js-reveal[data-delay="4"] { transition-delay: 0.4s; }
.js-reveal[data-delay="5"] { transition-delay: 0.5s; }
.js-reveal[data-delay="6"] { transition-delay: 0.6s; }

/* ── Counter number highlight ── */
.js-count {
  display: inline-block;
  background: linear-gradient(135deg, #84329b 0%, #db3eb1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Card hover lift ── */
.c-card,
.p-investors-pillar,
.p-investors-card,
.p-vision-pillar {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.c-card:hover            { transform: translateY(-8px); }
.p-investors-pillar:hover { transform: translateY(-4px); }
.p-investors-card:hover  { transform: translateY(-4px); }
.p-vision-pillar:hover   { transform: translateY(-4px); }

/* ============================================================
   Utility
   ============================================================ */
.u-text-center { text-align: center; }
.u-text-left   { text-align: left; }
.u-text-right  { text-align: right; }
.u-mt-sm  { margin-top: var(--sp-sm); }
.u-mt-md  { margin-top: var(--sp-md); }
.u-mt-lg  { margin-top: var(--sp-lg); }
.u-mb-sm  { margin-bottom: var(--sp-sm); }
.u-mb-md  { margin-bottom: var(--sp-md); }
.u-mb-lg  { margin-bottom: var(--sp-lg); }
.u-pc-only { display: block; }
.u-sp-only { display: none; }

@media (max-width: 768px) {
  .u-pc-only { display: none; }
  .u-sp-only { display: block; }
}

/* ============================================================
   ニュース記事 コンテンツスタイル
   ============================================================ */

/* ギャラリーグリッド */
.responsive-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  padding: 3rem 6rem;
  box-sizing: border-box;
}
.responsive-gallery__item {
  margin: 0;
}
.responsive-gallery__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
@media (max-width: 768px) {
  .responsive-gallery {
    padding: 2rem 1rem;
  }
}

/* ニュース記事 レスポンシブテキスト */
.news-responsive-text {
  text-align: left;
  font-size: 14px;
}
.news-responsive-text-title {
  text-align: center;
  font-weight: bold;
  font-size: 18px !important;
}
@media (min-width: 768px) {
  .news-responsive-text {
    font-size: 16px;
  }
  .news-responsive-text-title {
    text-align: center;
    font-weight: bold;
    font-size: 20px !important;
  }
}
@media (min-width: 1024px) {
  .news-responsive-text {
    font-size: 18px;
  }
  .news-responsive-text-title {
    text-align: center;
    font-weight: bold;
    font-size: 22px !important;
  }
}

/* 記事本文 WordPress コンテンツスタイル（テーブル・画像・リスト） */
.p-article__body table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1.5em;
}
.p-article__body table tr,
.p-article__body table td,
.p-article__body table th {
  padding: 0.5em 0.75em;
  border: 1px solid #000;
  vertical-align: top;
}
.p-article__body img {
  max-width: 100%;
  height: auto;
}
.p-article__body .aligncenter,
.p-article__body img.aligncenter {
  display: block;
  margin: 0 auto;
}
.p-article__body ul,
.p-article__body ol {
  list-style: initial;
  margin-left: 1.3em;
  margin-bottom: 1.5em;
}
.p-article__body ol {
  list-style: decimal;
}
.p-article__body figcaption {
  font-size: var(--fs-sm);
  color: var(--color-text-sub);
  text-align: center;
  margin-top: 0.5em;
}

/* WordPress ブロックライブラリ CSS との競合対策
   wp-block-image.aligncenter が display:table を設定し、
   figcaption が display:table-caption になって縦並びになる問題を修正 */
.p-article__body figure.wp-block-image.aligncenter,
.p-article__body .wp-block-image.aligncenter {
  display: block !important;
  margin-left: auto;
  margin-right: auto;
}
.p-article__body figure.wp-block-image.aligncenter > figcaption,
.p-article__body .wp-block-image.aligncenter > figcaption {
  display: block !important;
  width: 100%;
  caption-side: unset;
}

/* h3（旧テーマ .is-single h3 と同等） */
.p-article__body h3 {
  text-align: center;
  margin-bottom: 3rem;
}

/* iframe（YouTube等の埋め込み） */
.p-article__body iframe {
  max-width: 100%;
}

/* blockquote */
.p-article__body blockquote {
  border-left: 3px solid var(--color-border);
  padding-left: 1em;
  margin: 1.5em 0;
  color: var(--color-text-sub);
}

/* クラシックエディタ キャプション */
.p-article__body .wp-caption {
  max-width: 100%;
}
.p-article__body .wp-caption-text {
  font-size: var(--fs-sm);
  color: var(--color-text-sub);
  text-align: center;
  margin-top: 0.5em;
}

/* pre / code */
.p-article__body pre,
.p-article__body code {
  background: var(--color-bg-sub);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  padding: 0.2em 0.4em;
}
.p-article__body pre {
  padding: 1em;
  overflow-x: auto;
  white-space: pre;
}
.p-article__body pre code {
  border: none;
  padding: 0;
  background: none;
}

/* ============================================================
   サービスセクション 横並びグリッド（スライダー廃止時に使用）
   ============================================================ */
.p-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* スライダー用 min-width: 100% を解除して並べられるようにする */
.p-product-grid .p-product-slider__slide {
  min-width: 0;
}

/* div（リンクなし）の場合はポインターカーソルを無効化 */
.p-product-grid div.p-product-slider__slide {
  cursor: default;
}

/* 縦幅（16/9 → 小さいほど縦長になる） */
.p-product-grid .p-product-slider__img {
  aspect-ratio: 16/9;
}

/* グリッド時はスライダーボタン分の左パディングを戻す */
.p-product-grid .p-product-slider__overlay {
  padding-left: var(--sp-md);
}

@media (max-width: 768px) {
  .p-product-grid {
    grid-template-columns: 1fr;
  }
  /* モバイルでは上揃えにしてテキストが上で切れないようにする */
  .p-product-grid .p-product-slider__overlay {
    align-items: flex-start;
    padding: var(--sp-sm) var(--sp-md);
  }
}

/* ============================================================
   プライバシーポリシー
   ============================================================ */
.p-privacy h2,
.p-privacy h4 {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.p-privacy h3,
.p-privacy h5 {
  font-size: var(--fs-md);
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.p-privacy h6 {
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
}
.p-privacy p {
  margin-top: 0.75em;
  line-height: 1.8;
}
.p-privacy ul,
.p-privacy ol {
  list-style: initial;
  margin-left: 1.3em;
  margin-top: 0.75em;
}
.p-privacy ol {
  list-style: decimal;
}
/* 番号付きサブセクション（div でラップされた箇所）*/
.p-privacy > div,
.p-privacy .entry-content > div {
  margin-left: 1.5em;
}
/* 署名ブロック */
.p-privacy .c-sign {
  margin-top: 4rem;
  text-align: right;
}
.p-privacy .c-sign p,
.p-privacy .c-sign h4 {
  margin-top: 0.25em;
  text-align: right;
}

/* フッター プライバシーリンク */
.l-footer__privacy-link {
  font-size: var(--fs-xs, 0.75rem);
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}
.l-footer__privacy-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================================
   Contact Form 7 スタイリング
   ============================================================ */
.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.wpcf7-form p {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.wpcf7-form label {
  font-size: var(--fs-sm);
  font-weight: 600;
}

/* DL/DT/DD 構造（このフォームの形式） */
.wpcf7-form dl {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  margin: 0;
  padding: 0;
  list-style: none;
}

.wpcf7-form dt {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
  line-height: 1.6;
}

.wpcf7-form dd {
  margin: 0;
  padding: 0;
}

/* 「（必須）」「（確認）」テキストのスタイル */
.wpcf7-form dt br + *,
.wpcf7-form dt .u-pc + * {
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--color-text-sub);
}

/* プライバシーポリシー確認テキスト */
.wpcf7-form .u-ta-center {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--color-text-sub);
  line-height: 1.8;
  margin-top: var(--sp-sm);
}

.wpcf7-form .u-ta-center a {
  color: #84329b;
  text-decoration: underline;
}

/* 送信ボタンを中央揃え */
.p-contact-form .wpcf7-submit,
.p-contact-form input[type="submit"] {
  align-self: center;
  margin-top: var(--sp-md);
}

.wpcf7-text,
.wpcf7-email,
.wpcf7-tel,
.wpcf7-number,
.wpcf7-date,
.wpcf7-select {
  width: 100%;
  padding: 0.75em 1em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-base);
  font-size: var(--fs-base);
  color: var(--color-text);
  background: #ffffff;
  transition: border-color var(--ease), box-shadow var(--ease);
  appearance: none;
}

.wpcf7-textarea {
  width: 100%;
  padding: 0.75em 1em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-base);
  font-size: var(--fs-base);
  color: var(--color-text);
  background: #ffffff;
  transition: border-color var(--ease), box-shadow var(--ease);
  resize: vertical;
  line-height: var(--lh-base);
}

.wpcf7-text:focus,
.wpcf7-email:focus,
.wpcf7-tel:focus,
.wpcf7-number:focus,
.wpcf7-date:focus,
.wpcf7-select:focus,
.wpcf7-textarea:focus {
  outline: none;
  border-color: #84329b;
  box-shadow: 0 0 0 3px rgba(132, 50, 155, 0.12);
}

.wpcf7-text::placeholder,
.wpcf7-email::placeholder,
.wpcf7-tel::placeholder,
.wpcf7-textarea::placeholder {
  color: var(--color-text-sub);
  opacity: 0.6;
}

.wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75em 2.5em;
  background: linear-gradient(135deg, #84329b, #db3eb1);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-base);
  font-size: var(--fs-base);
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--ease), transform var(--ease);
  align-self: flex-start;
  margin-top: var(--sp-sm);
}

.wpcf7-submit:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.wpcf7-not-valid-tip {
  color: #b91c1c;
  font-size: var(--fs-sm);
  margin-top: 4px;
}

.wpcf7-response-output {
  padding: var(--sp-sm) var(--sp-md);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  margin-top: var(--sp-sm);
}

.wpcf7-mail-sent-ok {
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #15803d;
}

.wpcf7-mail-sent-ng,
.wpcf7-aborted,
.wpcf7-validation-errors,
.wpcf7-spam-blocked {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #b91c1c;
}

/* ============================================================
   CF7 確認画面（multistep）
   ============================================================ */

/* 「下記の内容で送信します。」見出し */
.wpcf7-form h3#intro {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--sp-md);
  padding-bottom: var(--sp-sm);
  border-bottom: 1px solid var(--color-border);
}

/* 確認画面の入力値テキスト */
.wpcf7-form dd .wpcf7-multiform-display {
  font-size: var(--fs-base);
  color: var(--color-text);
  line-height: var(--lh-base);
  word-break: break-word;
}

/* 修正・送信ボタン並び */
.wpcf7-form .c-btn-wrap {
  display: flex;
  gap: var(--sp-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--sp-lg);
}

/* 修正ボタン（previous） */
.wpcf7-form .c-btn-wrap .wpcf7-previous,
.wpcf7-form .c-btn-wrap input[type="button"].c-btn_lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75em 2.5em;
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-family: var(--font-base);
  font-size: var(--fs-base);
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--ease), transform var(--ease);
}

.wpcf7-form .c-btn-wrap .wpcf7-previous:hover,
.wpcf7-form .c-btn-wrap input[type="button"].c-btn_lg:hover {
  opacity: 0.7;
  transform: translateY(-1px);
}

/* ============================================================
   お問い合わせ 完了画面（contact-thx）
   ============================================================ */
.c-block {
  padding: var(--sp-xl) 0;
}

.c-block-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--sp-lg) var(--sp-md);
  text-align: center;
}

.c-block-inner p {
  font-size: var(--fs-base);
  color: var(--color-text);
  line-height: var(--lh-base);
  margin: 0 0 var(--sp-sm);
}

.c-block-inner p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   埋め込みコンテンツ（YouTube 等）レスポンシブ化
   ============================================================ */
.embed-responsive {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}
.embed-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
