/*
Theme Name: MAIZURU HANABI
Theme URI: https://maizuru-hanabi.com
Author: Ryuta Nakashima
Description: MAIZURU PLAYBACK FES. 舞鶴花火祭り 公式サイトテーマ
Version: 1.9.0
Text Domain: maizuruhanabi
*/

/* ========== はんなり明朝（全ページ共通・未収録字と数字はShippori/Noto Serif明朝でフォールバック） ========== */
@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@500;600;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;600;900&display=swap');

/* ========== RESET & BASE ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.8;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: opacity 0.3s; }
a:hover { opacity: 0.8; }
ul { list-style: none; }

/* ========== VARIABLES ========== */
:root {
  --navy: #1B2D5B;
  --navy-dark: #111D3A;
  --gold: #D4A847;
  --sky: #2BA5DB;
  --sky-light: #4FB9E5;
  --light-gray: #F5F5F5;
  --mid-gray: #E0E0E0;
  --dark-gray: #333;
  --white: #fff;
}

/* ========== UTILITY ========== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 100px 0; }

/* Section Title */
.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}
.section-title .en {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 5.2rem;
  font-weight: 900;
  color: var(--sky);
  letter-spacing: 0.15em;
  display: block;
}
.section-title .en .title-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
}
.section-title .en .title-char.visible {
  animation: charFloat 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.section-title .ja {
  font-size: 1.5rem;
  color: #999;
  letter-spacing: 0.2em;
  margin-top: 6px;
  display: block;
  font-weight: 400;
}

/* ===== タイプライター（タイプ前後で高さが変わらないよう1行ぶん確保） ===== */
.section-title .ja.tw-pending, .section-title .ja.tw,
.page-subtitle.tw-pending, .page-subtitle.tw { min-height: 1.8em; }
/* Star accent under title */
.section-title::after {
  content: '';
  display: block;
  margin: 20px auto 0;
  width: 28px;
  height: 28px;
  background: url('assets/svg/star.svg') no-repeat center / contain;
  filter: brightness(0) saturate(100%) invert(56%) sepia(67%) saturate(497%) hue-rotate(161deg) brightness(96%) contrast(89%);
  animation: twinkleStar 2.5s ease-in-out infinite;
}

/* Read More Button */
.btn-more {
  display: inline-block;
  padding: 16px 52px;
  border: 2px solid var(--sky);
  color: var(--sky);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.btn-more::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--sky);
  transition: left 0.3s;
  z-index: 0;
}
.btn-more:hover { color: #fff; opacity: 1; }
.btn-more:hover::before { left: 0; }
.btn-more span { position: relative; z-index: 1; }

.btn-gold {
  display: inline-block;
  padding: 20px 60px;
  background: var(--gold);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 4px;
}
.btn-gold:hover { background: #c0963e; opacity: 1; }

/* Triangle accent */
.triangle-accent {
  position: absolute;
  bottom: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 0 44px 44px;
  border-color: transparent transparent var(--sky) transparent;
}

/* Dotted circle decoration — using custom SVG */
.dotted-circle {
  position: absolute;
  pointer-events: none;
  background: url('assets/svg/dotted_circle.svg') no-repeat center / contain;
  animation: rotateDotCircle 30s linear infinite;
}

@keyframes rotateDotCircle {
  0% { transform: rotate(0deg) scale(var(--dc-scale, 1)); }
  100% { transform: rotate(360deg) scale(var(--dc-scale, 1)); }
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
.header-logo { position: relative; display: inline-flex; }
.header-logo img {
  height: 36px;
  width: auto;
  transition: opacity 0.4s ease;
}
.header-logo .logo-light { position: absolute; top: 0; left: 0; opacity: 0; }

/* ===== フロントページ最上部：透明ヘッダー（白文字・白ロゴ・白星） ===== */
.header.is-top {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.header.is-top .logo-dark { opacity: 0; }
.header.is-top .logo-light { opacity: 1; }
.header.is-top .header-nav a { color: #fff; }
.header.is-top .header-nav a:hover { color: #fff; }
.header.is-top .header-nav a::before { filter: none; opacity: 0.9; }   /* star.svgは元が白なのでフィルタ解除で白に */
.header.is-top .hamburger span { background: #fff; }
/* ドロワー開放中はヒーロー上でもロゴ・ハンバーガーを通常色に（白ドロワーで視認できるように） */
.header.drawer-open { box-shadow: none; }   /* 展開中はヘッダー影なし */
.header.drawer-open .logo-dark { opacity: 1; }
.header.drawer-open .logo-light { opacity: 0; }
.header.drawer-open .hamburger span { background: var(--dark-gray); }
.header-nav { display: flex; align-items: center; gap: 24px; }
.header-nav li { list-style: none; }
.header-nav a {
  color: var(--dark-gray);
  font-size: 1rem;
  letter-spacing: 0.12em;
  font-weight: 500;
  position: relative;
  padding-left: 18px;
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
}
/* Star accent before each menu item */
.header-nav a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-45%);
  width: 12px; height: 12px;
  background: url('assets/svg/star.svg') no-repeat center / contain;
  filter: brightness(0) saturate(100%) invert(56%) sepia(67%) saturate(497%) hue-rotate(161deg) brightness(96%) contrast(89%);
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s;
}
.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 18px; right: 0;
  height: 2px;
  background: var(--sky);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.header-nav a:hover { color: var(--sky); opacity: 1; }
.header-nav a:hover::before { opacity: 1; transform: translateY(-50%) scale(1.2); }
.header-nav a:hover::after { transform: scaleX(1); }
.header-nav a:hover { opacity: 1; }
.header-nav a:hover::after { width: 100%; }

.hamburger {
  display: none;
  width: 30px;
  height: 26px;
  cursor: pointer;
  position: relative;
  z-index: 1001;
  background: none;
  border: 0;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}
.hamburger span {
  transition: all 0.5s;
  box-sizing: border-box;
}
.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--dark-gray);
  border-radius: 3px;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 12px; }
.hamburger span:nth-child(3) { bottom: 0; }

/* Circle border that draws on active */
.hamburger::after {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  content: '';
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  border: 3px solid transparent;
  transition: all 0.75s;
}

/* Active state */
.hamburger.active span:nth-child(1) {
  transform: translateY(12px) rotate(-45deg);
}
.hamburger.active span:nth-child(2) {
  left: 60%;
  opacity: 0;
  animation: hamburger-bar02 0.8s forwards;
}
@keyframes hamburger-bar02 {
  100% { height: 0; }
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-12px) rotate(45deg);
}
.hamburger.active::after {
  animation: hamburger-circle 0.7s 0.25s forwards;
}
@keyframes hamburger-circle {
  0% {
    border-color: transparent;
    transform: rotate(0);
  }
  25% {
    border-color: transparent var(--sky) transparent transparent;
  }
  50% {
    border-color: transparent var(--sky) var(--sky) transparent;
  }
  75% {
    border-color: transparent var(--sky) var(--sky) var(--sky);
  }
  100% {
    border-color: var(--sky);
    transform: rotate(-680deg);
  }
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-left: calc(50% - 100px);
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.mobile-nav.active {
  opacity: 1;
  visibility: visible;
}
.mobile-nav li { list-style: none; margin: 10px 0; }
.mobile-nav a {
  display: block;
  color: var(--dark-gray);
  font-size: 1.6rem;
  letter-spacing: 0.2em;
  font-weight: 500;
  padding-left: 34px;
  position: relative;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}
.mobile-nav a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  background: url('assets/svg/star.svg') no-repeat center / contain;
  filter: brightness(0) saturate(100%) invert(56%) sepia(67%) saturate(497%) hue-rotate(161deg) brightness(96%) contrast(89%);
}
.mobile-nav.active a {
  transform: translateY(0);
  opacity: 1;
}
/* 上から順にフェードインアップ（li構造・直a構造どちらも対応） */
.mobile-nav.active a:nth-child(1), .mobile-nav.active li:nth-child(1) a { transition-delay: 0.10s; }
.mobile-nav.active a:nth-child(2), .mobile-nav.active li:nth-child(2) a { transition-delay: 0.18s; }
.mobile-nav.active a:nth-child(3), .mobile-nav.active li:nth-child(3) a { transition-delay: 0.26s; }
.mobile-nav.active a:nth-child(4), .mobile-nav.active li:nth-child(4) a { transition-delay: 0.34s; }
.mobile-nav.active a:nth-child(5), .mobile-nav.active li:nth-child(5) a { transition-delay: 0.42s; }
.mobile-nav.active a:nth-child(6), .mobile-nav.active li:nth-child(6) a { transition-delay: 0.50s; }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;   /* iOS：アドレスバー分の高さズレ対策（非対応は上の100vhにフォールバック） */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Diagonal flowing gradient background */
.night-sky-gradient {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    -45deg,
    #080e1f,
    #0d1a35,
    #1B2D5B,
    #1a3a6e,
    #1e4a82,
    #1B2D5B,
    #122044,
    #0a1228
  );
  background-size: 400% 400%;
  animation: diagonalGradient 8s ease infinite, gradientRotate 20s linear infinite;
}
@keyframes gradientRotate {
  0% { transform: rotate(0deg) scale(2.5); }
  100% { transform: rotate(360deg) scale(2.5); }
}
@keyframes diagonalGradient {
  0% { background-position: 0% 50%; }
  25% { background-position: 100% 0%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
  100% { background-position: 0% 50%; }
}
.hero-content { position: relative; z-index: 2; }
.hero-logo {
  width: 450px;
  margin: 0 auto 44px;
  animation: fadeInUp 1.2s ease-out;
}
.hero-tagline {
  color: #fff;
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 2;
}
.hero-tagline .char {
  display: inline-block;
  will-change: transform;   /* スクロールパララックス枠 */
}
.hero-tagline .char-in {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: charFloat 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes charFloat {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  60% {
    opacity: 1;
    transform: translateY(-6px);
  }
  80% {
    transform: translateY(3px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Star Rain — falling stars using star.svg ===== */
.star-rain-container {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.falling-star {
  position: absolute;
  background: url('assets/svg/star.svg') no-repeat center / contain;
  opacity: 0;
  animation: fallingStar linear infinite;
}
@keyframes fallingStar {
  0% {
    opacity: 0;
    transform: translate(0, -20px) rotate(0deg);
  }
  5% { opacity: 0.8; }
  80% { opacity: 0.6; }
  100% {
    opacity: 0;
    transform: translate(200px, 110vh) rotate(15deg);
  }
}

/* Twinkling static stars using star.svg */
.twinkle-star {
  position: absolute;
  background: url('assets/svg/star.svg') no-repeat center / contain;
  animation: twinkleStar ease-in-out infinite;
  z-index: 1;
}
@keyframes twinkleStar {
  0%, 100% { opacity: 0.15; transform: scale(0.7); }
  50% { opacity: 0.9; transform: scale(1.1); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  letter-spacing: 0.2em;
  z-index: 2;
  animation: fadeInUp 1.2s ease-out 0.8s both;
  text-align: center;
}
.scroll-indicator::after {
  content: '';
  display: block;
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.3);
  margin: 10px auto 0;
  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; }
}

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

/* ========== MESSAGE SECTION ========== */
.message-section {
  background: var(--light-gray);
  position: relative;
  overflow: hidden;
}
.message-section .dotted-circle:nth-of-type(1) {
  width: 320px; height: 320px;
  top: -160px; right: -160px;
}
.message-section .dotted-circle:nth-of-type(2) {
  width: 320px; height: 320px;
  bottom: -160px; left: -160px;
  top: auto; right: auto;
}
.message-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.message-quote {
  font-size: 1.15rem;
  line-height: 2.4;
  color: var(--dark-gray);
  margin-bottom: 36px;
  position: relative;
  font-weight: 400;
}
.message-quote::before {
  content: '\201C';
  font-size: 16rem;
  color: var(--sky);
  opacity: 0.15;
  position: absolute;
  top: -80px; left: 100px;
  font-family: Georgia, serif;
  line-height: 1;
}
.message-author {
  font-size: 1rem;
  color: #888;
  letter-spacing: 0.1em;
  margin-bottom: 44px;
}
.message-author strong {
  display: block;
  font-size: 1.15rem;
  color: var(--dark-gray);
  margin-top: 6px;
  font-weight: 700;
}

/* ========== NEWS SECTION ========== */
.news-section {
  background: #fff;
  position: relative;
}
.news-list { max-width: 860px; margin: 0 auto 52px; }
.news-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid #e8e8e8;
}
.news-item:hover { opacity: 1; }   /* ホバーアクションなし（全体の opacity 低下も打ち消す） */
.news-date {
  font-size: 1rem;
  color: #999;
  min-width: 110px;
  font-weight: 400;
}
.news-tag {
  display: inline-block;
  font-size: 0.85rem;
  padding: 3px 14px;
  border: 1px solid var(--sky);
  color: var(--sky);
  min-width: 80px;
  text-align: center;
  flex-shrink: 0;
  font-weight: 500;
}
.news-title-text {
  font-size: 1rem;
  color: var(--dark-gray);
  line-height: 1.7;
}

/* ========== ORIGIN SECTION ========== */
.origin-section {
  background: var(--light-gray);
  position: relative;
  overflow: hidden;
}
.origin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.origin-logo-area {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.origin-logo-area img {
  width: 240px;
  filter: drop-shadow(0 4px 20px rgba(27,45,91,0.15));
}
.origin-section .dotted-circle {
  width: 300px; height: 300px;
  top: -150px; left: -150px;
}
/* dotted-circle is now on the section, not the logo area */
.origin-text-area {
  position: relative;
  padding-left: 28px;
}
.origin-text-area::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 60px;
  background: var(--sky);
}
.origin-text-area h3 {
  font-size: 1.6rem;
  color: var(--dark-gray);
  margin-bottom: 24px;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.origin-text-area p {
  font-size: 1.05rem;
  line-height: 2.2;
  color: #555;
}
.origin-bar {
  margin-top: 60px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    rgba(43,165,219,0.25),
    var(--sky) 35%,
    var(--sky-light) 50%,
    var(--sky) 65%,
    rgba(43,165,219,0.25)
  );
  background-size: 200% 100%;
  animation: originBarFlow 3.2s ease-in-out infinite;
}
@keyframes originBarFlow {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ========== MEMBERS SECTION ========== */
.members-section {
  background: #fff;
  position: relative;
}
.members-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 920px;
  margin: 0 auto 52px;
}
.member-card {
  position: relative;
  background: #fff;
  padding: 4px;
  display: flex;
  flex-direction: column;
}
/* Bracket-corner border frame */
.member-card::before,
.member-card::after {
  content: '';
  position: absolute;
  width: 32px; height: 32px;
  border-color: #ccc;
  border-style: solid;
}
.member-card::before {
  top: 0; left: 0;
  border-width: 2px 0 0 2px;
}
.member-card::after {
  top: 0; right: 0;
  border-width: 2px 2px 0 0;
}
.member-card-inner::before,
.member-card-inner::after {
  content: '';
  position: absolute;
  width: 32px; height: 32px;
  border-color: #ccc;
  border-style: solid;
}
.member-card-inner::before {
  bottom: 0; left: 0;
  border-width: 0 0 2px 2px;
}
.member-card-inner::after {
  bottom: 0; right: 0;
  border-width: 0 2px 2px 0;
}
.member-card-inner {
  position: relative;
  padding: 32px;
  flex: 1 1 auto;   /* カード高さいっぱいに伸ばし、下のカッコ位置を揃える */
}
.member-photo {
  width: 100%;
  aspect-ratio: 4/3;
  background: #d0d0d0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.member-photo span {
  color: #999;
  font-size: 1rem;
  letter-spacing: 0.1em;
}
.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 写真の代わりにロゴを置くプレースホルダー（フッターと同じネイビーグラデ・静止） */
.member-photo-logo {
  background: linear-gradient(
    -45deg,
    #080e1f,
    #0d1a35,
    #1B2D5B,
    #1a3a6e,
    #1e4a82,
    #1B2D5B,
    #122044,
    #0a1228
  );
}
.member-photo-logo img {
  width: auto;
  height: 58%;
  max-width: 70%;
  object-fit: contain;
  opacity: 1;
}
.member-name {
  font-size: 1.4rem;
  color: var(--dark-gray);
  margin-bottom: 4px;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.member-title-label {
  font-size: 1rem;
  color: var(--sky);
  letter-spacing: 0.15em;
  margin-bottom: 14px;
  font-weight: 500;
}
.member-desc {
  font-size: 1rem;
  color: #666;
  line-height: 1.9;
}
.member-card .triangle-accent {
  display: none;   /* 役員カードは青三角なし */
}
.members-link {
  text-align: center;
  font-size: 1rem;
  color: var(--sky);
  letter-spacing: 0.1em;
}
.members-link a {
  border-bottom: 2px solid var(--sky);
  padding-bottom: 4px;
  font-weight: 500;
}

/* ========== BUSINESS SECTION ========== */
.business-section {
  background: var(--light-gray);
  position: relative;
  overflow: hidden;
}
.business-section .dotted-circle {
  width: 380px; height: 380px;
  bottom: -190px; right: -190px;
}
.business-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 52px;
  position: relative;
  z-index: 1;
}
.business-card {
  background: #fff;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.business-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(43,165,219,0.12);
}
.business-card-logo {
  width: 100%;
  aspect-ratio: 16/9;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
/* 業種バッジ（画像左上） */
.business-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: #fff;
  background: var(--sky);
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.business-badge.badge-food  { background: #3faf5a; }  /* FOOD = 緑 */
.business-badge.badge-event { background: #f08a24; }  /* EVENT = オレンジ */
.business-card-logo span:not(.business-badge) {
  color: #aaa;
  font-size: 1rem;
  letter-spacing: 0.1em;
}
.business-card-logo img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}
/* アイキャッチ写真はカード上部いっぱいに（cover） */
.business-card-logo img.is-photo {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}
/* 事業が0件のときの表示 */
.business-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #999;
  padding: 48px 0;
}
.business-card-body { padding: 24px 24px 64px; }   /* 下部は absolute の「詳しく見る」用に余白確保 */
.business-card-name {
  font-size: 1.15rem;
  color: var(--dark-gray);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.business-card-desc {
  font-size: 1rem;
  color: #777;
  line-height: 1.8;
}
/* 「詳しく見る →」リンク風ラベル */
.business-card-more {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--sky);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.business-card-more .more-arrow {
  transition: transform 0.3s ease;
}
.business-card:hover .business-card-more .more-arrow {
  transform: translateX(6px);
}
.business-card .triangle-accent {
  border-width: 0 0 40px 40px;
}

/* ========== CONTACT SECTION ========== */
.contact-section {
  background: var(--sky);
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}
.contact-section .section-title .en { color: #fff; }
.contact-section .section-title .ja { color: rgba(255,255,255,0.7); }
.contact-section .section-title::after {
  filter: brightness(0) invert(1);
}
.contact-text {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  margin-bottom: 44px;
  letter-spacing: 0.1em;
  font-weight: 400;
}
.contact-section .btn-gold {
  background: #fff;
  color: var(--sky);
  font-weight: 700;
}
.contact-section .btn-gold:hover {
  background: rgba(255,255,255,0.9);
}

/* ========== FOOTER ========== */
.footer {
  background: linear-gradient(
    -45deg,
    #080e1f,
    #0d1a35,
    #1B2D5B,
    #1a3a6e,
    #1e4a82,
    #1B2D5B,
    #122044,
    #0a1228
  );
  background-size: 400% 400%;
  animation: diagonalGradient 8s ease infinite;
  padding: 80px 0 30px;
  color: rgba(255,255,255,0.6);
  position: relative;
  overflow: hidden;
}

/* Scattered star.svg in footer — twinkling */
.footer-star {
  position: absolute;
  background: url('assets/svg/star.svg') no-repeat center / contain;
  animation: twinkleStar ease-in-out infinite;
  pointer-events: none;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 44px;
  position: relative;
  z-index: 1;
}
.footer-logo img {
  height: 40px;
  margin-bottom: 18px;
}
.footer-logo-sp { display: none; height: auto !important; }
.footer-info {
  font-size: 1rem;
  line-height: 1.9;
}
.footer-nav { display: flex; gap: 20px; row-gap: 8px; flex-wrap: wrap; }
.footer-nav li { list-style: none; }
.footer-nav a {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  letter-spacing: 0.1em;
  font-weight: 400;
}
.footer-nav a:hover { color: var(--gold); opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  position: relative;
  z-index: 1;
}

/* ========== SCROLL ANIMATIONS ========== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== ARCHIVE / SINGLE PAGE STYLES ========== */
.page-header {
  background: linear-gradient(160deg, var(--navy-dark), var(--navy) 55%, #1e4a82);
  padding: 170px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* キラキラ装飾レイヤー */
.page-header-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
/* パンくずリスト（ページヘッダー左上にオーバーレイ） */
.page-header .breadcrumb {
  position: absolute;
  top: 90px;
  left: 0;
  right: 0;
  z-index: 3;
  font-size: 0.6rem;
  line-height: 1.6;
}
.page-header .breadcrumb .container {
  text-align: left;
}
.page-header .breadcrumb a {
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.04em;
  transition: color 0.3s, opacity 0.3s;
}
.page-header .breadcrumb a:hover {
  color: #fff;
  opacity: 1;
}
.page-header .breadcrumb .sep {
  margin: 0 8px;
  color: rgba(255,255,255,0.4);
}
.page-header .breadcrumb .current {
  color: #fff;
  font-weight: 500;
}

/* 流れ星レイヤー（ヘッダー内に収まる軌道） */
.header-star-rain {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.header-star-rain .falling-star {
  animation-name: fallingStarHeader;
}
@keyframes fallingStarHeader {
  0%   { opacity: 0; transform: translate(0, -20px) rotate(0deg); }
  10%  { opacity: 0.9; }
  85%  { opacity: 0.6; }
  100% { opacity: 0; transform: translate(120px, 360px) rotate(15deg); }
}
.page-header h1 {
  color: #fff;
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  position: relative;
  z-index: 2;
}
.page-header .page-subtitle {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  letter-spacing: 0.2em;
  margin-top: 10px;
  position: relative;
  z-index: 2;
}
.page-content {
  padding: 80px 0;
}
.page-content .container {
  max-width: 860px;
}
.single-meta {
  color: #999;
  font-size: 0.95rem;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.single-body {
  line-height: 2.2;
  font-size: 1.05rem;
}
.single-body p {
  margin-bottom: 1.5em;
}
.single-body img {
  margin: 2em 0;
  border-radius: 4px;
}
.back-link {
  margin-top: 60px;
  text-align: center;
}

/* NEWS詳細：アイキャッチありの2カラムヒーロー */
.news-hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  margin-bottom: 48px;
}
.news-hero-img img {
  width: 100%;
  display: block;
}
.news-hero-box {
  position: relative;
  z-index: 2;
  margin-left: -72px;          /* 左の画像に被せる */
  background: #fff;
  border: 2px solid var(--sky);
  padding: 36px 34px;
}
.news-hero-title {
  color: var(--navy);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.03em;
}
.news-hero-divider {
  height: 1px;
  background: #e7eaee;
  margin: 22px 0 16px;
}
.news-hero-meta { display: flex; align-items: center; gap: 14px; }
.news-hero-meta .news-date { color: #999; font-size: 0.9rem; min-width: auto; }

/* 事業一覧ページの背景をフロントのBUSINESSセクション（light-gray）に合わせる */
.post-type-archive-business .page-content {
  background: var(--light-gray);
}

/* Business archive grid */
.business-archive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ========== 事業シングルページ ========== */
/* ページ全体をグレーに（一覧ページと統一） */
body.single-business { background: var(--light-gray); }

/* 全幅アイキャッチ ＋ 中央ロゴ */
.business-hero {
  position: relative;
  width: 100%;
  min-height: 380px;
  margin-top: 72px;            /* 固定ヘッダーの下に出す */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--navy);
  overflow: hidden;
}
.business-hero.no-eyecatch {
  background-image: linear-gradient(
    -45deg,
    #080e1f, #0d1a35, #1B2D5B, #1a3a6e, #1e4a82, #1B2D5B, #122044, #0a1228
  );
}
/* 事業ヒーロー上のパンくず（ページヘッダーと同じ画面座標＝上から約90px） */
.business-hero .breadcrumb {
  position: absolute;
  top: 18px;          /* ヒーローは margin-top:72px → 18+72=90px で他ページと同座標 */
  left: 0;
  right: 0;
  z-index: 3;
  font-size: 0.6rem;
  line-height: 1.6;
}
.business-hero .breadcrumb .container { text-align: left; }
.business-hero .breadcrumb a,
.business-hero .breadcrumb .current {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.45);
}
.business-hero .breadcrumb a { color: rgba(255,255,255,0.85); transition: color 0.3s, opacity 0.3s; }
.business-hero .breadcrumb a:hover { color: #fff; opacity: 1; }
.business-hero .breadcrumb .current { font-weight: 500; }
.business-hero .breadcrumb .sep { margin: 0 8px; color: rgba(255,255,255,0.6); text-shadow: 0 1px 4px rgba(0,0,0,0.45); }

/* アイキャッチ背景（ブラー専用レイヤー：ロゴは影響を受けない／パララックス対象） */
.business-hero-bg {
  position: absolute;
  inset: -50px;                /* ブラー＆パララックスで端が透けないよう拡張 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(13px);
  transform: scale(1.7);
  z-index: 0;
  will-change: transform;
}
/* ロゴを見やすくする中央の薄いベール（写真がある時のみ） */
.business-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center,
    rgba(255,255,255,0.55) 0%,
    rgba(255,255,255,0.28) 55%,
    rgba(255,255,255,0.12) 100%);
}
.business-hero.no-eyecatch .business-hero-overlay { display: none; }
.business-hero-logo {
  position: relative;
  z-index: 1;
  padding: 24px;
  text-align: center;
}
.business-hero-logo img {
  display: inline-block;
  max-width: 480px;
  max-height: 280px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.18));
}

/* コンテンツ部（グレー背景） */
.business-single {
  background: var(--light-gray);
  padding: 64px 0 90px;
}
/* 本文・ギャラリーを収める白ボックス（タイトルも内包） */
.business-single-box {
  background: #fff;
  padding: 48px 56px;
  box-shadow: 0 8px 30px rgba(27,45,91,0.07);
}
.business-single-title {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.5;
  color: var(--dark-gray);
  margin-bottom: 20px;
}
/* タイトル下の水色ライン */
.business-single-divider {
  width: 60px;
  height: 3px;
  margin: 0 auto 40px;
  background: var(--sky);
  border-radius: 3px;
}

/* タイトル下：2カラム（左＝大きいアイキャッチ／右＝紹介ボックスが画像に被る） */
.business-intro {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  margin-bottom: 48px;
}
.business-intro-img img {
  width: 100%;
  display: block;
  box-shadow: 0 12px 32px rgba(27,45,91,0.14);
}
.business-intro-text {
  position: relative;
  z-index: 2;
  margin-left: -56px;          /* 左のアイキャッチに被せる */
  background: var(--light-gray);
  padding: 32px 32px;
  box-shadow: 0 12px 32px rgba(27,45,91,0.12);
  font-size: 1rem;
  line-height: 2;
  color: #555;
}
.business-intro-text p { margin: 0; }
.business-intro-text p + p { margin-top: 1em; }
.business-intro-text:only-child { margin-left: 0; }   /* 画像が無い時は被せない */

.business-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.business-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  cursor: zoom-in;
  transition: opacity 0.3s;
}
.business-gallery img:hover { opacity: 0.85; }

/* ===== ギャラリー ライトボックス ===== */
.sr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 15, 30, 0.94);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease, backdrop-filter 0.35s ease;
}
.sr-lightbox.active { opacity: 1; visibility: visible; pointer-events: auto; }
.sr-lb-stage {
  margin: 0;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sr-lightbox img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  border-radius: 2px;
  opacity: 0;
  transform: scale(0.94);
}
.sr-lightbox img.sr-lb-in {
  animation: srLbIn 0.4s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
@keyframes srLbIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .sr-lightbox, .sr-lightbox img, .sr-lightbox img.sr-lb-in { transition: none; animation: none; }
  .sr-lightbox img { opacity: 1; transform: none; }
}
.sr-lb-count {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  margin-top: 16px;
}
.sr-lb-close, .sr-lb-prev, .sr-lb-next {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 2;
}
.sr-lb-close:hover, .sr-lb-prev:hover, .sr-lb-next:hover { opacity: 1; }
.sr-lb-close { top: 20px; right: 28px; font-size: 2.4rem; }
.sr-lb-prev, .sr-lb-next { top: 50%; transform: translateY(-50%); font-size: 3.4rem; padding: 0 22px; }
.sr-lb-prev:hover { transform: translateY(-50%) translateX(-3px); }
.sr-lb-next:hover { transform: translateY(-50%) translateX(3px); }
.sr-lb-prev { left: 10px; }
.sr-lb-next { right: 10px; }
@media (max-width: 768px) {
  .sr-lb-prev, .sr-lb-next { font-size: 2.4rem; padding: 0 10px; }
  .sr-lb-close { top: 12px; right: 16px; font-size: 2rem; }
}

/* Company page */
.company-section {
  padding: 80px 0;
}
.company-section:nth-child(even) {
  background: var(--light-gray);
}
.company-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 700px;
  margin: 0 auto;
}
.company-table th,
.company-table td {
  padding: 18px 24px;
  border-bottom: 1px solid #e8e8e8;
  text-align: left;
  font-size: 1rem;
  line-height: 1.8;
}
.company-table th {
  width: 160px;
  color: var(--sky);
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Contact page */
.contact-lead {
  text-align: left;
  max-width: 700px;
  margin: 0 auto 48px;
  background: rgba(43, 165, 219, 0.08);   /* 薄青 */
  border-left: 4px solid var(--sky);       /* 左アクセントライン */
  border-radius: 0;                        /* 角90度 */
  padding: 26px 30px;
  color: #4a4a4a;
  font-size: 1rem;
  line-height: 2;
}
.contact-page-content {
  max-width: 700px;
  margin: 0 auto;
}

/* Pagination */
.pagination {
  margin-top: 60px;
  text-align: center;
}
.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.pagination .page-numbers {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--mid-gray);
  color: var(--dark-gray);
  font-size: 0.95rem;
  transition: all 0.3s;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--sky);
  color: #fff;
  border-color: var(--sky);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .hamburger { display: flex; }
  .hero-logo { width: 280px; }
  .hero-tagline { font-size: 5vw; padding: 0 16px; }
  .section-padding { padding: 70px 0; }
  .section-title .en { font-size: 2.6rem; }
  .message-quote { font-size: 1rem; }
  .news-item { flex-wrap: wrap; gap: 8px; }
  .news-date { min-width: auto; }
  .origin-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .origin-text-area { padding-left: 0; text-align: center; }
  .origin-text-area::before { left: 50%; transform: translateX(-50%); top: -16px; width: 40px; height: 4px; }
  .members-grid { grid-template-columns: 1fr; max-width: 500px; }
  .business-grid { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
  .business-archive-grid { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-nav { flex-wrap: wrap; justify-content: center; }
  .footer-logo-pc { display: none; }
  .footer-logo-sp { display: block; margin: 0 auto; width: 50%; height: auto; }
  .message-quote::before { font-size: 8rem; left: -10px; top: -20px; }
  .dotted-circle { animation: rotateDotCircleSp 30s linear infinite; }
  .page-header { padding: 130px 0 64px; }
  .page-header h1 { font-size: 1.8rem; }
  .business-gallery { grid-template-columns: repeat(2, 1fr); }
  .company-table th { width: 120px; }
  .business-hero { min-height: 240px; }
  .business-hero-logo img { max-width: 300px; max-height: 170px; }
  .business-single { padding: 44px 0 60px; }
  .business-single-title { font-size: 1.4rem; }
  .business-single-box { padding: 28px 22px; }
  .business-intro { grid-template-columns: 1fr; }
  .business-intro-text {
    margin: -36px auto 0;
    width: 88%;
  }
  .news-hero { grid-template-columns: 1fr; }
  .news-hero-box { margin: -40px auto 0; width: 90%; }
}
@keyframes rotateDotCircleSp {
  0% { transform: rotate(0deg) scale(calc(var(--dc-scale, 1) * 0.5)); }
  100% { transform: rotate(360deg) scale(calc(var(--dc-scale, 1) * 0.5)); }
}

/* ========== LARGE SCREEN (1400px+) ========== */
@media (min-width: 1400px) {
  .message-section .dotted-circle:nth-of-type(1) {
    width: 480px; height: 480px;
    top: -240px; right: -240px;
  }
  .message-section .dotted-circle:nth-of-type(2) {
    width: 480px; height: 480px;
    bottom: -240px; left: -240px;
  }
  .origin-section .dotted-circle {
    width: 480px; height: 480px;
    top: -240px; left: -240px;
  }
  .business-section .dotted-circle {
    width: 480px; height: 480px;
    bottom: -240px; right: -240px;
  }
}

/* ========== SEARCH FORM ========== */
.search-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid var(--mid-gray);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.search-form .search-field {
  flex: 1;
  border: none;
  padding: 14px 18px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--dark-gray);
  outline: none;
  background: transparent;
}
.search-form .search-field::placeholder { color: #aaa; }
.search-form .search-submit {
  border: none;
  background: var(--sky);
  color: #fff;
  padding: 0 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.search-form .search-submit:hover { background: var(--sky-light); }
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ========== SEARCH RESULTS ========== */
.search-result-meta {
  text-align: center;
  font-size: 1.05rem;
  color: #666;
  margin-bottom: 28px;
}
.search-result-meta strong { color: var(--sky); }
.search-form-wrap { margin-bottom: 48px; }

/* ========== 404 ========== */
/* ※ ページヘッダーの h1 サイズは共通（.page-header h1）を継承し、他ページと統一 */
.error404-text {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  line-height: 2;
  margin-bottom: 44px;
}
.error404-search { max-width: 480px; margin: 0 auto 12px; }

/* ========== CONTACT FORM (Contact Form 7 / WPForms 共通) ========== */
.contact-page-content .wpcf7,
.contact-page-content .wpforms-container { max-width: 680px; margin: 0 auto; }

/* ラベル */
.wpcf7-form label,
.wpforms-field-label {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark-gray);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

/* 必須マーク */
.wpforms-required-label,
.wpcf7-form .wpcf7-not-valid-tip { color: #e8543e; }

/* 入力欄共通 */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="date"],
.wpcf7-form select,
.wpcf7-form textarea,
.wpforms-field input[type="text"],
.wpforms-field input[type="email"],
.wpforms-field input[type="tel"],
.wpforms-field input[type="url"],
.wpforms-field input[type="number"],
.wpforms-field select,
.wpforms-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--mid-gray);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--dark-gray);
  background: #fff;
  transition: border-color 0.3s, box-shadow 0.3s;
  margin-bottom: 22px;
  box-sizing: border-box;
}
.wpcf7-form textarea,
.wpforms-field textarea { min-height: 160px; line-height: 1.8; resize: vertical; }

/* フォーカス */
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus,
.wpforms-field input:focus,
.wpforms-field select:focus,
.wpforms-field textarea:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(43,165,219,0.12);
}

/* 送信ボタン */
.wpcf7-form input[type="submit"],
.wpforms-submit {
  display: inline-block;
  background: var(--sky);
  color: #fff;
  border: none;
  padding: 16px 56px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  font-family: inherit;
}
.wpcf7-form input[type="submit"]:hover,
.wpforms-submit:hover { background: var(--sky-light); transform: translateY(-2px); }

/* 送信中スピナー位置 */
.wpcf7-spinner { margin: 12px auto 0; display: block; }

/* 確認・エラーメッセージ */
.wpcf7-response-output {
  margin: 24px 0 0 !important;
  padding: 14px 18px !important;
  border-radius: 4px;
  font-size: 0.95rem;
}
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--sky) !important; color: var(--sky); }

