/*
Theme Name: Kirari
Theme URI: https://www.nagatokirari.org/
Author: Kirari Dev
Description: NPO法人きらり 公式テーマ - モダン・コーポレートUI
Version: 1.0.0
Text Domain: kirari
*/

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */
:root {
  /* Primary Colors */
  --primary-color: #2e8b57;
  --primary-dark: #236b43;
  --primary-light: #e8f5ee;

  /* Secondary Colors */
  --secondary-color: #f5a623;
  --secondary-dark: #d4901a;
  --secondary-light: #fef5e5;

  /* Accent */
  --accent-color: #e84393;
  --accent-light: #fde8f2;

  /* Text */
  --text-color: #333333;
  --text-light: #666666;
  --text-muted: #999999;

  /* Background */
  --bg-color: #ffffff;
  --bg-light: #f8f9fa;
  --bg-gray: #f0f2f5;

  /* Border */
  --border-color: #e0e0e0;
  --border-light: #f0f0f0;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);

  /* Spacing */
  --section-padding: 80px;
  --container-width: 1200px;
  --header-height: 80px;

  /* Font - 福祉らしい柔らかい丸ゴシック */
  --font-primary: "Zen Maru Gothic", "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --font-heading: "M PLUS Rounded 1c", "Zen Maru Gothic", sans-serif;

  /* Transition */
  --transition: 0.3s ease;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.9;
  overflow-x: hidden;
  font-weight: 400;
  letter-spacing: 0.02em;
  font-size: 1rem;
}

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

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

a:hover {
  color: var(--primary-dark);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-color);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Utility
   ========================================================================== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

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

.section--light {
  background-color: var(--bg-light);
}

/* ==========================================================================
   Background Patterns - 汎用背景シリーズ
   ========================================================================== */
.z-10{z-index: 10!important;}
.z-20{z-index: 20!important;}
.z-30{z-index: 30!important;}

   .bg001 {
  position: relative;
}
.bg001::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/images/icon001.svg');
  background-size: 100px;
  background-repeat: repeat;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}
.bg001 > * { position: relative; z-index: 1; }

.bg002 {
  position: relative;
}
.bg002::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/images/icon002.svg');
  background-size: 150px;
  background-repeat: repeat;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}
.bg002 > * { position: relative; z-index: 1; }

.bg003 {
  position: relative;
}
.bg003::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/images/icon003.svg');
  background-size: 120px;
  background-repeat: repeat;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}
.bg003 > * { position: relative; z-index: 1; }

.bg004 {
  position: relative;
}
.bg004::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/images/icon004.svg');
  background-size: 180px;
  background-repeat: repeat;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}
.bg004 > * { position: relative; z-index: 1; }

.bg005 {
  position: relative;
}
.bg005::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/images/icon005.svg');
  background-size: 200px;
  background-repeat: repeat;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}
.bg005 > * { position: relative; z-index: 1; }

/* 旧クラスの互換性 */
.section--pattern {
  position: relative;
}
.section--pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/images/icon001.svg');
  background-size: 100px;
  background-repeat: repeat;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}
.section--pattern > * { position: relative; z-index: 1; }

/* セクション見出し - 英語を大きく表示 */
.section__header {
  text-align: center;
  margin-bottom: 3em;
  position: relative;
}

.section__title-en {
  font-family: "Poppins", "M PLUS Rounded 1c", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 0.08em;
  line-height: 1.2;
  margin-bottom: 0.2em;
  opacity: 0.9;
}



.section__title {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 0;
  position: relative;
  padding-bottom: 0;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-color);
}

.section__title::after {
  display: none;
}

.section__title::before {
  display: none;
}

/* 下線デコレーション */
.section__header::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
  margin: 1.5em auto 0;
}

.section__subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 3em;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  letter-spacing: 0.08em;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #3da066 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(46, 139, 87, 0.3);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #3da066 0%, var(--primary-color) 100%);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(46, 139, 87, 0.4);
}

.btn--outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn--outline:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
}

.btn--secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #ffb84d 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
}

