@charset "UTF-8";

/* ==========================================================================
   1. 共通・基本設定
   ========================================================================== */
:root {
  --main-color: #003366;
  --accent-color: #0D9ABA;
  --bg-light: #f4f8fa;
  --text-main: #333333;
  --text-muted: #666666;
}

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

body {
  /* モダンなフォント指定 */
  font-family: 'Montserrat', 'Noto Sans JP', "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  line-height: 1.8;
  background-color: #ffffff;
  display: flex;
}

/* フェードインアニメーション */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 画像のダイナミック出現（クリップパス） */
.img-reveal {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}
.is-visible .img-reveal, .img-reveal.is-visible {
  clip-path: inset(0 0 0 0);
}

/* ユーティリティ */
.text-center { text-align: center; }
.text-white { color: #ffffff !important; }

/* ==========================================================================
   2. サイドバー (PC版)
   ========================================================================== */
.sidebar {
  width: 280px;
  height: 100vh;
  background-color: var(--main-color);
  color: #fff;
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  padding: 50px 30px;
  z-index: 1000;
  box-shadow: 4px 0 24px rgba(0,0,0,0.15);
}

.logo .logo-title {
  font-size: 26px;
  font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
  font-weight: 800;
  letter-spacing: 2px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 15px;
  margin-bottom: 8px;
  color: #fff;
}

.logo p {
  font-size: 10.5px;
  margin-bottom: 60px;
  opacity: 0.8;
  line-height: 1.5;
}

.nav-menu { list-style: none; }
.nav-menu li { margin-bottom: 12px; }

.nav-menu a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
  padding: 12px 15px;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.nav-menu a:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  padding-left: 20px;
}
.nav-menu li a.active {
  background-color: rgba(255, 255, 255, 0.05); 
  color: #ffffff;
  font-weight: 700;
  box-shadow: none;
  padding-left: 25px; 
}

.nav-menu li a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%; 
  background-color: var(--accent-color);
  border-radius: 0 2px 2px 0;
}

.nav-menu a:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  padding-left: 20px;
}

.menu-toggle { display: none; }

/* ==========================================================================
   3. メインコンテンツ & ヒーロー
   ========================================================================== */
.content {
  margin-left: 280px;
  flex: 1;
  width: calc(100% - 280px);
}

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--main-color);
}

.slider, .slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out, transform 8s ease-out;
  filter: brightness(0.5);
  transform: scale(1.05);
}
.slide.active { 
  opacity: 1; 
  transform: scale(1);
}

.hero-text {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
}

.hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  letter-spacing: 0.4em;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  color: var(--bg-light);
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s ease-out 0.2s;
}
.sp-only { display: none; }

.hero-title {
  font-size: clamp(40px, 7vw, 80px); 
  font-weight: 900;
  line-height: 1.2; 
  margin-bottom: 40px;
  letter-spacing: 0.15em;
  text-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.hero-title span {
  display: inline-block;
  opacity: 0;
  filter: blur(12px);
  transform: scale(1.1);
  transition: all 1s cubic-bezier(0.2, 0, 0.2, 1);
}

.hero-lead {
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 500;
  line-height: 2.2;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s ease-out 1.2s;
}

.hero-action {
  margin-top: 60px;
  opacity: 0;
  transition: opacity 1.5s ease 2s;
}

.scroll-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 0.5em;
  font-weight: 800;
  display: inline-block;
  animation: floating 2.5s infinite ease-in-out;
  color: var(--bg-light);
}

@keyframes floating {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(12px); opacity: 1; }
}

.hero.is-visible .hero-subtitle, 
.hero.is-visible .hero-lead, 
.hero.is-visible .hero-action {
  opacity: 1; transform: translateY(0);
}
.hero.is-visible .hero-title span {
  opacity: 1; filter: blur(0); transform: scale(1);
}
.hero.is-visible .hero-title .line-1 span:nth-child(n) { transition-delay: calc(0.4s + (var(--n, 0) * 0.08s)); }

/* ==========================================================================
   4. 共通セクション・タイポグラフィ
   ========================================================================= */
.section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: var(--accent-color);
  margin-bottom: 15px;
  display: block;
}

.section-title {
  font-size: 46px;
  font-weight: 700;
  color: var(--main-color);
  line-height: 1.3;
  letter-spacing: 0.05em;
}

/* --- ミッションセクション --- */
.about-section {
  padding: 140px 40px;
  background-color: #ffffff;
}

.about-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  gap: 80px;
  align-items: center;
}