/* ========== MW WP Form 対応 ========== */
.contact-page-content .mw_wp_form { max-width: 680px; margin: 0 auto; }
.mw_wp_form input[type="text"],
.mw_wp_form input[type="email"],
.mw_wp_form input[type="tel"],
.mw_wp_form input[type="url"],
.mw_wp_form input[type="number"],
.mw_wp_form input[type="date"],
.mw_wp_form select,
.mw_wp_form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--mid-gray);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--dark-gray);
  background: #fff;
  transition: border-color 0.3s, box-shadow 0.3s;
  margin-bottom: 22px;
  box-sizing: border-box;
}
.mw_wp_form textarea { min-height: 160px; line-height: 1.8; resize: vertical; }
.mw_wp_form input:focus,
.mw_wp_form select:focus,
.mw_wp_form textarea:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(43,165,219,0.12);
}
/* 送信・確認・戻るボタン */
.mw_wp_form input[type="submit"],
.mw_wp_form button[type="submit"] {
  display: inline-block;
  background: var(--sky);
  color: #fff;
  border: none;
  padding: 16px 48px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  font-family: inherit;
  margin: 4px 6px 0;
}
.mw_wp_form input[type="submit"]:hover,
.mw_wp_form button[type="submit"]:hover { background: var(--sky-light); transform: translateY(-2px); }
/* バリデーションエラー文言 */
.mw_wp_form .error {
  display: block;
  color: #e8543e;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 7px 0 0;
}
/* チェックボックス・ラジオは横並び＋サイズ自動 */
.mw_wp_form .mwform-checkbox-field,
.mw_wp_form .mwform-radio-field { display: inline-block; margin: 0 18px 10px 0; }
.mw_wp_form .mwform-checkbox-field input,
.mw_wp_form .mwform-radio-field input { width: auto; margin: 0 6px 0 0; }
/* チェックボックス・ラジオはホバーでポインター */
.mw_wp_form .mwform-checkbox-field,
.mw_wp_form .mwform-checkbox-field label,
.mw_wp_form .mwform-radio-field,
.mw_wp_form .mwform-radio-field label,
.mw_wp_form input[type="checkbox"],
.mw_wp_form input[type="radio"] { cursor: pointer; }
/* 電話番号・郵便番号（複数ボックス）は横並びに */
.mw_wp_form .mwform-tel-field,
.mw_wp_form .mwform-zip-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mw_wp_form .mwform-tel-field input[type="text"],
.mw_wp_form .mwform-zip-field input[type="text"] {
  width: 6em;
  max-width: 120px;
  margin-bottom: 0;
  text-align: center;
}
/* 確認画面のボタンを中央に */
.mw_wp_form_confirm .mw_wp_form,
.mw_wp_form .mw_wp_form_confirm { text-align: center; }

