/* =========================
   基本設定
========================= */
:root {
  --main-green: #266328;
  --light-green: #e8f5e9;
  --bg-gray: #f2f2f2;
  --card-white: #ffffff;
  --gradient-green: linear-gradient(135deg, #266328, #388e3c);
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.8;
  margin: 0;
  color: #333;
  background-color: var(--bg-gray);
  scroll-behavior: smooth;
}

/* =========================
   ヘッダー
========================= */
header {
  background: var(--main-green);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 2.2rem;
  letter-spacing: 0.1em;
}

.subtitle {
  font-size: 1.1rem;
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
  opacity: 0.9;
}

.description {
  max-width: 700px;
  margin: 15px auto 0;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* =========================
   ナビゲーション（スマホ1段・横スクロールなし）
========================= */
nav {
  background: var(--main-green);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  overflow: hidden; /* はみ出しをカット */
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: space-between; /* 均等配置 */
  align-items: center;
  width: 100%;
}

nav li {
  flex: 1; /* 全項目を同じ幅に */
  text-align: center;
}

nav a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 16px 0;
  font-size: 0.9rem;
  white-space: nowrap; /* 改行禁止 */
  transition: background 0.3s;
  border-right: 1px solid rgba(255,255,255,0.1);
}

nav li:last-child a {
  border-right: none;
}

nav a:hover {
  background: rgba(255,255,255,0.15);
}

/* =========================
   メインコンテンツ
========================= */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 16px 80px;
}

section {
  padding: 30px 0 10px;
}

h2 {
  font-size: 1.7rem;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--main-green);
  color: var(--main-green);
}

h3 {
  font-size: 1.2rem;
  color: var(--main-green);
  margin-top: 0;
}

/* =========================
   スライドショー：フェード（Android 12対策版）
========================= */
.slideshow-fade {
  display: block;
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 280px;
  margin: 0 auto 20px;
  overflow: hidden;
  border-radius: 12px;
  background: #ddd;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.slideshow-fade img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.slideshow-fade img.active {
  opacity: 1;
  z-index: 2;
}

/* =========================
   カード・テーブル・装飾
========================= */
.card {
  background: var(--card-white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid #e0e0e0;
  margin-bottom: 20px;
}

strong { color: var(--main-green); }

.table-container {
  overflow-x: auto;
  background: var(--card-white);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid #e0e0e0;
}

table { width: 100%; border-collapse: collapse; }
table th, table td { text-align: left; padding: 16px; border-bottom: 1px solid #eee; }
table th { background-color: var(--light-green); color: var(--main-green); width: 30%; white-space: nowrap; }
table td a { color: var(--main-green); text-decoration: none; font-weight: bold; }

/* =========================
   お問い合わせフォーム
========================= */
#inquiry input,
#inquiry textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  margin-top: 8px;
  margin-bottom: 20px;
  font-size: 1rem;
}

#inquiry textarea { height: 180px; resize: none; }

#inquiry button {
  background: var(--gradient-green);
  color: #fff;
  border: none;
  padding: 18px 60px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  display: block;
  margin: 20px auto 0;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#inquiry button:hover { opacity: 0.9; transform: translateY(-2px); }
#inquiry button:active { transform: translateY(1px); }

.contact-note { text-align: center; margin-top: 20px; font-size: 0.9rem; color: #666; }

/* =========================
   ページトップボタン
========================= */
#topBtn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  z-index: 999;
  background: var(--gradient-green);
  color: #fff;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* =========================
   レスポンシブ（狭いスマホ・iPhone SE対策）
========================= */
@media (max-width: 600px) {
  header h1 { font-size: 1.6rem; }
  .slideshow-fade { height: 220px; }
  section { padding: 20px 0 5px; }
  nav a { font-size: 0.8rem; padding: 14px 0; }
}

@media (max-width: 380px) {
  /* 非常に狭い画面でメニューを1段に押し込むための最終調整 */
  nav a {
    font-size: 0.65rem; /* 文字を最小化 */
    letter-spacing: -0.05em; /* 文字間を詰める */
    padding: 12px 0;
  }
}

/* =========================
   フッター
========================= */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 50px 20px;
}

footer address { font-style: normal; line-height: 1.6; margin-bottom: 10px; }
