@charset "UTF-8";

/* ============================
   ベース
============================ */
:root {
  --pink-light: #ffeef5;
  --pink-main: #ff88aa;
  --gray-bg: #f9f9f9;
  --text-main: #333333;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Rounded Mplus 1c", "UD Digi Kyokasho N-R",
               "Hiragino Maru Gothic ProN", sans-serif;
  margin: 0;
  padding: 0;
  background: url("./images/side_back_ground_img.png") repeat-y center top;
  background-size: 100% auto; 
  color: var(--text-main);
  line-height: 1.7;
}

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

a {
  color: inherit;
}

section {
  padding: 20px 20px;
  max-width: 960px;
  margin: 0 auto;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5em;
}

p {
  margin: 0 1em 0.5em;
}

/* ============================
   ヘッダー
============================ */
.site-header {
  position: relative;
  text-align: center;
  padding: 30px 10px 20px;
  background: url("./images/header_background_img.png") no-repeat center/cover;
  border-bottom: 1px solid #eee;
  z-index: 1000;
}

.logo-area img {
  max-width: 520px;
  margin: 10px auto;
}

.header-links {
  position: absolute;
  top: 20px;
  right: 40px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.header-links img {
  width: 28px;
  height: 28px;
}

/* ============================
   PCナビ
============================ */
.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.main-nav a img {
  width: 120px;
  border-radius: 999px;
  transition: transform 0.2s ease;
}

.main-nav a img:hover {
  transform: scale(1.05);
}

/* ============================
   ハンバーガー & スライドメニュー
============================ */

.slide-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  height: 100vh;
  background: #fff;
  padding: 60px 20px;
  transition: right 0.3s ease;
  /* ヘッダー（.site-header）の z-index(1000) より上にして隠れないようにする */
  z-index: 1001;
  overflow-y: auto;
  border-left: 3px solid var(--pink-main);
}

.slide-nav.show {
  right: 0;
}

.slide-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.slide-nav li {
  margin: 15px 0;
}

.slide-nav a {
  text-decoration: none;
  text-align: center;
  display: block;
  padding: 12px 16px;
  background: var(--pink-light);
  border-radius: 999px;
  color: #333;
  font-weight: bold;
}

/* ============================
   ヒーロー
============================ */
.hero {
  background: #fff;
  border-radius: 16px;
  padding: 50px 25px 5px;
  text-align: center;
}

.hero-title {
  font-size: 1.8rem;
  margin-bottom: 1em;
}

.hero-text {
  text-align: left;
  max-width: 720px;
  margin: 0 auto;
}

.hero-note {
  font-size: 1.2rem;
  margin-top: 1em;
  margin-bottom: 1em;
}

/* ============================
   hero-slider レスポンシブ整理
============================ */
/* - 通常（〜599pxより上）: 高さ `380px` / `.slide` は `opacity` で切替 */
/* - <= 600px: 高さ `220px`（<=480px でも継続） */
/* - <= 480px: `.slide` の表示切替を `display: none/block` に変更 */

.hero-slider {
  position: relative;
  width: 100%;
  height: 380px; 
  overflow: hidden;
  border-radius: 16px;
  margin: 20px auto;
  max-width: 960px;
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slider .slide.active {
  opacity: 1;
}

.hero-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================
   活動のご紹介(indexページ)
============================ */
.activity-grid-top {
  display: grid;
  grid-template-columns: 1fr 1fr; /* PC・タブレット */
  gap: 24px;
}

.activity-grid figure {
  margin: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.activity-grid figcaption {
  padding: 12px 16px 16px;
  font-size: 0.95rem;
}


/* ============================
   おもな活動
============================ */
.main-activities-wrap {
  background: #FFFBF0;
  border-radius: 16px;
  padding: 30px 20px;
  margin-top: 40px;
}

.main-activities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-activities li::before {
  content: "● ";
  color: var(--pink-main);
}

.center-btn-area {
  text-align: center; /* ← 中央 → 右寄せに変更 */
  margin-top: 24px;
}
.center-btn-area .btn {
  background-color: #f8d7da;
    color: #721c24;
  padding: 12px 16px;
  border-radius: 24px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  border: none;
  outline: none;
}

/* ============================
   施設長挨拶
============================ */

.greeting-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
}
.greeting-photo img {
  border-radius: 16px;
  overflow: hidden;
}
.greeting-text p{
  margin: 15px 40px;
}
/* ============================
   お知らせ
============================ */
.sns-links {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  /*justify-content: center;*/
}

/* ============================
   アクセス
============================ */
.access-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 40px;
  margin-bottom: 30px;
}

