@charset "UTF-8";
/* =========================================================
   ジョルダンスクール志木 共通スタイル
   - Webフォントは使用せず、OS標準の日本語フォントのみ
   - クラス名は「ブロック__要素--バリエーション」(BEM風)
   ========================================================= */

/* ---------- 色・サイズの設定 ---------- */
:root {
  --color-blue: #7d96da;   /* ヘッダー・フッター・講座紹介 */
  --color-pink: #b56f99;   /* 英会話・アクセス */
  --color-cyan: #c8f2f5;   /* ダイエット・お知らせ */
  --color-rose: #dfafab;   /* 写真エリア */
  --color-black: #000000;  /* 見出し帯 */
  --color-white: #ffffff;
  --color-text: #333333;

  --font-base: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium",
    "YuGothic", "Meiryo", "Noto Sans JP", sans-serif;

  --content-width: 860px;
  --header-height: 64px;
}

/* ---------- リセット・基本 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0 0 0.6em;
  line-height: 1.4;
  font-weight: bold;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

p {
  margin: 0 0 1em;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-blue);
}

/* 左：ロゴ＋サイト名／中央：メニュー／右：空き（中央揃えのための余白） */
.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-height);
  padding: 0 40px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--color-white);
  text-decoration: none;
}

.site-brand__logo {
  display: block;
  padding: 4px;
  background: var(--color-white);
  line-height: 0;
}

.site-brand__logo img {
  width: 35px;
}

.site-brand__name {
  font-size: 15px;
}

.global-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.global-nav__link {
  display: inline-block;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  color: var(--color-white);
  text-decoration: none;
}

.global-nav__link:hover,
.global-nav__link[aria-current="page"] {
  border-bottom-color: var(--color-white);
}

/* スマホ用メニューボタン */
.menu-toggle {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle__bar {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--color-white);
}

/* ---------- セクション共通 ---------- */
.section {
  padding: 64px 24px;
}

.section--white { background: var(--color-white); }
.section--black { background: var(--color-black); color: var(--color-white); }
.section--blue  { background: var(--color-blue); }
.section--pink  { background: var(--color-pink); }
.section--cyan  { background: var(--color-cyan); }
.section--rose  { background: var(--color-rose); }

/* 黒地の見出し帯 */
.section--band {
  padding-top: 16px;
  padding-bottom: 16px;
}

.section--band h2 {
  margin: 0;
  color: var(--color-cyan);
  text-align: center;
}

/* 区切り用の黒帯（中身なし） */
.section--spacer {
  padding: 24px 0;
}

.container {
  max-width: var(--content-width);
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.text-small {
  font-size: 0.875rem;
}

/* 画面には出さず、読み上げ・検索用に残す見出し */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- トップ：メインビジュアル ---------- */
.hero {
  text-align: center;
}

.hero__title {
  margin-bottom: 0.3em;
  font-size: 2.5rem;
  letter-spacing: 0.02em;
}

.hero__lead {
  margin-bottom: 2em;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  padding: 0.6em 2em;
  border-radius: 25px;
  background: var(--color-black);
  color: var(--color-white);
  font-weight: bold;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.8;
}

/* ---------- 画像 ---------- */
.figure {
  margin: 0 0 32px;
}

.figure--narrow {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.banner-link {
  display: block;
  max-width: 600px;
  margin: 0 auto;
}

/* 写真の横並び */
.photo-grid {
  display: grid;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

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

.photo-grid__item img {
  width: 100%;
}

.photo-grid__item--small img {
  width: 80%;
  margin: 0 auto;
}

/* ---------- 左右2分割（文章＋写真） ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--header-height));
}

.split__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 60px;
}

.split__media {
  position: relative;
  min-height: 320px;
}

.split__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 背景写真＋色かぶせ ---------- */
.cover {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-height));
  padding: 80px 24px;
  background-size: cover;
  background-position: center;
}

.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cover-overlay, rgba(255, 255, 255, 0.8));
}

.cover > * {
  position: relative;
  width: 100%;
}

