/*
Theme Name: クリーンセンター十勝
Theme URI: https://example.com
Author: 広告代理店
Author URI: https://example.com
Description: 十勝圏複合事務組合　可燃物処理施設 公式サイトテーマ
Version: 1.0.0
License: Private
Text Domain: tokachi-theme
*/

:root {
  --green: #2d6a4f;
  --green-light: #52b788;
  --green-pale: #d8f3dc;
  --gray: #4a4a4a;
  --gray-light: #f5f5f0;
  --white: #ffffff;
  --accent: #e76f51;
  --text: #2c2c2c;
}

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
}

/* ===== HEADER ===== */
header {
  background: var(--white);
  border-bottom: 3px solid var(--green);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.logo-text { display: flex; flex-direction: column; }
.logo-text .main {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
  line-height: 1.2;
}
.logo-text .sub { font-size: 11px; color: var(--gray); letter-spacing: 0.05em; }

/* メインナビゲーション */
.main-nav { display: flex; gap: 4px; }
.main-nav a {
  text-decoration: none;
  color: var(--gray);
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 4px;
  transition: all 0.2s;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--green-pale); color: var(--green); }
.main-nav a.contact { background: var(--green); color: var(--white); font-weight: 500; }
.main-nav a.contact:hover { background: var(--green-light); }

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 40%, #40916c 100%);
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: repeating-linear-gradient(45deg, #fff 0px, #fff 1px, transparent 1px, transparent 40px);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #d8f3dc;
  font-size: 12px;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.1em;
  border: 1px solid rgba(255,255,255,0.25);
}
.hero h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(28px, 4vw, 46px);
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  max-width: 560px;
  line-height: 1.9;
  margin-bottom: 32px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s;
}
.btn-white { background: var(--white); color: var(--green); box-shadow: 0 2px 12px rgba(0,0,0,0.15); }
.btn-white:hover { background: var(--green-pale); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }
.hero-stat {
  position: absolute;
  right: 80px;
  bottom: 60px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 20px 28px;
  text-align: center;
  color: var(--white);
}
.hero-stat .num { font-family: 'Noto Serif JP', serif; font-size: 36px; font-weight: 700; line-height: 1; margin-bottom: 4px; }
.hero-stat .label { font-size: 12px; opacity: 0.8; }

/* ===== NEWS BAR ===== */
.news-bar { background: var(--green-pale); padding: 14px 0; border-bottom: 1px solid #b7e4c7; }
.news-bar-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 20px;
}
.news-bar .tag {
  background: var(--green); color: var(--white);
  font-size: 11px; padding: 3px 12px; border-radius: 3px;
  white-space: nowrap; font-weight: 500;
}
.news-bar .items { display: flex; gap: 32px; overflow: hidden; }
.news-bar .item {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--gray); text-decoration: none;
  white-space: nowrap; transition: color 0.2s;
}
.news-bar .item:hover { color: var(--green); }
.news-bar .item .date { color: var(--green); font-size: 12px; font-weight: 500; }

/* ===== QUICK NAV ===== */
.quick-nav { background: var(--white); padding: 36px 0; border-bottom: 1px solid #e8e8e8; }
.quick-nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
}
.quick-item {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 12px; border: 2px solid #e8e8e8; border-radius: 10px;
  text-decoration: none; color: var(--gray); font-size: 13px;
  text-align: center; transition: all 0.25s; background: var(--white);
}
.quick-item:hover { border-color: var(--green); color: var(--green); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(45,106,79,0.12); }
.quick-item .icon {
  width: 48px; height: 48px; background: var(--green-pale);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 22px; transition: background 0.25s;
}
.quick-item:hover .icon { background: var(--green); }

/* ===== SECTION ===== */
section { padding: 64px 0; }
.section-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section-header { margin-bottom: 40px; }
.section-label { font-size: 12px; color: var(--green-light); letter-spacing: 0.15em; font-weight: 500; text-transform: uppercase; margin-bottom: 8px; }
.section-title { font-family: 'Noto Serif JP', serif; font-size: 26px; color: var(--text); font-weight: 700; border-left: 4px solid var(--green); padding-left: 16px; line-height: 1.4; }

