/* ========== ベース設定 ========== */
body {
  background-color: #f9fdf7;
  margin: 0;
  font-family: sans-serif;
  color: #333;
  padding-top: 80px; /* 固定ヘッダー分の余白 */
}

a {
  color: #007a6d;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h2 {
  max-width: 90%;
  margin: 0 auto 1em;
  padding-left: 0.5em;
  border-left: 6px solid #81c784;
  font-size: 1.6em;
  color: #2e7d32;
}

/* ========== レイアウト ========== */
main {
  width: 100%;
}

section {
  width: 100%;
  padding: 2em 1em;
  background-color: #ffffff;
  box-sizing: border-box;
  scroll-margin-top: 120px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2em;
  box-sizing: border-box;
}

/* ========== ヘッダー・ナビゲーション ========== */
.fixed-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(to right, #e0f2f1, #f1f8e9);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 1000;
  padding: 0.4em 0;
}

.enhanced-header {
  padding: 0.6em 0.5em; /* ← 上下の余白を減らす */
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  gap: 0.3em;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.logo-block i {
  font-size: 1.8em;
  color: #66bb6a;
}

.site-title {
  color: #2e7d32;
  margin: 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  line-height: 1.2;
}

.main-nav {
  max-height: 0;
  overflow: hidden;
  background: transparent;
  transition: max-height 0.4s ease;
}

.main-nav.open {
  max-height: 500px; /* メニューの高さに応じて調整 */
}

.main-nav ul {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5em;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-block;
  color: #2e7d32;
  font-weight: 500;
  padding: 0.4em 0.8em;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.main-nav a:hover {
  background-color: #e8f5e9;
}


.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6em;
  color: #2e7d32;
}

.menu-toggle i::before {
  content: "\f0c9"; /* fa-bars */
}

.menu-toggle.active i::before {
  content: "\f00d"; /* fa-times */
}

.favicon-icon {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  flex-shrink: 0;
}

/* ========== カードブロック ========== */
.card-block {
  background-color: #f1f8e9;
  border-radius: 8px;
  padding: 1.5em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin: 2em auto;
  width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
}

.card-block:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5em;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1em 0;
}


/* ========== コンポーネント ========== */

.label-with-icon {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
  color: #388e3c;
  margin-bottom: 0.8em;
}
.label-with-icon i {
  margin-right: 0.5em;
  color: #66bb6a;
  font-size: 1.2em;
}

.description {
  font-size: 1em;
  line-height: 1.7;
  color: #333;
  margin-bottom: 1em;
}

.hours-table {
  width: 100%;
  max-width: 600px;
  border-collapse: collapse;
  font-size: 0.95em;
}
.hours-table th:first-child,
.hours-table td:first-child {
  width: 140px;
  text-align: center;
  padding: 0.6em;
  border: 1px solid #ccc;
}
.hours-table th:not(:first-child),
.hours-table td:not(:first-child) {
  width: 60px;
  text-align: center;
  padding: 0.6em;
  border: 1px solid #ccc;
}


/* ==========　トップセクション・写真 ========== */

.intro-message {
  text-align: center;
  font-size: 1.0em;
  line-height: 1.8;
  color: #333;
  background: #f9f9f9;
  padding: 1.5em;
  border-radius: 8px;
}

.intro-message i {
  color: #2e7d32;   /* 緑系カラー */
  font-size: 1.2em;
  margin-right: 6px;
}

.highlight {
  font-weight: bold;
  color: #2e7d32;   /* 緑で強調 */
}


.photo-row {
  display: flex;
  justify-content: center;
  gap: 1.5em;
  flex-wrap: wrap;
  margin: 0.1em 0;
}
.photo-item {
  max-width: 300px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

#counter-wrapper {
  margin-top: 100px; /* ← ヘッダーの高さに合わせて調整（例：80〜120px） */
}

/* ==========　ボタン類 ========== */

.map-button,
.pdf-button {
  display: inline-block;
  background-color: #81c784;
  color: white;
  padding: 0.6em 1.2em;
  border-radius: 6px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease;
}
.map-button:hover,
.pdf-button:hover {
  background-color: #66bb6a;
}

.tel-button {
  background: none;
  color: #2e7d32;
  text-decoration: underline;
  font-weight: normal;
}
.tel-button:hover {
  color: #1b5e20;
  text-decoration: none;
}

.tel-link {
  color: inherit;
  text-decoration: underline;
}

/* ===============================
   情報項目（住所・電話など）
================================= */
.info-item {
  background-color: #f1f8e9;
  border-radius: 8px;
  padding: 1em;index.html
  margin-bottom: 1.2em;
}

.label {
  font-weight: bold;
  color: #388e3c;
  font-size: 1.05em;
}

.description {
  font-size: 1em;
  line-height: 1.7;
  color: #333;
}

/* ===============================
   営業時間テーブル
================================= */
.hours-summary {
  font-size: 1em;
  margin-bottom: 1em;
}

