@charset "UTF-8";
/* ============================================
   爆釣茨城 style.css（修正版）
   ※ワイヤーフレーム用の dashed 枠線は削除しました
   ※.lasr-updated / .footrer-safety のタイポを修正しました
   ============================================ */

body {
  font-family: sans-serif;
  color: #333;
  line-height: 1.6;
}

/* --------------------------------------------
   スキップリンク（キーボード操作の補助）
   -------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
  z-index: 999;
  background: #fff;
  color: #1a5276;
  padding: 8px 16px;
  border: 2px solid #1a5276;
  border-radius: 4px;
}


.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}




/* ============================================
   ヘッダー
   ============================================ */
.header {
  display: flex;
  justify-content: center;
  padding: 20px 40px;
  background: #f5f5f5;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.header-inner {
  width: 100%;
  max-width: 1100px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

/* height属性のみ指定しているため、幅は自動計算させる */
.logo img {
  width: auto;
  height: 80px;
}

.nav ul {
  display: flex;
  list-style: none;
}

/* コントラスト比の確保：
   旧配色（白文字 × 水色 #4cd0f2）は約1.8:1でWCAG AA（4.5:1）未達だった */
.nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 157px;
  height: 66px;
  background: linear-gradient(to bottom, #0a7fa8 0%, #045a7a 100%);
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-right: 1px solid #fff;
}

.nav li:last-child a {
  border-right: none;
}


.nav a:hover,
.nav a.current {
  background: linear-gradient(to bottom, #0d6f92 0%, #034a63 100%);
}

/* 現在ページであることを色以外でも示す（色覚特性への配慮） */
.nav a.current {
  box-shadow: inset 0 -4px 0 #ffcc00;
}

.nav a:link,
.nav a:visited,
.nav a:hover,
.nav a:active,
.nav a.current {
  color: #fff;
  text-decoration: none;
}

.nav a:focus-visible {
  outline: 3px solid #ffcc00;
  outline-offset: -3px;
}


/* ============================================
   ヒーロー
   ============================================ */
.hero {
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 20px;
   background: linear-gradient(160deg, #0f4c6b 0%, #14607f 100%);
}
 
.hero-text {
  width: 100%;
  max-width: 760px;
}
 
.hero-text h1 {
  font-size: 1.9rem;
  margin-bottom: 12px;
  color: #fff;
}
 
.hero-catch {
  font-size: 1.15rem;
  font-weight: bold;
  margin-bottom: 12px;
  color: #ffd97a;
}
 
.hero-text p {
  line-height: 1.9;
  color: #fff;
}

/* ============================================================
   各ページのヒーローセクション（メインビジュアル）の背景画像設定
   ※画像は images/ フォルダ内に用意してください
   ============================================================ */

/* トップページ */
.hero {
  /* 背景を画像に置き換え、元の青色を少し透かして上に重ねる（文字を読みやすくするため） */
  background-image: linear-gradient(rgba(20, 86, 114, 0.7), rgba(20, 86, 114, 0.7)), url('../images/hero-home.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 魚図鑑ページ */
body[id="top"]:has(a[href="about-fishing.html"].current) .hero {
  background-image: linear-gradient(rgba(20, 86, 114, 0.7), rgba(20, 86, 114, 0.7)), url('../images/hero-fish.jpg');
}

/* 釣りスポット一覧ページ */
body[id="top"]:has(a[href="fishing-spots.html"].current) .hero {
  background-image: linear-gradient(rgba(20, 86, 114, 0.7), rgba(20, 86, 114, 0.7)), url('../images/hero-spot.jpg');
}

/* 道具についてページ */
body[id="top"]:has(a[href="about-tools.html"].current) .hero {
  background-image: linear-gradient(rgba(20, 86, 114, 0.7), rgba(20, 86, 114, 0.7)), url('../images/hero-tool.jpg');
}

/* マナーについてページ */
body[id="top"]:has(a[href="etiquette.html"].current) .hero {
  background-image: linear-gradient(rgba(20, 86, 114, 0.7), rgba(20, 86, 114, 0.7)), url('../images/hero-manner.jpg');
}

/* ============================================
   本文中のリンク（サイト共通）
   ============================================ */
a:link {
  color: #1a5276;
  text-decoration: underline;
}

a:visited {
  color: #5a3f8a;
  text-decoration: underline;
}

a:hover {
  color: #0059ff;
  background: #eef5f2;
}

a:active {
  color: #0b6ea8;
}

a:focus-visible {
  outline: 3px solid #ffcc00;
  outline-offset: 2px;
}


/* ============================================
   パンくずリスト
   ============================================ */
.breadcrumb {
  max-width: 800px;
  margin: 16px auto 0;
  padding: 0 20px;
  font-size: 0.85rem;
  color: #666;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  line-height: 1.6;
}

.breadcrumb li::after {
  content: "＞";
  margin-left: 6px;
  color: #aaa;
}

.breadcrumb li:last-child::after {
  content: "";
}

.breadcrumb a {
  color: #1a5276;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
  background: none;
}


/* ============================================
   セクション共通（.section / .fish / .spot）
   ============================================ */
.section,
.fish,
.spot {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 20px;
}

.section h2,
.fish h2,
.spot h2 {
  font-size: 1.7rem;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid #000;
}

.section h3,
.fish h3,
.spot h3 {
  font-size: 1.35rem;
  margin-top: 40px;
  margin-bottom: 14px;
  padding-left: 10px;
  border-left: 5px solid #2e7d5b;
}

.section h4,
.fish h4,
.spot h4 {
  font-size: 1.1rem;
  margin-top: 24px;
  margin-bottom: 8px;
  color: #1a5276;
}

.section p,
.fish p,
.spot p {
  margin-bottom: 16px;
  line-height: 1.9;
}

.section ul,
.section ol,
.fish ul,
.fish ol,
.spot ul,
.spot ol {
  margin: 0 0 20px 1.6em;
  line-height: 1.9;
}

.section ul li,
.fish ul li,
.spot ul li {
  list-style: disc;
  margin-bottom: 6px;
}

.section ol li,
.fish ol li,
.spot ol li {
  list-style: decimal;
  margin-bottom: 6px;
}

/* 目次から飛んだとき、sticky ヘッダーに見出しが隠れないようにする */
.section,
.fish,
.spot,
[id] {
  scroll-margin-top: 140px;
}


/* ============================================
   定義リスト（グラス／カーボンなどの対比）
   ============================================ */
.def-list {
  margin: 0 0 20px;
}

.def-list dt {
  font-weight: bold;
  color: #1a5276;
  margin-top: 12px;
}

.def-list dd {
  margin: 4px 0 0 1em;
  line-height: 1.8;
}


/* ============================================
   タックル表（ロッド／リール／ライン）
   改行タグに頼らず、項目と値の対応を明示する
   ============================================ */
.tackle-list {
  display: grid;
  grid-template-columns: 7em 1fr;
  gap: 6px 14px;
  margin: 0 0 20px;
  padding: 14px 18px;
  background: #f5f7f6;
  border: 1px solid #e0e6e3;
  border-radius: 6px;
  line-height: 1.8;
}

.tackle-list dt {
  font-weight: bold;
  color: #1a5276;
}

.tackle-list dd {
  margin: 0;
}


/* ============================================
   メリット・デメリット
   ============================================ */
.merit-list {
  list-style: none !important;
  margin-left: 0 !important;
}

.merit-list li {
  list-style: none !important;
  margin-bottom: 8px;
}

.merit,
.demerit {
  display: inline-block;
  min-width: 5.5em;
  text-align: center;
  font-size: 0.85rem;
  color: #fff;
  padding: 2px 8px;
  margin-right: 10px;
  border-radius: 4px;
}

.merit { background: #2e7d5b; }
.demerit { background: #8a5a08; }


/* ============================================
   マナー一覧（見出し文＋補足文の構造）
   ============================================ */
.manner-list {
  list-style: none !important;
  margin-left: 0 !important;
}

.manner-list > li {
  list-style: none !important;
  margin-bottom: 20px;
  padding-left: 1.4em;
  position: relative;
}

.manner-list > li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 0;
  color: #2e7d5b;
  font-size: 0.8em;
  line-height: 1.9;
}

.manner-list > li > strong {
  display: block;
  color: #1a5276;
  margin-bottom: 4px;
}

.manner-list > li > p {
  margin: 0 0 8px;
  font-size: 0.95rem;
  line-height: 1.85;
}

.manner-list > li > p:last-child {
  margin-bottom: 0;
}


/* ============================================
   注意書き・ルールボックス
   ============================================ */
.note {
  background: #fdf6ec;
  border-left: 4px solid #c0392b;
  padding: 12px 16px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.rule-box {
  background: #fdf6ec;
  border: 2px solid #c0392b;
  border-radius: 6px;
  padding: 16px 20px;
  margin: 16px 0;
}

.rule-box p {
  margin-bottom: 10px;
}

.rule-box p:last-child {
  margin-bottom: 0;
}


/* ============================================
   関連ページへの誘導（回遊性）
   ============================================ */
.related-link {
  background: #eef5f2;
  border-left: 4px solid #2e7d5b;
  padding: 10px 14px;
  margin: 24px 0 0;
  font-size: 0.95rem;
}

.related-link a {
  color: #1a5276;
}

/* 「主に釣れる場所」などの横並びリンク */
.spot-links {
  list-style: none !important;
  margin: 0 0 20px !important;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.spot-links li {
  list-style: none !important;
  margin-bottom: 0;
}


/* ============================================
   難易度バッジ（魚図鑑）
   ============================================ */
.difficulty {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: normal;
  vertical-align: middle;
  margin-left: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  color: #fff;
  white-space: nowrap;
}

.difficulty-low  { background: #2e7d5b; }
.difficulty-mid  { background: #8a5a08; }
.difficulty-high { background: #b03a2e; }


/* ============================================
   スポットのタグ
   ============================================ */
.spot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.spot-tags .tag {
  display: inline-block;
  font-size: 0.8rem;
  background: #eef5f2;
  color: #2e7d5b;
  border: 1px solid #cfe3d9;
  border-radius: 999px;
  padding: 3px 12px;
  line-height: 1.6;
}

.spot-tags .tag-star {
  background: #2e7d5b;
  color: #fff;
  border-color: #2e7d5b;
}


/* ============================================
   画像・図版
   ============================================ */
figure {
  margin: 0 0 20px;
}

figure img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 6px;
}

figcaption {
  font-size: 0.85rem;
  color: #666;
  margin-top: 6px;
}

/* 写真を横並びにするとき */
.fish-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.fish-photos figure {
  flex: 1 1 240px;
  margin: 0;
}

.fish-photos figure img {
  max-width: 100%;
}







/* ============================================
   設備情報テーブル
   ============================================ */
.facility-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 0.95rem;
}

.facility-table caption {
  text-align: left;
  font-weight: bold;
  color: #2e7d5b;
  padding-bottom: 8px;
}

.facility-table th,
.facility-table td {
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}

.facility-table th {
  background: #eef5f2;
  color: #2e7d5b;
  width: 18%;
  white-space: nowrap;
}

.facility-table td {
  width: 32%;
}

.access {
  margin: 0 0 24px;
  font-size: 0.92rem;
}

.access a {
  color: #1a5276;
  text-decoration: underline;
}


/* ============================================
   カード
   ============================================ */
.card-area {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}
 
.card {
  min-width: 0;   /* 長い語句によるトラックのはみ出しを防ぐ */
}
 
/* ↓ .card の flex: 1 1 200px; は削除してください */
 
.card a {
  display: block;
  color: #333;
  text-decoration: none;
}
 
.card a:hover {
  background: none;
}
 
.card img {
  width: 100%;
  height: auto;     
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}
 
.card a:hover img {
  opacity: 0.85;
}
 
.card h3 {
  font-size: 1.05rem;
  margin: 10px 0 4px;
  padding: 0;
  border: none;
}
 
.card p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}
 
.card a:hover h3 {
  color: #1a5276;
  text-decoration: underline;
}


/* ============================================
   目次（TOC）
   ============================================ */
.toc {
  max-width: 800px;
  margin: 40px auto 0;
  padding: 24px 28px;
  background: #f5f7f6;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.toc-title {
  font-size: 1.4rem;
  margin-bottom: 12px;
  padding-bottom: 0;
  border: none;
}

.toc ol {
  margin: 0 0 0 1.4em;
  line-height: 2;
}

.toc ol li {
  list-style: decimal;
}

.toc h3 {
  font-size: 1.1rem;
  color: #2e7d5b;
  margin: 20px 0 8px;
  padding: 0;
  border: none;
}

.toc h3:first-of-type {
  margin-top: 0;
}

.toc a {
  color: #1a5276;
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}


/* ============================================
   ページ上部へ戻る
   ============================================ */
.back-to-top {
  margin-top: 40px;
  text-align: right;
}

.back-to-top a {
  color: #1a5276;
  text-decoration: none;
  font-size: 0.95rem;
}

.back-to-top a:hover {
  text-decoration: underline;
}


/* ============================================
   用語ツールチップ
   ============================================ */
.term {
  border-bottom: 1px dashed #2e7d5b;
  color: #2e7d5b;
  position: relative;
}

.term-pop {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  width: 220px;
  z-index: 20;
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .term { cursor: help; }
  .term:hover .term-pop { display: block; }
}

@media not all and (hover: hover) {
  .term { cursor: pointer; }
  .term.open .term-pop { display: block; }
}


/* ============================================
   フッター
   ============================================ */
.footer {
  padding: 32px 20px 24px;
  background: #f5f7f6;
  text-align: center;
  margin-top: 40px;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 16px;
}

.footer-nav a {
  color: #1a5276;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
  background: none;
}

.footer-safety {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.last-updated {
  font-size: 0.85rem;
  color: #6b6b6b;
  margin-bottom: 8px;
}

.copyright {
  font-size: 0.85rem;
  color: #6b6b6b;
}


/* ============================================
   レスポンシブ（768px以下）
   ============================================ */
@media (max-width: 768px) {
  .header {
    padding: 12px 16px;
  }

  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .logo img {
    height: 56px;
  }

  .nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav a {
    width: auto;
    min-width: 96px;
    height: 44px;
    padding: 0 10px;
    font-size: 0.85rem;
    border-right: none;
  }

  .hero {
    min-height: auto;
    padding: 40px 20px;
  }

  .hero-text h1 {
    font-size: 1.4rem;
  }

  .hero-text p {
    font-size: 0.95rem;
  }

  .section,
  .fish,
  .spot,
  [id] {
    scroll-margin-top: 145px;
  }

  .section,
  .fish,
  .spot {
    padding: 40px 16px;
  }

  .breadcrumb {
    margin-top: 12px;
    padding: 0 16px;
  }

  .toc {
    margin: 24px 16px 0;
    padding: 20px;
  }

  .tackle-list {
    grid-template-columns: 5em 1fr;
    padding: 12px 14px;
    font-size: 0.92rem;
  }

  .facility-table {
    display: block;
    overflow-x: visible;
    white-space: normal;
  }
  .facility-table tbody,
  .facility-table tr { display: block; }
  .facility-table tr {
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
  }
  .facility-table th,
  .facility-table td {
    display: block;
    width: auto !important;
    border: none;
    white-space: normal;
  }
  .facility-table th {
    border-bottom: 1px solid #e0e6e3;
    padding-bottom: 4px;
  }
  .facility-table td {
    padding-top: 4px;
    padding-bottom: 12px;
  }

  .manner-list > li {
    margin-bottom: 16px;
  }
}

.term:focus-visible .term-pop,
.term.open .term-pop {
  display: block;
}

.term:focus-visible {
  outline: 3px solid #ffcc00;
  outline-offset: 2px;
}

/* ============================================
   フッター：サイト情報メニュー・PR表記
   ============================================ */
.footer-sub-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-bottom: 16px;
}

.footer-sub-nav a {
  color: #5a5a5a;
  font-size: 0.82rem;
  text-decoration: none;
}

.footer-sub-nav a:hover {
  color: #1a5276;
  text-decoration: underline;
  background: none;
}

/* 景品表示法（ステマ規制）およびAmazonアソシエイト規約への対応表記 */
.footer-pr {
  max-width: 640px;
  margin: 0 auto 8px;
  font-size: 0.8rem;
  line-height: 1.7;
  color: #6b6b6b;
}


/* ============================================
   広告表示枠（ASP提携後にかんたんリンク等を挿入する）
   ============================================ */
.affiliate-box {
  position: relative;
  margin: 0 0 24px;
  padding: 28px 18px 18px;
  background: #fff;
  border: 1px solid #e0e6e3;
  border-radius: 6px;
}

.affiliate-box::before {
  content: "PR";
  position: absolute;
  top: 8px;
  left: 12px;
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  color: #8a5a08;
  background: #fdf6ec;
  border: 1px solid #e8d6b8;
  border-radius: 3px;
  padding: 1px 8px;
}

.affiliate-note {
  font-size: 0.8rem;
  color: #6b6b6b;
  margin: -12px 0 24px;
}


/* ============================================
   サイト情報ページ（規約・運営者情報・問い合わせ）
   ============================================ */
.info-list dt {
  font-weight: bold;
  color: #1a5276;
  margin-top: 16px;
}

.info-list dd {
  margin: 4px 0 0 1em;
  line-height: 1.9;
}

.contact-address {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: bold;
  color: #1a5276;
  background: #f5f7f6;
  border: 1px solid #e0e6e3;
  border-radius: 6px;
  padding: 10px 18px;
  margin-bottom: 8px;
  word-break: break-all;
}

.revision-history {
  font-size: 0.9rem;
  color: #6b6b6b;
  margin-top: 32px;
}
