/* =============================================
   森製紐株式会社 インフォメーション共通CSS
   common.css
   ※ このファイルを変更すると全ページに反映されます
   ============================================= */

/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@600;700&family=Noto+Sans+JP:wght@300;400;500&family=DM+Serif+Display&display=swap');

/* ===== CSS変数（カラー・サイズ） ===== */
:root {
  --navy:      #000080;
  --navy-deep: #000060;
  --navy-mid:  #000099;
  --sky:       #95cfeb;
  --sky-light: #d4edf8;
  --sky-pale:  #eef7fc;
  --white:     #ffffff;
  --border:    #c8dff0;
  --new-red:   #cc0000;
  --max-width: 820px;
}

/* ===== リセット ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== ベース ===== */
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--white);
  color: var(--navy);
  font-size: 14px;
  line-height: 1.7;
}

/* ===== ページヘッダー ===== */
.page-hero {
  background: var(--white);
  border-bottom: 2px solid var(--sky);
  padding: 22px 20px 18px;
  text-align: center;
}
.page-hero h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(17px, 3vw, 24px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.15em;
  margin-bottom: 4px;
}
.page-hero .subtitle {
  font-size: 11px;
  color: var(--navy-mid);
  letter-spacing: 0.12em;
  opacity: 0.8;
}
.page-hero .meta-row {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0,0,128,0.08);
  border: 1px solid rgba(0,0,128,0.25);
  color: var(--navy);
  font-size: 11px;
  padding: 3px 12px;
  border-radius: 20px;
  text-decoration: none;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  transition: background 0.2s;
}
.back-btn:hover { background: rgba(0,0,128,0.15); }
.back-btn svg {
  width: 12px; height: 12px;
  fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

/* ===== カテゴリナビ（ボタン型） ===== */
.cat-nav-wrapper {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 14px;
}
.cat-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cat-tab {
  display: inline-block;
  color: var(--navy-mid);
  text-decoration: none;
  font-size: 12px;
  font-family: 'Noto Sans JP', sans-serif;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  letter-spacing: 0.02em;
}
.cat-tab:hover {
  background: var(--sky-pale);
  border-color: var(--sky);
  color: var(--navy);
}
.cat-tab.active {
  background: var(--sky);
  border-color: var(--sky);
  color: var(--navy);
  font-weight: 700;
}

/* ===== 年タブ（sticky・折り返し対応） ===== */
.tabs-wrapper {
  background: var(--white);
  border-bottom: 2px solid var(--sky);
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 2px 6px rgba(0,0,80,0.08);
}
.tabs-inner {
  display: flex;
  flex-wrap: wrap;
  padding: 4px 8px 2px;
  gap: 0;
}
.year-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  color: var(--navy-mid);
  font-size: 12px;
  font-weight: 500;
  font-family: 'Noto Sans JP', sans-serif;
  padding: 7px 11px;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.04em;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  border-radius: 3px 3px 0 0;
}
.year-tab:hover {
  color: var(--navy);
  background: var(--sky-pale);
}
.year-tab.active {
  color: var(--navy);
  font-weight: 700;
  background: var(--sky-light);
  border-bottom-color: var(--sky);
}

/* ===== メインコンテナ ===== */
.main-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 14px 72px;
}

/* ===== 年セクション見出し ===== */
.year-section {
  margin-bottom: 40px;
  scroll-margin-top: 80px;
}
.year-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.year-label {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  color: var(--sky);
  font-weight: normal;
  line-height: 1;
}
.year-heading::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--sky), transparent);
}

/* ===== ニュースリスト（日付＋テキスト形式） ===== */
.news-list {
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,128,0.06);
}
.news-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  border-bottom: 1px solid var(--sky-pale);
  transition: background 0.12s;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: var(--sky-pale); }
.news-date {
  padding: 12px 10px;
  font-size: 11.5px;
  color: var(--navy);
  font-weight: 500;
  letter-spacing: 0.02em;
  border-right: 1px solid var(--border);
  background: var(--sky-pale);
  display: flex;
  align-items: flex-start;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
}
.news-content {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--navy-mid);
  line-height: 1.8;
}
.news-content a {
  color: var(--navy-mid);
  text-decoration: none;
  border-bottom: 1px solid var(--sky);
  transition: color 0.15s, border-color 0.15s;
}
.news-content a:hover {
  color: var(--navy);
  border-bottom-color: var(--navy);
}
.new-badge {
  display: inline-block;
  background: var(--new-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 5px;
  vertical-align: middle;
  letter-spacing: 0.04em;
}

/* ===== ページ上部へ戻るボタン（右下固定） ===== */
#backToTop {
  position: fixed;
  bottom: 22px;
  right: 18px;
  background: var(--navy);
  color: var(--sky);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(0,0,80,0.28);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  opacity: 0;
  pointer-events: none;
  z-index: 200;
}
#backToTop.visible { opacity: 1; pointer-events: auto; }
#backToTop:hover { background: var(--navy-mid); transform: translateY(-2px); }

/* ===== フッター ===== */
.site-footer {
  background: var(--white);
  border-top: 2px solid var(--sky);
  margin-top: 20px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px 28px;
  text-align: center;
}
.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 16px 0 14px;
  flex-wrap: wrap;
}
.footer-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  transition: background 0.2s;
}
.footer-back-btn svg {
  width: 10px; height: 10px;
  fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.footer-back-btn:hover { background: var(--sky-light); }
.footer-top-link {
  color: var(--navy-mid);
  font-size: 12px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.footer-top-link:hover { color: var(--navy); }
.footer-logo {
  margin-bottom: 14px;
}
.footer-logo a { display: inline-block; }
.footer-logo img { vertical-align: middle; }
.footer-logo-text {
  color: var(--navy);
  font-size: 18px;
  font-family: 'Noto Serif JP', serif;
  font-weight: 600;
}
.footer-contact {
  color: var(--navy-mid);
  font-size: 13px;
  line-height: 1.9;
  margin-bottom: 16px;
}
.footer-contact a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--sky);
  transition: color 0.2s;
}
.footer-contact a:hover { color: var(--navy-mid); }
.footer-copy {
  color: rgba(0,0,128,0.4);
  font-size: 11px;
  letter-spacing: 0.04em;
}

/* ===== レスポンシブ ===== */
@media (max-width: 480px) {
  .news-item { grid-template-columns: 1fr; }
  .news-date {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 8px 12px 5px;
  }
  .news-content { padding: 6px 12px 10px; }
}
