/* ========================================
   Holmes Style — Stable Refined Edition 20251102
   ======================================== */

/* ---- Base ---- */
body{
  background:#3e2b23 url("https://www.transparenttextures.com/patterns/leather.png");
  color:#f3efe8;
  font-family:"Georgia","Times New Roman",serif;
  line-height:1.9;
  margin:0;
}

/* ---- Layout ---- */
.container{
  display:flex; flex-wrap:wrap;
  max-width:1100px; margin:0 auto;
  background:rgba(255,248,240,0.96);
  color:#1a1a1a;
  border-radius:8px;
  box-shadow:0 0 25px rgba(0,0,0,0.4);
  padding:2em; gap:2em;
}
header{
  text-align:center;
  background:linear-gradient(to right,#5a3925,#8b5a2b);
  color:#fdf8ee;
  padding:1.2em;
  border-radius:6px;
  margin-bottom:1.5em;
  width:100%;
  box-shadow:inset 0 -3px 6px rgba(0,0,0,0.3);
  line-height: 1.2;
}
main{ flex:3; min-width:320px; padding:1em; font-size:1.1em; }
aside{
  flex:1; min-width:200px;
  background:rgba(62,43,35,0.95);
  color:#e8d9c3;
  border-left:3px solid #a67b54;
  border-radius:0 8px 8px 0;
  padding:1em;
}

/* ---- Typography ---- */
h1,h2{ font-family:"Cormorant Garamond","Yu Mincho",serif; }
h1 {
  background: linear-gradient(to right, #5a3925, #8b5a2b);
  font-size:2.5em;
color: #fdf8ee;
  padding: .4em .2em;
  border-radius: 4px;
  margin-top: 0;
  margin-bottom: 0.3em; /* ← これを追加：下の余白を小さく */
  text-align: center;
}
h2{ font-size:1.5em; margin:0.2em 0 .2em; color:#800000; }
h3{
  color:#ff6347;
  font-family:"Garamond","Times New Roman",serif;
  border-bottom:2px solid #b58b5a;
}
h4 {color:#DC143C;
}

/* ヘッダー内文字修飾 */

header h2 {
  text-shadow: 0 0 6px #00ff00, 0 0 10px #00ff00;
}


/* ---- Intro / Lists ---- */
.intro{
  background:rgba(245,236,223,0.95);
  padding:1.5em; border-left:5px solid #b58b5a;
  margin-bottom:2em; font-style:italic;
}
.story-list{ list-style:none; padding:0; }
.story-list li{ margin-bottom:.8em; }
.story-list a{ color:#8b4513; text-decoration:none; }
.story-list a:hover{ color:#c37b34; text-decoration:underline; }


/* ---- Sidebar Links ---- */
aside a{
  color:#f0c98b; text-decoration:none;
  display:block; padding:.3em .5em; border-radius:6px;
}
aside a:hover{ background:#805847; color:#fff2c9; text-decoration:underline; }

/* ---- Accordion (sidebar) ---- */
.toggle{ display:none; }
.menu{ list-style:none; padding:0; margin:0; }
.menu > li{ margin:.4em 0; }

.menu-label{
  display:block; cursor:pointer; padding:.3em .5em;
  color:#e8d9c3; border-radius:6px; transition:background .3s;
}
.menu-label:hover, .submenu a:hover{ background:#805847; }

.menu-label::before{
  content:"▶ "; display:inline-block; width:1em; font-size:.8em; transition:transform .3s;
}
.toggle:checked + .menu-label::before{ content:"▼ "; }

.submenu{
  list-style:none; margin:.3em 0 0 1em; padding-left:.5em; display:none;
}
.submenu a{
  text-decoration:none; display:block;
  padding:.2em .5em; font-size:.9em;
  border-radius:4px; transition:background .3s;
}
.toggle:checked + .menu-label + .submenu{ display:block; }

/* チェックボックスを常時固定（クリックしても動かない）イギリス案内 */
#note {
  pointer-events: none;
}

/* submenu を常に開いた状態に */
#note:checked ~ .submenu {
  display: block;
}


/* ---- Hamburger ---- */
.menu-toggle {
  display: none;
  position: fixed;
  top: var(--menuTop, 12px); /* ← 初期値12px。JSで上書きされる */
  right: 12px;
  background: #a67b54;
  color: #fff;
  font-size: 28px;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,.3);
  transition: top 0.3s ease; /* ← 広告出現時にスムーズに動く */
}
.menu-toggle .menu-label-text {
  display: block;
  font-size: 13px;
  margin-top: 2px;
  letter-spacing: .05em;
}
/* ---- Google Map ---- */
.gmap{ height:0; overflow:hidden; padding-bottom:56.25%; position:relative; }
.gmap iframe{ position:absolute; inset:0; width:100%; height:100%; }

/* ===================================
   Pager — Centered & Balanced Layout
   =================================== */

.pager ul.pagination {
  text-align: center;
  margin: 0;
  padding: 0;
}

.pager .pagination li {
  display: inline-block;
  margin: 0 2px;
  padding: 0;
  background: #b34d4d;
  width: 50px;
  height: 50px;
  text-align: center;
  vertical-align: middle;   /* ← これが重要 */
  position: relative;
}

.pager .pagination li a {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: table;
  color: #fff;
  text-decoration: none;
}

.pager .pagination li a span {
  display: table-cell;
  vertical-align: middle;
}

.pager .pagination li a:hover,
.pager .pagination li a.active {
  color: #000;
  background: #b37d7d;
}

/* 資料の表  */
.notetable {
  width: 100%;
  border-collapse: collapse;
  /* table-layout: fixed;   ← 重要 列幅が等分される */
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.notetable th, .notetable td {
  padding: .4em;
  border: 1px solid #ccc;
  text-align: left;
}
.notetable thead {
  background-color: #8B0000;
  color: white;
}

/* ----新聞記事1文字分の字下げ ----　*/
.quote {
  margin-left: 2.5em;   
}


/* ---- Responsive ---- */
@media (max-width: 767px) {
  .pager .pagination li {
    display: none;
  }

  .pager .pagination li.pre,
  .pager .pagination li.next {
    display: inline-block;
    width: 40%;
    height: 50px;
    text-align: center;
  }

  .pager .pagination li.pre a,
  .pager .pagination li.next a {
    width: 100%;
    text-align: center;
  }

  .pager .pagination li.pre span::after {
    content: "　前へ";
  }

  .pager .pagination li.next span::before {
    content: "次へ　";
  }
}

/* ---- Footer ---- */
footer{
  background:#2a1b13; color:#d5c4a1;
  text-align:center; padding:1em; margin-top:2em;
  border-top:1px solid #a67b54;
}

footer a:link {
  color: orange;       /* 通常 */
  text-decoration: none;
}

footer a:visited {
  color: darkorange;   /* 訪問済み */
}

footer a:hover {
  color: yellow;       /* マウスオン時 */
}

footer a:active {
  color: gold;         /* クリック中（任意） */
}


/* ---- Responsive ---- */
@media (max-width:1024px){
  .container{ flex-direction:column; padding:1em; gap:1em; }
  aside{
    display:none;
    border-left:none; border-top:3px solid #a67b54;
    border-radius:0 0 8px 8px;
  }
  .menu-toggle{ display:block; }
}

/* Drawer (sidebar active) */
aside.active{
  display:block;
  position:fixed; top:60px; right:0; bottom:0;
  width:80%; max-width:300px; background:#4b2e1a;
  color:#fef8e7; border-left:3px solid #a67b54;
  border-top:3px solid #a67b54;
  box-shadow:-2px 2px 6px rgba(0,0,0,.2);
  z-index:999; padding:1em;
  overflow-y:auto; -webkit-overflow-scrolling:touch;
}
aside.active a{ color:#fef8e7; }
aside.active a:hover{ background:#805847; color:#fff2c9; }

/* Pager simplified (phone) */
@media (max-width:767px){
  .pager .pagination li{ display:none; }
  .pager .pagination li.pre,
  .pager .pagination li.next{
    display:inline-block; width:40%; height:50px; text-align:center;
  }
  .pager .pagination li.pre a,
  .pager .pagination li.next a{ width:100%; text-align:center; }
  .pager .pagination li.pre span::after{ content:"　前へ"; }
  .pager .pagination li.next span::before{ content:"次へ　"; }
}

/*準備中*/

.upcoming {
  opacity: 0.6;               
  background-color: transparent;
  color: inherit !important;  /* ← 文字色を他と統一 */
  cursor: not-allowed;
  margin: 0;
  padding: 0;
  line-height: 1.4;
  transition: background-color 0.3s ease, opacity 0.3s ease;
  /* text-decoration: line-through;打消し線 */
}
.upcoming:hover {
  background-color: rgba(200,200,200,0.25);
  opacity: 0.9;
}
.upcoming input,
.upcoming a,
.upcoming label {
  pointer-events: none;
}

/* ページトップリンク */
.pagetop {
  text-align: right;         /* 右寄せ（好みでcenterでもOK） */
  margin: 2em 0;
}

.pagetop a {
  display: inline-block;
  background: #7b5b3a;       /* サイトの茶系に合わせる */
  color: #fff;
  padding: 0.5em 1em;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9em;
  transition: background-color 0.3s;
}

.pagetop a:hover {
  background: #a67b54;       /* ホバーで少し明るく */
}

/*  MENUがGoogle広告を避ける   */
@media (max-width: 768px) {
  .menu-toggle {
    position: fixed;
    top: 80px;   /* ← 広告バーを避ける位置。60〜90pxで調整可 */
    right: 12px;
    z-index: 1000;
  }
}

/* ==== スマホ時：本文を1カラム＆中央に ==== */
@media (max-width: 768px) {
  .container {
    flex-direction: column;   /* 横並び → 縦1列に */
    max-width: 100%;          /* 1100px の上限を解除 */
    width: 100%;              /* 画面幅いっぱいに */
    margin: 0;                /* 左右の auto 中央寄せを解除 */
    padding: 0.8em;           /* 余白は少しだけ */
    gap: 1em;
    box-sizing: border-box;
  }

  main {
    padding: 0.5em 0;         /* 本文内側の余白も少しだけ */
  }
}

/* ==== スマホ時：1カラム＋左右にしっかり余白 ==== */
@media (max-width: 768px) {
  .container {
    flex-direction: column;     /* 縦１列 */
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0.8em 1.2em;       /* ← 左右に 1.2em の余白をはっきり確保 */
    gap: 1em;
    box-sizing: border-box;
  }

  .container > * {
    width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }
}

/* 画像がコンテナからはみ出さないようにする */
.container img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;   /* 必要なら中央寄せ */
}

/*　Googleピクセルのための修正　*/
@media (max-width: 768px) {
  .menu-toggle {
    position: fixed;
    top: 80px;
    right: 0;                     /* ← 必ず画面の右端に収める */
    transform: translateX(-12px); /* ← 見た目だけ12px左へ寄せる */
    z-index: 1000;
  }
}