.hours-table {
  width: 100%;
  max-width: 700px;
  min-width: 480px; 
  margin: 0;
  border-collapse: collapse;
  font-size: 0.95em;
}

.hours-table th:first-child,
.hours-table td:first-child {
  border: 1px solid #ccc;
  padding: 0.6em;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
}

.hours-table th:not(:first-child),
.hours-table td:not(:first-child) {
  border: 1px solid #ccc;
  padding: 0.6em;
  width: 60px;
  text-align: center;
  box-sizing: border-box;
}

.hours-note {
  font-size: 0.9em;
  color: #555;
  font-style: italic;
  margin-top: 0.8em;
  text-align: left;
}

.table-wrapper {
  overflow-x: auto;
  width: 100%;
  max-width: none; 
  margin: 0 auto;
}


/* ===============================
   サービス・設備
================================= */
.subservice {
  margin-bottom: 1em;
}
.subservice ul {
  margin: 0.5em 0 0.5em 1.2em;
  padding-left: 1em;
}

.checklist {
  list-style: none;
  padding-left: 0;
  margin: 0.5em 0 0.5em 1em;
}
.checklist li::before {
  content: "✔";
  margin-right: 0.5em;
  color: #2e7d32;
  font-weight: bold;
  font-size: 0.85em;
}

.indent-note,
.checklist-note {
  margin-left: 1.5em;
  font-style: italic;
  color: #555;
  font-size: 0.95em;
  line-height: 1.6;
}


/* ===============================
   お知らせ・お問い合わせ
================================= */
.news-item {
  display: flex;             /* 横並び */
  flex-wrap: wrap;
  gap: 1em;                  /* 要素間の余白 */
  align-items: flex-start;
  padding: 1.5em;            /* 内側の余白 */
  background-color: #f1f8e9;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin-bottom: 1.5em;      /* カード間の余白 */
}

.news-date {
  flex: 0 0 120px;
  font-weight: 400;       /* ← 細めに（通常） */
  color: #757575;         /* ← 薄めのグレー（やさしい印象） */
  font-size: 0.95em;      /* ← 少し小さめ（任意） */
}

.news-title {
  flex: 0 0 240px;
  font-weight: 700;       /* ← 太さを強調（600→700） */
  color: #1b5e20;         /* ← より濃い緑色に変更 */
  font-size: 1.05em;      /* ← 少しだけサイズアップ（任意） */
}

.news-body {
  flex: 1;
  color: #333;
  line-height: 1.6;
}


.news-row {
  display: grid;
  grid-template-columns: 150px 250px 1fr;
  gap: 1em;
  align-items: start;
  padding: 1em;
  background-color: #f1f8e9;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0,0,0,0.05);
  margin-bottom: 1em;
}

.news-date {
  font-weight: bold;
  color: #2e7d32;
}

.news-title {
  font-weight: bold;
  color: #388e3c;
}

.news-content {
  color: #333;
}

.news-more {
  display: flex;
  justify-content: flex-end;
  padding-right: 1em; /* ← 任意で右側に余白を追加 */
}

.more-button {
  display: inline-block;
  background-color: #81c784;
  color: white;
  padding: 0.6em 1.2em;
  border: none;               /* ← 枠線なし */
  outline: none;              /* ← フォーカス枠なし（または下記でカスタム） */
  border-radius: 6px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.more-button:hover {
  background-color: #66bb6a;
}

.more-button:focus {
  outline: 2px solid #81c784;
  outline-offset: 2px;
}

.hidden {
  display: none !important;
}

.contact-row {
  display: grid;
  grid-template-columns: 120px 180px 1fr;
  align-items: start;
  gap: 1em;
  margin-bottom: 1.5em;
}
.contact-label {
  font-weight: bold;
  color: #2e7d32;
}
.contact-time {
  font-size: 0.95em;
  color: #333;
  line-height: 1.6;
}

/* ===============================
   その他
================================= */
.bold-underline {
  font-weight: bold;
  text-decoration: underline;
}

.underline {
  text-decoration: underline;
  text-underline-offset: 3px;
}

em {
  font-style: italic;
  color: #555;
}

footer {
  background-color: #e0f2f1;
  text-align: center;
  padding: 1em;
  font-size: 0.9em;
  color: #555;
}

footer .privacy-link {
  font-size: 0.85em;       /* 少し小さめの文字 */
  color: #666;             /* グレーで控えめに */
  margin-top: 0.5em;
}
footer .privacy-link a {
  text-decoration: none;
  color: inherit;
}
footer .privacy-link a:hover {
  text-decoration: underline; /* ホバー時だけ下線を出す */
}
footer .privacy-link i {
  color: #2e7d32;            /* 緑色（Google Material Designのグリーン系） */
  margin-right: 0.3em;
}


/* ==========　レスポンシブ対応　========== */

/* スマホ用（768px以下） */
@media (max-width: 768px) {
  section#top {
    padding-top: 1em; /* ← 通常より少なめに設定して間を詰める */
  }

  .menu-toggle {
    display: block;
    font-size: 1.6em;
    color: #2e7d32;
    border: none;
    margin-left: 1em;
  }

  .main-nav {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 1em;
  }

  .main-nav.open {
    display: block;
    max-height: 500px;
  }

  .main-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1em;
    margin: 0.5em 0;
  }

  .main-nav a {
    display: block;
    width: 100%;
    padding: 0.5em 0;
    font-size: 1em;
    background: transparent; /* ← 背景を透明に */
    color: #2e7d32;
    border-radius: 6px;
    text-align: center;
  }
  
  .main-nav a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* ← 軽いホバー効果（任意） */
  }

  .intro-message {
    margin: 1em 0; /* ← 上下の余白を少し詰める */
    font-size: 1em; /* ← 文字サイズも少し調整（任意） */
    text-align: left;
    padding: 0 1em; /* ← 左右に少し余白を追加すると読みやすくなります（任意） */
    line-height: 1.6; /* ← 読みやすさ向上（任意） */
  }
}


