﻿@charset "UTF-8";

/* ===============  2026.08.07 Ver4. (リニューアル版・リンク指定色継承版)  ====================== */

/* =========================================
   全体設定 (Base)
   ========================================= */
html, body {
  overflow-x: hidden !important;     /* ★画面の右へのはみ出し・横スクロールを強力にカット */
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

body {
  background-color: #EAF7F7; /* 全体は水色 */
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #333;
  padding: 12px;
  font-size: 17px;
  line-height: 1.6;
  text-align: left;
  -webkit-text-size-adjust: 100%;
}

/* リンク文字色（基本設定） */
a {
  text-decoration: underline; /* ★常にアンダーラインを表示 */
  color: inherit; /* ★周りの文字色（指定色）を自動で引き継ぐ */
  transition: all 0.2s;
}
a:hover {
  text-decoration: none; /* ★マウスを乗せた時は線を消して動きを出す */
  color: #D20050; /* ホバー時はアクセントカラー（赤）に変更 */
  opacity: 0.8;
}

/* =========================================
   メインエリア (コンテナ)
   ========================================= */
.container {
  width: 100% !important;
  max-width: 100% !important;         /* ★1460px制限を解除してブラウザ幅いっぱいに統一 */
  margin: 0 auto !important;
  padding: 42px 7px 7px 7px !important;/* ★黒帯(上部)が潜り込まないための余白(42px) */
  box-sizing: border-box !important;
  background-color: #CCDDCC;
  border-radius: 0 !important;        /* 横幅いっぱい時に端の丸みをフィット調整 */
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  border: 1px solid #ffccd5;
}

/* =========================================
   ヘッダー・ナビゲーション
   ========================================= */
header {
  text-align: center;
  margin-top: 0px; /*上余白 3px から 0 に変更 */
  margin-bottom: 3px;
  padding-bottom: 3px;
}

.header-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 3px;
}