.btn--secondary:hover {
  background: linear-gradient(135deg, #ffb84d 0%, var(--secondary-color) 100%);
  color: #fff;
  transform: translateY(-3px);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: transparent;
  backdrop-filter: none;
  box-shadow: none;
  height: var(--header-height);
  transition: background-color 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease, height 0.3s ease;
}

.site-header.scrolled {
  height: 64px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Header text color for transparent state */
.site-header .header__logo .logo-text {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: color 0.5s ease, text-shadow 0.5s ease;
}

.site-header.scrolled .header__logo .logo-text {
  color: var(--primary-color);
  text-shadow: none;
}

.site-header .header__nav .nav-list > li > a {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: color 0.5s ease, text-shadow 0.5s ease, background-color 0.3s ease;
}

.site-header .header__nav .nav-list > li > a::before {
  opacity: 0.8;
}

.site-header.scrolled .header__nav .nav-list > li > a {
  color: var(--text-color);
  text-shadow: none;
}

.site-header.scrolled .header__nav .nav-list > li > a::before {
  opacity: 0.6;
}

.site-header .hamburger__line {
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

.site-header.scrolled .hamburger__line {
  background-color: var(--text-color);
  box-shadow: none;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.header__logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

.header__logo img {
  height: 48px;
  width: auto;
}

.site-header.scrolled .header__logo img {
  height: 36px;
}

.header__logo .logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-color);
  white-space: nowrap;
}

/* Desktop Nav */
.header__nav {
  display: none;
}

@media (min-width: 1024px) {
  .header__nav {
    display: flex;
  }
}

.header__nav .nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header__nav .nav-list > li {
  position: relative;
}

.header__nav .nav-list > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-color);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

/* ナビゲーションアイコン - Google Material Icons */
.header__nav .nav-list > li > a::before {
  content: "arrow_right";
  font-family: "Material Icons Round";
  font-size: 18px;
  opacity: 0.6;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.header__nav .nav-list > li > a:hover::before {
  opacity: 1;
  transform: translateX(2px);
}

.header__nav .nav-list > li > a:hover,
.header__nav .nav-list > li.current-menu-item > a {
  color: var(--primary-color);
  background-color: var(--primary-light);
}

/* Dropdown */
.header__nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 100;
}

.header__nav .nav-list > li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header__nav .sub-menu li a {
  display: block;
  padding: 10px 20px;
  font-size: 0.8125rem;
  color: var(--text-color);
  transition: all var(--transition);
}

.header__nav .sub-menu li a:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }
}

.hamburger__line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-color);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger__line + .hamburger__line {
  margin-top: 6px;
}

.hamburger.is-active .hamburger__line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.is-active .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active .hamburger__line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav (Off-canvas) */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: #fff;
  z-index: 1050;
  transition: right var(--transition);
  overflow-y: auto;
  padding: 100px 24px 40px;
  box-shadow: var(--shadow-lg);
}

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

.mobile-nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.mobile-nav__overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.mobile-nav .nav-list > li {
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav .nav-list > li > a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-color);
}

/* モバイルナビアイコン - Google Material Icons */
.mobile-nav .nav-list > li > a::before {
  content: "arrow_right";
  font-family: "Material Icons Round";
  font-size: 20px;
  opacity: 0.5;
}

.mobile-nav .sub-menu {
  padding-left: 16px;
  padding-bottom: 8px;
}

.mobile-nav .sub-menu li a {
  display: block;
  padding: 8px 0;
  font-size: 0.8125rem;
  color: var(--text-light);
}

/* ==========================================================================
   Hero Section with Slider
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  overflow: hidden;
  background-color: var(--bg-gray);
}

/* Hero Slider */
.hero__slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero__slide.is-active {
  opacity: 1;
}

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

/* Subtle zoom animation for active slide */
.hero__slide.is-active img {
  animation: heroZoom 8s ease-out forwards;
}

@keyframes heroZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

/* Slider Indicators */
.hero__indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 12px;
}

.hero__indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.4s ease;
}

.hero__indicator:hover {
  background-color: rgba(255, 255, 255, 0.7);
}

.hero__indicator.is-active {
  background-color: #fff;
  transform: scale(1.2);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.1) 40%,
    rgba(0, 0, 0, 0.1) 60%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  padding: 40px 20px;
  max-width: 800px;
}

.hero__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  line-height: 1.4;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease 0.3s forwards;
  letter-spacing: 0.1em;
}

.hero__subtitle {
  font-size: 1.0625rem;
  line-height: 2;
  opacity: 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  animation: fadeInUp 1s ease 0.6s forwards;
  letter-spacing: 0.05em;
  font-weight: 400;
}

.hero__cta {
  margin-top: 2em;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease 0.9s forwards;
}

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

.hero__cta .btn {
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--primary-color);
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.hero__cta .btn:hover {
  background-color: var(--secondary-color);
  color: #fff;
}

