﻿/* ひごのおと 共通スタイル */

:root {
  --white: #ffffff;
  --light: #f0eeea;
  --border: #e0ddd8;
  --text-main: #000000;
  --text-sub: #7a7570;
  --text-light: #b0ada8;
}

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

html { font-size: 18px; }

body {
  font-family: 'Meiryo', 'メイリオ', 'Noto Sans JP', sans-serif;
  background: var(--white);
  color: var(--text-main);
  font-weight: 400;
  line-height: 1.9;
}


/* ヘッダー */
header {
  padding: 0 40px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  z-index: 100;
}

  /* ヘッダーh1 */
  .site-h1 {
    font-family: 'Shippori Mincho', serif;
    font-size: 0.98rem;
    font-weight: 400;
    color: var(--text-main);
    letter-spacing: 0.05em;
    margin-top: 2px;
  }
/* 404ページはstickyなし */
header.static {
  position: static;
  background: var(--white);
}

.header-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.site-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-main);
  text-decoration: none;
}

.site-subtitle {
  font-family: 'Shippori Mincho', serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-main);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

nav a {
  font-size: 0.85rem;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}

nav a:hover { opacity: 0.6; }

/* フッター */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer .foot-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 0.88rem;
  color: var(--text-main);
}

footer nav { gap: 24px; }

/* コンテンツ共通 */
.content-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 52px 40px 80px;
}

.page-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding-bottom: 16px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

h2 {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding-bottom: 10px;
  margin-top: 48px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

p {
  font-size: 0.88rem;
  line-height: 1.9;
  margin-bottom: 16px;
}

a {
  color: var(--text-main);
}

a:hover { opacity: 0.6; }

ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

ul li {
  font-size: 0.88rem;
  line-height: 1.8;
  padding-left: 1em;
  position: relative;
}

ul li::before {
  content: '・';
  position: absolute;
  left: 0;
}

/* ==================
   index.html 専用
   ================== */

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px 72px;
}

.section:first-child {
  padding-top: 52px;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.section-header h2 {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-bottom: none;
  margin: 0;
  padding: 0;
}

.section-header span {
  font-size: 0.75rem;
  color: var(--text-main);
  letter-spacing: 0.1em;
}

.section-summary {
  margin-bottom: 20px;
  font-size: 1.00rem;
}

/* 観音グリッド */
.kannon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

/* やまがあいグリッド */
.yamagai-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}

/* カード共通 */
.card {
  text-decoration: none;
  color: inherit;
  display: block;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
  background: var(--white);
}

.card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.card-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--light);
  overflow: hidden;
}

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

.card-thumb.aso      { background: #f0ede8; }
.card-thumb.yamaga   { background: #edf0e8; }
.card-thumb.kikuchi  { background: #e8ecf0; }
.card-thumb.ashikita { background: #f0e8e8; }
.card-thumb.db       { background: #ede8f0; }
.card-thumb.blog     { background: #e8f0ed; }

.card-body {
  padding: 16px 18px 20px;
}

.card-label {
  font-size: 0.78rem;
  color: var(--text-main);
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.card-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.6;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.8;
}

/* サイト概要 */
.site-commentary {
  margin-top: 30px;
}

.site-commentary h2 {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding-bottom: 12px;
  margin-bottom: 16px;
  margin-top: 0;
  border-bottom: 1px solid var(--border);
}

.site-commentary p {
  font-size: 1.00rem;
  line-height: 1.9;
  margin-bottom: 12px;
}

.site-commentary ul li {
  font-size: 1.00rem;
}

.site-commentary ul li::before {
  content: '・';
}

/* ==================
   contact.html 専用
   ================== */

.site-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.site-info-table tr {
  border-bottom: 1px solid var(--border);
}

.site-info-table th {
  text-align: left;
  font-weight: 400;
  padding: 12px 16px 12px 0;
  width: 160px;
  vertical-align: top;
}

.site-info-table td {
  padding: 12px 0;
  line-height: 1.8;
}

.form-wrap {
  margin-top: 32px;
}

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

.form-link {
  margin-top: 24px;
  font-size: 0.85rem;
}

/* ==================
   references.html 専用
   ================== */

.lead {
  font-size: 0.88rem;
  line-height: 1.9;
  margin-bottom: 48px;
}

/* ==================
   404.html 専用
   ================== */

.error-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 40px 100px;
  text-align: center;
}

.error-code {
  font-family: 'Shippori Mincho', serif;
  font-size: 5rem;
  font-weight: 400;
  color: var(--border);
  letter-spacing: 0.1em;
  line-height: 1;
  margin-bottom: 32px;
}

.error-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.error-desc {
  font-size: 0.88rem;
  line-height: 1.9;
  margin-bottom: 40px;
}

.back-link {
  display: inline-block;
  font-family: 'Shippori Mincho', serif;
  font-size: 0.9rem;
  color: var(--text-main);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 12px 32px;
  border-radius: 4px;
  letter-spacing: 0.06em;
  transition: box-shadow 0.2s;
}

.back-link:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

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

@media (max-width: 640px) {
  header { padding: 0 20px; height: 52px; }
  .site-h1 { display: none; }
  header nav { display: none; }
  .section { padding: 0 16px 52px; }
  .kannon-grid { grid-template-columns: 1fr; gap: 12px; }
  .yamagai-grid { grid-template-columns: 1fr; max-width: 100%; gap: 12px; }
  .content-wrap { padding: 36px 20px 60px; }
  .error-wrap { padding: 60px 20px 80px; }
  .error-code { font-size: 3.5rem; }
  .form-wrap iframe { height: 1200px; }
  footer { padding: 24px 20px; flex-direction: column; gap: 16px; align-items: flex-start; }
  footer nav { gap: 20px; }
  .card-title { font-size: 1.2rem; }
  .card-desc { font-size: 1rem; }
  .card-body { padding: 14px 16px 18px; }
}