.cover--pink  { --cover-overlay: rgba(181, 111, 153, 0.71); color: var(--color-white); }
.cover--cyan  { --cover-overlay: rgba(200, 242, 245, 0.8); }
.cover--white { --cover-overlay: rgba(255, 255, 255, 0.8); }

.cover--auto {
  min-height: 0;
}

/* 背景写真の指定（画像名ごと） */
.bg-classroom       { background-image: url("../images/classroom.webp"); }
.bg-sky-lake        { background-image: url("../images/sky-lake.webp"); }
.bg-classroom-table { background-image: url("../images/classroom-table.webp"); }
.bg-diet-lecture    { background-image: url("../images/diet-lecture.webp"); }
.bg-building-top    { background-image: url("../images/building-top.webp"); }

/* 2カラムの文章 */
.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* ---------- 講座詳細：講師紹介 ---------- */
.profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px;
  background: var(--color-blue);
}

/* ---------- 講座詳細：お電話でのお問い合わせ ---------- */
.contact-tel {
  margin-top: 56px;
}

.contact-tel h2 {
  margin-bottom: 0.4em;
}

/* ---------- 電話番号 ---------- */
.tel-large {
  font-size: 2.5rem;
  letter-spacing: 0.04em;
}

/* ---------- お知らせ ---------- */
.news-list {
  margin: 0;
}

.news-list dt {
  font-weight: bold;
}

.news-list dd {
  margin: 0 0 1.5em;
}

.news-list ol {
  margin: 0.3em 0 0;
  padding-left: 1.8em;
}

/* ---------- 吸入ページ ---------- */
.poster {
  max-width: 640px;
  margin: 0 auto;
}

.map {
  position: relative;
  aspect-ratio: 4 / 3;
  max-width: var(--content-width);
  margin: 0 auto 32px;
}

.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- 規約系ページ ---------- */
.document {
  font-size: 0.95rem;
}

.document h2 {
  margin-top: 2em;
  font-size: 1.25rem;
}

.document h3 {
  margin-top: 1.5em;
  font-size: 1.05rem;
}

.document ol,
.document ul {
  padding-left: 1.6em;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  padding: 12px 8px;
  border-bottom: 1px solid #ddd;
  text-align: left;
  vertical-align: top;
}

.info-table th {
  width: 8em;
  white-space: nowrap;
}

/* ---------- フッター ---------- */
/* リンクを中央に横並び */
.site-footer {
  padding: 32px 24px;
  background: var(--color-blue);
  color: var(--color-white);
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

/* ---------- スクロールで画像をふわっと表示 ---------- */
/* main.js が html に .js-reveal を付けたときだけ有効（JSが動かなくても画像は普通に表示される） */
.js-reveal .reveal {
  opacity: 0;
  filter: blur(12px);
  transition: opacity 0.9s ease-out, filter 0.9s ease-out;
}

.js-reveal .reveal.is-visible {
  opacity: 1;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal {
    opacity: 1;
    filter: none;
    transition: none;
  }
}

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 1280px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.125rem; }
}

@media (max-width: 800px) {
  body { font-size: 15px; }
  h1, .hero__title { font-size: 1.75rem; }
  h2 { font-size: 1.3rem; }
  .tel-large { font-size: 1.8rem; }

  .section { padding: 48px 16px; }

  /* メニューを折りたたみ式に */
  .site-header__inner {
    grid-template-columns: 1fr auto;
    padding: 0 16px;
  }

  .menu-toggle { display: block; }

  .global-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 8px 24px 16px;
    background: var(--color-blue);
  }

  .global-nav.is-open { display: block; }

  .global-nav__list {
    flex-direction: column;
  }

  .global-nav__link {
    display: block;
    padding: 8px 0;
  }

  /* 2分割を縦積みに */
  .split {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .split__text { padding: 48px 16px; }
  .split__media { aspect-ratio: 4 / 3; }

  .cover {
    min-height: 0;
    padding: 56px 16px;
  }

  .columns,
  .profile {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .profile { padding: 16px; }

  .photo-grid { gap: 12px; }
  .photo-grid--3 { grid-template-columns: 1fr; }
}
