﻿@charset "UTF-8";

/* ==========================================================
   BASE / COMMON / HEADER
   基本設定・共通要素・ヘッダー・本文共通
========================================================== */


@import url("https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap");

/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pastel-pink: #FFD1DC;
    --pastel-blue: #B5E6FF;
    --pastel-yellow: #FFF9C4;
    --pastel-green: #ADF8B0;
    --pastel-purple: #E1BEE7;
    --text-color: #5D4037;
    --pastel-mint: #64FBE1;
    --pastel-sage: #C7E9C0;
}

body {
    font-family: "Comic Neue", "Hiragino Kaku Gothic Pro", "Meiryo", sans-serif;
	font-size: 1rem;  /* 少し大きくする 1rem → ブラウザ標準*/
    line-height: 1.7;
    color: var(--text-color);
    background-color: #FFFFFF;
    background-image: url("../images/pattern.png");
    background-size: 200px;
    background-attachment: fixed;
}

.small-text {
  font-size: 0.8em;  /* 80%の大きさ */
  color: #666;       /* 薄めのグレーなど */
}
	
.center-text-table th,
.center-text-table td {
  text-align: center;
  vertical-align: middle; /* 行内中央にも揃えるならこれもおすすめ */
}

/* アニメーション */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ヘッダー */
header {
    background-color: #FFFFFF;
    position: relative;
    width: 100%;
    z-index: 1000;
    height: 200px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 60px;
    position: relative;
}

header h1 {
    font-size: 1.8rem;
    color: var(--text-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}


/* スマホ用ヘッダーアイコン */
@media (max-width: 768px) {
  .switch-icon[src="images/icon_instagram.png"] {
    content: url("../images/icon_instagram_sp.png");
    width: 40px;
    height: 40px;
  }

  .switch-icon[src="images/icon_access.png"] {
    content: url("../images/icon_access_sp.png");
    width: 40px;
    height: 40px;
  }
}

/* メインコンテンツ */
main {
    margin-top: 0;
    /* background-image: url('../images/bag-tree-green.png'); */
    background-size: auto 100%;     /* 縦方向を基準に背景サイズを調整 */
   background-position: right top;   /* 背景を右上に配置 */
    background-attachment: fixed;     /* スクロール時も背景を固定 */
}


/* スマホ表示時（横幅が小さいとき） */
@media (max-width: 768px) {
  main {
    background-image: none;
   background-color: #fff; /* 必要に応じて背景色を設定 */
  }
}

/* ヒーローセクション */

.top-image {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    display: block;
}
.top-image img {
    width: 100%;
    height: auto;
    display: block;
}
@media (max-width: 768px) {
    .top-image {
        width: 90%;
        margin: 15px auto;
    }
}
@media (max-width: 480px) {
    .top-image {
        width: 95%;
        margin: 10px auto;
    }
}


/* セクション共通 */
section {
    padding: 2rem 2rem;
    position: relative;
}

section h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 1rem;
    font-size: 2rem;
}

section h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--pastel-green);
}

.icon-h3 {
  font-size: 1.3rem;          /* h2より少し小さめ */
  color: var(--text-color);  /* 既存の色に合わせて */
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-h3::before {
  content: "●";               /* 見出し用の丸アイコン */
  color: var(--pastel-green); /* 共通のアクセントカラー */
  font-size: 1.8rem;            /* 丸アイコンのサイズ */
}

/* h3アイコンに合わせて本文をインデント */
.indent-text {
  margin-left: 2.2rem;
}


/* 園のご紹介 */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.about-item {
    background-color: var(--pastel-mint);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}


.about-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.about-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.about-item h3::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--pastel-sage);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.about-item:hover h3::after {
    transform: scaleX(1);
}

/* ========================================
   ページトップへ戻るボタン
======================================== */

.page-top {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 1000;

  width: 60px;
  height: 60px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #07B707;
  border-radius: 50%;

  color: #555;
  font-size: 13px;
  line-height: 1.2;
  text-decoration: none;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);

  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s;
}

.page-top span {
  font-size: 14px;
  margin-bottom: 2px;
}

/* 表示状態 */
.page-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* PC：マウスを乗せたとき */
.page-top:hover {
  background: #fff;
  transform: translateY(-3px);
}

/* スマホ */
@media (max-width: 768px) {
  .page-top {
    right: 15px;
    bottom: 15px;
    width: 52px;
    height: 52px;
    font-size: 11px;
  }
}

/* ========================================
   スライダーによるページ上下揺れ防止
======================================== */
html,
body {
  overflow-x: clip;
}

