/* =================================================================== */
/* common.css - サイト共通スタイルシート (最終確定版)                      */
/* =================================================================== */

/* --- 基本設定 --- */
:root {
  --primary-color: #0A1E3E; /* 濃い青 (藍色) */
  --secondary-color: #72AEE6; /* 明るい青 (水色) */
  --text-color: #333;
  --bg-color: #f4f7f6;
  --card-bg-color: #ffffff;
}
html, body {
  margin: 0; padding: 0; font-family: 'Noto Sans JP', 'M PLUS Rounded 1c', "Helvetica Neue", Arial, sans-serif; background-color: var(--bg-color); color: var(--text-color); line-height: 1.7; scroll-behavior: smooth;
}
a { color: var(--secondary-color); text-decoration: none; font-weight: 600; transition: opacity 0.2s; }
a:hover { text-decoration: underline; opacity: 0.8; }
img { max-width: 100%; height: auto; vertical-align: middle; }

/* --- サイト全体の基本レイアウト --- */
.container { width: 100%; max-width: 1280px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; box-sizing: border-box; }

/* --- サイドバーレイアウト --- */
.main-layout { display: flex; align-items: flex-start; gap: 30px; }
.sidebar-wrapper { flex: 0 0 220px; position: sticky; top: 120px; }
.content-wrapper { flex: 1; min-width: 0; }

/* --- ページコンテンツ共通スタイル --- */
.page-content { padding-top: 100px; }
.page-content .container { padding-top: 0; padding-bottom: 80px; }
.content-wrapper section { background: var(--card-bg-color); padding: 30px 40px; border-radius: 12px; box-shadow: 0 5px 25px rgba(0,0,0,0.07); margin-bottom: 60px; }

/* H2, H3, H4 の統一スタイル */
.content-wrapper h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    text-align: center;
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: none;
    letter-spacing: 1px;
    position: relative; 
}
.content-wrapper h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 360px;
    height: 8px;
    background: linear-gradient(to right, var(--secondary-color) 70%, var(--primary-color) 30%);
    border-radius: 4px;
}
.content-wrapper h2 > span {
    display: inline-flex;
    align-items: center;
    gap: 15px;
}
/* ★★★ アイコンを「翼(羽)」に最終修正 ★★★ */
.content-wrapper h2 > span::before,
.content-wrapper h2 > span::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900; /* Solidアイコンセットのウェイト */
    content: "\f52d"; /* fa-feather アイコンのUnicode */
    font-size: 1.8rem; 
    color: var(--secondary-color);
}
.content-wrapper h2 > span::after {
    transform: scaleX(-1);
}


.content-wrapper h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 50px;
  margin-bottom: 25px;
  padding-left: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--secondary-color);
  position: relative;
  line-height: 1.4;
}
.content-wrapper h3::before {
  content: '';
  position: absolute;
  left: 0;
  width: 6px;
  background-color: var(--secondary-color);
  border-radius: 3px;
  top: 0;
  bottom: -3px;
}
.content-wrapper h4 {
  font-size: 1.2rem;
  margin-top: 30px;
  margin-bottom: 15px;
  border-left: 5px solid var(--secondary-color);
  padding-left: 10px;
}

.page-hero { position: relative; height: 350px; background-size: cover; background-position: center; border-radius: 12px; margin-bottom: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; padding: 20px; box-sizing: border-box; }
.page-hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(10, 30, 62, 0.5); border-radius: 12px; }
.page-hero > * { position: relative; z-index: 2; }
.page-hero h1 { font-family: 'Anton', sans-serif; font-size: 3.5rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); margin: 0; }
.page-hero .h1-sub { font-size: 1.2rem; margin-top: 10px; opacity: 0.9; }

section[id] { scroll-margin-top: 120px; }

.table-wrapper { overflow-x: auto; margin: 30px 0; border: 1px solid #dee2e6; border-radius: 8px; }
.styled-table {
    width: 100%; min-width: 600px; border-collapse: collapse; font-size: 0.95rem; box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.styled-table th, 
.styled-table td {
    border: 1px solid #dee2e6; padding: 15px; text-align: left; vertical-align: top;
}
.styled-table thead th {
    background-color: var(--secondary-color);
    color: #ffffff;
    font-weight: 700;
    white-space: nowrap;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
}
.styled-table tbody tr:nth-child(even) { background-color: #f8f9fa; }
.styled-table tbody tr:hover { background-color: #e9ecef; }
.styled-table ul { margin: 0; padding-left: 20px; }


/* --- レスポンシブ (共通) --- */
@media (max-width: 900px) {
    .container { padding-left: 20px; padding-right: 20px; }
    .sidebar-wrapper { display: none; }
    .main-layout { flex-direction: column; }
}
@media (max-width: 768px) {
    .logo img { max-height: 40px; }
    .page-hero { height: 250px; }
    .page-hero h1 { font-size: 2.5rem; }
    .content-wrapper section { padding: 20px; }
    .content-wrapper h2 { font-size: 1.8rem; gap: 10px; padding-bottom: 20px;}
    .content-wrapper h2::after { width: 240px; height: 6px; }
    .content-wrapper h2 > span::before, .content-wrapper h2 > span::after { font-size: 1.5rem; }
    .content-wrapper h3 { font-size: 1.3rem; padding-left: 15px; }
    .content-wrapper h3::before { width: 5px; }
    .content-wrapper h4 { font-size: 1.1rem; }
}