/*
Theme Name: 虫歯０
Description: 
Author: 
Version: 1.0
*/

@font-face {
  font-family: 'Mplus2';
  src: url('assets/fonts/Mplus2-Regular.otf') format('opentype');
  font-weight: 400; /* Regular */
  font-style: normal;
}

@font-face {
  font-family: 'Mplus2';
  src: url('assets/fonts/Mplus2-Bold.otf') format('opentype');
  font-weight: 700; /* Bold */
  font-style: normal;
}

:root {
    --background-color: #faf2e3;
    --text-color: #442809;
    --hover-color: #a67c00;
}

body {
    margin: 0;
    background-color: #faf2e3;
    background-image: url('assets/images/noise.png'); /* 黒背景のノイズ画像 */
    background-repeat: repeat;
    background-position: top left;
    background-size: 200px 200px;
    background-blend-mode: screen;
    font-family: 'Mplus2';
    letter-spacing: 0.02em; 
    line-height: 1.6;
    color: var(--text-color);
    padding-top: 170px; /* ヘッダー分 */
	opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

body.loaded {
  opacity: 1;
}

html {
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

* { 
    box-sizing: border-box; 
}

.page-wrapper {
    padding-left: clamp(10px, 2vw, 20px);
    padding-right: clamp(10px, 2vw, 20px);
    box-sizing: border-box;
    overflow-x: hidden;
}

/* container共通クラス */
.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: clamp(16px, 3vw, 32px);
}

/* ヘッダー全体 */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 170px;
    background-color: rgba(255, 247, 209, 0.9);
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); /* Safari対応 */
    box-shadow:
        inset 6px 6px 12px #f4f0c2,
        inset -6px -6px 12px #fffbea,
        6px 6px 12px rgba(0,0,0,0.05);
    /*border-radius: 0 0 60px 60px ;*/
    padding: 20px 0;
    z-index: 1000;  /* 他の要素より前面に表示 */
    
}

.site-header::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  height: 110px; /* 高さ調整 */
  background-image: url('assets/images/header-decor.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: contain;
  pointer-events: none;
  z-index: -1; /* 必要なら -1（ヘッダー内の一番下に） */
  opacity: 0.2;
}

.shounanhoiku-logo {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    padding: 16px;
    z-index: 20; /* 他要素より前面に */
    gap: 8px;
}

.shounanhoiku-logo img {
    height: 50px; /* 必要に応じてサイズ調整 */
}

.shonan-logo-text{
  font-size: 0.9rem;
  font-weight: bold;
}

/* 中央寄せ・縦並びに変更 */
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;  /* ←縦並びにする */
    align-items: center;
    padding: 0 20px;
}

.header-wave {
    display: block;
    width: 100%;
    height: auto;
    margin-top: -1px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;  /* ロゴとタイトルの間隔 */
    margin-bottom: 20px;  /* ロゴ下の余白（ナビとの間） */
}

/* ロゴ */
.site-logo img {
    max-height: 60px;
    display: block;
    
}

.page-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff;
    text-shadow:
      2px 2px 0 #1800ad,
      -2px 2px 0 #1800ad,
      2px -2px 0 #1800ad,
      -2px -2px 0 #1800ad,
      0 2px 0 #1800ad,
      2px 0 0 #1800ad,
      0 -2px 0 #1800ad,
      -2px 0 0 #1800ad;
}

/* ナビメニュー */
.header-nav a:hover {
    background-color: #FFBB66;
    color: #fff;
}

/* ハンバーガーボタン */
.hamburger {
    display: none; /* PCは非表示 */
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    box-sizing: border-box;
}

