:root {
  --ink: #202020;
  --text: #77776b;
  --button: #c79061;
  --button-deep: #ba8462;
  --teacher-bg: #dcdbdc;
  --link-blue: #5170ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

img { display: block; max-width: 100%; object-fit: cover; }

h1, h2, h3 { margin: 0; line-height: 1.4; }

p { color: var(--text); margin: 0; }

.column { width: min(100% - 48px, 640px); margin: 0 auto; }

/* タイトル */
.hero { text-align: center; padding: clamp(64px, 18vw, 200px) 24px 40px; }
.hero h1 { font-size: clamp(26px, 4.6vw, 44px); font-weight: 300; margin-bottom: 32px; }
.hero-photo { width: min(100%, 760px); margin: 0 auto; aspect-ratio: 651 / 322; object-position: 50% 83%; }

/* 筆で塗ったような見出し */
.brush {
  --brush: %23a89683;
  display: inline-block;
  font-size: 22px;
  font-weight: 400;
  padding: 6px 34px;
  margin: 64px 0 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 80' preserveAspectRatio='none'%3E%3Cpath fill='%23a89683' fill-opacity='.85' d='M14 18 60 11 55 15 150 8 240 12 322 7 392 14 372 19 398 27 381 36 394 46 370 52 386 63 318 70 330 74 228 69 142 75 66 68 20 72 34 61 3 57 22 46 6 37 27 29Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.brush.light {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 80' preserveAspectRatio='none'%3E%3Cpath fill='%23d9cfa8' fill-opacity='.85' d='M14 18 60 11 55 15 150 8 240 12 322 7 392 14 372 19 398 27 381 36 394 46 370 52 386 63 318 70 330 74 228 69 142 75 66 68 20 72 34 61 3 57 22 46 6 37 27 29Z'/%3E%3C/svg%3E");
}

.about-photo { width: min(100%, 500px); margin: 56px auto 0; aspect-ratio: 498 / 279; }
.philosophy-photo { width: min(100%, 500px); margin: 48px auto 0; aspect-ratio: 499 / 333; }

/* 背景画像のある帯 */
.band { padding: 56px 24px 72px; text-align: center; margin-top: 80px; }
.band-room {
  background: linear-gradient(rgba(255,255,255,.25), rgba(255,255,255,.25)),
    #ece7e2 url("images/bg-room.png") center / cover;
}
.band-event {
  background: linear-gradient(rgba(255,255,255,.45), rgba(255,255,255,.45)),
    #e5e6df url("images/bg-event.jpg") center / cover;
}

.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 400; margin-bottom: 36px; }
.section-title.thin { font-weight: 300; }
.section-title.bold { font-weight: 700; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
}
.card { background: #fff; padding-bottom: 32px; }
.card img { width: 100%; aspect-ratio: 330 / 249; }
.card .lesson-washoku { object-position: 50% 79%; }
.card h3 { font-size: 19px; margin: 28px 20px 14px; }
.card p { font-size: 14px; padding: 0 28px; }

/* プログラム紹介 */
.program { margin-top: 96px; }
.program-photo { width: min(100%, 560px); margin: 0 auto; border-radius: 28px; }
.program-photo.square { aspect-ratio: 1; }
.program-photo.exchange { aspect-ratio: 545 / 449; }
.program-photo.team { aspect-ratio: 562 / 486; }

.button {
  display: inline-block;
  margin-top: 56px;
  padding: 14px 48px;
  border-radius: 10px;
  background: var(--button);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  text-underline-offset: 4px;
}
.button.wide { background: var(--button-deep); margin-top: 48px; }
.button:hover { filter: brightness(.94); }

/* 各種イベント */
.events {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  max-width: 1080px;
  margin: 0 auto;
  align-items: center;
}
.strip { width: 100%; height: auto; }
.strip-a { grid-column: 1; }
.events p { grid-column: 1; grid-row: 2; text-align: left; font-size: 15px; padding: 20px 22px; background: rgba(255,255,255,.82); color: #55554c; }
.strip-b { grid-column: 2; grid-row: 2; }

/* 講師紹介 */
.teachers-section { padding: 48px 24px; text-align: center; }
.teachers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  gap: 20px 32px;
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  text-align: left;
}
.teachers li { display: flex; align-items: center; gap: 18px; padding: 10px; background: var(--teacher-bg); border-radius: 14px; }
.teachers b { font-weight: 400; }
.face { flex: none; width: 104px; height: 104px; overflow: hidden; }
.face img { width: 100%; height: 100%; }
.face .zoom-watanabe { object-position: 40% 20%; transform: scale(1.42); transform-origin: 39% 23%; }

/* お問い合わせ */
.contact { margin-top: 48px; }
.contact h2 { font-size: 34px; font-weight: 500; margin-bottom: 20px; }
.contact h3 { color: var(--link-blue); font-size: 15px; margin: 32px 0 6px; }
.contact a { color: var(--text); }
.contact .note { font-size: 14px; }
.scenes { display: grid; gap: 24px; margin-top: 40px; }
.scenes img { width: min(100%, 400px); aspect-ratio: 381 / 227; }
.scenes .scene-takoyaki { object-position: 50% 7%; }

/* フッター */
footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; padding: 56px 24px 40px; }
footer a, footer button { color: var(--link-blue); font: inherit; }
footer button { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

/* プライバシーポリシー */
.policy { padding: 48px 0; }
.policy h1 { font-size: 26px; margin-bottom: 24px; }
.policy h2 { font-size: 18px; margin: 32px 0 8px; }

/* Cookieの同意バナー */
.consent {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 10;
  max-width: 620px;
  margin: 0 auto;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #d8d3cc;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.16);
  font-size: 14px;
}
.consent-actions { display: flex; gap: 12px; margin-top: 12px; }
.consent-actions button { flex: 1; padding: 10px; border-radius: 8px; border: 1px solid var(--button-deep); font: inherit; cursor: pointer; background: #fff; color: var(--ink); }
.consent-actions button[data-choice="granted"] { background: var(--button-deep); color: #fff; }

/* スマートフォン */
@media (max-width: 760px) {
  .cards { grid-template-columns: minmax(0, 1fr); max-width: 360px; }
  .events { grid-template-columns: minmax(0, 1fr); }
  .strip-a, .events p, .strip-b { grid-column: 1; grid-row: auto; }
  .teachers { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; max-width: 380px; }
  .button { padding: 14px 32px; }
}
