/* funini-section.css — funini.com section pages shared CSS
   Color scheme: navy #336 + orange #c60
   All pages use this file; per-page overrides are minimal.      */

:root {
  --navy:         #336;
  --navy-light:   #9ac;
  --navy-dark:    #224;
  --orange:       #c60;
  --orange-light: #f84;
  --orange-pale:  #f3dfc8;
  --link:         #c60;
  --accent-bg:    var(--navy);
  --accent-text:  #fff;
  --title-color:  var(--orange);
  --title-border: var(--orange);
  --sub-bg:       #f4f6fb;
  --sub-text:     var(--navy);
}

body.theme-navy {
  --link:         var(--navy);
  --accent-bg:    #eef3fb;
  --accent-text:  var(--navy);
  --title-color:  var(--navy);
  --title-border: var(--navy-light);
  --sub-bg:       #f6f8fc;
  --sub-text:     var(--navy);
}

body.theme-orange {
  --link:         var(--orange);
  --accent-bg:    #fbefe2;
  --accent-text:  #8a4a16;
  --title-color:  var(--orange);
  --title-border: var(--orange);
  --sub-bg:       #fff7ef;
  --sub-text:     var(--orange);
}

body.theme-green {
  --link:         #2f6b45;
  --accent-bg:    #eef7f0;
  --accent-text:  #2f6b45;
  --title-color:  #2f6b45;
  --title-border: #8fbe9b;
  --sub-bg:       #f4fbf5;
  --sub-text:     #2f6b45;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 14px;
  line-height: 1.8;
  background: #fff;
  color: #222;
}

a         { color: var(--link); text-decoration: none; }
a:hover   { color: var(--orange-light); text-decoration: underline; }
a:visited { color: #963; }

img          { max-width: 100%; height: auto; border: 1px solid #ccc; }
img.noborder { border: none; }

/* ── breadcrumb nav ── */
.sec-navi {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 20px 2px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  font-size: 12px;
  color: #667;
}
.sec-navi a {
  display: inline-block;
  color: var(--navy);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.01em;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2f7;
}
.sec-navi a:hover { color: var(--link); text-decoration: underline; }
.sec-navi .current {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-bg) 20%, white);
  color: var(--sub-text, var(--navy));
  font-size: 12px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ── page title (h1) ──
   Simple text heading with a short underline in the page theme. */
h1 {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  color: var(--title-color);
  margin: 12px 20px 14px;
  padding: 0 0 4px;
  border-left: none;
  border-bottom: 2px solid color-mix(in srgb, var(--title-border) 50%, white);
  background: transparent;
  line-height: 1.35;
}

/* ── section header (h2) ──
   Secondary heading without the old filled label treatment.     */
h2 {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: var(--sub-text);
  background: transparent;
  padding: 0 0 3px;
  margin: 16px 20px 8px;
  border-bottom: 1px solid color-mix(in srgb, var(--title-border) 35%, white);
  letter-spacing: 0.01em;
}

/* ── subsection header (h3) ──
   Smaller, navy text, orange left accent, subtle bg.            */
h3 {
  display: inline-block;
  font-size: 13px;
  font-weight: bold;
  color: var(--sub-text);
  background: var(--sub-bg);
  border-left: 3px solid var(--title-border);
  padding: 3px 12px;
  margin: 14px 20px 4px;
}

/* ── content wrapper ── */
.sec-content {
  padding: 8px 20px 28px;
  max-width: 860px;
}
.sec-content p { margin: 6px 0 10px; }

ul            { margin: 4px 0 12px; padding-left: 24px; }
li            { margin: 3px 0; }

.sec-content > h2,
.sec-content > h3 {
  margin-left: 0;
}

/* ── 2-col book list ── */
.book-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 20px;
  margin: 8px 0 14px;
  padding: 0;
  list-style: none;
}
.book-list li {
  margin: 0;
  font-size: 13px;
  padding: 0;
}
.book-list a {
  display: block;
  padding: 4px 6px;
  border-radius: 6px;
}
.book-list a:hover {
  background: color-mix(in srgb, var(--accent-bg) 12%, white);
  text-decoration: none;
}
@media (max-width: 540px) { .book-list { grid-template-columns: 1fr; } }

/* ── thumbnail grid ── */
.thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 8px 0;
  padding: 0;
  list-style: none;
}
.thumbnails li { margin: 0; }
.thumbnail {
  width: 150px;
  height: auto;
  display: block;
  border: 2px solid #ccc;
  transition: border-color 0.15s, opacity 0.15s;
}
.thumbnail:hover { border-color: var(--accent-bg); opacity: 0.82; }



body.theme-orange .sec-navi a {
  color: #8a4a16;
  background: #f8efe6;
}
body.theme-orange .sec-navi .current {
  color: #8a4a16;
}

body.theme-orange h1 {
  display: inline-block;
  color: var(--orange);
  border-left: none;
  border-bottom: 2px solid #f0c7a3;
  margin: 12px 20px 14px;
  padding: 0 0 4px;
  line-height: 1.35;
}

body.theme-orange h2 {
  color: var(--orange);
  background: transparent;
  border-bottom: 1px solid #f0c7a3;
  padding: 0 0 3px;
  margin-top: 16px;
  margin-bottom: 8px;
}

/* ── about page ── */
.about-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-top: 8px;
}
.about-grid img { width: 220px; border: 1px solid #ccc; }
.about-grid ul  { margin: 4px 0; padding-left: 20px; }


.books-entry {
  line-height: 1.9;
}
.books-entry::after {
  content: "";
  display: block;
  clear: both;
}
.books-entry img {
  float: right;
  max-width: min(42%, 240px);
  height: auto;
  margin: 0 0 14px 16px;
  border: 1px solid #d9c2aa;
}
@media (max-width: 640px) {
  .books-entry img {
    float: none;
    display: block;
    max-width: 100%;
    margin: 0 auto 14px;
  }
}