.hamburger .bar {
  width: 100%;
  height: 3px;
  background-color: #555;
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

.hamburger.open .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}
/* ナビメニュー */
.header-nav ul {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 170px; 
    height: 54px;
    padding: 0 10px; 
    background-color: #FFE999;
    border-radius: 999px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    line-height: 1.2;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header-nav a.is-current {
  font-weight: bold;
}

.header-nav a.home-icon {
  width: 50px;
  height: 50px;
  padding: 0;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-nav a.home-icon .icon {
  display: inline;
  font-size: 1.5rem;
}

.header-nav a.home-icon .text {
  display: none;
}

/* --- スマホビュー（1024px以下）ではテキスト表示に戻す --- */
@media (max-width: 1024px) {
  .header-nav a.home-icon {
    width: auto;
    padding: 10px 10px;
    height:54px;
  }

  .header-nav a.home-icon .icon {
    display: none;
  }

  .header-nav a.home-icon .text {
    display: inline;
  }
}


/* スマホ対応 */
@media (max-width: 1024px) {
    body {
        padding-top: 80px;
    }
    .site-header {
        background-color: #FFF7D1;
        height: 80px;
        border-radius: 0;
    }

    .site-header::before {
        display: none;
    }

    .header-inner {
        position: relative;
    }

    .site-logo {
        margin-bottom: 20px;  /* ロゴ下の余白（ナビとの間） */
    }

    .site-logo img {
        max-height: 40px;
        
    }

    .page-title {
      font-size: 1.2rem;
    }

    .hamburger {
        display: flex;
        position: absolute;
        top: 10px;
        right: 30px;
    }

    .header-nav {
        position: fixed;
        top: 80px; /* ヘッダー高さに合わせる */
        left: 0;
        right: 0;
        background-color: #FFF7D1;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        z-index: 999;
    }

    .header-nav.open {
        max-height: 400px; /* 開いた時の高さ */
        padding-bottom: 20px;
        border-radius: 0 0 30px 30px ;
    }

    .header-nav ul {
        flex-direction: column;
        gap: 12px;
        padding: 0px 20px;
    }

    .header-nav a {
        width: 100%;
        text-align: center;
        padding: 10px 0;
        display: flex;              /* flexコンテナに */
        flex-direction: column;    /* テキストが複数行でも縦積み */
        justify-content: center;   /* 縦方向の中央寄せ */
        align-items: center;       /* 横方向の中央寄せ */
        text-align: center;        /* テキストも中央寄せ */
    }

    .shonan-logo-text{
      display: none;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 1rem;
      }
  }

/* フッター */
.site-footer {
  background-color: #fff;
  color: #4d2e0c;
  padding: clamp(20px, 3vw, 40px) 20px;
  font-family: 'Mplus2', sans-serif;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.footer-container {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 3vw, 20px);
}

/* 上部：縦3段で中央寄せ */
.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer-company {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

.company-icon {
  width: 80px;
  height: auto;
}

.footer-address,
.footer-contact {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  font-style: normal;
}

.footer-contact a {
  color: inherit;
}

/* 下部：横並びに */
.footer-bottom-sections {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(30px, 4vw, 50px);
  justify-content: space-between;
}

.footer-section {
  flex: 1 1 220px;
  min-width: 180px;
}

.footer-section h3 {
  margin-bottom: 12px;
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  border-bottom: 2px solid #e3a921;
  padding-bottom: 6px;
}

.footer-section ul {
  list-style: disc inside;
  padding-left: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 6px;
}


/* トップ */

/* ヒーローセクション */
.hero {
    position: relative;
    width: 100%;
    max-width: 100%; /* 好みで調整 */
    margin: 0 auto;
    padding-top: 41.15%;
}

.hero .bg{
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-photo {
    position: absolute;
    width: 18%;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.img5 { top: 15%; left: 19%; animation-delay: 1s; }
.img6 { top: 25%; right: 19%; animation-delay: 2s; }

.img7, .img8, .img9 {
    position: absolute;
    animation: smallFloat 6s ease-in-out infinite;
}

@keyframes smallFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }  /* 小さい動き */
}

.img7 { bottom: 4%; left: 4%; animation-delay: 1s; } 
.img8 { top: 45%; left: 42%; animation-delay: 0s; }
.img9 { top: 5%; right: 1%; animation-delay: 2s; } 

.floating-image {
    position: absolute;
    width: 4%;
    opacity: 80%;
    animation: float 6s ease-in-out infinite;
}

.img1 { top: 30%; left: 10%; animation-delay: 0s; }
.img2 { top: 50%; left: 37%; animation-delay: 2s; }
.img3 { top: 20%; right: 40%; animation-delay: 3s; }
.img4 { top: 55%; right: 10%; animation-delay: 1s; }

@keyframes float {
    0%, 100% { transform: translateY(0);}
    50% { transform: translateY(-20px);}
}

.description {
  margin: 60px auto;
  text-align: center;
}

.description p {
  font-size: clamp(1rem, 3vw, 1.8rem);
  line-height: 1.8;
}

.description .highlight {
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  color: #FF6B6B; 
  font-weight: bold;
}

/* ニュースセクション */
.news-section {
    margin: 60px 0;
    text-align: center;
}

.news-section h2 {
    font-size: clamp(1.4rem, 4vw, 2rem);
    border-bottom: 3px solid #FF6B6B;
    padding-bottom: 6px;
    display: inline-block;
    margin-bottom: 20px;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 16px;
    background-color: #fff;
    box-shadow:
        4px 4px 10px rgba(0, 0, 0, 0.05),
        -2px -2px 6px rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

.news-item + .news-item {
    border-top: 1px dashed #e3a921;
}

.news-item a {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 14px 18px;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.news-item a:hover {
    background-color: #FFF7D1;
}

.news-date {
    font-size: 0.9rem;
    color: #8a6b3b;
    white-space: nowrap;
}

.news-title {
    font-size: 1rem;
}

.news-more {
    margin-top: 16px;
    text-align: right;
}

.news-more-link {
    display: inline-block;
    font-size: 0.9rem;
    color: #d46a00;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 999px;
    background-color: #fff;
    box-shadow:
        2px 2px 6px rgba(0, 0, 0, 0.08),
        -1px -1px 4px rgba(255, 255, 255, 0.9);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.news-more-link:hover {
    background-color: #FFBB66;
    color: #fff;
    transform: translateY(-1px);
}

/* ニュースモーダル */
.news-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.news-modal.is-open {
    display: flex;
}

.news-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.news-modal-dialog {
    position: relative;
    max-width: 800px;
    width: calc(100% - 40px);
    max-height: 80vh;
    background-color: #fff;
    border-radius: 20px;
    box-shadow:
        8px 8px 20px rgba(0, 0, 0, 0.2),
        -4px -4px 10px rgba(255, 255, 255, 0.8);
    padding: 20px 24px;
    overflow: hidden;
}

.news-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #FFE999;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.news-modal-header h2 {
    font-size: 1.2rem;
    margin: 0;
}

.news-modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
}

.news-modal-body {
    max-height: calc(80vh - 80px);
    overflow-y: auto;
    padding-right: 4px;
}

.news-modal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-modal-item + .news-modal-item {
    border-top: 1px dashed #e3a921;
}

.news-modal-item a {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 4px;
    text-decoration: none;
    color: var(--text-color);
}

.news-modal-item a:hover {
    background-color: #FFF7D1;
}

.instagram-section {
    padding: 20px 0;
    margin-left: calc(-1 * clamp(10px, 2vw, 20px));
    margin-right: calc(-1 * clamp(10px, 2vw, 20px));
    padding-left: clamp(10px, 2vw, 20px);
    padding-right: clamp(10px, 2vw, 20px);
    background-image:
    repeating-linear-gradient(
      -45deg,
      rgba(250, 200, 180, 0.25),
      rgba(250, 200, 180, 0.25) 10px,
      transparent 10px,
      transparent 20px
    );
}

.insta-box {
  border-radius: 20px;
  padding: clamp(16px, 3vw, 32px);
  max-width: 1200px;
  margin: 20px auto;
  background-color: #fff;
  text-align: center;
}

.instagram-section .container{
    border-radius: 20px;
    border: 3px dashed #e3a921;
}

.insta-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.insta-logo {
  width: 64px;
  height: 64px;
}

.insta-gallery {
  max-width: 800px;
  margin: 0 auto;
}

/* 外部リンクセクション */
.links-section {
    margin: 80px 0;
    text-align: center;
}

.links-section h2 {
    font-size: clamp(1.4rem, 4vw, 2rem);
    border-bottom: 3px solid #FF6B6B;
    padding-bottom: 6px;
    display: inline-block; /* 下線を文字幅に合わせる */
    
}

.links-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 40px 40px;
}

.link-item {
    width: 150px;
    text-align: center;
}

.link-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
}

.link-item img {
    max-width: 120px;
    height: auto;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.link-item img:hover {
    transform: scale(1.05);
}

.link-name {
    font-size: 1rem;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .links-wrapper {
        gap: 60px;
        padding: 40px 0;
    }

    .link-item {
        width: 100px;
    }

    .link-name {
    font-size: 0.9rem;
}
}


.fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade.active {
    opacity: 1;
    transform: translateY(0);
}