.header-nav a {
  text-decoration: none; /* ★ボタンのアンダーラインを消す */
  background: #fff;
  border: 1px solid #aaa;
  color: #333;
  padding: 7px 7px;
  border-radius: 17px;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.page-title {
  font-size: 1.5em;
  font-weight: bold;
  margin: 0 0 8px 0; /* 上を0、下を8pxにします 上右下左の順*/
  color: #333;
}

.update-date {
  font-size: 0.8em;
  color: #666;
  text-align: right;
  display: block;
}

/* =========================================
   Sub ヘッダー・ナビゲーション
   ========================================= */
.header-sub {
  text-align: center;
  margin-bottom: 3px;
  border-bottom: 2px solid #0000ff; /* #0000ff; Subブロックのアンダーライン */
  padding-bottom: 5px;
}

.header-sub-nav {
  margin-top: 5px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.header-sub-nav a {
  text-decoration: none; /* ★ボタンのアンダーラインを消す */
  background: #e6e6fa; /* #e6e6fa=lavender boxの色 */
  border: 1px solid #aaa;
  color: #333;
  padding: 7px 7px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 17px;
  box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* =========================================
   中央揃えの文字帯 (Belt) - ベース設定
   ========================================= */
.belt {
  display: block;         /* ★強制的にブロック（箱）にする */
  width: 100%;            /* ★横幅を100%確保して、物理的に横並びを阻止する */
  box-sizing: border-box; /* ★padding（内側の余白）を含めて100%にし、画面からはみ出さないようにする */
  clear: both;            /* ★前後の回り込みなどを完全に断ち切る */
  text-align: center;
  margin: 10px 0 5px 0; /* 元10px 0 20px 0; だった */
  padding: 2px;
  border-radius: 8px;
}
.belt span {
  font-weight: bold;
  margin-right: 10px;
}

/* =========================================
   セクション (Section) - ベース設定
   ========================================= */
section {
  margin-bottom: 3px;
  border-bottom: 3px solid #ff88a0;/* --セクション区切りアンダーライン- 6px solid #ccc; --- */
  padding-bottom: 4px;
}

.sec-head {
  display: flex;
  align-items: center;
  padding: 4px 5px;
  border-radius: 0 4px 4px 0;
  margin-bottom: 7px;
  background-color: rgba(255, 255, 255, 0.6);
  border-left: 6px solid #ff4477; /* --- 6px solid #ccc; --- */
}

.sec-id {
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 10px;
  font-size: 1.0em;
  background-color: #ff4477; /* --- #ccc; --#ff4477;はキレイな旧デフォルトだった-- */
  color: #fff;
}

.sec-title {
  font-weight: bold;
  font-size: 1.0em;
  color: #cc0033; /* --- #333; --- */
}

/* =========================================
   1. 普通の <hr> タグの設定
   ========================================= */
hr {
  display: block;
  margin: 3px 0;
  border: none;
  border-top: 1px solid #000;
  height: 1px;
  background: transparent;
}

/* =========================================
   2. パターン4（自由変更用）の設定
   ========================================= */
hr.my-line {
  border: none;
  border-top: 1px solid #ccc;
  margin: 3px 0;
  height: 0;
  background: transparent;
}

/* =========================================
   リンクボタン (Link Button)
   ========================================= */
.link-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 1px;
}

.link-group a {
  text-decoration: none; /* ★ボタンのアンダーラインを消す */
  display: inline-flex;
  align-items: center;
  background-color: #fff;
  border: 1px solid #bbb;
  border-bottom: 3px solid #aaa;
  padding: 7px 7px;
  border-radius: 8px;
  font-size: 17px;
  color: #003399; /* ボタン自体の色は青を維持 */
  min-height: 24px;
  line-height: 1.3;
  font-weight: bold;
}

/* link-group内で、中身が空のアンカータグを表示しない */
.link-group a:empty {
  display: none;
}

.link-group a:active {
  border-bottom: 1px solid #aaa;
  transform: translateY(2px);
  background-color: #f0f0f0;
}

/* --- カラーバリエーション --- */
a.highlight      { background-color: #fff9c4; border-color: #fbc02d; border-bottom-color: #f57f17; color: #e65100; }
a.navy           { background-color: navy; border-color: #fbc02d; border-bottom-color: #f57f17; color: snow; }
a.blue           { background-color: blue; border-color: #fbc02d; border-bottom-color: #f57f17; color: snow; }
a.skyblue        { background-color: skyblue; border-color: green; border-bottom-color: green; color: black; }
a.aqua           { background-color: aqua; border-color: red; border-bottom-color: #f57f17; color: black; }
a.lightgreen     { background-color: lightgreen; border-color: navy; border-bottom-color: navy; color: black; }
a.lime           { background-color: lime; border-color: navy; border-bottom-color: navy; color: black; }
a.limegreen      { background-color: limegreen; border-color: green; border-bottom-color: green; color: black; }
a.olive          { background-color: olive; border-color: green; border-bottom-color: green; color: white; }
a.green          { background-color: green; border-color: #fbc02d; border-bottom-color: #f57f17; color: snow; }
a.darkolivegreen { background-color: darkolivegreen; border-color: green; border-bottom-color: green; color: white; }
a.mistyrose      { background-color: mistyrose; border-color: green; border-bottom-color: green; color: red; }
a.pink           { background-color: pink; border-color: red; border-bottom-color: green; color: black; }
a.shiny-pink     { background-color: #ff4477; border-color: #cc3355; border-bottom-color: #aa2244; color: #fff; }
a.magenta        { background-color: magenta; border-color: green; border-bottom-color: green; color: white; }
a.fuchsia        { background-color: fuchsia; border-color: green; border-bottom-color: green; color: white; }
a.mediumorchid   { background-color: mediumorchid; border-color: green; border-bottom-color: green; color: white; }
a.purple         { background-color: purple; border-color: green; border-bottom-color: green; color: white; }
a.orange         { background-color: orange; border-color: green; border-bottom-color: green; color: black; }
a.red            { background-color: red; border-color: navy; border-bottom-color: navy; color: snow; }
a.maroon         { background-color: maroon; border-color: green; border-bottom-color: green; color: white; }
a.tomato         { background-color: tomato; border-color: green; border-bottom-color: green; color: white; }
a.gold           { background-color: gold; border-color: green; border-bottom-color: green; color: black; }
a.yellow         { background-color: yellow; border-color: red; border-bottom-color: #f57f17; color: black; }
a.dimgray        { background-color: dimgray; border-color: green; border-bottom-color: green; color: white; }
a.black          { background-color: black; border-color: green; border-bottom-color: green; color: white; }
a.midnightblue   { background-color: midnightblue; border-color: #fbc02d; border-bottom-color: #f57f17; color: snow; }
a.darkblue       { background-color: darkblue; border-color: #fbc02d; border-bottom-color: #f57f17; color: snow; }
a.mediumblue     { background-color: mediumblue; border-color: #fbc02d; border-bottom-color: #f57f17; color: snow; }

/* =========================================
   データテーブル (Table)
   ========================================= */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 5px;
  margin-bottom: 20px;
  background: #fff;
  font-size: 0.95em;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.info-table th, 
.info-table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
}

.info-table th {
  background-color: #fff0f5;
  width: 35%;
  font-weight: normal;
  color: #333;
}

.info-table td {
  font-weight: bold;
}

.group-header {
  margin-top: 15px;
  margin-bottom: 5px;
  font-weight: bold;
  color: #fff;
  background-color: #ff88a0;
  padding: 5px 10px;
  border-radius: 4px;
}

/* =========================================
   スマホ用調整 (Mobile)
   ========================================= */
@media (max-width: 600px) {
  .link-group {
    flex-direction: row;
    gap: 6px;
  }

  .link-group a {
    width: auto;
    flex: 1 1 auto;
    padding: 5px 4px;
    font-size: 14px;
    justify-content: center;
    text-align: center; 
    word-break: break-all;
  }

  .header-nav {
    gap: 5px;
  }
  .header-nav a {
    padding: 5px 4px;
    font-size: 13px;
    flex: 1 1 auto;
    text-align: center;
  }
  
  .header-sub-nav a {
    padding: 5px 4px;
    font-size: 14px;
    flex: 1 1 auto;
    text-align: center;
  }
}

/* =========================================
   写真リスト・サイズ変更機能 (Photos)
   ========================================= */
.link-group a.photo-link {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  height: auto;
  padding: 2px;
  vertical-align: top;
}

.photo-link img {
  width: auto;
  max-width: 100% !important;   /* ★画面幅（親要素）を超えないよう自動フィット */
  object-fit: contain;
  margin-bottom: 3px;
  transition: height 0.3s ease;
  height: 120px; 
}

/* 記事内などの一般画像も画面からはみ出さないようガード */
img {
  max-width: 100% !important;
  height: auto;
}
/* 画像付きリンク内の文字サイズ設定 */
.link-group a.photo-link {
  font-size: 13px;
  line-height: 1.0;
}

/* 写真サイズ管理 */
body.view-ss  .photo-link img { height: 28px; }
body.view-s   .photo-link img { height: 46px; }
body.view-m   .photo-link img { height: 80px; }
body.view-l   .photo-link img { height: 160px; }
body.view-ll  .photo-link img { height: 240px; }
body.view-xl  .photo-link img { height: 520px; }
body.view-xxl .photo-link img { height: 720px; }

/* =========================================
   最上段・黒帯サイズ変更バー（中央ピッタリ絶対固定版）
   ========================================= */
.size-controls {
  position: fixed !important;        /* ★画面の最上部に固定 */
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;            /* ★ブラウザ幅100%に合致 */
  z-index: 9999 !important;
  background-color: #333 !important; /* 黒帯 */
  padding: 5px 4px !important;
  margin: 0 !important;
  border-bottom: 1px solid #555 !important;
  display: flex !important;
  justify-content: center !important;/* ★ボタン群を中央配置 */
  align-items: center !important;
  gap: 4px !important;
  flex-wrap: nowrap !important;
  box-sizing: border-box !important;
}

/* ボタン自体のサイズ（ヒロさんが微調整するベース） */
.size-btn {
  background-color: #555 !important;
  color: #eee !important;
  border: 1px solid #777 !important;
  border-radius: 4px !important;
  padding: 5px 9px !important;       /* 上下 左右 の余白 */
  margin: 0 !important;
  cursor: pointer;
  font-size: 14px !important;        /* 文字サイズ */
  line-height: 1.2 !important;
  flex: 0 1 auto !important;
  white-space: nowrap !important;
}

/* =========================================
   「MTへ」ボタン用のオレンジスタイル設定
   ========================================= */
.size-btn.btn-menu-top {
  background-color: #ff8c00 !important; /* オレンジ色 */
  color: #ffffff !important;           /* 白文字 */
  border-color: #ffa500 !important;
  text-decoration: none !important;    /* 下線を消去 */
  font-weight: bold !important;
}

.size-btn.btn-menu-top:hover {
  background-color: #ff7700 !important; /* ホバー時の少し濃いオレンジ */
}


.size-btn:hover {
  background-color: #666 !important;
}

/* =========================================
   文章・説明文用 - ベース設定
   ========================================= */
.text-box {
  margin: 10px 5px;
  line-height: 1.5;
  color: #333;
  word-wrap: break-word;
}

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
   【重要】 上書き用パーツ辞書 (Utility)
   ※基本のグレー背景などに勝つため、一番下に記述します。
   ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

/* -----------------------------------------
   [1] サイズ設定
   ----------------------------------------- */
.size-xl  { font-size: 1.7em; }
.size-ll  { font-size: 1.4em; }
.size-l  { font-size: 1.2em; }
.size-m  { font-size: 1.1em; }
.size-s  { font-size: 0.95em; }
.size-ss  { font-size: 0.85em; }

.text-ss { font-size: 12px; }
.text-s  { font-size: 14px; font-weight: bold; }
.text-ms  { font-size: 16px; font-weight: bold; }
.text-m  { font-size: 18px; font-weight: bold; }
.text-ml  { font-size: 20px; font-weight: bold; }
.text-l  { font-size: 23px; font-weight: bold; }
.text-ll  { font-size: 28px; font-weight: bold; }
.text-xl  {
  font-size: 40px;
  font-weight: bold;
  border-bottom: 2px solid #ff88a0;
  display: inline-block;
  margin-bottom: 10px;
}

/* -----------------------------------------
   [2] 汎用カラー設定（文字色・背景色）
   ----------------------------------------- */
.txt-navy         { color: navy; }
.txt-darkblue     { color: darkblue; }
.txt-midnightblue { color: midnightblue; }
.txt-mediumblue   { color: mediumblue; }
.txt-blue         { color: blue; }
.txt-aqua         { color: aqua; }
.txt-lime         { color: lime; }
.txt-green        { color: green; }
.txt-yellow       { color: yellow; }
.txt-gold         { color: gold; }
.txt-red          { color: red; }
.txt-pink         { color: pink; }
.txt-shiny-pink   { color: #ff4477 !important; }
.txt-magenta      { color: magenta; }
.txt-black        { color: black; }
.txt-white        { color: white; }

.bg-navy          { background-color: navy; }
.bg-darkblue      { background-color: darkblue; }
.bg-midnightblue  { background-color: midnightblue; }
.bg-mediumblue    { background-color: mediumblue; }
.bg-blue          { background-color: blue; }
.bg-aqua          { background-color: aqua; }
.bg-lime          { background-color: lime; }
.bg-green         { background-color: green; }
.bg-yellow        { background-color: yellow; }
.bg-gold          { background-color: gold; }
.bg-red           { background-color: red; }
.bg-pink          { background-color: pink; }
.bg-shiny-pink    { background-color: #ff4477 !important; }
.bg-magenta       { background-color: magenta; }
.bg-black         { background-color: black; }

/* -----------------------------------------
   [3] パーツ専用のカラー・サイズ設定
   ----------------------------------------- */
.belt.bg-clear      { background-color: rgba(255, 255, 255, 0.5); }
.belt.bg-pink       { background-color: #ff4477; }
.belt.bg-darkgreen  { background-color: darkgreen; }
.belt.bg-navy       { background-color: navy; }
.belt.bg-blue       { background-color: blue; }
.belt.bg-aqua       { background-color: aqua; }
.belt.bg-lime       { background-color: lime; }
.belt.bg-green      { background-color: green; }
.belt.bg-yellow     { background-color: yellow; }
.belt.bg-gold       { background-color: gold; }
.belt.bg-red        { background-color: red; }
.belt.bg-shiny-pink { background-color: shiny-pink; }
.belt.bg-magenta    { background-color: magenta; }
.belt.bg-black      { background-color: black; }
.belt.bg-plum       { background-color: plum; }
.belt.bg-skyblue    { background-color: skyblue; }
.belt.bg-purple     { background-color: purple; }
.belt.bg-indigo     { background-color: indigo; }
.belt.bg-teal       { background-color: teal; }
.belt.bg-slategray  { background-color: slategray; }
.belt.bg-peru       { background-color: peru; }
.belt.bg-moccasin   { background-color: moccasin; }
.belt.bg-mistyrose  { background-color: mistyrose; }
.belt.bg-lightgreen { background-color: lightgreen; }

.belt.txt-navy    span { color: navy; }
.belt.txt-blue    span { color: blue; }
.belt.txt-aqua    span { color: aqua; }
.belt.txt-lime    span { color: lime; }
.belt.txt-green   span { color: green; }
.belt.txt-yellow  span { color: yellow; }
.belt.txt-gold    span { color: gold; }
.belt.txt-red     span { color: #ff0000; }
.belt.txt-pink    span { color: pink; }
.belt.txt-magenta span { color: magenta; }
.belt.txt-black   span { color: black; }
.belt.txt-white   span { color: white; }
.belt.txt-mediumblue span { color: mediumblue; }

.belt.size-1 span { font-size: 0.8em; }
.belt.size-2 span { font-size: 1.1em; }
.belt.size-3 span { font-size: 1.3em; }
.belt.size-4 span { font-size: 1.8em; }
.belt.size-5 span { font-size: 2.5em; }

.sec-head.bg-navy    { background-color: rgba(0, 0, 128, 0.6); }
.sec-head.bg-blue    { background-color: rgba(0, 0, 255, 0.6); }
.sec-head.bg-aqua    { background-color: rgba(0, 255, 255, 0.6); }
.sec-head.bg-skyblue { background-color: rgba(135, 206, 235, 0.6); }
.sec-head.bg-lime    { background-color: rgba(0, 255, 0, 0.6); }
.sec-head.bg-green   { background-color: rgba(0, 128, 0, 0.6); }
.sec-head.bg-yellow  { background-color: rgba(255, 255, 0, 0.6); }
.sec-head.bg-gold    { background-color: rgba(255, 215, 0, 0.6); }
.sec-head.bg-red     { background-color: rgba(255, 0, 0, 0.6); }
.sec-head.bg-pink    { background-color: rgba(255, 192, 203, 0.6); }
.sec-head.bg-plum    { background-color: rgba(221, 160, 221, 0.6); }
.sec-head.bg-purple  { background-color: rgba(128, 0, 128, 0.6); }
.sec-head.bg-indigo  { background-color: rgba(75, 0, 130, 0.6); }
.sec-head.bg-peru    { background-color: rgba(205, 133, 62, 0.6); }
.sec-head.bg-magenta { background-color: rgba(255, 0, 255, 0.6); }
.sec-head.bg-teal    { background-color: rgba(0, 128, 128, 0.6); }
.sec-head.bg-black   { background-color: rgba(0, 0, 0, 0.6); }
.sec-head.bg-mistyrose     { background-color: rgba(255, 228, 225, 0.6); }
.sec-head.bg-shiny-pink    { background-color: rgba(255, 68, 119, 0.6); }
.sec-head.bg-moccasin      { background-color: rgba(255, 228, 181, 0.6); }
.sec-head.bg-lightgreen    { background-color: rgba(144, 238, 144, 0.6); }
.sec-head.bg-slategray     { background-color: rgba(112, 128, 144, 0.6); }

.sec-head.bdr-navy    { border-left-color: navy; }
.sec-head.bdr-blue    { border-left-color: blue; }
.sec-head.bdr-aqua    { border-left-color: aqua; }
.sec-head.bdr-lime    { border-left-color: lime; }
.sec-head.bdr-green   { border-left-color: green; }
.sec-head.bdr-yellow  { border-left-color: yellow; }
.sec-head.bdr-gold    { border-left-color: gold; }
.sec-head.bdr-red     { border-left-color: red; }
.sec-head.bdr-pink    { border-left-color: pink; }
.sec-head.bdr-magenta { border-left-color: magenta; }
.sec-head.bdr-black   { border-left-color: black; }
.sec-head.bdr-mistyrose { border-left-color: mistyrose; }
.sec-head.bdr-shiny-pink { border-left-color: #ff4477 !important; }

/* =========================================
   スマホ横画面時のヘッダー最適化
   ========================================= */
@media (max-height: 500px) and (orientation: landscape) {
  body {
    padding: 6px;
  }
  .container {
    padding-top: 36px !important;
  }
  header {
    margin-bottom: 2px;
  }
  .page-title {
    font-size: 1.1em;
    margin: 0 0 4px 0;
  }
  .header-nav {
    gap: 5px;
    margin-bottom: 2px;
  }
  .header-nav a, .header-sub-nav a {
    padding: 4px 8px;
    font-size: 13px;
  }
  .header-sub {
    padding-bottom: 2px;
    margin-bottom: 2px;
  }
}

/* =========================================
   【最優先】選択中のサイズボタン（緑ハイライト）
   ※最下部に配置して他のスタイル上書きを完全に防ぎます
   ========================================= */
.size-btn.active {
  background-color: green !important;
  color: #ffffff !important;
  border-color: #00ff00 !important;
  font-weight: bold !important;
}
