/* ==============================================
   カジュアルデザインリニューアル - 柊オフィス
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=BIZ+UDGothic:wght@400;700&display=swap');

/* --- カラーパレット --- */
:root {
  /* プライマリカラー */
  --primary-color: rgb(0, 147, 98);
  --primary-dark: rgb(0, 118, 78);
  --primary-light: #e8f5f1;
  --primary-rgb: 0, 147, 98;

  /* アクセントカラー */
  --accent-color: #ff6b9d;
  --accent-rgb: 255, 107, 157;

  /* テキストカラー */
  --text-primary: #2d3436;
  --text-secondary: #636e72;

  /* 背景カラー */
  --bg-white: #ffffff;
  --bg-cream: #fffef9;
  --bg-accent: #fff9f0;
  --bg-header: rgba(255, 255, 255, 0.98);

  /* ヒーローセクション背景 */
  --hero-bg: var(--primary-light);
  --hero-decoration-1: rgba(255, 107, 157, 0.15);
  --hero-decoration-2: rgba(0, 200, 150, 0.1);

  /* ボーダー・シャドウ */
  --border-color: #dfe6e9;
  --shadow-sm: 0 2px 12px rgba(0, 200, 150, 0.15);
  --shadow-md: 0 8px 24px rgba(0, 200, 150, 0.2);
  --header-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);

  /* カードホバー */
  --card-hover-bg: #f8fffc;
  --card-hover-shadow: 0 12px 32px rgba(0, 147, 98, 0.25);
}