.access-info p {
  font-size: 1.1rem;
  font-weight: 500;
  color: #444;
  margin: 30px;
}

.access-photo,
.access-info {
  flex: 1;
}

.access-photo img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* ============================
   お問合せ（TOP）
============================ */
.contact-wrap {
  background: #FFFBF0;
  border-radius: 16px;
  padding: 30px 20px 40px;
  text-align: center;
}

.contact-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2em;
  flex-wrap: wrap;
  margin-bottom: 1em;
}

.btn.mail {
  background-color: #f8d7da;
  color: #721c24;
  padding: 0.8em 1.2em;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
}

.contact-phone {
  font-size: 1.2rem;
  color: #721c24;
  font-weight: bold;
}

/* ============================
   contactページ
============================ */
.contact-container {
  max-width: 600px;
  margin: 50px auto;
  background: #FFFBF0;
  padding: 40px 30px;
  border-radius: 16px;
}

input,
textarea {
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  padding: 12px;
  margin-bottom: 24px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.submit-btn {
  display: block;
  margin: 10px auto;
  padding: 12px 32px;
  background-color: var(--pink-main);
  color: #fff;
  border-radius: 999px;
  border: none;
  outline: none;
}
.submit-btn:focus,
.submit-btn:active,
.submit-btn:focus-visible {
  outline: none;
  border: none;
}
.submit-btn::-moz-focus-inner {
  border: 0;
}

.contact-tour-tel{
  font-size: 2rem;
  color: #ff88aa;
  text-align: center;
}
/* ============================
   Thanksページ
============================ */
    .thanks-container {
      max-width: 600px;
      margin: 100px auto ;
      padding: 40px 30px;
      background: #fffbf0;
      border-radius: 16px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      text-align: center;
    }

    .thanks-container h3 {
      font-size: 1.8rem;
      margin-bottom: 20px;
      color: #333;
    }

    .thanks-container p {
      font-size: 1rem;
      color: #555;
      margin-bottom: 30px;
    }

    .thanks-btn {
      display: block;
      margin: 0 auto;
      padding: 12px 32px;
      background-color: var(--pink-main);
      color: #fff;
      border-radius: 999px;
      border: none;
      outline: none;
      text-decoration: none;
    }


    .thanks-btn:hover {
      background: #ff88ab;
    }

/* ============================
   活動の紹介ページ（activity.html）
============================ */
.activity-textbox p{
  font-size: 1.1rem;
  margin-bottom: 50px;
}
.activity-top-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.activity-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.activity-card:hover {
  transform: translateY(-4px);
}

.activity-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.activity-card p {
  padding: 14px 16px;
  line-height: 1.6;
  color: #555;
  font-size: 0.95rem;
}

.activity-image2 img {
  max-width: 80%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}


.activity-grid-activity {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  margin-top: 20px;
  padding: 0 10px;
}

.activity-grid figure {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.activity-grid figure:hover {
  transform: translateY(-4px);
}

.activity-grid img {
  width: 100%;
  aspect-ratio: 4 / 3; /* ← 画像比率を統一 */
  object-fit: cover;
  display: block;
}

figcaption {
  padding: 14px 16px;
  text-align: center;
}

figcaption .main-caption {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

figcaption .sub-caption {
  text-align: left;
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
  margin: 0 auto;
  max-width: 90%;
}

.activity-highlight {
  margin-top: 60px;
  margin-bottom: 60px;
}

.activity-highlight h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 30px;
  letter-spacing: 0.05em;
}

/* ============================
   フッター
============================ */
footer {
  background:
    linear-gradient(rgba(255, 255, 255, 0.705), rgba(255,255,255,0.9)),
    url("./images/footer_background_img1.png") center/cover no-repeat;
  text-align: center;
  padding: 12px 10px;
  font-size: 0.9rem;
  border-top: 1px solid #ddd;
  color: #666;
}

/* ============================
   TOPへ戻る
============================ */
.scroll-top-btn {
  position: fixed;
  bottom: 40px;
  right: 20px;
  padding: 12px 16px;
  font-size: 14px;
  background-color: #ffd6e8;
  color: #721c24;
  border-radius: 24px;
  display: none;
  border: none;
  outline: none;
}
.scroll-top-btn:focus,
.scroll-top-btn:active,
.scroll-top-btn:focus-visible{
  outline: none;
  border: none;
}
.scroll-top-btn::-moz-focus-inner{
  border: 0;
}
/* ============================
   スマホ対応
============================ */

@media (min-width: 769px) {
  .main-nav {
    display: block;
  }
}

/* iPad 縦など（幅 769px〜1100px）でもスマホ用メニューを出す */
@media (min-width: 769px) and (max-width: 1100px) {
  .main-nav {
    display: none;
  }

  .header-links {
    position: static;
    top: auto;
    right: auto;
    justify-content: center;
    flex-wrap: wrap;
  }

  .sns-links {
    flex-direction: column;
    align-items: center;
  }

  .menu-button {
    display: inline-flex !important;
    margin: 10px 0 0;
    min-width: 120px;
    white-space: nowrap;
    width: fit-content;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .sns-links {
    flex-direction: column;
    align-items: center;
  }
  .activity-grid,
  .main-activities,

  .access-layout,
  .article-grid,
  .photo-text-block,
  .two-column {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .activity-grid-top {
      grid-template-columns: 1fr; /* スマホ */
    }
  .greeting-inner {
      grid-template-columns: 1fr;
      gap: 20px;
    }
  .greeting-photo img {
      width: 100%;
      height: auto;
      border-radius: 8px;

      display: block;
      margin: 0 auto;
      max-width: 320px; /* 任意：大きすぎる場合の調整 */
    }
  /* 画像を大きく見せるための調整 */
  .activity-grid img,
  .photo-text-block img,
  .article-grid img {
    width: 100%;
    height: auto;
  }
  .menu-button {
    /* 通常定義（後段の `.menu-button { display:none; }`）に負けて非表示にならないように */
    display: inline-flex !important;
    margin: 10px 0 0;
    min-width: 120px;
    white-space: nowrap;
    width: fit-content;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .contact-row { flex-direction: column; }
  .contact-container { margin: 160px 20px 140px; }
/* h2（お問い合わせフォーム） */
  h2 {
    font-size: 24px;
    line-height: 1.4;
    word-break: keep-all;
    text-align: center;
    padding: 0 10px;
  }

/* 電話番号 */
  .contact-tour-tel {
    font-size: 24px;
    line-height: 1.4;
    white-space: nowrap;
    display: inline-block;
    text-align: center;
    margin-top: 10px;
  }
/* hero-title（トップ見出し） */
  .hero-title {
    font-size: 20px;           /* 少し小さくして読みやすく */
    line-height: 1.6;          /* 行間を広げる */
    max-width: 90%;            /* 横幅を制限して自然な折り返しに */
    margin: 0 auto 1em;        /* 中央寄せ */
    padding: 0 5px;            /* 端に当たらないように */
    white-space: normal;
    text-align: center;
    /* `h2{ word-break: keep-all; }` がスマホ時に効いて折り返しが起きないため上書き */
    word-break: normal;
    overflow-wrap: anywhere;
  }

/* `<br>` は hero-title の意図した折り返しに使うので非表示にしない */
  .hero-title br {
    display: inline;
  }

  /* hero-note も h2 の keep-all を上書きして折り返し可能にする */
  .hero-note {
    font-size: 20px;
    line-height: 1.6;
    max-width: 92%;
    margin: 0.8em auto 1em;
    padding: 0 5px;
    white-space: normal;
    word-break: break-all;
    overflow-wrap: anywhere;
    text-wrap: pretty;
  }
/* <= 600px: hero-slider の高さを 220px に短縮（<=480px でも維持） */
  .hero-slider {
    height: 220px;             /* 380px → 220px に縮小 */
  }
}

/* ============================
   スマホ共通（〜480px）
============================ */
@media screen and (max-width: 480px) {

  /* --- ヘッダー全体 --- */
  .logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .logo-area img {
    max-width: 80%;
    height: auto;
  }

  .header-links {
    /* PCでは絶対配置。スマホでは中央寄せレイアウトを崩さないよう通常フローに戻す */
    position: static;
    top: auto;
    right: auto;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }

  .header-links img {
    width: 28px;
    height: auto;
  }

  .donation-link {
    font-size: 14px;
    padding: 6px 10px;
  }

  /* <= 480px: スライド表示を `display` で切替（ベースの `opacity` 切替を抑制） */

  /* --- 活動紹介グリッド --- */
  .activity-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .activity-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  /* --- greeting セクション --- */
  .greeting-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .greeting-photo img {
    width: 100%;
    height: auto;
  }

  /* --- アクセス --- */
  .access-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .access-photo img {
    width: 100%;
    height: auto;
  }

  /* --- iframe（SNS / Google Map） --- */
  iframe {
    width: 100% !important;
  }

  /* スライドショー復活用（スマホ時の表示切替のみを上書き） */
  .hero-slider .slide {
    display: none;
  }

  .hero-slider .slide.active {
    display: block;
  }

  /* ベースでは `.hero-slider .slide img` がより強く効くため、そのセレクタで上書き */
  .hero-slider .slide img {
    width: 100%;
    height: auto;
    display: block;
  }
}

/* ============================
   MENUボタン（PCでは非表示）
============================ */
.menu-button {
  display: none;
  font-size: 18px;
  padding: 10px 18px;
  background: #ffffff;
  border: 2px solid #cccccc;
  border-radius: 12px;
  color: #333333;
  font-weight: bold;
  letter-spacing: 1px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  overflow: visible; /* ← ここが重要 */
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.menu-button-wrap {
  text-align: center;
}

/* MENU 表示 */
.menu-button .label::before {
  content: "MENU";
}

/* CLOSE 表示 */
.menu-button.active .label::before {
  content: "CLOSE";
}

/* 星アニメ */
.menu-button .star {
  display: inline-block;
  transition: transform 0.4s ease;
  font-size: 18px;
  color: #FFD700;
}

.menu-button.active .star {
  transform: rotate(360deg);
}

/* 背景の星座線（背面に配置） */
.menu-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url(
    "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='40'><polyline points='10,20 30,10 50,15 70,5 90,12 110,8' stroke='%23cccccc' stroke-width='2' fill='none' stroke-linecap='round'/><circle cx='10' cy='20' r='2' fill='%23cccccc'/><circle cx='30' cy='10' r='2' fill='%23cccccc'/><circle cx='50' cy='15' r='2' fill='%23cccccc'/><circle cx='70' cy='5' r='2' fill='%23cccccc'/><circle cx='90' cy='12' r='2' fill='%23cccccc'/><circle cx='110' cy='8' r='2' fill='%23cccccc'/></svg>") center/80% no-repeat;
  opacity: 0.15;
  pointer-events: none;
  z-index: 1;
}

/* MENU文字を最前面に */
.menu-button .label {
  position: relative;
  z-index: 10;
}
