@charset "UTF-8";

html {
  scroll-behavior: smooth;
  font-feature-settings: "palt" 1;
  height: 100%; /* 追加：ページ下部固定用 */
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 18px;
  color: #333;
  background: #fff;
  overflow-x: hidden;
  line-height: 1.5;

  /* 追加：フッター固定用 */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ヘッダー */
header {
  background: #f5f5f5;
  border-bottom: 1px solid #ccc;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8em 1em;
}

/* ロゴ */
.logo {
  width: 40%;
  max-width: 400px;
  height: auto;
}

@media screen and (max-width: 767px) {
  .logo {
    width: 80%;
    height: auto;
  }
}

/* ハンバーガー */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: #333;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ニョキメニュー */
.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  background: #f5f5f5;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  border-bottom: 1px solid #ccc;
}

/* スマホオーバーレイ対応 */
@media screen and (max-width:767px) {
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(245,245,245,1);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-menu li {
    border: none;
    margin: 1em 0;
  }

  .nav-menu a {
    font-size: 1.5em;
  }
}

.nav-menu.active {
  transform: translateY(0);
}

.nav-menu li {
  border-bottom: 1px solid #eee;
}

.nav-menu a {
  display: block;
  padding: 1em;
  font-weight: 600;
}

@media screen and (min-width:768px) {
  .hamburger {
    display: none;
  }

  .nav-menu {
    display: flex;
    flex-direction: row;
    margin-left: auto;
    position: static;
    border: none;
    transform: none;
  }

  .nav-menu li {
    border: none;
  }

  .nav-menu a {
    padding: 0 1em;
  }
}

/* Hero */
#hero {
  text-align: center;
  margin: 2.5em auto 2em;
  max-width: 1080px;
}

#hero h1 {
  /* font-family: 'Noto Serif JP', serif; */
  font-size: clamp(2.22em, 8vw, 4.44em);
  line-height: 1.35;
  text-align: center;
}

#hero h1.threeWord {
  font-size: clamp(2.1em, 8vw, 4.44em);
}

#hero h1 span {
  display: block;
}

@media screen and (min-width:768px) {
  #hero {
    margin: 4em auto 1em;
  }
  
  #hero h1 {
    line-height: 1.2;
  }
}

/* Hero画像フル幅表示 */
.hero-image-wrapper {
  width: 100%;
  overflow: hidden; /* 縦はみ出る部分を切る */
  margin-top: 2em;
}

.hero-image {
  width: 100%;       /* 横幅フル */
  height: auto;      /* 比率維持 */
  display: block;
  object-fit: cover; /* 縦長画像でも比率維持 */
}

@media screen and (max-width:767px) {
  .hero-image-wrapper {
    height: calc(100% - 50px); /* 縦方向を-50pxで表示領域狭める */
    margin-top: 1em;
  }
  
  .hero-image {
    height: 100%;
    object-fit: cover;
  }
}

/* お知らせラベル */
.label-news {
  display: inline-block;
  padding: 0.2em 3em;
  margin-bottom: .5em;
  letter-spacing: 0.2em;
  border: 1px solid #000;
  text-align: center;
  font-size: clamp(1.22em, 2.2vw, 1.78em);
}

@media screen and (min-width:768px) {
  .label-news {
    margin-bottom: 1.2em;
    padding: 0.5em 3em;
  }
}

/* セクション */
section {
  padding: 0 1em 2em;
  max-width: 1080px;
  margin: 0 auto;
  overflow-wrap: break-word;
}

h2 {
  background-color: #f5f5f5;
  border-left: 14px solid #4ca748;
  margin: 0 0 20px;
  padding: 20px 30px;
  font-size: 1.22em;
  font-weight: bold;
  line-height: 1.4;
  position: relative;
}

p {
  line-height: 1.8
}

p img {
  max-width: 100%;
  height: auto;
  vertical-align: top;
  padding: 1em;
}

p a {
  color: #4ca748;
  text-decoration: underline;
}

p.spacer {
  height: 1em; /* デフォルトの高さ */
  margin: 0;   /* 余白はリセット */
}

/* 高さのバリエーション */
p.spacer.sm { height: 0.5em; }
p.spacer.md { height: 1em; }
p.spacer.lg { height: 2em; }
p.spacer.xl { height: 3em; }

@media screen and (max-width:767px) {
  h2 {
    font-size: 1.22em;
    padding: 15px 20px;
    margin: 0 0 10px;
  }
}

h3 {
  margin: 1em 0 .5em;
  font-size: 1.22em;
  font-weight: bold;
  line-height: 1.4;
}

h3 span {
  font-size: .8em;
  margin-left: .2em;
}

ul.recommend li {
  font-size: clamp(1em, 2.2vw, 1.22em);
  margin-bottom: 0.8em;
  list-style: none;
}

ul.recommend li i.fa-check {
  color: #228b22;
  margin-right: 0.5em;
}

/* CTAボタン */
.cta-buttons {
  margin: 2em auto;
  display: flex;
  flex-direction: column;
  gap: 1em;
  max-width: 1080px; 
  padding: 0 1em;
  box-sizing: border-box;
}