/* --- Altテーマ（落ち着いたコーポレート調） --- */
[data-theme="alt"] {
  /* プライマリカラー：落ち着いたティールグリーン */
  --primary-color: #3d7a6b;
  --primary-dark: #2f6356;
  --primary-light: #f0f5f4;
  --primary-rgb: 61, 122, 107;

  /* アクセントカラー：グレイッシュなトーン */
  --accent-color: #8fa3a0;
  --accent-rgb: 143, 163, 160;

  /* テキストカラー（コントラスト比4.5:1以上確保） */
  --text-primary: #2b3635;
  --text-secondary: #5c6665;

  /* 背景カラー */
  --bg-cream: #fafbfb;
  --bg-accent: #f5f7f6;
  --bg-header: rgba(250, 251, 251, 0.98);

  /* ヒーローセクション：ほぼ単色に見える微細なグラデーション */
  --hero-bg: linear-gradient(180deg, #f0f5f4 0%, #f2f6f5 100%);
  --hero-decoration-1: rgba(61, 122, 107, 0.03);
  --hero-decoration-2: rgba(61, 122, 107, 0.02);

  /* ボーダー・シャドウ */
  --border-color: #dce2e1;
  --shadow-sm: 0 2px 8px rgba(43, 54, 53, 0.06);
  --shadow-md: 0 4px 16px rgba(43, 54, 53, 0.08);
  --header-shadow: 0 1px 8px rgba(43, 54, 53, 0.04);

  /* カードホバー */
  --card-hover-bg: #f8fafa;
  --card-hover-shadow: 0 6px 20px rgba(43, 54, 53, 0.1);
}

/* Altテーマ: プライマリボタン ホバーエフェクト */
[data-theme="alt"] .btn:not(.btn-outline) {
  background: #3d7a6b;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

[data-theme="alt"] .btn:not(.btn-outline):hover {
  background: #2f6356;
  box-shadow: 0 4px 14px rgba(43, 54, 53, 0.15);
  transform: translateY(-1px);
}

[data-theme="alt"] .btn:not(.btn-outline)::before {
  display: none;
}

/* --- リセット & ベース --- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  color: var(--text-primary);
  background-color: var(--bg-cream);
  font-family: "BIZ UDGothic", -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic",
               "Meiryo", sans-serif;
  line-height: 1.8;
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1;
}

.sp-only {
  display: none;
}

/* --- コンテナ --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* --- ヘッダー --- */
header {
  background-color: var(--bg-header);
  border-bottom: 3px solid var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  box-shadow: var(--header-shadow);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  transition: padding 0.3s ease;
}

.logo h1 {
  margin: 0;
  padding: 0;
  font-size: 2.28rem;
  font-weight: 700;
  font-family: "BIZ UDGothic", sans-serif;
  color: var(--primary-color);
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}

.logo a {
  text-decoration: none;
  display: inline-block;
}

.logo a:hover h1 {
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* --- ナビゲーション --- */
.global-nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.global-nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 10px 18px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-radius: 20px;
}

.global-nav a:hover {
  color: var(--primary-color);
  background-color: var(--primary-light);
  transform: translateY(-3px);
}

/* --- ヒーローセクション --- */
.hero {
  padding: 100px 0;
  background: var(--hero-bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--hero-decoration-1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--hero-decoration-2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.main-copy {
  font-size: 2.08rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 24px 0;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}

.sub-copy {
  font-size: 1.15rem;
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0;
}

/* --- セクション共通 --- */
section {
  padding: 80px 0;
}

.section-title {
  font-size: 1.408rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px 0;
  letter-spacing: 0.05em;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 5px;
  background: var(--primary-color);
  border-radius: 3px;
}

/* 各ページのタイトル下のバーを削除 */
main .container .section-title::after {
  display: none;
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 24px 0 48px 0;
  letter-spacing: 0.15em;
  font-weight: 700;
  text-transform: uppercase;
}

.section-description {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

/* --- お知らせセクション --- */
.news-section {
  background-color: var(--primary-light);
  padding: 64px 0;
}

.news-heading {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.2em;
  margin: 0 0 16px 0;
  text-transform: uppercase;
  opacity: 0.7;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-item {
  border-bottom: 1px solid var(--border-color);
}

.news-item:last-child {
  border-bottom: none;
}

.news-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 12px;
  text-decoration: none;
  min-height: 64px;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  border-radius: 8px;
  margin: 0 -12px;
}

.news-link:hover {
  background-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.news-link:hover .news-title {
  color: var(--text-primary);
}

.news-link:active {
  transform: translateY(0) scale(0.995);
}

.news-date {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  min-width: 85px;
  opacity: 0.6;
}

.news-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  background-color: transparent;
  border: 1px solid rgba(61, 122, 107, 0.35);
  color: var(--text-secondary);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: 12px;
  flex-shrink: 0;
}

.news-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.6;
  transition: color 0.3s ease;
}

/* お知らせセクション：レスポンシブ */
@media screen and (max-width: 768px) {
  .news-section {
    padding: 40px 0;
  }

  .news-link {
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 14px 12px;
    min-height: 60px;
  }

  .news-date {
    font-size: 0.7rem;
    min-width: auto;
  }

  .news-label {
    padding: 3px 10px;
    font-size: 0.6rem;
  }

  .news-title {
    width: 100%;
    order: 3;
    font-size: 0.8rem;
  }
}

/* --- カード --- */
.card {
  background: linear-gradient(135deg, #ffffff 0%, rgba(0, 147, 98, 0.03) 100%);
  border: 3px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 32px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-8px) rotate(-1deg);
}

.card:hover::before {
  opacity: 1;
}

/* カード - モバイル対応 */
@media (hover: none) and (pointer: coarse) {
  .card {
    transition: all 0.15s ease;
  }

  .card:hover {
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
    transform: none;
  }

  .card:hover::before {
    opacity: 0;
  }
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px 0;
}

.card-description {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-secondary);
  margin: 0;
}

/* --- リスト --- */
.list-item {
  padding: 24px 0;
  border-bottom: 2px dashed var(--border-color);
}

.list-item:last-child {
  border-bottom: none;
}

.list-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

.list-description {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-secondary);
  margin: 0;
}

/* --- ボタン --- */
.btn {
  display: inline-block;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--bg-white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-4px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 3px solid var(--primary-color);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--bg-white);
}

/* --- フォーム --- */
.form-group {
  margin-bottom: 32px;
}

.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  border: 3px solid var(--border-color);
  border-radius: 16px;
  background-color: var(--bg-white);
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.form-textarea {
  min-height: 200px;
  resize: vertical;
}

/* --- テーブル --- */
.table-wrapper {
  overflow-x: auto;
  margin: 32px 0;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-white);
}