/* ===== .mw_form テンプレート（ラベル＋入力の行レイアウト） ===== */
.mw_form { max-width: 720px; margin: 0 auto; }
.mw_form .form_row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 6px 28px;
  align-items: start;
  padding: 22px 2px;
  border-bottom: 1px solid #ececec;
}
.mw_form .form_row_col1 { grid-template-columns: 1fr; }   /* 1カラム行（テキストエリア・同意） */
.mw_form .form_rabel {
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.03em;
  padding-top: 14px;
}
.mw_form .form_row_col1 .form_rabel { padding-top: 0; margin-bottom: 8px; }
/* 確認画面は入力欄が無いので、ラベルと値を上下中央に揃える */
.mw_wp_form_confirm .form_row { align-items: center; }
.mw_wp_form_confirm .form_rabel { padding-top: 0; }
.mw_form .required { color: #fb5757; font-size: 0.82em; margin-left: 6px; }
.mw_form .form_input { min-width: 0; }
.mw_form .form_input input,
.mw_form .form_input textarea,
.mw_form .form_input select { margin-bottom: 0; }

/* 同意チェック＆注意書き */
.mw_form .form_privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 6px;
}
/* 同意チェック行ではチェックボックスの余白を打ち消して上下中央に揃える */
.mw_form .form_privacy .mwform-checkbox-field {
  display: inline-flex;
  align-items: center;
  margin: 0;
}
.mw_form .form_privacy .mwform-checkbox-field input { width: auto; margin: 0 6px 0 0; }
.mw_form .form_privacy a {
  color: var(--sky);
  text-decoration: underline;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.mw_form .form_note { text-align: center; color: #777; font-size: 0.92rem; margin-top: 14px; }

/* ボタン */
.mw_form .form_button_wrap {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.mw_form .entry_button input,
.mw_form .entry_button button {
  background: var(--sky);
  color: #fff;
  border: none;
  padding: 16px 48px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  font-family: inherit;
}
.mw_form .entry_button input:hover,
.mw_form .entry_button button:hover { background: var(--sky-light); transform: translateY(-2px); }
/* 「戻る」はサブ（白＋枠線） */
.mw_form .confirm_button input,
.mw_form .confirm_button button {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--mid-gray);
}
.mw_form .confirm_button input:hover,
.mw_form .confirm_button button:hover { background: var(--light-gray); transform: translateY(-2px); }

.mw_form ._forSP { display: none; }

@media (max-width: 768px) {
  .mw_form .form_row { grid-template-columns: 1fr; gap: 6px; padding: 18px 2px; }
  .mw_form .form_rabel { padding-top: 0; }
  .mw_form ._forSP { display: inline; }
}

/* 角丸を全廃（全要素シャープに） */
*, *::before, *::after { border-radius: 0 !important; }

/* 共通ページヘッダー：ヒーロー画像をぼかし＋黒マスクした背景（星・パンくずは撤去済み） */
.page-header { position: relative; overflow: hidden; text-align: center; background: #000 !important; padding: clamp(100px,16vh,170px) 20px clamp(48px,8vh,80px) !important; }
.page-header::before { content: ''; position: absolute; inset: -24px; background: url('assets/images/hero_pc.webp') center 38% / cover no-repeat; filter: blur(7px) brightness(.62); z-index: 0; }
.page-header > * { position: relative; z-index: 1; }
.page-header h1 { color: #fff; }
/* ページタイトル：スクロール登場フェードインアップ（JSが .mz-anim 付与→画面内で .is-inview） */
.page-header h1.mz-anim { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.page-header h1.mz-anim.is-inview { opacity: 1; transform: none; }
.page-header .page-subtitle { color: rgba(255,255,255,.85); }
.page-header-stars { display: none !important; }   /* 星のキラキラ撤去 */

/* ============================================================
   MAIZURU HANABI — ダークモード & はんなり明朝 グローバル統一
   （花火祭りサイト全体をダーク／白文字／明朝で統一。既存STAR RAIN
    配色の上に後勝ちで被せる。トップはFV(fv.css)が主役）
   ============================================================ */
:root {
  --mz-serif: "Noto Serif JP", "Shippori Mincho", serif;
  --mz-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
  --mz-bg: #07080f;
  --mz-bg-2: #0d0f19;
  --mz-text: #ffffff;
  --mz-sub: rgba(255,255,255,.8);
  --mz-gold: #f4b24a;
}

html, body { background: var(--mz-bg); }
body { color: var(--mz-text); font-family: var(--mz-serif); }

/* 本文＝ゴシック（Noto Sans JP） */
body, p, li, dd, th, td, blockquote, figcaption, small,
button, input, textarea, select, label,
.btn-more, .btn-gold {
  font-family: var(--mz-sans) !important;
}
/* 見出し＝明朝（Noto Serif）。span/aは強制せず親を継承し、見出し内は明朝／本文内はゴシックに自然に分かれる */
h1, h2, h3, h4, h5, h6, dt, .page-title, .page-subtitle {
  font-family: var(--mz-serif) !important;
}

/* 文字色：白系 */
h1, h2, h3, h4, h5, h6, p, li, dt, dd, blockquote { color: var(--mz-text); }
.section-title .ja { color: var(--mz-sub); }
a { color: inherit; }

/* ヘッダー：常時ブラック（トップFV上でも黒背景） */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(0,0,0,.9); box-shadow: 0 1px 0 rgba(255,255,255,.08); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); height: 56px; }
/* ヘッダー固定に戻す＝ヒーローはヘッダーと重なる前提で1画面（100vh／iOSは100dvh） */
.hero { min-height: 100vh; min-height: 100dvh; }
.header.is-top { background: rgba(0,0,0,.9); box-shadow: 0 1px 0 rgba(255,255,255,.08); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.header .header-nav a { color: var(--mz-text); }
.header.is-top .header-nav a { color: var(--mz-text); }
/* メニュー項目の頭に金の花火アイコン（hanabi.svg） */
.header .header-nav a { padding-left: 28px !important; }
.header-nav a::before {
  content: "" !important;
  display: block !important;
  width: 20px !important; height: 20px !important;
  background: url('assets/svg/hanabi.svg') no-repeat center / contain !important;
  filter: none !important;
  opacity: 1 !important;
}
.header.is-top .header-nav a::before { display: block !important; opacity: 1 !important; filter: none !important; }
/* ホバー下線：花火アイコンの左端〜文字の右端に合わせる（左18px・右はみ出しを是正） */
.header-nav a::after { background: var(--mz-gold); left: 0 !important; right: 0 !important; width: auto !important; }
.header-nav a:hover { color: var(--mz-gold); }
.header .hamburger span { background: var(--mz-text); height: 1px; border-radius: 0; }
/* ロゴは logo.png 1枚運用（dark/light切替は無効化）・小さめ */
.header-logo img { height: 26px; opacity: 1 !important; position: static; }

/* モバイルナビ：ダーク */
.mobile-nav { background: rgba(7,8,15,.98) !important; }
.mobile-nav a { color: var(--mz-text) !important; }

/* モバイルメニュー：×も白／青サークル＆アニメを削除／明朝／星削除／縦書きで横並び */
.header.drawer-open .hamburger span,
.hamburger.active span { background: #fff !important; }
.hamburger::after,
.hamburger.active::after { display: none !important; animation: none !important; }
.mobile-nav {
  flex-direction: row !important;
  align-items: flex-start !important;      /* メニューは上揃え */
  justify-content: center !important;      /* 横方向は中央 */
  padding: clamp(96px, 22vh, 170px) 0 0 !important;
  gap: clamp(22px, 8vw, 52px) !important;
}
.mobile-nav a {
  font-family: var(--mz-serif) !important;
  writing-mode: vertical-rl;
  text-orientation: upright;
  padding-left: 0 !important;
  padding-top: 36px !important;
  position: relative !important;
  letter-spacing: .18em;
}
/* モバイル縦書きメニュー：各項目の先頭（上）に金の花火アイコン */
.mobile-nav a::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important; left: 50% !important;
  transform: translateX(-50%) !important;
  writing-mode: horizontal-tb;
  width: 22px !important; height: 22px !important;
  margin: 0 !important;
  background: url('assets/svg/hanabi.svg') no-repeat center / contain !important;
  filter: none !important;
  opacity: 1 !important;
}

/* ボタン：ダーク地に映える明朝トーン */
.btn-more {
  color: #221200 !important;
  border: none;
  background: linear-gradient(105deg,#e0a02e 0%,#f4b24a 25%,#ffe9bd 50%,#f4b24a 75%,#e0a02e 100%) !important;
  background-size: 200% 100% !important;
  font-family: var(--mz-serif) !important;
  letter-spacing: .12em;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-more::before { display: none !important; }
.btn-more span { color: #221200 !important; position: static; }
.btn-more:hover { color: #221200 !important; opacity: 1; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.45); }
/* 404本文を白に・15px */
.error404-text { color: #fff !important; font-size: 15px !important; }
.btn-gold { background: linear-gradient(105deg,#e0a02e,#ffe9bd 50%,#e0a02e) !important; color: #221200 !important; }
.btn-gold:hover { filter: brightness(1.04); }

/* フォーム要素をダーク地に */
input, textarea, select {
  background: var(--mz-bg-2);
  color: var(--mz-text);
  border-color: rgba(255,255,255,.22);
}
input::placeholder, textarea::placeholder { color: rgba(244,242,234,.4); }

/* ============================================================
   右中央 固定サイドリンク（チケット / X / Instagram / Facebook）
   ============================================================ */
.mz-side {
  position: fixed;
  right: 0; top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex; flex-direction: column;
  width: 46px;
  border-radius: 10px 0 0 10px;
  overflow: hidden;
  box-shadow: -2px 4px 20px rgba(0,0,0,.4);
}
.mz-side a { display: flex; align-items: center; justify-content: center; transition: filter .2s ease; }
.mz-side a:hover { opacity: 1; filter: brightness(1.12); }
.mz-side__ticket {
  writing-mode: vertical-rl; text-orientation: upright;
  background: linear-gradient(160deg,#e0a02e,#f4b24a 45%,#ffe9bd 60%,#e0a02e);
  color: #221200; font-family: var(--mz-serif); font-weight: 600;
  letter-spacing: .22em; text-indent: .22em;
  padding: 18px 0; font-size: 14px;
}
.mz-side__sns { height: 46px; }
.mz-side__sns svg { width: 20px; height: 20px; fill: #fff; }
.mz-side__x  { background: #000; }
.mz-side__ig { background: linear-gradient(45deg,#f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
.mz-side__fb { background: #1877F2; }
@media (max-width: 767px) {
  .mz-side { width: 38px; }
  .mz-side__sns { height: 38px; }
  .mz-side__sns svg { width: 17px; height: 17px; }
  .mz-side__ticket { font-size: 12px; padding: 14px 0; letter-spacing: .18em; }
}

/* ============================================================
   フッター：背景を真っ黒に＋舞鶴スカイライン（赤レンガ/五老タワー/クレインブリッジ/イージス艦）
   ============================================================ */
.footer { background: #000 !important; animation: none !important; position: relative; z-index: 2; }
.footer-skyline {
  display: flex; align-items: flex-end; justify-content: center;
  gap: clamp(16px, 4vw, 44px);
  padding: clamp(24px, 4vw, 40px) 20px 0;
  flex-wrap: wrap;
  position: relative; z-index: 1;
  opacity: .92;
}
.footer-skyline img { display: block; width: auto; height: auto; }
.footer-skyline .sky-tower    { height: clamp(66px, 12vw, 92px); }
.footer-skyline .sky-bridge   { height: clamp(28px, 5vw, 40px); }
.footer-skyline .sky-akarenga { height: clamp(24px, 4.2vw, 34px); }
.footer-skyline .sky-aegis    { height: clamp(28px, 5vw, 40px); }

/* 舞鶴の建物＋打ち上げ花火をフッター右下に配置（建物ベース＋花火レイヤーを重ねる） */
.mz-footer-illust {
  position: absolute;
  right: 0;                      /* 右端ピタッ＝橋が窓の外へ続く感じ */
  bottom: 0;
  height: 90%;
  aspect-ratio: 410 / 260;       /* 建物(下)＋花火(上)の仮想キャンバス。建物は下端49%に収まる */
  opacity: .95;
  pointer-events: none;
  z-index: 1;
}
.mz-fi-base { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; display: block; }  /* 建物：下端・全幅 */
/* 花火レイヤー：外側spanで位置決め（中心基準）、内側imgでバーストアニメ */
.mz-fi-fw { position: absolute; transform: translate(-50%, -50%); }
.mz-fi-fw img { display: block; width: 100%; height: auto; transform-origin: center; }
.mz-fi-fw--1 { left: 22.8%; top: 43.8%; width: 28.8%; transform: translate(-50%, calc(-50% + 30px)); } /* 左：柳型 hanabi_03（黄）＋30px下げ */
.mz-fi-fw--2 { left: 48.2%; top: 29%;   width: 23.2%; } /* 中央：菊型 hanabi_02（青） */
.mz-fi-fw--3 { left: 69.1%; top: 40.2%; width: 24.4%; transform: translate(-50%, calc(-50% + 50px)); } /* 右：点付き hanabi_01（赤）＋50px下げ */
/* 打ち上げ花火バースト：スクロールで発火（JSが .mz-anim→.is-inview）。左→中央でスタッガー */
.mz-fi-fw.mz-anim img { transform: scale(0); opacity: 0; }
.mz-fi-fw.mz-anim.is-inview img { animation: mz-hanabi-burst .9s both cubic-bezier(.2,.8,.3,1); }
/* 打ち上げ順＝02(中央)→03(左)→01(右) をトトトン（速い3連・間隔0.11s） */
.mz-fi-fw--2.mz-anim.is-inview img { animation-delay: .05s; }
.mz-fi-fw--1.mz-anim.is-inview img { animation-delay: .16s; }
.mz-fi-fw--3.mz-anim.is-inview img { animation-delay: .27s; }
/* 花火バーストのキーフレーム（フッターは全ページに出るのでstyle.css側にも定義） */
@keyframes mz-hanabi-burst {
  0%   { transform: scale(0); opacity: 0; filter: drop-shadow(0 0 0 rgba(255,220,140,0)); }
  45%  { transform: scale(1.45); opacity: 1; filter: drop-shadow(0 0 16px rgba(255,224,150,.95)); }
  68%  { transform: scale(.88); filter: drop-shadow(0 0 8px rgba(244,178,74,.6)); }
  100% { transform: scale(1); opacity: 1; filter: drop-shadow(0 0 4px rgba(244,178,74,.3)); }
}
/* コピーライト等のテキストをイラストより前面に */
.footer .container { position: relative; z-index: 2; }
/* スマホではイラストを薄く（背景化して暗く） */
@media (max-width: 767px) {
  .mz-footer-illust { opacity: .22; }
}

/* ============================================================
   個別フォント調整：指定箇所を明朝(Noto Serif JP)に／フッターメニューは白文字
   ============================================================ */
.header-nav a,
.footer-nav a,
.mz-cs__date,
.mz-tk__price,
.mz-greeting__coda,
.mz-access__place {
  font-family: var(--mz-serif) !important;
}
.mz-tk__unit { font-family: var(--mz-sans) !important; }   /* 単位（お一人様等）はゴシックのまま */
.footer-nav a { color: #fff !important; }

/* スマホ：ヘッダーの左右パディングをタイトに */
@media (max-width: 767px) {
  .header { padding: 0 12px !important; }
}

/* スマホ：フッターのロゴ・情報・ナビを中央寄せ */
@media (max-width: 767px) {
  .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 24px; }
  .footer-logo img { margin: 0 auto; }
  .footer-nav { justify-content: center; }
}

/* ============================================================
   フッター：真っ黒背景 ＋ 舞鶴スカイライン（赤レンガ/五老タワー/クレインブリッジ/イージス艦）
   ============================================================ */
.footer { background: #000 !important; animation: none !important; position: relative; z-index: 2; }
.footer-skyline {
  display: flex; align-items: flex-end; justify-content: center;
  gap: clamp(16px, 4vw, 46px);
  flex-wrap: wrap;
  padding: 0 20px clamp(22px, 4vw, 38px);
  position: relative; z-index: 1;
  opacity: .92;
}
.footer-skyline img { display: block; width: auto; height: auto; }
.footer-skyline .sky-tower    { height: clamp(70px, 12vw, 96px); }
.footer-skyline .sky-bridge   { height: clamp(30px, 5vw, 44px); }
.footer-skyline .sky-akarenga { height: clamp(26px, 4.4vw, 38px); }
.footer-skyline .sky-aegis    { height: clamp(30px, 5vw, 44px); }

/* スマホのみ改行（404本文・フッター事業者名など）。PC/タブレットでは改行を無効化 */
.sp-br { display: none; }
@media (max-width: 767px) {
  .sp-br { display: inline; }
}
