/* style.css */
:root {
  --black: #000000;
  --yellow: #F8E900;
  --gray: #B2B0AE;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--black);
  margin: 0;
  padding: 0;
  background-color: white;
}

.primary-bg {
  background-color: var(--yellow);
}

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

.accent-color {
  color: var(--yellow);
}

.dark-bg {
  background-color: var(--black);
}

.tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  margin-right: 6px;
  margin-bottom: 6px;
  background-color: var(--yellow);
  color: var(--black);
  font-weight: 500;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ===================================
   ハンバーガーメニュー
   =================================== */

/* モバイルメニューの基本スタイル */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  border-top: 1px solid #e5e5e5;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 50;
}

.mobile-menu.active {
  display: block;
  animation: slideDown 0.3s ease-out;
}

/* モバイルメニューコンテンツ */
.mobile-menu-content {
  padding: 1rem;
}

/* モバイルメニューリスト */
.mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu-list li {
  border-bottom: 1px solid #f0f0f0;
}

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

/* モバイルメニューリンク */
.mobile-menu-link {
  display: block;
  padding: 1rem 0.5rem;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.mobile-menu-link:hover {
  color: var(--yellow);
  background-color: #f9f9f9;
  padding-left: 1rem;
}

/* ハンバーガーアイコンの回転アニメーション */
#hamburger-icon {
  transition: transform 0.3s ease;
}

#hamburger-icon.active {
  transform: rotate(90deg);
}

/* スライドダウンアニメーション */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ヘッダーの位置調整 */
.header {
  position: relative;
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 18px;
  }
  
  /* モバイルメニューボタン */
  #mobile-menu-button {
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
  }
  
  #mobile-menu-button:hover {
    background-color: #f5f5f5;
  }
  
  /* ヘッダーの固定 */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
  }
  
  /* ヘッダー分のマージンを本文に追加 */
  body {
    padding-top: 80px;
  }
}

.card {
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.btn {
  transition: all 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.step-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.2rem;
}

.hero {
  background-position: center;
  background-size: cover;
  position: relative;
  height: 100vh;
  min-height: 600px;
  padding-top: 70px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.hero-content {
  position: relative;
  z-index: 10;
}

.section {
  padding: 80px 0;
}

.section-title {
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60%;
  height: 3px;
  background-color: var(--yellow);
}

.member-card,
.benefit-card,
.contact-info-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.member-card:hover,
.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.contact-info-card:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.form-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 15px;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  border-color: var(--yellow);
  outline: none;
}

.map-container {
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
}

.footer {
  background-color: #333;
  color: white;
  padding: 40px 0 20px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.1);
  color: white;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--yellow);
  color: black;
  transform: translateY(-3px);
}

.handwritten-quote {
  font-family: 'Klee One', 'Shippori Mincho', serif;
  background-color: #fdfdf5;
  border-radius: 16px;
  padding: 25px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border-left: 4px solid var(--yellow);
}

.handwritten-quote::before {
  content: '"';
  font-family: 'Shippori Mincho', serif;
  font-size: 60px;
  position: absolute;
  top: -15px;
  left: 10px;
  color: rgba(248, 233, 0, 0.2);
}

.handwritten-quote::after {
  content: '"';
  font-family: 'Shippori Mincho', serif;
  font-size: 60px;
  position: absolute;
  bottom: -45px;
  right: 10px;
  color: rgba(248, 233, 0, 0.2);
}

.quote-signature {
  font-family: 'Klee One', cursive;
  font-weight: 600;
  text-align: right;
  margin-top: 20px;
  font-size: 18px;
}

.activity-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #F0F0F0;
  height: 100%;
}

.activity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.activity-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 15px;
}

.activity-icon i {
  font-size: 28px;
}