.cta-buttons .btn {
  font-size: 1.22em;
  padding: 1.2em 2em;
  text-align: center;
  font-weight: 700;
  border-radius: 50px;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
}

.cta-buttons .btn i {
  margin-right: 0.5em;
  vertical-align: middle;
  margin-top: -2px;
  font-size: 1.2em;
}

.btn-form {
  background: #333;
  color: #fff;
}

.btn-form:hover {
  background: #444;
}

.btn-tel {
  background: #228b22;
  color: #fff;
}

.btn-tel:hover {
  background: #1e7a1e;
}

.btn-tel .mobile-text {
  display: none;
}

@media screen and (max-width:767px) {
  .btn-tel .pc-text {
    display: none;
  }

  .btn-tel .mobile-text {
    display: inline;
  }
}

.btn-line {
  background: #06c755;
  color: #fff;
}

.btn-line:hover {
  background: #05a845;
}

@media screen and (min-width:768px) {
  section {
    padding: 2em 3em;
  }

  .cta-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 1em; 
  }

  .btn-tel,
  .btn-line {
    font-size: 0.9em;
  }
}

/* フッター */
footer {
  text-align: center;
  padding: 1.5em;
  background: #f8f8f8;
  color: #666;
}

/* フッター固定のため追加 */
main {
  flex: 1; /* mainコンテンツを伸ばしてフッターを下に押す */
}

@media screen and (max-width:767px) {
  .hamburger {
    margin-left: auto;
    align-items: flex-end;
  }
}

@media screen and (max-width:430px) {
  .cta-buttons .btn {
    padding: 1em 1.2em;
  }
}

.text-small {
  font-size: 0.83em;
}

/* 画像の左寄せ/中央寄せ（追加分） */
section img {
  display: block;
  height: auto;
  max-width: 100%;
}

@media screen and (min-width:768px) {
  section img {
    margin-left: 0;
    margin-right: auto; /* 左寄せ */
  }
}

@media screen and (max-width:767px) {
  section img {
    margin-left: auto;
    margin-right: auto; /* 中央寄せ */
  }
}

/* 特定用 h1 */
#hero .h1-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 2.5em; /* PCサイズ */
  line-height: 1.3;
  margin: 1em 0;
  padding: 0 1em;
  text-align: center;
}

@media screen and (max-width: 767px) {
  #hero .h1-title {
    font-size: 1.8em; /* スマホサイズ */
  }
}

/* 汎用ボタン（中央寄せ対応） */
.btn-top {
  display: inline-block;
  background-color: #228b22; /* 緑系 */
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1em;
  padding: 0.8em 2em;
  border-radius: 50px;
  text-align: center;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin: 1em auto; /* 中央寄せ */
}

/* ホバー・アクティブ */
.btn-top:hover {
  background-color: #1e7a1e;
  transform: translateY(-2px);
}

.btn-top:active {
  transform: translateY(0);
}

/* スマホ向けボタンサイズ調整 */
@media screen and (max-width: 767px) {
  .btn-top {
    font-size: 0.9em;
    padding: 0.7em 1.6em;
  }
}

/* コンテナに中央寄せ */
.btn-top-wrapper {
  text-align: center;
  margin: 2em 0;
}

/* Hero動画レスポンシブ対応 */
.hero-video-wrapper {
  width: 100%;
  margin-top: 2em;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 アスペクト比 */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 開催スケジュール */
.schedule {
  margin-top: 2em;
}

.schedule-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1em;
  margin-top: 1.5em;
}

/* 月カード */
.schedule-month {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1em 1.2em;
  background: #fafafa;
}

.schedule-month h4 {
  margin-bottom: 0.5em;
  font-size: 1.1em;
  font-weight: 700;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.3em;
}

.schedule-month ul {
  list-style: none;
  padding: 0;
  margin: 0.5em 0 0;
}

.schedule-month li {
  padding: 0.3em 0;
  font-size: 0.95em;
}

/* PC表示 */
@media screen and (min-width:768px) {
  .schedule-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5em;
  }
}

/* 直近開催日 */
.schedule-month li.next {
  font-weight: 700;
  color: #1e7a1e;
  background: rgba(34, 139, 34, 0.08);
  padding: 0.4em 0.6em;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

/* 受付中バッジ */
.schedule-month .badge {
  background: #22a722;
  color: #fff;
  font-size: 0.75em;
  padding: 0.2em 0.6em;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

/* スマホ：開催スケジュール アコーディオン */
@media screen and (max-width:767px) {
  .schedule-month ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .schedule-month.active ul {
    max-height: 500px; /* 十分大きければOK */
  }

  .schedule-month h4 {
    cursor: pointer;
    position: relative;
    padding-right: 1.5em;
    border: none;

    margin-bottom: 0;
    padding-bottom: 0;
  }

  /* 開閉アイコン */
  .schedule-month h4::after {
    content: "＋";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.2em;
    line-height: 1;
  }

  .schedule-month.active h4::after {
    content: "−";
  }

  .schedule-month.active h4{
    border-bottom: 1px solid #ccc;
    margin-bottom: 0.5em;
    padding-bottom: 0.3em;
  }
}