th {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--bg-white);
  font-weight: 700;
  padding: 20px;
  text-align: left;
  border-bottom: none;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

td {
  padding: 20px;
  border-bottom: 2px solid var(--bg-cream);
  color: var(--text-secondary);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover {
  background-color: var(--primary-light);
}

/* --- フッター --- */
footer {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-accent) 100%);
  padding: 48px 0;
  text-align: center;
  border-top: 3px solid var(--primary-color);
  margin-top: 80px;
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* --- ローディング画面 --- */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-cream) 0%, var(--primary-light) 50%, var(--bg-accent) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeOutContainer 0.6s ease 2.5s forwards;
}

.loading-logo {
  width: 75px;
  height: auto;
  opacity: 0;
  animation: bounceInOut 2s ease 0.5s forwards;
}

@keyframes bounceInOut {
  0% { opacity: 0; transform: scale(0.3) rotate(-10deg); }
  40% { opacity: 1; transform: scale(1.1) rotate(5deg); }
  60% { opacity: 1; transform: scale(0.95) rotate(-3deg); }
  80% { opacity: 1; transform: scale(1.02) rotate(2deg); }
  100% { opacity: 0; transform: scale(0.8) rotate(0deg); }
}

@keyframes fadeOutContainer {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* --- デコレーション要素 --- */
.decoration-dots {
  position: absolute;
  width: 100px;
  height: 100px;
  background-image: radial-gradient(circle, var(--primary-color) 2px, transparent 2px);
  background-size: 20px 20px;
  opacity: 0.2;
  z-index: 0;
}

/* --- ハンバーガーメニュー --- */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 200;
  position: relative;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.hamburger-line:nth-child(1) {
  transform: translateY(-7px);
}

.hamburger-line:nth-child(3) {
  transform: translateY(7px);
}

/* ハンバーガーアイコン：開いた状態 */
.hamburger-btn.is-active .hamburger-line:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

.hamburger-btn.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-btn.is-active .hamburger-line:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

/* モバイルナビゲーションオーバーレイ */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(43, 54, 53, 0.5);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              visibility 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* --- レスポンシブデザイン (タブレット) --- */
@media screen and (max-width: 768px) {
  /* ハンバーガーボタン表示 */
  .hamburger-btn {
    display: flex;
  }

  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  /* モバイルナビゲーション */
  .global-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--bg-cream);
    z-index: 150;
    padding: 100px 24px 40px;
    box-shadow: -4px 0 24px rgba(43, 54, 53, 0.15);
    overflow-y: auto;
    transition: right 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  }

  .global-nav.is-open {
    right: 0;
  }

  .global-nav ul {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .global-nav li {
    width: 100%;
  }

  /* モバイルメニューボタン（カプセル型） */
  .global-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 14px 24px;
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-align: center;
    text-decoration: none;
    border-radius: 26px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 2px 8px rgba(61, 122, 107, 0.25);
  }

  .global-nav a:hover,
  .global-nav a:focus {
    background-color: #2f6356;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(61, 122, 107, 0.35);
  }

  /* タップ時のアクティブ状態（沈み込み演出） */
  .global-nav a:active {
    background-color: #2f6356;
    color: #ffffff;
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(61, 122, 107, 0.2);
    transition: all 0.1s cubic-bezier(0.25, 1, 0.5, 1);
  }

  /* 現在のページ表示（モバイル） */
  .global-nav [aria-current="page"] {
    background-color: var(--primary-dark);
    color: #ffffff;
  }

  /* オーバーレイ表示 */
  .nav-overlay {
    display: block;
  }

  /* body固定（メニュー展開時） */
  body.nav-open {
    overflow: hidden;
  }

  /* メニューアイテムのスタガーアニメーション */
  .global-nav li {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  }

  .global-nav.is-open li {
    opacity: 1;
    transform: translateX(0);
  }

  .global-nav.is-open li:nth-child(1) { transition-delay: 0.1s; }
  .global-nav.is-open li:nth-child(2) { transition-delay: 0.15s; }
  .global-nav.is-open li:nth-child(3) { transition-delay: 0.2s; }
  .global-nav.is-open li:nth-child(4) { transition-delay: 0.25s; }
  .global-nav.is-open li:nth-child(5) { transition-delay: 0.3s; }
  .global-nav.is-open li:nth-child(6) { transition-delay: 0.35s; }

  .container {
    padding: 0 24px;
  }

  .hero {
    padding: 70px 0;
  }

  .main-copy {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  section {
    padding: 60px 0;
  }

  .card {
    padding: 32px 24px;
  }
}