@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5em;
  }

  .logo-block {
    justify-content: center;
    width: 100%;
  }

  .site-title {
    font-size: 1.4em;
    text-align: center;
    width: 100%;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
    margin: 0.5em 0;
  }

  .main-nav a {
    padding: 0.4em 1em;
    font-size: 0.95em;
  }
}


@media (max-width: 600px) {
  .fixed-header {
    padding: 0.5em 0;
  }

  body {
    padding-top: 80px; /* ← ヘッダー高さに合わせて調整 */
  }

  section {
    scroll-margin-top: 80px;
  }
}

@media (max-width: 767px) {
  .hours-table th,
  .hours-table td {
    padding: 0.8em;         /* ← 少し広めの余白に変更 */
    width: auto;            /* ← 固定幅を解除して文字に合わせる */
    min-width: 80px;        /* ← 最低幅を少し広げる（必要に応じて調整） */
    white-space: nowrap;    /* ← 折り返し防止で横スクロール維持 */
  }
}

@media (max-width: 767px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1em;
    padding: 0.5em;
  }

  .card-block {
    max-width: 100%;
    margin: 1em 0;
    padding: 1em;
  }
}


@media (max-width: 768px) {
  .news-item {
    display: block;              /* ← 縦並びに変更 */
    padding: 1em;                /* ← 内側の余白を少し詰める */
    margin-bottom: 1em;          /* ← カード間の余白も調整 */
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  }

  .news-date,
  .news-title,
  .news-body {
    margin: 0.3em 0;
    padding: 0;
    width: 100%;
    text-align: left;
    line-height: 1.5;
  }

  .news-title {
    font-weight: bold;
    color: #2e7d32;
  }

  .news-body {
    font-size: 0.95em;
  }
}

/* スマホ表示用の調整 */
@media (max-width: 600px) {
  .site-title {
    font-size: 1.4rem;
    justify-content: center;
    text-align: center;
  }

  .favicon-icon {
    width: 32px;
    height: 32px;
    margin-right: 8px;
  }
}

@media (max-width: 600px) {
  .header-inner {
    display: flex;
    flex-direction: row; /* ← ここが重要！ */
    align-items: center;
    justify-content: space-between;
    padding: 0 0.5em;
    height: 48px;
  }

  .logo-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .site-title {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    margin: 0;
    line-height: 1;
    justify-content: center;
    width: auto;
  }

  .favicon-icon {
    width: 28px;
    height: 28px;
    margin-right: 6px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
    font-size: 1.6em;
    padding: 0;
    background: none;
    border: none;
    color: #2e7d32;
  }
}

@media (max-width: 600px) {
  .checklist li::before {
    font-size: 0.5em; /* スマホではさらに小さく */
  }
}

/* PC用（769px以上） */
@media screen and (min-width: 769px) {
  .main-nav {
    display: block !important;
    max-height: none !important;   /* ← 高さ制限を解除 */
    overflow: visible !important;  /* ← 隠さないようにする */
    padding: 0;                     /* ← スマホ用の余白を解除（任意） */
    margin-top: 0.5em;
    width: 100%;
  }

  .main-nav ul {
    display: flex;
    justify-content: center;
    gap: 1.5em;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .main-nav a {
    display: inline-block;
    color: #2e7d32;
    font-weight: 500;
    padding: 0.4em 0.8em;
    border-radius: 6px;
    transition: background-color 0.3s ease;
  }

  .main-nav a:hover {
    background-color: #e8f5e9;
  }

  .menu-toggle {
    display: none;
  }
  
  .header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
    padding: 1em 0.5em;
  }

  .logo-block {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .site-title {
    display: flex;
    align-items: center;
    justify-content: center; /* ← これが中央寄せの決め手！ */
    font-size: 1.8rem;
    text-align: center;
    margin: 0;
    width: 100%;
  }

  .favicon-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
  }
}