.about-image-wrapper {
  flex: 1;
  height: 600px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.parallax-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-section.is-visible .parallax-img {
  transform: scale(1.05);
}

.about-text-content {
  flex: 1;
  padding: 20px 0;
}

.about-title-dynamic {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 35px;
  line-height: 1.4;
  color: var(--text-main);
}

.about-title-dynamic span {
  color: var(--main-color);
}

.about-description {
  font-size: 17px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   5. 背景切替セクション
   ========================================================================= */
.full-section {
  width: 100%;
  padding: 140px 0;
  display: flex;
  align-items: center;
  position: relative;
}

.package-bg   { background-color: var(--bg-light); }
.ribbon-bg    { background-color: var(--main-color); }
.activity-bg { background-color: var(--bg-light); }

.split-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 100px;
  padding: 0 40px;
  width: 100%;
}

.split-container.reverse { flex-direction: row-reverse; }

.split-text { flex: 1; }

.split-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 30px;
  line-height: 1.3;
  color: var(--main-color);
}
.ribbon-bg .split-title { color: #ffffff; }

.split-description {
  font-size: 16px;
  line-height: 2;
  margin-bottom: 45px;
  color: var(--text-muted);
  font-weight: 500;
}
.ribbon-bg .split-description { color: rgba(255,255,255,0.8); }

.split-image {
  flex: 1.2;
  height: 500px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 24px 50px rgba(0,0,0,0.15);
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.full-section.is-visible .split-image img {
  transform: scale(1.05);
}

/* ダイナミックボタン */
.dynamic-btn {
  display: inline-block;
  padding: 15px 50px;
  background: linear-gradient(135deg, var(--main-color) 0%, var(--accent-color) 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
  font-weight: 700;
  letter-spacing: 0.15em;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 5px 10px rgba(10, 127, 153, 0.4);
}
.dynamic-btn:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 20px rgba(10, 127, 153, 0.6);
}

.outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  box-shadow: none;
}
.outline-white:hover {
  background-color: #fff;
  color: var(--main-color);
  border-color: #fff;
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* テキストリンク（アクセントカラーを使用） */
.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s ease;
}
.text-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background-color: var(--accent-color);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.text-link:hover::after { width: 100%; }

/* 取組事例（カード型レイアウト） */
.activities-section {
  padding-bottom: 120px;
  background-color: var(--bg-light); /* セクション全体の背景色 */
}

.activities-header {
  padding-top: 120px;
  margin-bottom: 20px;
}

/* カードを並べるグリッドコンテナ */
.activities-grid {
  display: grid;
  /* 画面幅に合わせて自動で列数を調整（最低300px幅） */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* カード本体のデザイン */
.activity-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}

/* ホバー時の浮き上がりアクション */
.activity-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}

/* カード内の画像領域 */
.card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.activity-card:hover .card-image img {
  transform: scale(1.05);
}

/* 画像の上に重なるカテゴリータグ */
.card-image .category-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--accent-color);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 30px;
  letter-spacing: 0.1em;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* カード内のテキスト領域 */
.card-content {
  padding: 30px;
  flex-grow: 1; /* 高さが違うカードでもボタン位置を揃える */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.activity-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--main-color);
  line-height: 1.4;
}

.activity-description {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 25px;
  line-height: 1.8;
  font-weight: 500;
  flex-grow: 1; /* テキストが短い場合でも下の余白を埋める */
}

/* ==========================================================================
   6. フッター 
   ========================================================================== */
.main-footer {
  background-color: var(--main-color);
  color: #ffffff;
  padding: 80px 20px 40px;
  border-top: 5px solid var(--accent-color);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 50px;
  margin-bottom: 50px;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  opacity: 0.7;
}
.footer-links a:hover { 
  opacity: 1;
  color: var(--accent-color);
}

.footer-bottom {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  opacity: 0.5;
  letter-spacing: 0.1em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  width: 100%;
  text-align: center;
}

/* ==========================================================================
   7. レスポンシブ調整 (スマホ版)
   ========================================================================== */
@media (max-width: 768px) {
  body { flex-direction: column; }

  .sidebar {
    width: 100%;
    height: 70px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }

  .logo p { display: none; }
  .logo .logo-title {
    font-size: 20px;
    border: none;
    margin: 0; padding: 0;
  }

  .menu-toggle {
    display: block;
    width: 30px; height: 20px;
    background: none; border: none; cursor: pointer;
    position: relative;
  }
  .menu-toggle span {
    display: block;
    width: 100%; height: 2px;
    background-color: #fff;
    position: absolute; left: 0;
    transition: 0.3s;
  }
  .menu-toggle span:nth-child(1) { top: 0; }
  .menu-toggle span:nth-child(2) { top: 9px; }
  .menu-toggle span:nth-child(3) { top: 18px; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 70px; left: 0;
    width: 100%;
    background-color: var(--main-color);
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  }
  .nav-menu.active { display: flex; }
  .nav-menu li { text-align: center; }

  .content { margin-left: 0; padding-top: 70px; width: 100%; }

  .hero { height: 80vh; }
  .hero-title { font-size: clamp(32px, 10vw, 48px); }
  .sp-only { display: block; }

  .about-section { padding: 80px 20px; }
  .about-container { flex-direction: column; gap: 40px; }
  .about-image-wrapper { height: 350px; }
  .about-title-dynamic { font-size: 2.2rem; }

  .full-section { padding: 80px 0; }
  .split-container, .split-container.reverse {
    flex-direction: column; gap: 40px; padding: 0 25px;
  }
  .split-image { height: 300px; width: 100%; }
  
  .split-title, .section-title, .activity-title { font-size: 30px; }
  
  .activities-header { padding-top: 80px; }
  .footer-links { flex-direction: column; align-items: center; gap: 20px; }

  .activities-section { padding-bottom: 80px; }
  .container { padding: 0 25px; }
  .activities-grid { gap: 20px; margin-top: 30px; }
  .card-content { padding: 25px 20px; }
  .activity-title { font-size: 20px; }
}