/* ===== FACILITY ===== */
.facility { background: var(--gray-light); }
.facility-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.facility-image {
  border-radius: 12px; overflow: hidden; aspect-ratio: 4/3;
  background: linear-gradient(135deg, #2d6a4f, #52b788);
  display: flex; align-items: center; justify-content: center;
  font-size: 60px; box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.facility-image img { width: 100%; height: 100%; object-fit: cover; }
.facility-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.facility-table tr { border-bottom: 1px solid #eee; }
.facility-table tr:last-child { border-bottom: none; }
.facility-table th { background: var(--green); color: var(--white); padding: 12px 18px; font-size: 13px; font-weight: 500; width: 38%; text-align: left; }
.facility-table td { padding: 12px 18px; font-size: 14px; color: var(--gray); }

/* ===== EXHAUST GAS ===== */
.exhaust-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.exhaust-card { background: var(--white); border: 1px solid #e0e0e0; border-radius: 10px; padding: 20px; text-align: center; transition: all 0.25s; }
.exhaust-card:hover { border-color: var(--green); box-shadow: 0 4px 16px rgba(45,106,79,0.1); }
.exhaust-card .substance { font-size: 13px; color: var(--gray); margin-bottom: 8px; }
.exhaust-card .value { font-family: 'Noto Serif JP', serif; font-size: 28px; color: var(--green); font-weight: 700; line-height: 1; }
.exhaust-card .unit { font-size: 11px; color: #aaa; margin-top: 4px; }
.exhaust-card .status { display: inline-block; margin-top: 10px; font-size: 11px; padding: 2px 10px; border-radius: 20px; background: var(--green-pale); color: var(--green); font-weight: 500; }

/* ===== NEWS LIST ===== */
.news-list { display: flex; flex-direction: column; border: 1px solid #e8e8e8; border-radius: 10px; overflow: hidden; }
.news-item { display: flex; align-items: center; gap: 20px; padding: 18px 24px; border-bottom: 1px solid #f0f0f0; text-decoration: none; color: var(--text); transition: background 0.2s; }
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: var(--green-pale); }
.news-item .date { font-size: 13px; color: var(--green); white-space: nowrap; font-weight: 500; min-width: 100px; }
.news-item .cat { font-size: 11px; padding: 2px 10px; border-radius: 3px; background: var(--green-pale); color: var(--green); white-space: nowrap; min-width: 70px; text-align: center; }
.news-item .title { font-size: 14px; }

/* ===== ACCESS ===== */
.access { background: var(--gray-light); }
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.access-map { border-radius: 12px; overflow: hidden; height: 300px; }
.access-map iframe { width: 100%; height: 100%; border: 0; }
.access-info { background: var(--white); border-radius: 12px; padding: 28px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.access-info h3 { font-family: 'Noto Serif JP', serif; font-size: 18px; margin-bottom: 16px; color: var(--green); }
.access-detail { display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: var(--gray); }
.access-detail dt { font-weight: 500; color: var(--text); font-size: 13px; margin-bottom: 2px; }
.access-detail dd { margin-left: 0; padding-left: 14px; border-left: 3px solid var(--green-pale); }

/* ===== PAGE CONTENT ===== */
.page-hero {
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
  padding: 60px 0;
  color: var(--white);
}
.page-hero h1 { font-family: 'Noto Serif JP', serif; font-size: 32px; font-weight: 700; }
.page-hero .breadcrumb { font-size: 13px; opacity: 0.7; margin-top: 8px; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }

.page-content { max-width: 900px; margin: 60px auto; padding: 0 24px; }
.page-content h2 { font-family: 'Noto Serif JP', serif; font-size: 22px; color: var(--green); border-left: 4px solid var(--green); padding-left: 14px; margin: 36px 0 16px; }
.page-content p { font-size: 15px; color: var(--gray); margin-bottom: 16px; }
.page-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.page-content th { background: var(--green); color: var(--white); padding: 12px 16px; font-size: 14px; text-align: left; }
.page-content td { padding: 12px 16px; border-bottom: 1px solid #eee; font-size: 14px; color: var(--gray); }

/* ===== FOOTER ===== */
footer { background: #1b4332; color: rgba(255,255,255,0.75); padding: 48px 0 24px; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 24px; }
.footer-logo { font-family: 'Noto Serif JP', serif; font-size: 20px; color: var(--white); margin-bottom: 12px; }
.footer-address { font-size: 13px; line-height: 2; }
.footer-col h4 { font-size: 13px; color: var(--white); margin-bottom: 12px; font-weight: 500; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,0.4); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .quick-nav-inner { grid-template-columns: repeat(3, 1fr); }
  .facility-grid, .access-grid { grid-template-columns: 1fr; }
  .exhaust-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-stat { display: none; }
}
