* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Hiragino Sans', 'Meiryo', sans-serif;
  font-size: 17px;
  color: #333;
  line-height: 2;
}

/* ルビ（ふりがな） */
ruby {
  ruby-align: center;
}
rt {
  font-size: 0.55em;
  color: #777;
}

/* ヘッダー内のルビは白系にする */
header rt {
  color: rgba(255, 255, 255, 0.75);
}

/* サイト名リンク */
header .site-name-link {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
}

header .site-name-link:hover {
  text-decoration: underline;
}

/* ヘッダー */
header {
  background-color: #1a6b3c;
  color: white;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.95rem;
  line-height: 1.6;
  display: inline-block;
}

nav a:hover,
nav a.active {
  background-color: rgba(255,255,255,0.2);
}

/* やさしい日本語版へのリンクボタン */
.yasashii-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #fff;
  color: #1a6b3c;
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  white-space: nowrap;
}

.yasashii-link:hover {
  background-color: #e8f5ee;
}

@media (max-width: 600px) {
  .yasashii-link {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}

/* メインビジュアル */
.hero {
  background-color: #e8f5ee;
  text-align: center;
  padding: 56px 24px 48px;
}

.hero h1 {
  font-size: 2rem;
  color: #1a6b3c;
  margin-bottom: 12px;
  line-height: 1.5;
}

.hero .sub {
  font-size: 1rem;
  color: #555;
  margin-bottom: 4px;
}

/* ボタン */
.btn-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.btn {
  display: inline-block;
  padding: 18px 36px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05rem;
  text-align: center;
  transition: opacity 0.2s;
  line-height: 1.5;
}

.btn:hover {
  opacity: 0.85;
}

.btn-primary {
  background-color: #1a6b3c;
  color: white;
}

/* セクション共通 */
section {
  padding: 48px 24px;
  max-width: 800px;
  margin: 0 auto;
}

section + section {
  border-top: 1px solid #eee;
}

section h2 {
  font-size: 1.35rem;
  color: #1a6b3c;
  border-left: 5px solid #1a6b3c;
  padding-left: 12px;
  margin-bottom: 20px;
  line-height: 1.6;
}

section h3 {
  font-size: 1.1rem;
  color: #1a6b3c;
  margin: 28px 0 12px;
  line-height: 1.6;
}

section p {
  margin-bottom: 12px;
}

section ul.plain-list,
section ol.plain-list {
  list-style: none;
  margin-bottom: 12px;
}

section ul.plain-list li,
section ol.plain-list li {
  margin-bottom: 6px;
}

/* 情報ボックス */
.info-box {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 24px 28px;
  line-height: 2.4;
}

.info-box .label {
  display: inline-block;
  width: 64px;
  font-weight: bold;
  color: #1a6b3c;
}

/* LINEボックス（お知らせ・強調ボックス共通） */
.line-box {
  background-color: #e8f5ee;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  margin-top: 40px;
  border: 2px solid #b2d8c0;
}

.line-box h2 {
  border: none;
  padding: 0;
  font-size: 1.3rem;
  color: #1a6b3c;
  margin-bottom: 12px;
}

.line-box p {
  color: #444;
  font-size: 1rem;
  margin-bottom: 20px;
}

/* カレンダー */
.calendar-wrapper {
  margin-top: 24px;
  width: 100%;
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.calendar-wrapper iframe {
  display: block;
  max-width: 100%;
}

/* 写真グリッド */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.photo-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s;
}

.photo-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.photo-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.photo-card .photo-title {
  padding: 10px 14px;
  font-size: 0.9rem;
  color: #444;
  text-align: center;
  line-height: 1.5;
}

.no-photos {
  text-align: center;
  color: #888;
  padding: 40px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 2px dashed #ddd;
}

/* お知らせ */
.news-item {
  border-bottom: 1px solid #eee;
  padding: 16px 0;
  display: flex;
  gap: 16px;
  align-items: baseline;
  flex-wrap: wrap;
}

.news-item .date {
  color: #888;
  white-space: nowrap;
  font-size: 0.88rem;
}

.news-item .news-body {
  flex: 1;
  min-width: 240px;
}

.news-item .news-text {
  display: block;
  line-height: 1.8;
}

.news-item .news-attachment {
  display: inline-block;
  margin-top: 12px;
  color: #1a6b3c;
  font-weight: bold;
  text-decoration: none;
  border: 1px solid #1a6b3c;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.9rem;
}

.news-item .news-attachment:hover {
  background-color: #e8f5ee;
}

/* ページタイトル */
.page-title {
  background-color: #e8f5ee;
  padding: 36px 24px;
  text-align: center;
}

.page-title h1 {
  font-size: 1.7rem;
  color: #1a6b3c;
  line-height: 1.5;
}

/* リンクボタン */
.page-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.page-link-btn {
  padding: 11px 22px;
  border: 2px solid #1a6b3c;
  color: #1a6b3c;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.95rem;
  display: inline-block;
}

.page-link-btn:hover {
  background-color: #1a6b3c;
  color: white;
}

/* 資料ダウンロードカード */
.doc-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 14px;
  text-decoration: none;
  color: #333;
}

