/* ============================================================
   湖東学園グループ トップページ
   style.css
   ============================================================ */

/* ---------- CSS変数（暖色系パレット） ---------- */
:root {
  --color-primary:      #c06018;   /* テラコッタオレンジ：リンク・アクセント */
  --color-primary-dark: #974a10;   /* ホバー用ダークテラコッタ */
  --color-header-bg:    #fffdf9;   /* ヘッダー：温かみのある白 */
  --color-info-bg:      #231c14;   /* 情報セクション：深い温かみのある黒 */
  --color-vocational:   #7a5228;   /* 専門学校：ウォームブラウン */
  --color-kinder:       #c8601a;   /* こども園：オレンジ */
  --color-chiiki:       #9b7230;   /* 地域型保育：アンバーゴールド */
  --color-bg:           #faf8f4;   /* ページ背景：温かみのあるオフホワイト */
  --color-bg-alt:       #f5ece0;   /* セクション交互：クリームベージュ */
  --color-text:         #2a1f14;   /* 本文：深いウォームブラウン */
  --color-text-light:   #6b5848;   /* サブテキスト：ミディアムブラウン */
  --color-white:        #ffffff;
  --color-border:       #e0cebc;   /* ボーダー：ウォームベージュ */

  --radius-card:   10px;
  --shadow-card:   0 2px 14px rgba(80, 40, 10, 0.08);
  --shadow-hover:  0 8px 28px rgba(80, 40, 10, 0.16);
  --transition:    0.22s ease;

  --max-width: 1100px;
  --gutter:    32px;
}

/* ---------- リセット・ベース ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3",
               "Noto Sans JP", "メイリオ", Meiryo, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.75;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: opacity var(--transition), color var(--transition);
}
a:hover { color: var(--color-primary-dark); opacity: 1; }

ul { list-style: none; }
address { font-style: normal; }
img { max-width: 100%; display: block; }

/* ---------- コンテナ ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================================
   仮イメージボックス
   ============================================================ */
.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #cdd5e0 0%, #b8c4d4 100%);
  color: #6b7a94;
  font-size: 0.78rem;
  text-align: center;
  padding: 12px;
  line-height: 1.4;
}

/* カメラアイコン（::before） */
.img-placeholder--card::before {
  content: "📷";
  font-size: 1.6rem;
  opacity: 0.5;
}

.img-placeholder--hero::before {
  content: "🖼";
  font-size: 2.4rem;
  opacity: 0.45;
}


.img-placeholder--hero {
  width: 100%;
  height: clamp(200px, 38vw, 440px);
  background: linear-gradient(135deg, #a8b8cc 0%, #8fa4be 100%);
  color: #4a5568;
  font-size: 0.95rem;
}

.img-placeholder--card {
  width: 100%;
  aspect-ratio: 16 / 9;
}

/* ============================================================
   ヘッダー
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-header-bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}

/* ロゴ */
.site-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1rem;
  font-weight: bold;
  color: var(--color-text);
  letter-spacing: 0.05em;
  white-space: nowrap;
  border-left: 2px solid var(--color-border);
  padding-left: 14px;
  line-height: 1.3;
}


/* ============================================================
   ヒーロー
   ============================================================ */
.hero {
  width: 100%;
  overflow: hidden;
  line-height: 0; /* 画像下の隙間をなくす */
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ============================================================
   セクション共通
   ============================================================ */
.section {
  padding: 72px 0;
}

.section--kinder,
.section--info {
  background: var(--color-bg-alt);
}

/* ============================================================
   H2 セクションタイトル
   ============================================================ */
.section-title {
  position: relative;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 56px;
  padding-bottom: 32px;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

/* グラデーション下線：中央が濃く両端へ溶ける */
.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    currentColor 30%,
    currentColor 70%,
    transparent 100%
  );
}

/* EN ラベル：ボーダーピル型バッジ */
.section-title__en {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  font-weight: 700;
  margin-bottom: 14px;
  padding: 4px 16px;
  border-radius: 20px;
  border: 1.5px solid currentColor;
  opacity: 0.85;
  line-height: 1.8;
}

/* カラー別（currentColor を継承するため color のみ指定） */
.section-title--vocational,
.section-title--vocational .section-title__en { color: var(--color-vocational); }

.section-title--kinder,
.section-title--kinder .section-title__en     { color: var(--color-kinder); }

.section-title--chiiki,
.section-title--chiiki .section-title__en     { color: var(--color-chiiki); }

/* ============================================================
   カードグリッド
   ============================================================ */
.card-grid {
  display: grid;
  gap: 28px;
}

.card-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

/* こども園：最大3列、カード幅固定で中央寄せ → 最終行が少なくても自然に中央 */
.card-grid--kinder {
  grid-template-columns: repeat(3, minmax(0, 340px));
  justify-content: center;
}

/* ============================================================
   カード共通
   ============================================================ */
.school-card,
.kinder-card,
.chiiki-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

/* ホバーはアニメーションクラス側で管理（.anim-card.in-view:hover） */
.school-card:hover,
.kinder-card:hover,
.chiiki-card:hover {
  box-shadow: var(--shadow-hover);
}

/* カード写真 */
.card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* ============================================================
   H3 カード名
   ============================================================ */
.card-name {
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.55;
  color: var(--color-text);
  padding-left: 12px;
  border-left: 3px solid var(--color-border);
  letter-spacing: 0.03em;
}

/* セクションごとにアクセントカラーを変える */
.section--vocational .card-name { border-left-color: var(--color-vocational); }
.section--kinder     .card-name { border-left-color: var(--color-kinder); }
.section--chiiki     .card-name { border-left-color: var(--color-chiiki); }