/* --- レスポンシブデザイン (スマートフォン) --- */
@media screen and (max-width: 480px) {
  .sp-only {
    display: inline !important;
  }

  .container {
    padding: 0 20px;
  }

  .header-inner {
    padding: 12px 0;
  }

  .logo h1 {
    font-size: 1.4rem;
  }

  .hero {
    padding: 50px 0;
  }

  .main-copy {
    font-size: 1.7rem;
    margin-bottom: 20px;
  }

  .sub-copy {
    font-size: 1rem;
  }

  section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }

  .section-subtitle {
    font-size: 0.8rem;
    margin-bottom: 32px;
  }

  .card {
    padding: 24px 20px;
    margin-bottom: 24px;
    border-radius: 16px;
  }

  .card-title {
    font-size: 1.3rem;
  }

  .btn {
    padding: 14px 32px;
    font-size: 0.95rem;
    width: 100%;
    text-align: center;
  }

  footer {
    padding: 32px 0;
    margin-top: 60px;
  }
}

/* --- アクセシビリティ --- */

/* スキップリンク */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: var(--bg-white);
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
  z-index: 10000;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 16px;
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

/* フォーカススタイル */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
[tabindex]:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* 視覚的に非表示だがスクリーンリーダーには読み上げ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 現在のページ表示 */
[aria-current="page"] {
  font-weight: 700;
  color: var(--primary-color);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- ページ固有スタイル --- */

/* Contact Page */
.contact-intro {
  background-color: var(--primary-light);
  padding: 32px;
  border-radius: 12px;
  margin-bottom: 48px;
}

.contact-intro p {
  margin: 0 0 16px 0;
  line-height: 1.8;
  color: var(--text-primary);
}

.contact-intro p:last-child {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* お問い合わせボタンエリア */
.contact-button-area {
  text-align: center;
  padding: 48px 32px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

/* お問い合わせボタン - domain のカードボタンと統一 */
[data-theme="alt"] .contact-button-area .btn,
.contact-button-area .btn {
  background: rgba(61, 122, 107, 0.08);
  border: 1px solid rgba(61, 122, 107, 0.25);
  color: #3d7a6b;
  box-shadow: none;
}

[data-theme="alt"] .contact-button-area .btn:hover,
.contact-button-area .btn:hover {
  background: rgba(61, 122, 107, 0.15);
  border-color: rgba(61, 122, 107, 0.4);
  color: #2f6356;
  transform: translateY(-1px);
}

.contact-button-area .btn::before {
  display: none;
}

.contact-notice {
  margin: 24px auto 0;
  max-width: 540px;
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* Security Page */
.security-intro {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 48px;
  line-height: 1.8;
}

/* Policy ページ内ナビゲーション */
.policy-nav {
  background-color: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 24px 32px;
  margin-bottom: 48px;
}

.policy-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  list-style: none;
  margin: 0;
  padding: 0 0 0 8px;
  justify-content: flex-start;
}

.policy-nav a {
  display: inline-block;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 24px;
  border: 2px solid var(--border-color);
  background-color: var(--bg-cream);
  transition: all 0.3s ease;
}

.policy-nav a:hover {
  color: var(--bg-white);
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.policy-section {
  margin-bottom: 64px;
  scroll-margin-top: 120px;
}

.policy-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 24px 0;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-color);
}

.policy-content p {
  line-height: 2;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.policy-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.contact-box {
  background-color: var(--bg-accent);
  padding: 32px;
  border-radius: 12px;
  margin: 32px 0;
}

.contact-box a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.contact-box a:hover {
  text-decoration: underline;
}

.signature {
  margin-top: 80px;
  text-align: right;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Domain Page */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 48px;
}

.domain-icon {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 20px 0;
  letter-spacing: 0.08em;
}

.domain-label {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 20px 0;
}

/* ==============================================
   カードリンク（Aタグ・ラップ方式）
   ============================================== */

/* カードリンク - Aタグでカード全体を囲む */
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* カードリンク内のカード */
.card-link .card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 「詳細を見る →」ゴーストボタン（枠線のみ） */
.card-more {
  display: inline-block;
  margin-top: 32px;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--primary-color);
  border-radius: 6px;
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* PC: ホバー時 - 垂直リフト */
.card-link:hover .card {
  transform: translateY(-4px);
  border-color: var(--primary-color);
  box-shadow: 0 12px 32px rgba(43, 54, 53, 0.1);
}

/* ホバー時：ボタンも連動して変化 */
.card-link:hover .card-more {
  background: rgba(61, 122, 107, 0.12);
  border-color: var(--primary-dark);
  color: var(--primary-dark);
}

/* PC/共通: アクティブ時 - 沈み込み */
.card-link:active .card {
  transform: scale(0.98);
  box-shadow: 0 4px 12px rgba(43, 54, 53, 0.06);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

/* モバイル: タッチデバイス対応 */
@media (hover: none) and (pointer: coarse) {
  .card-link .card {
    transition: transform 0.15s ease,
                box-shadow 0.15s ease,
                border-color 0.15s ease,
                background-color 0.15s ease;
  }

  .card-more {
    transition: all 0.15s ease;
  }

  /* スマホではhover無効化 */
  .card-link:hover .card {
    transform: none;
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
  }

  .card-link:hover .card-more {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
  }

  /* タップ時のフィードバック */
  .card-link:active .card {
    transform: scale(0.98);
    border-color: var(--primary-color);
    background-color: var(--card-hover-bg);
    box-shadow: 0 2px 8px rgba(43, 54, 53, 0.08);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
  }

  /* タップ時：ボタンも連動 */
  .card-link:active .card-more {
    background: rgba(61, 122, 107, 0.15);
    border-color: var(--primary-dark);
    color: var(--primary-dark);
  }
}

/* Domain Detail Pages (HR/PR) */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 48px;
}

.detail-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 24px 0;
  letter-spacing: 0.1em;
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 1rem;
}

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

.page-back {
  margin-top: 64px;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .domain-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .policy-nav {
    padding: 20px 24px;
  }

  .policy-nav ul {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .policy-nav a {
    display: block;
    text-align: center;
    padding: 14px 20px;
  }

  .policy-section {
    scroll-margin-top: 180px;
  }
}

/* --- 印刷用スタイル --- */
@media print {
  header {
    position: static;
    border-bottom: 2px solid var(--text-primary);
  }

  .global-nav {
    display: none;
  }

  #loading {
    display: none;
  }

  .hero {
    padding: 40px 0;
    background: none;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  footer {
    margin-top: 40px;
  }
}
