/* =========================================================
   佐々木ピアノ教室 サンプルサイト
   Wixで再現しやすいよう、色・文字サイズは下の変数にまとめています
   ========================================================= */
@import url("https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@500;700&family=Noto+Sans+JP:wght@400;500;700&display=swap");

:root {
  /* 背景（大部分は白。ブルーやティールで塗りつぶしすぎない） */
  --bg: #FFFFFF;          /* ページの基本背景 */
  --bg-alt: #F5FAFD;      /* 補助背景（ごく薄いブルー） */
  --white: #FFFFFF;       /* カード背景 */
  /* 青：ロゴ・見出し・メニュー・一部のボタン */
  --main: #69AEDD;        /* メインの青（スカイブルー） */
  --main-deep: #3F8CC2;   /* 小さい文字や線で使う少し濃い青 */
  --main-light: #EAF4FB;  /* 薄い青（メッセージ欄など） */
  /* ティール：強調語・CTAボタン・ラベル・小さな装飾 */
  --accent: #2FA7A0;      /* アクセントのティール */
  --accent-dark: #22857F; /* ボタンのホバー・薄いティール上の文字 */
  --accent-light: #E8F7F5;/* 薄いティール（ラベル・番号の丸） */
  /* 文字 */
  --text: #2F3A45;        /* 本文・キャッチコピー */
  --text-sub: #6B7785;    /* 補足・日付 */
  --line: #E1ECF4;        /* 区切り線 */

  --font-head: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
.bg-alt { background: var(--bg-alt); }

/* ---------- 見出し（全セクション共通） ---------- */
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .en {
  display: block;
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: 4px;
}
.section-head h2 {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  color: var(--main);
  line-height: 1.5;
}
.section-head p { margin-top: 16px; color: var(--text-sub); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  transition: background .2s;
}
/* CTAボタン（体験レッスン・申し込み）＝ティール */
.btn-cta { background: var(--accent); color: var(--white); }
.btn-cta:hover { background: var(--accent-dark); }
/* その他のボタン＝青の枠線 */
.btn-outline { border: 2px solid var(--main); color: var(--main-deep); background: var(--white); }
.btn-outline:hover { background: var(--main-light); }

/* ---------- ① ヘッダー ---------- */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--main-light); color: var(--main);
  display: grid; place-items: center;
  font-size: 22px; font-weight: 700;
}
.logo-text {
  font-family: var(--font-head); font-weight: 700;
  font-size: 22px; color: var(--main); line-height: 1.2;
}
.logo-text small {
  display: block; font-size: 11px; color: var(--text-sub);
  font-weight: 500; letter-spacing: 0.15em;
}
.nav ul { display: flex; gap: 28px; list-style: none; }
.nav a { font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--main-deep); }
.nav-toggle, .nav-btn { display: none; }

/* ---------- ② メインビジュアル ---------- */
.hero { padding: 64px 0 96px; }
.hero .container {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center;
}
.hero-label {
  display: inline-block; background: var(--accent-light); color: var(--accent-dark);
  font-size: 14px; font-weight: 700; padding: 4px 16px; border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-head); font-size: 36px; font-weight: 700;
  line-height: 1.55; color: var(--text); margin-bottom: 24px;
}
/* 「いっしょに」はティールで控えめに強調 */
.hero h1 span { color: var(--accent); }
.hero p { margin-bottom: 36px; }
.hero-img img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px;
}

/* ---------- ③ 教室について ---------- */
.about-grid {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center;
}
.about-img img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 24px;
}
.about-text h3 {
  font-family: var(--font-head); font-size: 24px; color: var(--main);
  margin-bottom: 20px; line-height: 1.6;
}
.about-text p + p { margin-top: 16px; }
.about-points {
  margin-top: 28px; padding: 24px 28px; background: var(--white);
  border-radius: 16px; list-style: none;
}
.about-points li { padding-left: 28px; position: relative; }
.about-points li + li { margin-top: 8px; }
.about-points li::before {
  content: "♪"; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}

/* ---------- ④ 教室の特徴 ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature {
  background: var(--bg-alt); border-radius: 20px; padding: 40px 28px; text-align: center;
}
.feature-num {
  width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--accent-light); color: var(--accent-dark);
  display: grid; place-items: center;
  font-family: var(--font-head); font-size: 24px; font-weight: 700;
}
.feature h3 {
  font-family: var(--font-head); font-size: 20px; color: var(--main);
  margin-bottom: 12px; line-height: 1.6;
}
.feature p { font-size: 15px; text-align: left; }

/* ---------- ⑤ レッスン案内 ---------- */
.lessons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.lesson {
  background: var(--white); border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line);
}
.lesson-head { padding: 20px 28px; border-bottom: 1px solid var(--line); }
.lesson-head.kids { background: var(--accent-light); color: var(--accent-dark); }
.lesson-head.adult { background: var(--main-light); color: var(--main-deep); }
.lesson-head h3 { font-family: var(--font-head); font-size: 22px; }
.lesson-head p { font-size: 14px; color: var(--text-sub); }
.lesson-body { padding: 28px; }
.lesson-body > p { margin-bottom: 20px; }
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.price-table th, .price-table td {
  padding: 12px 4px; border-bottom: 1px dashed var(--line); text-align: left;
}
.price-table td { text-align: right; font-weight: 700; }
.lesson-note {
  margin-top: 40px; padding: 24px 28px; background: var(--white);
  border-radius: 16px; font-size: 14px; color: var(--text-sub);
}
.lesson-note strong { color: var(--text); }