@media (min-width: 768px) {
  .hero {
    min-height: 100vh;
  }
  .hero__title {
    font-size: 3.5rem;
  }
  .hero__subtitle {
    font-size: 1.125rem;
  }
}

/* ==========================================================================
   News Section
   ========================================================================== */
.news-list {
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: flex-start;
  transition: background var(--transition);
}

.news-item:first-child {
  padding-top: 0;
}

.news-item:hover {
  background-color: var(--bg-light);
}

.news-item__date {
  flex-shrink: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  min-width: 100px;
  padding-top: 2px;
  margin-right: 12px;
}

.news-item__category {
  flex-shrink: 0;
  display: inline-block;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background-color: #5a9bd5;
  min-width: 80px;
  text-align: center;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* カテゴリ別カラー */
/* お知らせ - 青 */
.news-item__category--oshirase,
.news-item__category--default {
  background-color: #4a90d9;
}

/* 勉強会 - 黄色/オレンジ */
.news-item__category--benkyokai {
  background-color: #f5a623;
}

/* セミナー - 赤 */
.news-item__category--seminar {
  background-color: #e74c3c;
}

/* イベント - 緑 (追加カテゴリ用) */
.news-item__category--event {
  background-color: #27ae60;
}

/* 重要 - ピンク (追加カテゴリ用) */
.news-item__category--important {
  background-color: #e84393;
}

.news-item__title {
  flex: 1;
}

.news-item__title a {
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 500;
}

.news-item__title a:hover {
  color: var(--primary-color);
}

.news__more {
  text-align: center;
  margin-top: 2.5em;
}

@media (max-width: 599px) {
  .news-item {
    flex-wrap: wrap;
    gap: 6px;
  }
  .news-item__meta {
    display: flex;
    gap: 16px;
    align-items: center;
    width: 100%;
  }
  .news-item__date {
    margin-right: 0;
  }
  .news-item__title {
    width: 100%;
  }
}

/* ==========================================================================
   Philosophy Section
   ========================================================================== */
.philosophy-section {
  background: linear-gradient(135deg, #fef9e7 0%, #fff8e1 50%, #fef9e7 100%);
  position: relative;
}

.philosophy-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('assets/images/icon004.svg');
  background-repeat: repeat;
  background-size: 200px;
  opacity: 0.06;
  pointer-events: none;
}

.philosophy-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.philosophy-content__heading {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5em;
  line-height: 1.6;
}

.philosophy-content__text {
  font-size: 1.1rem;
  line-height: 2.2;
  color: var(--text-color);
  margin-bottom: 1.5em;
}

.philosophy-content__signature {
  font-size: 1rem;
  color: var(--text-light);
  margin-top: 2em;
  margin-bottom: 2em;
  line-height: 1.8;
}

.philosophy-content__cta {
  margin-top: 2.5em;
}

@media (max-width: 768px) {
  .philosophy-content__heading {
    font-size: 1.3rem;
  }
  .philosophy-content__text {
    font-size: 1rem;
    text-align: left;
  }
  .philosophy-content__text br {
    display: none;
  }
}

/* ==========================================================================
   Service Section - Large Layout
   ========================================================================== */
.service-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 95%;
  width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 用途ごとの背景色 */
.service-section--houday {
  background: linear-gradient(135deg, #e8f5ee 0%, #d4edda 50%, #e8f5ee 100%);
}

.service-section--fukushi {
  background: linear-gradient(135deg, #fef9e7 0%, #fef5e5 50%, #fef9e7 100%);
}

.service-section--ichiji {
  background: linear-gradient(135deg, #e8f4fc 0%, #d6eaf8 50%, #e8f4fc 100%);
}

.service-section--shuro {
  background: linear-gradient(135deg, #fde8f2 0%, #fadce8 50%, #fde8f2 100%);
}

.service-section--horse {
  background: linear-gradient(135deg, #f3e8fd 0%, #e8daef 50%, #f3e8fd 100%);
}

/* 偶数番目は左右反転 */
.service-block--reverse {
  direction: rtl;
}

.service-block--reverse > * {
  direction: ltr;
}

/* 画像エリア */
.service-block__image {
  position: relative;
}

.service-block__image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.service-block__image-wrapper img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.service-block:hover .service-block__image-wrapper img {
  transform: scale(1.03);
}

/* 画像下の色付きシャドウ */
.service-block__image-wrapper::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 20px;
  right: 20px;
  height: 40px;
  border-radius: 20px;
  z-index: -1;
  filter: blur(20px);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.service-block:hover .service-block__image-wrapper::after {
  opacity: 0.8;
}

/* サービス種別ごとの影の色 */
.service-block--houday .service-block__image-wrapper::after {
  background: var(--primary-color);
}

.service-block--fukushi .service-block__image-wrapper::after {
  background: #f5a623;
}

.service-block--ichiji .service-block__image-wrapper::after {
  background: #4a90d9;
}

.service-block--shuro .service-block__image-wrapper::after {
  background: #e84393;
}

.service-block--horse .service-block__image-wrapper::after {
  background: #8e44ad;
}

/* 縦書きタグ */
.service-block__tag {
  position: absolute;
  top: 20px;
  left: -15px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 16px 10px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.service-block--houday .service-block__tag {
  background: linear-gradient(180deg, var(--primary-color), #3da066);
}

.service-block--fukushi .service-block__tag {
  background: linear-gradient(180deg, #f5a623, #ffb84d);
}

.service-block--ichiji .service-block__tag {
  background: linear-gradient(180deg, #4a90d9, #5fa8f5);
}

.service-block--shuro .service-block__tag {
  background: linear-gradient(180deg, #e84393, #ff6bb3);
}

.service-block--horse .service-block__tag {
  background: linear-gradient(180deg, #8e44ad, #a569bd);
}

/* テキストエリア */
.service-block__content {
  padding: 20px 0;
}

.service-block__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.3em;
  color: var(--text-color);
  line-height: 1.4;
}

.service-block__subtitle {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1.5em;
  font-weight: 500;
}

.service-block__desc {
  font-size: 1rem;
  line-height: 2;
  color: var(--text-color);
  margin-bottom: 2em;
}

/* ==========================================================================
   Button Variations - 汎用ボタン5種
   ========================================================================== */
.btn-service {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  letter-spacing: 0.05em;
}

.btn-service::after {
  content: "arrow_forward";
  font-family: "Material Icons Round";
  font-size: 20px;
  transition: transform 0.3s ease;
}

.btn-service:hover::after {
  transform: translateX(4px);
}

/* ボタン1: グリーン（放課後デイ） */
.btn-service--green {
  background: linear-gradient(135deg, var(--primary-color) 0%, #3da066 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(46, 139, 87, 0.3);
}

.btn-service--green:hover {
  color: #fff;
  box-shadow: 0 6px 25px rgba(46, 139, 87, 0.45);
  transform: translateY(-3px);
}

/* ボタン2: イエロー（福祉サービス） */
.btn-service--yellow {
  background: linear-gradient(135deg, #f5a623 0%, #ffb84d 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(245, 166, 35, 0.3);
}

.btn-service--yellow:hover {
  color: #fff;
  box-shadow: 0 6px 25px rgba(245, 166, 35, 0.45);
  transform: translateY(-3px);
}

/* ボタン3: ブルー（一時支援） */
.btn-service--blue {
  background: linear-gradient(135deg, #4a90d9 0%, #5fa8f5 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(74, 144, 217, 0.3);
}

.btn-service--blue:hover {
  color: #fff;
  box-shadow: 0 6px 25px rgba(74, 144, 217, 0.45);
  transform: translateY(-3px);
}

/* ボタン4: ピンク（就労支援） */
.btn-service--pink {
  background: linear-gradient(135deg, #e84393 0%, #ff6bb3 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(232, 67, 147, 0.3);
}

.btn-service--pink:hover {
  color: #fff;
  box-shadow: 0 6px 25px rgba(232, 67, 147, 0.45);
  transform: translateY(-3px);
}

/* ボタン5: パープル（ホースセラピー） */
.btn-service--purple {
  background: linear-gradient(135deg, #8e44ad 0%, #a569bd 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(142, 68, 173, 0.3);
}

.btn-service--purple:hover {
  color: #fff;
  box-shadow: 0 6px 25px rgba(142, 68, 173, 0.45);
  transform: translateY(-3px);
}

/* レスポンシブ */
@media (max-width: 899px) {
  .service-block {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .service-block--reverse {
    direction: ltr;
  }

  .service-block__tag {
    left: auto;
    right: -10px;
    top: 15px;
  }

  .service-block__title {
    font-size: 1.6rem;
  }
}

/* ==========================================================================
   旧 Service Cards（互換性のため残す）
   ========================================================================== */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(46, 139, 87, 0.08);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(46, 139, 87, 0.15);
  border-color: rgba(46, 139, 87, 0.2);
}

.service-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--bg-gray);
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.service-card:hover .service-card__image img {
  transform: scale(1.05);
}

.service-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 16px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #3da066 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(46, 139, 87, 0.3);
}

.service-card__body {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5em;
  color: var(--text-color);
}

.service-card__desc {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  flex: 1;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-color);
}

.service-card__link::after {
  content: "\2192";
  transition: transform var(--transition);
}

.service-card:hover .service-card__link::after {
  transform: translateX(4px);
}

/* ==========================================================================
   Page Header (Sub pages)
   ========================================================================== */
.page-header {
  background: linear-gradient(135deg, #e8f5ee 0%, #d4edda 50%, #e8f5ee 100%);
  padding: 70px 0 60px;
  margin-top: var(--header-height);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* 柔らかい波形の装飾 */
.page-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath fill='%23ffffff' d='M0,60 C300,120 600,0 900,60 C1050,90 1150,90 1200,60 L1200,120 L0,120 Z'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: cover;
}

.page-header__title {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 0.4em;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.page-header__breadcrumb {
  font-size: 0.8125rem;
  color: var(--text-light);
}

.page-header__breadcrumb a {
  color: var(--primary-color);
}

.page-header__breadcrumb a:hover {
  color: var(--primary-dark);
}

/* ==========================================================================
   Page Content
   ========================================================================== */
.page-content {
  padding: 60px 0;
}

.page-content__inner {
  max-width: 860px;
  margin: 0 auto;
}

.page-content h2 {
  font-size: 1.5rem;
  margin: 2em 0 1em;
  padding: 0.8em 1em;
  background: linear-gradient(90deg, var(--primary-light), transparent);
  border-radius: 8px;
  color: var(--primary-dark);
  position: relative;
  font-weight: 700;
}

.page-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 60%;
  background: var(--primary-color);
  border-radius: 3px;
}

.page-content h3 {
  font-size: 1.25rem;
  margin: 1.5em 0 0.8em;
  padding: 0.5em 0 0.5em 1.2em;
  position: relative;
  color: var(--text-color);
  font-weight: 700;
}

.page-content h3::before {
  content: "◉";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-size: 0.8em;
}

.page-content p {
  margin-bottom: 1.2em;
  line-height: 1.9;
}

.page-content ul,
.page-content ol {
  margin-bottom: 1.2em;
  padding-left: 1.5em;
}

.page-content ul {
  list-style: disc;
}

.page-content ol {
  list-style: decimal;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
}

.page-content table th,
.page-content table td {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  text-align: left;
  font-size: 0.9375rem;
}

.page-content table th {
  background-color: var(--primary-light);
  font-weight: 600;
}

/* ==========================================================================
   CTA Contact Section
   ========================================================================== */
.cta-contact {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

/* Background Image Loop */
.cta-contact__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transform: skewY(-3deg);
  transform-origin: top left;
  overflow: hidden;
}

.cta-contact__bg-track {
  display: flex;
  gap: 10px;
  position: absolute;
  top: -20%;
  left: 0;
  height: 140%;
  animation: bgScroll 60s linear infinite;
}

.cta-contact__bg-track img {
  height: 100%;
  aspect-ratio: 1 / 1;
  width: auto;
  object-fit: cover;
  flex-shrink: 0;
}

@keyframes bgScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Content */
.cta-contact__inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Cards Container */
.cta-contact__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

/* Individual Card */
.cta-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-xl);
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition), box-shadow var(--transition);
}

.cta-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.cta-card__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.cta-card__icon .material-icons-round {
  font-size: 36px;
  color: #fff;
}

.cta-card--phone .cta-card__icon {
  background: linear-gradient(135deg, #2e8b57, #236b43);
}

.cta-card--consultation .cta-card__icon {
  background: linear-gradient(135deg, #f5a623, #d4901a);
}

.cta-card--web .cta-card__icon {
  background: linear-gradient(135deg, #4a90d9, #3a7bc8);
}

.cta-card__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 12px;
}

.cta-card__desc {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}

.cta-card__tel {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
  transition: color var(--transition);
}

.cta-card__tel:hover {
  color: var(--primary-dark);
}

.cta-card__note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cta-card__btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  box-shadow: 0 4px 15px rgba(46, 139, 87, 0.3);
  transition: all var(--transition);
}

.cta-card__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 139, 87, 0.4);
  color: #fff;
}

.cta-card--consultation .cta-card__btn {
  background: linear-gradient(135deg, #f5a623, #d4901a);
  box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
}

.cta-card--consultation .cta-card__btn:hover {
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.4);
}

.cta-card--web .cta-card__btn {
  background: linear-gradient(135deg, #4a90d9, #3a7bc8);
  box-shadow: 0 4px 15px rgba(74, 144, 217, 0.3);
}

.cta-card--web .cta-card__btn:hover {
  box-shadow: 0 6px 20px rgba(74, 144, 217, 0.4);
}

/* Responsive */
@media (max-width: 900px) {
  .cta-contact__cards {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .cta-card {
    padding: 30px 25px;
  }
}

@media (max-width: 599px) {
  .cta-contact {
    padding: 70px 0;
  }

  .cta-card__tel {
    font-size: 1.5rem;
  }

  .cta-card__desc br {
    display: none;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: linear-gradient(180deg, #3d5a6e 0%, #2c3e50 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: 60px 0 0;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .footer__inner {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer__info h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 1em;
}

.footer__info p {
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 0.3em;
}

.footer__info a {
  color: rgba(255, 255, 255, 0.85);
}

.footer__info a:hover {
  color: #fff;
}

.footer__nav h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1em;
  font-weight: 600;
}

.footer__nav ul li {
  margin-bottom: 8px;
}

.footer__nav ul li a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.footer__nav ul li a:hover {
  color: #fff;
}

.footer__bottom {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer__copyright {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Archive (News)
   ========================================================================== */
.archive-news .news-item {
  padding: 24px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  border-bottom: none;
}

.archive-news .news-item:hover {
  box-shadow: var(--shadow-md);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 3em;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-color);
  background: #fff;
  border: 1px solid var(--border-color);
  transition: all var(--transition);
}

.pagination a:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.pagination .current {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* ==========================================================================
   Contact Form 7 Style
   ========================================================================== */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font-primary);
  transition: border-color var(--transition);
}

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

.wpcf7 input[type="submit"] {
  background-color: var(--primary-color);
  color: #fff;
  padding: 14px 40px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.wpcf7 input[type="submit"]:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

/* ==========================================================================
   Responsive helpers
   ========================================================================== */
@media (max-width: 767px) {
  :root {
    --section-padding: 50px;
    --header-height: 64px;
  }

  .section__title {
    font-size: 1.5rem;
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .hero__subtitle {
    font-size: 0.9375rem;
  }

  .service-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .page-header__title {
    font-size: 1.5rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .service-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */

/* Base states - hidden before animation */
.fade-in,
.fade-up,
.fade-left,
.fade-right,
.zoom-in {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up {
  transform: translateY(40px);
}

.fade-left {
  transform: translateX(60px);
}

.fade-right {
  transform: translateX(-60px);
}

.zoom-in {
  transform: scale(0.9);
}

/* Visible state - after animation triggers */
.fade-in.is-visible,
.fade-up.is-visible,
.fade-left.is-visible,
.fade-right.is-visible,
.zoom-in.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger children */
.stagger-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delay variations */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* Duration variations */
.duration-fast { transition-duration: 0.4s; }
.duration-slow { transition-duration: 1.2s; }

/* Service block specific animations */
.service-block__image {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.service-block--reverse .service-block__image {
  transform: translateX(50px);
}

.service-block__image.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.service-block__content {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.service-block__content.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* CTA Card animations */
.cta-card {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.cta-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cta-card:nth-child(1) { transition-delay: 0s; }
.cta-card:nth-child(2) { transition-delay: 0.15s; }
.cta-card:nth-child(3) { transition-delay: 0.3s; }

/* Section header animations */
.section__header {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section__header.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Philosophy content animations */
.philosophy-content {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.philosophy-content.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* News list animation */
.news-list {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.news-list.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero content entrance (initial load) */
.hero__content {
  animation: heroEntrance 1s ease 0.3s both;
}

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

/* Button hover pulse */
.btn,
.btn-service,
.cta-card__btn {
  position: relative;
  overflow: hidden;
}

.btn::after,
.btn-service::after,
.cta-card__btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::after,
.btn-service:hover::after,
.cta-card__btn:hover::after {
  width: 300px;
  height: 300px;
}

/* Image hover zoom */
.service-block__image-wrapper {
  overflow: hidden;
}

.service-block__image-wrapper img {
  transition: transform 0.5s ease;
}

.service-block__image-wrapper:hover img {
  transform: scale(1.05);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .fade-up,
  .fade-left,
  .fade-right,
  .zoom-in,
  .stagger-item,
  .service-block__image,
  .service-block__content,
  .cta-card,
  .section__header,
  .philosophy-content,
  .news-list,
  .hero__content {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}