.card-tel {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
}

.card-tel::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-color: var(--color-primary);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1-9.4 0-17-7.6-17-17 0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1L6.6 10.8z'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1-9.4 0-17-7.6-17-17 0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1L6.6 10.8z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.card-tel a {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color var(--transition);
}

.card-tel a:hover {
  color: var(--color-primary);
  opacity: 1;
}

.card-address {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.65;
  margin-top: 2px;
}

/* ---------- コース一覧 ---------- */
.course-list {
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 2px;
}

.course-list li {
  padding-left: 1.1em;
  position: relative;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.5;
}

.course-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--color-vocational);
  font-weight: bold;
}

/* 親項目（学科名） */
.course-list__item--parent {
  font-weight: 700;
  color: var(--color-text);
}
.course-list__item--parent::before {
  color: var(--color-vocational);
}

/* 子項目（コース名） */
.course-list__item--child {
  padding-left: 2.2em !important;
  font-size: 0.84rem;
}
.course-list__item--child::before {
  content: "–";
  left: 1.1em;
  color: var(--color-text-light);
  font-weight: normal;
}

/* ---------- NEW バッジ ---------- */
.badge-new {
  display: inline-block;
  background: var(--color-kinder);
  color: var(--color-white);
  font-size: 0.62rem;
  font-weight: bold;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.06em;
  vertical-align: middle;
  line-height: 1.6;
}

/* ---------- 変更対応カード ---------- */
.kinder-card--updated { position: relative; }

.kinder-card--updated::before {
  content: "更新";
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--color-kinder);
  color: var(--color-white);
  font-size: 0.62rem;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 3px;
  z-index: 1;
  letter-spacing: 0.05em;
}

/* ============================================================
   ボタン
   ============================================================ */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: bold;
  text-align: center;
  color: var(--color-white);
  transition: filter var(--transition), transform var(--transition), box-shadow var(--transition);
  align-self: flex-start;
  margin-top: auto;
  letter-spacing: 0.03em;
}

.btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  opacity: 1;
  color: var(--color-white);
}

.btn--vocational { background: var(--color-vocational); }
.btn--kinder     { background: var(--color-kinder); }
.btn--chiiki     { background: var(--color-chiiki); }

/* ============================================================
   学園情報セクション
   ============================================================ */
.section--info-dark {
  background: var(--color-info-bg);
  color: var(--color-white);
  padding: 64px 0;
}

.info-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ============================================================
   H3 情報ブロックタイトル（ダーク背景）
   ============================================================ */
.info-block__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-white);
  padding-bottom: 14px;
  padding-left: 14px;
  margin-bottom: 18px;
  letter-spacing: 0.06em;
  position: relative;
  border-bottom: 1px solid rgba(255, 190, 120, 0.22);
}

/* 左縦バー：ウォームオレンジのアクセント */
.info-block__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  bottom: 0.2em;
  width: 4px;
  border-radius: 2px;
  background: var(--color-primary);
}

.info-block__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-block__list li a {
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
}

.info-block__list li a::before {
  content: "›";
  color: rgba(255,255,255,0.45);
  font-weight: bold;
  font-size: 1rem;
}

.info-block__list li a:hover {
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
  opacity: 1;
}

/* ============================================================
   フッター
   ============================================================ */
.site-footer {
  background: #1a1208;
  color: rgba(255,255,255,0.50);
  padding: 28px 0;
  border-top: 3px solid rgba(255,200,140,0.15);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-name {
  color: rgba(255,255,255,0.88);
  font-weight: bold;
  font-size: 0.92rem;
}

.footer-copy {
  font-size: 0.76rem;
}

/* ============================================================
   レスポンシブ
   ============================================================ */

/* タブレット（〜 960px） */
@media (max-width: 960px) {
  /* こども園 2列に */
  .card-grid--kinder {
    grid-template-columns: repeat(2, minmax(0, 340px));
    justify-content: center;
  }

  /* 情報グリッド */
  .info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* タブレット小（〜 720px） */
@media (max-width: 720px) {
  :root { --gutter: 20px; }

  .section { padding: 56px 0; }

  .card-grid--2 {
    grid-template-columns: 1fr;
  }
}

/* スマートフォン（〜 560px） */
@media (max-width: 560px) {
  :root { --gutter: 16px; }

  .section { padding: 44px 0; }

  .section--info-dark { padding: 44px 0; }

  .card-grid--kinder {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .img-placeholder--hero {
    height: 180px;
  }

  .section-title {
    margin-bottom: 32px;
  }
}

/* ============================================================
   kinder-card 実画像スタイル
   ============================================================ */
.kinder-card > img,
.kinder-card .card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* ============================================================
   スクロールアニメーション
   ============================================================ */

/* --- セクションタイトル：上から大きく落ちてくる --- */
.anim-title {
  opacity: 0;
  transform: translateY(-48px);
  transition:
    opacity  0.7s cubic-bezier(0.25, 0.8, 0.25, 1),
    transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.anim-title.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* --- カード：下から大きく浮き上がる + わずかな拡大 --- */
.anim-card {
  opacity: 0;
  transform: translateY(72px) scale(0.94);
  transition:
    opacity  0.75s cubic-bezier(0.22, 0.68, 0, 1.1),
    transform 0.75s cubic-bezier(0.22, 0.68, 0, 1.1);
  transition-delay: var(--anim-delay, 0ms);
}
.anim-card.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* ホバーはin-view後に適用 */
.anim-card.in-view:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-hover);
}