.activity-arrow {
  position: absolute;
  width: 50px;
  height: 20px;
  right: -25px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.activity-flow {
  position: relative;
}

.activity-flow-line {
  position: absolute;
  top: 30px;
  left: 0;
  height: 3px;
  background-color: var(--yellow);
  width: 100%;
  z-index: 1;
}

.support-cycle {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 400px;
  margin: 0 auto;
}

.center-node {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  background-color: var(--yellow);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.node {
  position: absolute;
  width: 120px;
  height: 120px;
  background-color: white;
  border: 4px solid var(--yellow);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.node:hover {
  transform: scale(1.05);
}

.node-top { top: 0; left: 50%; transform: translateX(-50%); }
.node-right { top: 50%; right: 0; transform: translateY(-50%); }
.node-bottom { bottom: 0; left: 50%; transform: translateX(-50%); }
.node-left { top: 50%; left: 0; transform: translateY(-50%); }

.node-icon { font-size: 32px; color: #444; margin-bottom: 8px; }
.node-text { font-size: 14px; font-weight: 600; text-align: center; }

/* スムーススクロール */
html {
  scroll-behavior: smooth;
}

.smooth-scroll {
  transition: color 0.3s ease;
}

.smooth-scroll:hover {
  color: var(--yellow) !important;
}

/* ページ内アンカーのオフセット調整 */
[id] {
  scroll-margin-top: 100px;
}

/* ===================================
   404ページ専用スタイル
   =================================== */

/* 404エラーコード */
.error-code {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ナビゲーションカード */
.navigation-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  border: 1px solid #f0f0f0;
  display: block;
}

.navigation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  text-decoration: none;
  color: inherit;
}

.navigation-card h3 {
  color: var(--black);
  margin-bottom: 0.5rem;
}

.navigation-card p {
  color: #6b7280;
  margin: 0;
}

/* 404ページ用のボタンスタイル調整 */
.btn.bg-gray-200 {
  background-color: #e5e7eb;
  transition: all 0.3s ease;
}

.btn.bg-gray-200:hover {
  background-color: #d1d5db;
  transform: translateY(-2px);
}

/* 404ページのheroセクション調整 */
.hero .error-code {
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* 404ページのレスポンシブ調整 */
@media (max-width: 768px) {
  .error-code span {
    font-size: 4rem !important;
  }
  
  .navigation-card {
    padding: 1.5rem 1rem;
  }
  
  .navigation-card h3 {
    font-size: 1rem;
  }
  
  .navigation-card p {
    font-size: 0.875rem;
  }
}

@media (max-width: 768px) {
  .hero { height: auto; padding: 120px 0 60px; }
  .section { padding: 60px 0; }
  .activity-flow-line { display: none; }
  
  /* アピアランスケア支援サイクル - モバイル対応 */
  .support-cycle { 
    height: auto; 
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
  }
  
  /* 中央ノードをモバイルでは最初に表示 */
  .center-node {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 120px;
    height: 120px;
    order: 1;
    margin-bottom: 10px;
  }
  
  /* 周囲のノードを縦並びに */
  .node-top, .node-bottom, .node-left, .node-right { 
    position: relative; 
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 0 auto;
    transform: none;
    width: 100px;
    height: 100px;
  }
  
  .node-top { order: 2; }
  .node-right { order: 3; }
  .node-bottom { order: 4; }
  .node-left { order: 5; }
  
  /* SVGの線をモバイルでは非表示 */
  .support-cycle svg {
    display: none;
  }
  
  /* ノードのアイコンとテキストサイズ調整 */
  .node-icon { 
    font-size: 24px; 
    margin-bottom: 6px; 
  }
  
  .node-text { 
    font-size: 12px; 
  }
  
  .center-node i {
    font-size: 2rem !important;
  }
  
  .center-node p {
    font-size: 12px;
  }
  
  .handwritten-quote::before, .handwritten-quote::after { font-size: 40px; }
  .activity-arrow { display: none; }
  
  /* モバイルでのアンカーオフセット調整 */
  [id] {
    scroll-margin-top: 80px;
  }
}