.doc-card:hover {
  border-color: #1a6b3c;
  background-color: #f0f8f3;
}

.doc-card .doc-icon {
  font-size: 1.6rem;
}

.doc-card .doc-text .doc-title {
  font-weight: bold;
  color: #1a6b3c;
}

.doc-card .doc-text .doc-note {
  font-size: 0.85rem;
  color: #777;
}

/* 会計テーブル */
table.finance-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

table.finance-table th,
table.finance-table td {
  border: 1px solid #ddd;
  padding: 12px 16px;
  text-align: left;
}

table.finance-table th {
  background-color: #e8f5ee;
  color: #1a6b3c;
}

table.finance-table td.amount {
  text-align: right;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid #eee;
  padding: 20px 0;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item .q {
  font-weight: bold;
  color: #1a6b3c;
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
}

.faq-item .a {
  display: flex;
  gap: 8px;
  color: #444;
}

.faq-item .q-mark,
.faq-item .a-mark {
  flex-shrink: 0;
  font-weight: bold;
}

.faq-item .q-mark { color: #1a6b3c; }
.faq-item .a-mark { color: #f5a623; }

/* メモ書き（管理者向け） */
.admin-note {
  background: #fff8e1;
  border-left: 4px solid #f5a623;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 0.88rem;
  color: #666;
  margin-top: 16px;
}

/* フッター */
footer {
  background-color: #333;
  color: #ccc;
  text-align: center;
  padding: 32px 24px;
  font-size: 0.9rem;
  line-height: 2;
}

/* 工事中バナー */
.construction-banner {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: repeating-linear-gradient(
    -45deg,
    #f5a623 0px,
    #f5a623 10px,
    #333    10px,
    #333    20px
  );
  text-align: center;
  padding: 10px 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.construction-banner .banner-inner {
  display: inline-block;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-weight: bold;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  padding: 5px 24px;
  border-radius: 4px;
}

/* 多言語バナー（初回訪問時のみ。閉じる／リンクを押すと二度と出ない） */
.lang-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  background-color: #eaf6ff;
  color: #14425e;
  padding: 10px 20px;
  font-size: 0.9rem;
  border-bottom: 1px solid #bfe3fa;
}

.lang-banner-text {
  flex: 1 1 auto;
  min-width: 200px;
}

.lang-banner-link {
  background-color: #1a6b3c;
  color: #fff;
  text-decoration: none;
  padding: 5px 14px;
  border-radius: 999px;
  font-weight: bold;
  white-space: nowrap;
}

.lang-banner-link:hover {
  background-color: #145030;
}

.lang-banner-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: #14425e;
  padding: 2px 6px;
}

@media (max-width: 600px) {
  .lang-banner {
    font-size: 0.8rem;
    padding: 8px 14px;
  }
}

body::before {
  content: '工事中';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-size: 18vw;
  font-weight: bold;
  color: rgba(180,0,0,0.06);
  pointer-events: none;
  z-index: 9998;
  white-space: nowrap;
  user-select: none;
}

/* スマホ対応 */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  nav a {
    font-size: 0.85rem;
    padding: 5px 10px;
  }

  .btn {
    width: 100%;
  }

  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .doc-card {
    flex-direction: column;
    text-align: center;
  }
}
