/* ===== 基本 ===== */
* {
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: 110px;
  background: #f3efe8;
  font-family: "M PLUS Rounded 1c", sans-serif;
  color: #4a3f35;
  overflow-x: hidden;
}

/* ===== ローディング ===== */
#loader {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #f5eee6;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 6px solid #bd9872;
  border-top: 6px solid #7fa36b;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

#content {
  display: none;
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px;
}

/* ===== ヘッダー ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255,242,227,0.92);
  backdrop-filter: blur(10px);
  z-index: 9999;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.nav-inner {
  max-width: 900px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 22px 24px;
  width: 100%;
}

/* ロゴ */
.logo {
  font-size: 24px;
  font-weight: 900;
  color: #3c6923;
  white-space: nowrap;
  letter-spacing: 1px;
}

/* ナビ */
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;

  margin-left: auto;
}

/* リンク */
.nav-links a {
  text-decoration: none;
  color: #4a3f35;
  font-size: 16px;
  font-weight: 600;
  position: relative;
  transition: 0.2s;
}

/* ホバー */
.nav-links a:hover {
  color: #7fa36b;
}

/* 下線 */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #7fa36b;
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ===== スマホボタン ===== */
.menu-toggle{
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #4a3f35;
}

/* ===== タイトル ===== */
.section-title {
  text-align: center;
  margin: 40px 0;
  position: relative;
  font-family: 'Zen Maru Gothic', sans-serif;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  margin: 8px auto 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #bd7272, #7fa36b);
}

/* ===== MENU ===== */
.top-menu {
  max-width: 900px;
  margin: 40px auto;
}

.menu-list {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 15px;
}

.menu-item {
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  text-decoration: none;
  color: #4a3f35;

  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: 0.2s;

  border-left: 6px solid #7fa36b;
}

.menu-item:hover {
  transform: translateY(-4px);
  background: #f0f7ed;
}

.menu-text h3{
  margin: 0;
  font-size: 18px;
}

.menu-text p{
  margin-top: 4px;
  color: #777;
  font-size: 13px;
}

