@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

/* ============================================================
   Reset & Base
============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic Pro', Meiryo, sans-serif;
  font-size: 15px;
  color: #555;
  background: #fff;
  line-height: 2;
  overflow-x: hidden;
}
html { scroll-behavior: smooth; }
img  { max-width: 100%; height: auto; vertical-align: middle; }
a    { color: inherit; text-decoration: none; transition: 0.3s; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
figure { margin: 0; }

/* ============================================================
   カラー変数（グリーン系）
============================================================ */
:root {
  --green-dark:  #2d5a45;
  --green-main:  #4a8c6f;
  --green-light: #e8f4ee;
  --orange:      #e07b3a;
  --text:        #555;
  --text-dark:   #333;
  --bg-gray:     #f7faf8;
  --border:      #dde8e2;
}

/* ============================================================
   Header
============================================================ */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 2rem; padding-right: 90px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  color: #fff;
  transition: background 0.3s;
}
#header.scrolled { background: rgba(45,90,69,0.95); }

.header-logo { margin: 0; }
.header-logo img { width: 160px; display: block; }

#pc-nav ul { display: flex; gap: 1.5rem; flex-wrap: wrap; }
#pc-nav ul li { position: relative; }
#pc-nav ul li a { color: #fff; font-size: 0.88rem; padding: 0.3rem 0; display: block; white-space: nowrap; }
#pc-nav ul li a:hover { opacity: 0.7; }

/* サブメニュー */
#pc-nav ul li.has-child > a::after {
  content: ' ▾'; font-size: 0.75em; opacity: 0.8;
}
#pc-nav ul li ul {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: var(--green-dark);
  min-width: 180px; padding: 0.4rem 0;
  flex-direction: column; gap: 0; z-index: 200;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
#pc-nav ul li:hover > ul { display: flex; }
#pc-nav ul li ul li a {
  padding: 0.5rem 1rem; font-size: 0.82rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
#pc-nav ul li ul li:last-child a { border-bottom: none; }
#pc-nav ul li ul li a:hover { background: rgba(255,255,255,0.1); opacity: 1; }

/* スマホメニュー アコーディオンボタン */
#sp-menu .sp-accordion {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  font-size: 1.15rem;
  font-family: inherit;
  padding: 0.8rem 0;
  width: 75vw;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.sp-arrow { transition: transform 0.3s; display: inline-block; }
.sp-accordion.open .sp-arrow { transform: rotate(180deg); }

/* サブメニューグループ（初期非表示） */
#sp-menu .sp-sub-group {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  width: 75vw;
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
  padding: 0.5rem;
}
#sp-menu .sp-sub-group.open { display: flex; }
#sp-menu .sp-sub-group a {
  color: #fff;
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.6rem 0;
  width: 100%;
  text-align: center;
  border-radius: 4px;
}

.header-tel {
  display: inline-block;
  background: var(--orange); color: #fff;
  padding: 0.4rem 1.2rem; border-radius: 30px;
  font-weight: bold; font-size: 0.9rem; white-space: nowrap;
}
.header-tel:hover { background: #c96a2a; color: #fff; }
.tel-sp { display: none; }

/* ハンバーガー */
#menubar_hdr {
  display: none; position: fixed; right: 0; top: 0; z-index: 200;
  width: 70px; height: 70px; background: #333;
  border: none; border-radius: 0 0 0 20px; cursor: pointer; transition: background 0.3s;
}
#menubar_hdr.open { background: var(--orange); }
#menubar_hdr span {
  display: block; position: absolute;
  left: 17px; width: 36px; height: 2px;
  background: #fff; transition: 0.3s;
}
#menubar_hdr span:nth-child(1) { top: 22px; }
#menubar_hdr span:nth-child(2) { top: 32px; }
#menubar_hdr span:nth-child(3) { top: 42px; }
#menubar_hdr.open span:nth-child(1) { transform: translateY(10px) rotate(-45deg); }
#menubar_hdr.open span:nth-child(2) { opacity: 0; }
#menubar_hdr.open span:nth-child(3) { transform: translateY(-10px) rotate(45deg); }

/* スマホメニュー */
#sp-menu {
  display: none; position: fixed; inset: 0; z-index: 150;
  background: var(--green-main);
  flex-direction: column; justify-content: center; align-items: center; gap: 0.8rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  transform: translateY(-20px);
}
#sp-menu.open {
  display: flex; opacity: 1; visibility: visible; transform: translateY(0);
}
#sp-menu a {
  color: #fff; font-size: 1.15rem;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 0.8rem 0; width: 75vw; text-align: center; border-radius: 4px;
}
#sp-menu .sp-tel {
  background: var(--orange); border-color: var(--orange);
  margin-top: 0.5rem; font-weight: bold;
}