/* ---------- ⑥ 講師紹介 ---------- */
.teacher {
  display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 56px; align-items: start;
  background: var(--bg-alt); border-radius: 24px; padding: 48px;
}
.teacher-img img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top;
  border-radius: 16px;
}
.teacher-name { margin-bottom: 20px; }
.teacher-name .role { font-size: 14px; color: var(--accent); font-weight: 700; }
.teacher-name h3 { font-family: var(--font-head); font-size: 26px; line-height: 1.5; }
.teacher-name h3 small { font-size: 14px; color: var(--text-sub); margin-left: 12px; }
.profile { list-style: none; margin-bottom: 28px; font-size: 15px; }
.profile li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.message {
  background: var(--main-light); border-radius: 16px; padding: 24px 28px;
}
.message h4 { font-family: var(--font-head); color: var(--main-deep); margin-bottom: 8px; }

/* ---------- ⑦ ブログ（Wix Blog「最新記事」ウィジェットの想定） ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post {
  background: var(--white); border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); transition: box-shadow .2s;
}
.post:hover { box-shadow: 0 6px 20px rgba(105, 174, 221, .18); }
.post-thumb { aspect-ratio: 3 / 2; background: var(--bg-alt); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb.placeholder {
  display: grid; place-items: center; color: var(--text-sub); font-size: 14px;
  border-bottom: 1px dashed var(--line);
}
.post-body { padding: 20px 22px 24px; }
.post-date { font-size: 13px; color: var(--text-sub); }
.post-title { font-size: 17px; font-weight: 700; line-height: 1.6; margin: 6px 0 8px; }
.post-excerpt { font-size: 14px; color: var(--text-sub); line-height: 1.8; }
.center-btn { text-align: center; margin-top: 48px; }

/* ---------- ⑧ アクセス ---------- */
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.map {
  background: var(--bg-alt); border: 2px dashed var(--line); border-radius: 20px;
  height: 360px; margin-top: 40px; display: grid; place-items: center;
  color: var(--text-sub); text-align: center; font-size: 15px;
}
.access-info dl { display: grid; grid-template-columns: 7em 1fr; }
.access-info dt, .access-info dd { padding: 14px 0; border-bottom: 1px solid var(--line); }
.access-info dt { font-weight: 700; color: var(--main-deep); }
.access-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.access-photo p { font-size: 13px; color: var(--text-sub); margin-top: 8px; }

/* ---------- ⑨ お問い合わせ・体験レッスン ---------- */
.contact { background: var(--bg-alt); text-align: center; }
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 860px; margin: 0 auto 48px;
}
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 24px 16px;
}
.step b { display: block; font-family: var(--font-head); font-size: 14px; color: var(--accent); }
.step span { font-weight: 700; }
.contact-box {
  background: var(--white); color: var(--text); border-radius: 24px;
  border: 1px solid var(--line);
  max-width: 860px; margin: 0 auto; padding: 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
}
.contact-item .label { font-size: 14px; color: var(--text-sub); margin-bottom: 12px; }
.contact-item .tel {
  font-family: var(--font-head); font-size: 30px; font-weight: 700; color: var(--main-deep);
}
.contact-item small { font-size: 13px; color: var(--text-sub); }

/* ---------- ⑩ フッター ---------- */
.footer { background: var(--white); border-top: 1px solid var(--line); padding: 56px 0 24px; }
.footer-grid {
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding-bottom: 32px; border-bottom: 1px solid var(--line);
}
.footer-info { font-size: 14px; margin-top: 16px; color: var(--text-sub); }
.footer-nav a:hover { color: var(--main-deep); }
.footer-nav ul { list-style: none; display: grid; grid-template-columns: repeat(2, auto); gap: 8px 40px; font-size: 14px; }
.copyright { text-align: center; font-size: 12px; color: var(--text-sub); margin-top: 24px; }

/* ---------- ブログ一覧ページ ---------- */
.page-title { background: var(--bg-alt); padding: 64px 0; text-align: center; }
.page-title .section-head { margin-bottom: 0; }
.blog-cats { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; list-style: none; }
.blog-cats a {
  display: inline-block; padding: 6px 20px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); font-size: 14px;
}
.blog-cats a.active { background: var(--main); border-color: var(--main); color: var(--white); }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 56px; list-style: none; }
.pager a {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  background: var(--white); border: 1px solid var(--line); font-size: 14px;
}
.pager a.active { background: var(--main); color: var(--white); border-color: var(--main); }

/* =========================================================
   スマートフォン（768px以下）
   ========================================================= */
@media (max-width: 768px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: 24px; }

  /* ハンバーガーメニュー（Wixではモバイルエディタのメニューが自動で切り替わります） */
  .header .container { height: 64px; }
  .logo-text { font-size: 18px; }
  .logo-mark { width: 38px; height: 38px; font-size: 18px; }
  .nav-btn {
    display: grid; place-items: center; width: 44px; height: 44px;
    font-size: 24px; color: var(--main); cursor: pointer;
  }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
  }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: 14px 24px; border-top: 1px solid var(--line); }
  .nav-toggle:checked ~ .nav { display: block; }

  .hero { padding: 32px 0 64px; }
  .hero .container,
  .about-grid,
  .teacher,
  .access-grid,
  .contact-box { grid-template-columns: 1fr; gap: 32px; }
  .hero-img { order: -1; }
  .hero h1 { font-size: 25px; }
  .hero .btn { display: block; text-align: center; }

  .about-img img { aspect-ratio: 4 / 3; }
  .features, .lessons, .posts, .steps { grid-template-columns: 1fr; gap: 20px; }
  .feature { padding: 32px 24px; }

  .teacher { padding: 28px 20px; }
  .teacher-img { max-width: 260px; margin: 0 auto; }

  .contact-box { padding: 28px 20px; text-align: center; }
  .contact-box .btn { display: block; }
  .map { height: 260px; margin-top: 32px; }
  .footer-grid { flex-direction: column; }
}