/* ===== ABOUT ===== */
.top-about {
  background: linear-gradient(#d6bfa7, #cbb49c);
  padding: 35px;
  border-radius: 20px;
}

.about-inner{
  display: flex;
  gap: 50px;
  justify-content: center;
  align-items: center;
}

/* アイコン */
.about-inner img {
  width: 150px;
  animation: floaty 3s ease-in-out infinite;
}

/* ふわふわ */
@keyframes floaty {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* ===== LINK ===== */
.link-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 15px;
}

.pill {
  padding: 15px;
  background: #fff;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  color: #4a3f35;

  transition: 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.pill:hover {
  background: #e6f0e3;
  transform: translateY(-3px);
  color: #3c6923;
}

/* ===== UPDATE ===== */
.update-box {
  background: #fff;

  padding: 35px;

  border-radius: 15px;

  margin-top: 40px;

  box-shadow: 0 4px 12px rgba(0,0,0,0.06);

  border: 4px solid #7fa36b;
}

.timeline .date {
  font-size: 14px;
  color: #7fa36b;
  font-weight: bold;

  margin: 0;
  display: block;
}

.timeline .content p {
  margin: 2px 0 0;
}

.timeline-item .content {
  margin-bottom: 18px;
}

/* ===== コピーライト ===== */
.copyright {
  text-align: center;
  margin-top: 30px;
  padding-bottom: 20px;

  font-size: 12px;
  color: #7a6a5f;
  opacity: 0.7;
}

/* ===== ギャラリー ===== */
.gallery{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 15px;
}

.gallery img{
  width: 100%;
  border-radius: 15px;
  cursor: pointer;
  transition: 0.25s;
}

.gallery img:hover{
  transform: scale(1.03);
}

/* ===== モーダル ===== */
.modal{
  display: none;

  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;

  width: 100%;
  height: 100%;

  background: rgba(0,0,0,0.8);

  justify-content: center;
  align-items: center;
}

.modal img{
  max-width: 90%;
  max-height: 90%;
  border-radius: 20px;
}

/* ===== タブレット ===== */
@media (max-width: 1024px) {

  body{
    padding-top: 110px;
  }

  .nav-inner{
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    padding: 20px;
  }

  .logo{
    font-size: 20px;
  }

  .nav-links{
    flex-wrap: nowrap;
    justify-content: flex-end;

    margin-left: auto;

    gap: 18px;
  }

  .nav-links a{
    font-size: 15px;
  }

  .about-inner{
    flex-direction: column;
    text-align: center;
  }

  .menu-list{
    grid-template-columns: 1fr;
  }

  .link-grid{
    grid-template-columns: 1fr;
  }

}

/* ===== スマホ ===== */
@media (max-width: 768px) {

  body{
    padding-top: 90px;
  }

  #content{
    padding: 20px;
  }

  /* ヘッダー */
  .nav-inner {
    padding: 18px 16px;
  }

  .logo {
    font-size: 18px;
  }

  /* ボタン */
  .menu-toggle{
    display: block;
  }

  /* メニュー */
  .nav-links{
    position: absolute;
    top: 80px;
    right: 15px;

    background: #fff2e3;
    border-radius: 15px;

    flex-direction: column;
    align-items: flex-start;

    padding: 15px;
    gap: 12px;

    width: 180px;

    box-shadow: 0 8px 20px rgba(0,0,0,0.08);

    display: none;
  }

  .nav-links.active{
    display: flex;
  }

  .nav-links a{
    font-size: 15px;
    width: 100%;
  }

  /* menu */
  .menu-list {
    grid-template-columns: 1fr;
  }

  /* about */
  .top-about{
    padding: 25px;
  }

  .about-inner {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }

  .about-inner img{
    width: 120px;
  }

  /* links */
  .link-grid {
    grid-template-columns: 1fr;
  }

  /* gallery */
  .gallery{
    grid-template-columns: 1fr;
  }

}

/* ===== おしらせ ===== */
.notice-banner{
  position: fixed;

  right: 20px;
  bottom: 20px;

  width: 320px;

  background: #fff;

  border: 1px solid #e6d7ca;
  border-radius: 18px;

  padding: 18px 20px;

  z-index: 9999;

  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

@media(max-width:768px){

  .notice-banner{
    width: calc(100% - 30px);

    right: 15px;
    bottom: 15px;
  }

}

/* ===== おしらせ広告 ===== */
.notice-banner{

  position: fixed;

  right: 20px;
  bottom: 20px;

  z-index: 999999;

  width: 320px;

  background: rgba(255,255,255,0.96);

  backdrop-filter: blur(10px);

  border-radius: 20px;

  padding: 18px;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.12);

  border: 1px solid #ece5dc;

  animation: noticeFade 0.4s ease;
}

/* ふわっと */
@keyframes noticeFade{
  from{
    opacity:0;
    transform:translateY(15px);
  }

  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* 閉じる */
.notice-close{

  position:absolute;

  top:10px;
  right:10px;

  width:28px;
  height:28px;

  border:none;
  border-radius:50%;

  background:#f3efe8;

  cursor:pointer;

  font-size:16px;
  color:#666;

  transition:0.2s;
}

.notice-close:hover{
  background:#e5ddd3;
}

/* リンク全体 */
.notice-link{
  text-decoration:none;
  color:inherit;
  display:block;
}

/* sponsored */
.notice-small{

  font-size:11px;

  color:#999;

  margin-bottom:8px;

  letter-spacing:1px;

  text-transform:uppercase;
}

/* タイトル */
.notice-title{

  font-size:18px;
  font-weight:700;

  line-height:1.6;

  color:#4a3f35;
}

/* スマホ */
@media(max-width:768px){

  .notice-banner{

    width:calc(100% - 30px);

    right:15px;
    bottom:15px;

    padding:16px;
  }

  .notice-title{
    font-size:16px;
  }

}

/* =========================
   広告バナー
========================= */

.notice-banner{
    position:fixed;

    right:20px;
    bottom:20px;

    width:320px;
    max-width:90vw;

    z-index:9999;
}

/* リンク部分 */
.notice-link{
    display:block;

    background:#fff;
    border-radius:20px;

    padding:18px 20px;

    text-decoration:none;

    box-shadow:0 8px 25px rgba(0,0,0,0.12);

    transition:0.3s;
}

.notice-link:hover{
    transform:translateY(-3px);
}

/* 小文字 */
.notice-small{
    font-size:12px;
    color:#999;
    margin-bottom:6px;
}

/* タイトル */
.notice-title{
    font-size:20px;
    font-weight:700;
    color:#333;
}

/* 閉じるボタン */
.notice-close{
    position:absolute;

    top:-10px;
    right:-10px;

    width:32px;
    height:32px;

    border:none;
    border-radius:50%;

    background:#ff8ea1;
    color:white;

    cursor:pointer;

    font-size:18px;
}

/* =========================
   iPad対応
========================= */

@media (max-width: 1024px){

    .notice-banner{
        width:280px;
        right:16px;
        bottom:16px;
    }

    .notice-title{
        font-size:18px;
    }

}

/* =========================
   スマホ対応
========================= */

@media (max-width: 768px){

    .notice-banner{
        left:50%;
        right:auto;

        transform:translateX(-50%);

        bottom:14px;

        width:92%;
        max-width:420px;
    }

    .notice-link{
        padding:16px;
        border-radius:18px;
    }

    .notice-title{
        font-size:16px;
        text-align:center;
    }

    .notice-small{
        text-align:center;
    }

    .notice-close{
        width:28px;
        height:28px;
        font-size:16px;
    }

}

/* =========================
   iPad・スマホ右下対応
========================= */

@media (max-width: 1024px){

    .notice-banner{
        right:16px;
        bottom:16px;

        width:280px;
        max-width:90vw;
    }

}

@media (max-width: 768px){

    .notice-banner{

        position:fixed;

        right:12px;
        bottom:12px;

        width:85%;
        max-width:320px;

        left:auto;
        transform:none;

        z-index:9999;
    }

}