/* ===================================
   共通レイアウト（全ページ）
=================================== */

body {
  margin: 0;
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: #222;
  background: #f0f7f3 url('../data/IMG_4781.JPG') no-repeat center center fixed;
  background-size: cover;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(240, 247, 243, 0.6);
  z-index: -1;
}

a {
  color: #0a4a2a;
  text-decoration: none;
}

a:hover {
  opacity: 0.85;
}

/* ===================================
   共通ヘッダー
=================================== */

.site-header {
  background: #2c7b5f;
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.site-title a {
  color: #ffffff;
}

.global-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.global-nav a {
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* スマホヘッダー */

@media (max-width: 768px) {
  body { background-size: contain; }

  .header-inner { padding: 8px 16px; }

  .nav-toggle { display: block; }

  .global-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2c7b5f;
    display: none;
  }

  .global-nav.nav-active { display: block; }

  .global-nav ul { flex-direction: column; }
}

/* ===================================
   コンテナ
=================================== */

.container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 15px;
}

/* ===================================
   フッター（共通）
=================================== */

.site-footer {
  background: #245a4b;
  color: #ffffff;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px;
  text-align: center;
  font-size: 0.9rem;
}

/* PCでは常に横一列 */

.footer-nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  flex-wrap: nowrap;
}

.footer-nav a {
  color: #dfeee7;
  font-size: 0.8rem;
  white-space: nowrap;
}

.footer-nav a:hover {
  color: #ffffff;
}

/* 現在地表示 */

.footer-nav a.active {
  background: #ffffff;
  color: #245a4b;
  border-radius: 6px;
  padding: 2px 6px;
  font-weight: 700;
}

/* ===================================
   トップページ
=================================== */

.welcome h1 {
  margin-top: 24px;
  font-size: 2.8rem;
  font-weight: 700;
  color: #144b33;
}

.lead {
  font-size: 1.1rem;
  color: #295a3c;
}

.nav-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.nav-card {
  padding: 18px;
  border-radius: 12px;
  background: rgba(32,114,78,0.85);
  color: #fff;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}

.nav-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

@media (max-width: 960px) {
  .nav-cards { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 600px) {
  .nav-cards { grid-template-columns: 1fr; }
}

/* ===================================
   パンくず
=================================== */

.breadcrumb ul {
  list-style: none;
  display: flex;
  gap: 6px;
  padding: 0;
}

/* ===================================
   ラベル
=================================== */

.label-buttons a {
  display: inline-block;
  margin: 0 10px 10px 0;
  padding: 8px 14px;
  background: #2c7b5f;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
}

/* ===================================
   記録カード
=================================== */

.record-card {
  background: rgba(255,255,255,0.92);
  border-radius: 10px;
  padding: 1.2em 1.4em;
  margin-bottom: 1.2em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.record-meta {
  font-size: .85em;
  color: #666;
}

.record-title {
  font-size: 1.05em;
  margin: 0;
  font-weight: 600;
}

.record-title a { color:#245d44; }

/* ===================================
   ブログ表示
=================================== */

.blog-card {
  padding: .6em 0;
  border-bottom:1px solid #ddd;
}

.blog-title { font-size:1rem; margin:0 0 .2em; }
.blog-date { font-size:.9rem; color:#666; }

@media (max-width:600px){
  .blog-title{font-size:.95rem;}
  .blog-date{font-size:.75rem;}
}

/* ===================================
   スマホ調整（既存）
=================================== */

@media (max-width:600px){

  .site-title,h1{
    font-size:1.5rem;
    line-height:1.2;
    white-space:nowrap;
  }

  .nav-card{padding:.4em .7em;}

  /* ヘッダー固定 */
  .site-header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
  }

  main{padding-top:60px;}

  /* フッター固定 */
  .site-footer{
    position:fixed;
    bottom:0;
    left:0;
    width:100%;
    z-index:1000;
  }

  main{padding-bottom:120px;}

  .footer-note,
  .copyright{display:none;}

  /* スマホナビ2段 */
  .footer-nav ul{
    flex-wrap:wrap;
    justify-content:space-around;
    padding:.3em .2em;
    margin:0;
    gap:.2em .6em;
  }

  .footer-nav li{
    flex:1 1 30%;
    text-align:center;
  }

  .footer-nav a{font-size:.78rem;}
}

/* ===================================
   ★ 追加：スマホ用ヘッダー／フッター高さ調整
   （既存CSSを壊さず上書き）
=================================== */

@media (max-width:600px){

  /* ヘッダーを低く */
  .header-inner{
    padding: 4px 12px;
  }

  .site-title{
    font-size: 0.95rem;
    line-height: 1.1;
  }

  .nav-toggle{
    font-size: 1.3rem;
  }

  /* フッターを低く */
  .footer-inner{
    padding: 6px 8px 4px;
  }

  .footer-nav ul{
    padding: 0.2em 0;
    gap: 0.2em 0.4em;
  }

  .footer-nav a{
    font-size: 0.72rem;
    padding: 2px 4px;
  }

  /* 本文の上下を実寸に合わせて再調整 */
  main{
    padding-top: 48px;
    padding-bottom: 88px;
  }
}