/* ============================================================
   スライドショー（Slideshow.jsx）
============================================================ */
#mainimg {
  position: relative; height: 100vh; min-height: 500px; overflow: hidden;
}
.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease-in-out;
}
.slide.active { opacity: 1; }
.slide1 { background-image: url('../images/1-yoko.jpg'); }
.slide2 { background-image: url('../images/2-yoko.jpg'); }
.slide3 { background-image: url('../images/3-yoko.jpg'); }
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.5));
  pointer-events: none;
}

/* ============================================================
   お知らせバー（NewTop.jsx）
============================================================ */
.new-top {
  position: absolute; top: 80vh; left: 10vw; width: 80vw; z-index: 10;
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.5rem; background: #fff;
  border-radius: 5px; box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.new-label {
  flex-shrink: 0; font-size: 0.9rem; font-weight: bold;
  background: var(--green-main); color: #fff;
  border-radius: 3px; padding: 0.2rem 1rem; white-space: nowrap;
}
.new-text {
  flex: 1; margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0; font-size: 0.95rem;
}
.new-link {
  flex-shrink: 0; font-size: 0.85rem;
  color: var(--green-main); text-decoration: underline; white-space: nowrap;
}

/* ============================================================
   共通セクション
============================================================ */
#contents { padding-top: 0; }
section { padding: 5rem 2rem; }

.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 {
  font-size: 2rem; font-weight: normal; color: var(--text-dark); margin: 0 0 0.3rem;
  display: flex; flex-direction: column-reverse; align-items: center; gap: 0.5rem;
}
.section-title h2 .small {
  font-size: 0.82rem; color: var(--green-main);
  border-top: 2px solid var(--green-main);
  padding-top: 0.4rem; letter-spacing: 0.12em; opacity: 0.8;
}

/* ============================================================
   こだわりセクション（Kodawari.jsx）
============================================================ */
#kodawari { background: var(--bg-gray); }

.kodawari-list {
  max-width: 1000px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 4rem;
}
.kodawari-item {
  display: flex; align-items: center; gap: 3rem; flex-wrap: wrap;
}
.kodawari-item.reverse { flex-direction: row-reverse; }
.kodawari-item .text { flex: 1; min-width: 280px; }
.kodawari-item .text h4 {
  font-size: 1.3rem; color: var(--text-dark);
  margin: 0 0 0.8rem; padding-left: 1rem;
  border-left: 4px solid var(--green-main);
  display: flex; flex-direction: column;
}
.kodawari-item .text h4 span {
  font-size: 0.7em; font-weight: normal;
  color: var(--green-main); opacity: 0.7;
  letter-spacing: 0.1em; margin-top: 0.2rem;
}
.kodawari-item .image { flex: 1; min-width: 280px; }
.kodawari-item .image img {
  width: 100%; height: 280px; object-fit: cover;
  border-radius: 50px; box-shadow: 10px 10px rgba(0,0,0,0.1);
}

/* ============================================================
   サービス紹介（Service.jsx）
============================================================ */
#service { background: var(--green-dark); color: #fff; }
#service .section-title h2 { color: #fff; }
#service .section-title h2 .small { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.5); }

.service-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem; max-width: 1000px; margin: 0 auto;
}
.service-card {
  background: #fafafa; color: var(--text);
  border-radius: 5px; overflow: hidden; transition: transform 0.2s;
}
.service-card:hover { transform: translateY(-4px); }
.service-card figure img { width: 100%; height: 180px; object-fit: cover; display: block; }
.card-body { padding: 1.2rem 1.5rem 1.5rem; }
.card-body h4 {
  font-size: 1.05rem; color: var(--green-main); margin: 0 0 0.5rem;
  display: flex; flex-direction: column;
}
.card-body h4 span { font-size: 0.72em; color: #999; font-weight: normal; }
.card-body p { font-size: 0.88rem; line-height: 1.7; margin: 0; }

/* ============================================================
   お知らせセクション（Announcements.jsx）
============================================================ */
#announcements { background: var(--bg-gray); }

/* カテゴリタブ */
.announce-tabs {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  max-width: 800px; margin: 0 auto 2rem; justify-content: center;
}
.tab-btn {
  padding: 0.4rem 1rem; border-radius: 30px;
  border: 1px solid #ccc; background: #fff;
  cursor: pointer; font-size: 0.85rem; color: #555;
  display: flex; align-items: center; gap: 0.3rem;
  transition: 0.2s; font-family: inherit;
}
.tab-btn:hover { border-color: var(--green-main); color: var(--green-main); }
.tab-btn.active {
  background: var(--green-main); color: #fff; border-color: var(--green-main);
}
.tab-btn[data-cat]:not([data-cat="すべて"]).active {
  background: var(--cat-color, var(--green-main));
  border-color: var(--cat-color, var(--green-main));
}
.tab-count {
  background: rgba(0,0,0,0.15); border-radius: 10px;
  padding: 0 0.4rem; font-size: 0.75rem;
}

/* 一覧 */
.announce-list {
  max-width: 800px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 1.2rem;
}
.announce-item {
  background: #fff; border-radius: 8px;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: opacity 0.3s;
}
.announce-item.hidden { display: none; }

.announce-meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 0.6rem; margin-bottom: 0.6rem;
}
.announce-meta time { font-size: 0.82rem; color: #888; }
.announce-tag {
  font-size: 0.75rem; color: #fff;
  border-radius: 3px; padding: 0.15rem 0.6rem;
}
.announce-author { font-size: 0.78rem; color: #888; margin-left: auto; }

.announce-title { margin: 0 0 0.5rem; font-size: 1.05rem; color: #333; font-weight: bold; }
.announce-body  { margin: 0; line-height: 1.8; color: #444; white-space: pre-wrap; word-break: break-word; }

.announce-img {
  width: 100%; max-height: none; object-fit: contain;
  border-radius: 6px; margin-top: 0.8rem; display: block;
}
.announce-more {
  margin-top: 0.6rem; background: none; border: none;
  color: var(--green-main); cursor: pointer;
  font-size: 0.85rem; padding: 0; text-decoration: underline;
  font-family: inherit;
}
.more-btn {
  padding: 0.7rem 2.5rem; background: var(--green-main);
  color: #fff; border: none; border-radius: 30px;
  cursor: pointer; font-size: 0.95rem; font-family: inherit;
}
.announce-empty { text-align: center; color: #999; padding: 2rem 0; }

/* ============================================================
   CTA（CallToAction.jsx）
============================================================ */
.cta-section {
  background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
              url('../images/1-tate.jpg') center/cover;
  padding: 6rem 2rem; text-align: center; color: #fff;
}
.cta-section h2 { font-size: 1.8rem; font-weight: normal; margin: 0 0 0.5rem; }
.cta-section p  { opacity: 0.85; margin: 0 0 2rem; }
.tel-btn {
  display: inline-block; background: var(--orange); color: #fff;
  padding: 1.2rem 3rem; border-radius: 12px;
  font-size: 1.5rem; font-weight: bold; transition: 0.3s;
}
.tel-btn span {
  display: block; font-size: 0.7rem; font-weight: normal; opacity: 0.9; margin-top: 0.2rem;
}
.tel-btn:hover { background: #c96a2a; color: #fff; }

/* ============================================================
   フッター（Footer.jsx）
============================================================ */
#footer {
  background: var(--green-dark); color: #fff;
  padding: 3rem 2rem; display: flex; flex-wrap: wrap; gap: 2.5rem;
}
.footer1, .footer2 { flex: 1; min-width: 300px; }
.footer-logo { width: 180px; filter: brightness(0) invert(1); margin-bottom: 1rem; display: block; }
#footer p   { font-size: 0.88rem; line-height: 1.9; margin: 0 0 0.4rem; }
#footer a   { color: rgba(255,255,255,0.85); text-decoration: underline; }
#footer h3  { font-size: 1rem; border-left: 4px solid rgba(255,255,255,0.5); padding-left: 0.8rem; margin: 1.5rem 0 0.8rem; }

.hours-table { background: #fff; color: var(--text); font-size: 0.82rem; margin-bottom: 0.5rem; }
.hours-table th, .hours-table td { padding: 0.5rem 0.3rem; text-align: center; border: 1px solid #ccc; }
.hours-table thead th { background: var(--bg-gray); font-weight: bold; }
.t1-color { color: var(--green-main); font-weight: bold; }
.hours-note { font-size: 0.78rem; opacity: 0.7; text-align: right; }

.map-wrap { width: 100%; height: 300px; }
.map-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

.footer-copy { display: block; width: 100%; text-align: right; font-size: 0.78rem; opacity: 0.6; margin-top: 1rem; }

/* ============================================================
   ページトップ（PageTop.jsx）
============================================================ */
#pagetop {
  position: fixed; right: 20px; bottom: 20px;
  width: 60px; height: 60px; line-height: 60px; text-align: center;
  background: var(--green-main); color: #fff;
  border-radius: 50%; font-size: 1.5rem; z-index: 99;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2); cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
#pagetop.show { opacity: 1; visibility: visible; }
#pagetop:hover { background: var(--green-dark); }

/* ============================================================
   フェードインアニメーション
============================================================ */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   レスポンシブ
============================================================ */
@media (max-width: 900px) {
  #header { padding-right: 80px; }
  #pc-nav { display: none; }
  .tel-pc { display: none; }
  .tel-sp { display: inline; }
  #menubar_hdr { display: block; }
  .new-top { left: 3vw; width: 80vw; top: 82vh; flex-wrap: wrap; }
  .kodawari-item,
  .kodawari-item.reverse { flex-direction: column; gap: 1.5rem; }
  .service-grid { grid-template-columns: 1fr; }
  section { padding: 3.5rem 1.2rem; }
}
@media (max-width: 480px) {
  .header-logo img { width: 130px; }
  .tel-btn { font-size: 1.2rem; padding: 1rem 2rem; }
  #footer { flex-direction: column; }
}

/* ============================================================
   詳細ページ共通（under page）
============================================================ */
body.under {
  padding-top: 70px;
  background: var(--bg-gray);
}

.page-hero {
  background: var(--green-dark);
  color: #fff;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
}
.page-hero h2 {
  font-size: 1.8rem; font-weight: normal; margin: 0 0 0.5rem;
}
.page-hero .breadcrumb {
  font-size: 0.82rem; opacity: 0.75;
  display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: underline; }

.under-content {
  max-width: 900px; margin: 0 auto; padding: 3rem 2rem 5rem;
}

.back-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--green-main); font-size: 0.88rem;
  border: 1px solid var(--green-main);
  padding: 0.4rem 1.2rem; border-radius: 30px;
  margin-bottom: 2rem; transition: 0.2s;
}
.back-btn:hover { background: var(--green-main); color: #fff; }

.empty-msg { text-align: center; color: #aaa; padding: 3rem 0; }

/* ============================================================
   Plimo / DB コンテンツHTML の上書きスタイル
   （gnv_tmp_h3_bg・gnv_tmp_h4_bg・table-beauty 等）
============================================================ */

/* H3 見出し帯 */
.under-content .gnv_tmp_h3_bg,
.under-content .gnv_tmp_h3_bg h3 {
  background: var(--green-light);
  border-left: 5px solid var(--green-main);
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 2rem 0 1.2rem;
  border-radius: 0 4px 4px 0;
}
.under-content .gnv_tmp_h3_bg h3 {
  background: none; border: none; padding: 0; margin: 0;
}

/* H4 見出し帯 */
.under-content .gnv_tmp_h4_bg,
.under-content .gnv_tmp_h4_bg h4 {
  border-left: 4px solid var(--green-main);
  background: var(--bg-gray);
  padding: 0.4rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 1.5rem 0 0.8rem;
  border-radius: 0 4px 4px 0;
}
.under-content .gnv_tmp_h4_bg h4 {
  background: none; border: none; padding: 0; margin: 0;
}

/* 本文 */
.under-content p  { margin: 0 0 1rem; line-height: 1.9; }
.under-content h5 { font-size: 0.95rem; color: var(--green-dark); margin: 1rem 0 0.5rem; }

/* 箇条書き（circle_list） */
.under-content .circle_list,
.under-content ul {
  list-style: none; padding: 0; margin: 0 0 1rem;
}
.under-content .circle_list li,
.under-content ul li {
  padding: 0.35rem 0 0.35rem 1.4rem;
  position: relative; line-height: 1.7;
}
.under-content .circle_list li::before,
.under-content ul:not(.announce-list) li::before {
  content: "●";
  color: var(--green-main);
  position: absolute; left: 0;
  font-size: 0.65rem; top: 0.6rem;
}

/* ボックス枠（box-bd） */
.under-content .box-bd {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  margin: 1.2rem 0;
  background: #fff;
}

/* 料金テーブル（table-beauty） */
.under-content .table-beauty {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.2rem;
  font-size: 0.9rem;
}
.under-content .table-beauty td,
.under-content .table-beauty th {
  border: 1px solid var(--border);
  padding: 0.7rem 1rem;
  vertical-align: top;
  line-height: 1.7;
}
/* ヘッダー行 td2 */
.under-content .table-beauty .td2 {
  background: var(--green-dark);
  color: #fff;
  font-weight: 700;
  text-align: center;
}
/* データ行 td1（コース名セル） */
.under-content .table-beauty .td1 {
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

/* サービスカードの詳細リンク */
.more-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.45rem 1.4rem;
  background: var(--green-main);
  color: #fff;
  border-radius: 30px;
  font-size: 0.85rem;
  transition: 0.3s;
}
.more-link:hover { background: var(--green-dark); color: #fff; }

/* レスポンシブ */
@media (max-width: 640px) {
  .page-hero h2 { font-size: 1.4rem; }
  .under-content { padding: 2rem 1.2rem 3rem; }
  .under-content .table-beauty { font-size: 0.8rem; }
  .under-content .table-beauty td,
  .under-content .table-beauty th { padding: 0.5rem 0.6rem; }
  .under-content .td1 { white-space: normal; }
}
