/* Iris Insights（疑問起点の解説記事）。style.css の変数を使う */
.ins-main { padding: 1.5rem 0 3rem; }
.ins-article { max-width: 760px; margin: 0 auto; padding: 0 1.25rem; font-family: var(--serif); line-height: 1.95; color: var(--text); }
.ins-crumb { font-family: var(--sans); font-size: .8rem; color: var(--text-muted); margin-bottom: 1rem; }
.ins-crumb a { color: var(--text-muted); }
.ins-head { margin-bottom: 1.5rem; }
.ins-cat { font-family: var(--sans); font-size: .75rem; letter-spacing: .08em; color: var(--accent); font-weight: 600; }
.ins-article h1 { font-size: 1.75rem; line-height: 1.5; margin: .3rem 0 .6rem; }
.ins-meta { font-family: var(--sans); font-size: .8rem; color: var(--text-muted); margin: 0; }
.ins-article h2 { font-size: 1.3rem; line-height: 1.5; margin: 2.4rem 0 .8rem; padding-bottom: .4rem; border-bottom: 2px solid var(--border); }
.ins-article h3 { font-size: 1.05rem; margin: 1.4rem 0 .3rem; }
.ins-article p { margin: 0 0 1.1rem; }
.ins-article ul { padding-left: 1.3rem; margin: 0 0 1.1rem; }
.ins-article li { margin-bottom: .4rem; }
.ins-answer { background: var(--bg-alt); border-left: 4px solid var(--accent); border-radius: 4px; padding: 1rem 1.2rem .2rem; margin-bottom: 1.5rem; }
.ins-answer-label { font-family: var(--sans); font-size: .75rem; font-weight: 700; color: var(--accent); margin-bottom: .4rem; }
.ins-toc { font-family: var(--sans); background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: .9rem 1.2rem; margin-bottom: 1rem; font-size: .9rem; }
.ins-toc-title { font-weight: 700; margin-bottom: .3rem; }
.ins-toc ol { margin: 0; padding-left: 1.3rem; }
.ins-toc li { margin-bottom: .2rem; line-height: 1.6; }
.ins-timeline { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--card); }
.ins-timeline th, .ins-timeline td { border: 1px solid var(--border); padding: .55rem .8rem; vertical-align: top; line-height: 1.7; }
.ins-timeline th { width: 7.5em; white-space: nowrap; text-align: left; background: var(--bg-alt); font-family: var(--sans); font-weight: 600; font-size: .85rem; }
.ins-note { font-family: var(--sans); font-size: .8rem; color: var(--text-muted); line-height: 1.7; }
.ins-qa h3 { color: var(--accent); }
.ins-summary li { margin-bottom: .5rem; }
.ins-book { font-family: var(--sans); background: var(--card); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); padding: 1.2rem; margin: 2.5rem 0 1rem; }
.ins-book-label { font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .7rem; }
.ins-book-body { display: flex; gap: 1.2rem; align-items: flex-start; }
.ins-book-cover img { display: block; width: 120px; height: auto; border-radius: 3px; box-shadow: var(--shadow-hover); }
.ins-book-title { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 .3rem; border: 0; padding: 0; }
.ins-book-title a { color: var(--text); }
.ins-book-sub { font-size: .85rem; color: var(--text-muted); margin: 0 0 .5rem; line-height: 1.6; }
.ins-book-short { font-size: .9rem; margin: 0 0 .8rem; line-height: 1.7; }
.ins-book-actions { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; }
.ins-related ul, .ins-sources ul { font-family: var(--sans); font-size: .9rem; }
.ins-sources .ins-note { margin-top: .6rem; }
.ins-cards { list-style: none; padding: 0; display: grid; gap: .9rem; }
.ins-card a { display: block; background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.2rem; color: inherit; box-shadow: var(--shadow); }
.ins-card a:hover { box-shadow: var(--shadow-hover); }
.ins-card-title { display: block; font-weight: 600; font-size: 1.05rem; color: var(--accent); margin-bottom: .3rem; line-height: 1.6; }
.ins-card-desc { display: block; font-size: .9rem; line-height: 1.7; }
.ins-card-book { display: block; font-family: var(--sans); font-size: .78rem; color: var(--text-muted); margin-top: .4rem; }
@media (max-width: 640px) {
  .ins-article h1 { font-size: 1.45rem; }
  .ins-book-body { flex-direction: column; align-items: center; text-align: left; }
  .ins-timeline th { width: 5.5em; font-size: .8rem; padding: .45rem .5rem; }
  .ins-timeline td { padding: .45rem .6rem; }
}

.ins-hook { font-family: var(--sans); background: linear-gradient(180deg, #fff8ec 0%, var(--card) 100%); border: 1px solid #e6d3b3; border-radius: 10px; padding: 1.3rem 1.3rem 1.1rem; margin: 2.4rem 0 1rem; }
.ins-hook-label { font-size: .75rem; font-weight: 700; color: var(--accent); letter-spacing: .06em; }
.ins-article .ins-hook-q { font-family: var(--serif); font-size: 1.25rem; line-height: 1.6; border: 0; margin: .3rem 0 .6rem; padding: 0; }
.ins-hook-lead { font-size: .95rem; line-height: 1.85; }
.ins-excerpt { position: relative; margin: 1rem 0; padding: .9rem 1.1rem 0; border-left: 4px solid var(--accent); background: #fff; font-family: var(--serif); font-size: .95rem; max-height: 17rem; overflow: hidden; }
.ins-excerpt-src { font-family: var(--sans); font-size: .72rem; color: var(--text-muted); margin-bottom: .5rem; }
.ins-excerpt p { margin: 0 0 .7rem; }
.ins-excerpt-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 5.5rem; background: linear-gradient(rgba(255,255,255,0), #fff 85%); }
.ins-hook-more { margin-bottom: .3rem; }
.ins-hook ul { font-size: .92rem; }

.ins-hero { margin: 0 0 1.5rem; }
.ins-hero img { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: var(--shadow); }
.ins-strip { display: flex; gap: .8rem; align-items: center; font-family: var(--sans); font-size: .82rem; color: var(--text-muted); margin-bottom: 1rem; }
.ins-strip img { display: block; border-radius: 2px; box-shadow: var(--shadow); }
.ins-strip p { margin: 0; line-height: 1.6; }
.ins-mid { display: flex; gap: 1rem; align-items: center; font-family: var(--sans); background: var(--bg-alt); border: 1px solid var(--border); border-radius: 8px; padding: .9rem 1.1rem; margin: 2rem 0 0; }
.ins-mid-cover img { display: block; border-radius: 3px; box-shadow: var(--shadow-hover); }
.ins-mid-label { font-size: .72rem; font-weight: 700; color: var(--accent); margin-bottom: .2rem; }
.ins-mid p { font-size: .9rem; line-height: 1.7; margin: 0 0 .6rem; }
.ins-card-img { display: block; width: 100%; height: auto; border-radius: 6px; margin-bottom: .7rem; }
.ins-excerpt-src img { vertical-align: middle; border-radius: 2px; margin-right: .3rem; }
@media (max-width: 640px) { .ins-mid { flex-direction: column; text-align: left; align-items: flex-start; } }

.ins-strip, .ins-mid, .ins-book, .ins-hook { position: relative; }
.ins-stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ins-strip, .ins-mid, .ins-book { cursor: pointer; }
.ins-book .link-detail, .ins-mid p a, .ins-book-title a, .ins-strip p a { position: relative; z-index: 2; }

.ins-toc { padding: .55rem 1rem; }
.ins-toc summary { cursor: pointer; font-weight: 700; font-size: .85rem; color: var(--text-muted); list-style: none; }
.ins-toc summary::-webkit-details-marker { display: none; }
.ins-toc summary::before { content: "▸ "; }
.ins-toc details[open] summary::before { content: "▾ "; }
.ins-toc ol { margin-top: .5rem; }

.ins-hook { cursor: pointer; }
.ins-excerpt-src img { display: inline-block; }

/* 配色の刷新：明るく現代的に（Insights内のみ） */
body:has(.ins-main) { background: #fff; }
.ins-main { --accent: #2f5bea; --accent-hover: #1f46c8; --bg-alt: #f1f5fe; --border: #e3e8f2; --text: #1b2333; --text-muted: #6a7487; --card: #fff; --shadow: 0 1px 3px rgba(20,40,100,.06), 0 4px 14px rgba(20,40,100,.05); --shadow-hover: 0 4px 10px rgba(20,40,100,.10), 0 10px 26px rgba(20,40,100,.10); }
.ins-article { font-family: var(--sans); line-height: 1.9; }
.ins-article h1, .ins-article h2, .ins-article h3 { font-family: var(--sans); font-weight: 800; }
.ins-article h2 { border-bottom: 0; padding: .1rem 0 .1rem .8rem; border-left: 5px solid var(--accent); }
.ins-answer { background: #eef3ff; border-left: 0; border-radius: 10px; }
.ins-hook { background: linear-gradient(180deg, #eef3ff 0%, #fff 100%); border-color: #cfdcff; }
.ins-article .ins-hook-q, .ins-book-title { font-family: var(--sans); font-weight: 800; }
.ins-excerpt { border-left-color: var(--accent); font-family: var(--sans); }
.ins-timeline th { background: #f1f5fe; }
.ins-card-title { font-family: var(--sans); font-weight: 800; }

.ins-quote { display: block; position: relative; margin: 1.2rem 0 1.4rem; padding: .9rem 1.1rem; background: #f6f8ff; border: 1px solid #d9e2ff; border-left: 4px solid var(--accent); border-radius: 8px; color: inherit; text-decoration: none; }
.ins-quote:hover { background: #eef3ff; }
.ins-quote-src { display: block; font-size: .72rem; font-weight: 700; color: var(--accent); margin-bottom: .35rem; }
.ins-quote-text { display: block; font-size: .93rem; line-height: 1.85; }
.ins-quote-more { display: block; font-size: .78rem; color: var(--accent); margin-top: .4rem; font-weight: 700; }

.ins-fold { border: 1px solid var(--border); border-radius: 8px; padding: .6rem 1rem; margin: 1.4rem 0; }
.ins-fold summary, .ins-more summary { cursor: pointer; font-weight: 700; font-size: .88rem; color: var(--accent); list-style: none; }
.ins-fold summary::-webkit-details-marker, .ins-more summary::-webkit-details-marker { display: none; }
.ins-fold summary::before, .ins-more summary::before { content: "＋ "; }
.ins-fold[open] summary::before, .ins-more[open] summary::before { content: "－ "; }
.ins-fold .ins-timeline { margin-top: .7rem; }
.ins-more { margin: 0 0 1rem; }
.ins-more[open] summary { margin-bottom: .6rem; }
.ins-main .ins-article section[id^="s"] h2 { margin-top: 1.8rem; }

.ins-ref a { color: var(--accent); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.ins-ref a:hover { text-decoration-style: solid; }
.ins-ref-more { margin-left: .4rem; font-size: .8rem; color: var(--text-muted); }

.ins-ref { margin: 0 0 1rem; }
.ins-ref-src { display: block; margin-top: .15rem; font-size: .76rem; color: var(--text-muted); }

.ins-refs { display: block; margin: 0 0 1.2rem; padding: 0 0 0 .9rem; border-left: 3px solid #cfdcff; color: inherit; text-decoration: none; }
.ins-refs p { margin: 0 0 .6rem; color: var(--text); font-size: .95rem; line-height: 1.85; }
.ins-refs:hover p { color: var(--accent); }
.ins-refs .ins-ref-src { display: block; margin-top: .1rem; font-size: .75rem; color: var(--text-muted); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.ins-answer .ins-refs { border-left: 0; padding-left: 0; margin-bottom: .6rem; }

.ins-def { font-size: 1.02rem; line-height: 1.9; margin: 0 0 1rem; }

.ins-more-in { font-size: .85rem; margin: -.4rem 0 1rem; }
.ins-more-in a { color: var(--accent); }

.ins-sum { font-weight: 700; margin: 0 0 .8rem; }

/* ヘッダー・フッターもInsightsでは明るく（サイト本体のstyle.cssは変更しない） */
body:has(.ins-main) .site-header { background: #fff; border-bottom: 1px solid #e8ecf5; }
body:has(.ins-main) .site-title a { font-family: var(--sans); font-weight: 800; letter-spacing: .01em; color: #1b2333; }
body:has(.ins-main) .site-nav a { color: #3a4560; font-weight: 600; }
body:has(.ins-main) .site-nav a:hover { color: #2f5bea; }
body:has(.ins-main) .site-footer { background: #f4f6fb; border-top: 1px solid #e8ecf5; }
body:has(.ins-main) .site-footer a, body:has(.ins-main) .footer-brand, body:has(.ins-main) .footer-copyright { color: #3a4560; font-family: var(--sans); }

/* スマホ：文字と余白を詰めて縦の長さを抑える */
@media (max-width: 640px) {
  .ins-article { font-size: 15px; line-height: 1.75; padding: 0 .9rem; }
  .ins-article h1 { font-size: 1.3rem; line-height: 1.45; }
  .ins-article h2 { font-size: 1.1rem; margin: 1.5rem 0 .6rem; }
  .ins-article h3 { font-size: .98rem; margin: 1rem 0 .2rem; }
  .ins-answer { padding: .7rem .8rem .1rem; margin-bottom: 1rem; }
  .ins-def { font-size: .95rem; line-height: 1.75; }
  .ins-def strong { font-weight: 700; }
  .ins-refs p { font-size: .88rem; line-height: 1.7; margin-bottom: .45rem; }
  .ins-refs { margin-bottom: .9rem; padding-left: .7rem; }
  .ins-ref-src { font-size: .7rem; }
  .ins-sum { font-size: .95rem; margin-bottom: .6rem; }
  .ins-hero { margin-bottom: 1rem; }
  .ins-strip { font-size: .74rem; }
  .ins-hook { padding: 1rem .9rem .8rem; margin-top: 1.6rem; }
  .ins-article .ins-hook-q { font-size: 1.05rem; }
  .ins-hook-lead, .ins-hook ul { font-size: .88rem; }
  .ins-excerpt { max-height: 12rem; padding: .7rem .8rem 0; font-size: .88rem; }
  .ins-book { padding: .9rem; margin-top: 1.6rem; }
  .ins-mid { padding: .8rem .9rem; margin-top: 1.4rem; }
  .ins-fold { padding: .5rem .8rem; margin: 1rem 0; }
  body:has(.ins-main) .site-header .container { gap: .3rem 1rem; padding-top: .5rem; padding-bottom: .5rem; }
  body:has(.ins-main) .site-nav { gap: .2rem 1rem; font-size: .85rem; }
}

.ins-fig { margin: 0 0 1.1rem; }
.ins-fig img { display: block; width: 100%; height: auto; border-radius: 8px; }
.ins-fig figcaption { font-size: .8rem; color: var(--text-muted); margin-top: .35rem; line-height: 1.6; }
.ins-fig figcaption span { display: block; font-size: .7rem; }
.ins-fig figcaption a { color: var(--text-muted); }

/* リンクだと分かる見た目：引用文は青系、出典は青＋矢印 */
.ins-refs p { color: #2a4a9f; }
.ins-refs:hover p { color: #1a3580; }
.ins-refs .ins-ref-src { color: var(--accent); font-weight: 700; text-decoration: underline; text-decoration-style: solid; }
.ins-refs .ins-ref-src::after { content: " ›"; }
.ins-hero a, .ins-fig a { color: var(--accent); }

.ins-fig { max-width: 360px; margin: 0 0 1rem; }
.ins-fig img { max-height: 260px; object-fit: cover; }
@media (max-width: 640px) { .ins-fig { max-width: 100%; } .ins-fig img { max-height: 200px; } }

/* 画像は脇役：小さなサムネとして本文の右に添える */
.ins-fig { float: right; width: 190px; max-width: 190px; margin: .2rem 0 .6rem 1rem; }
.ins-fig img { max-height: none; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.ins-fig figcaption { font-size: .66rem; line-height: 1.5; }
.ins-fig figcaption span { font-size: .6rem; opacity: .85; }
.ins-main .ins-article h2 { clear: both; }
.ins-main .ins-article section { overflow: auto; }
@media (max-width: 640px) { .ins-fig { width: 120px; max-width: 120px; margin-left: .7rem; } .ins-fig img { max-height: none; } .ins-fig figcaption { font-size: .6rem; } }

/* 左右交互：画像の反対側に文章 */
.ins-fig { width: 30%; max-width: 220px; }
.ins-fig-r { float: right; margin: .2rem 0 .6rem 1.1rem; }
.ins-fig-l { float: left; margin: .2rem 1.1rem .6rem 0; }
@media (max-width: 640px) { .ins-fig { width: 34%; max-width: 130px; } .ins-fig-r { margin-left: .7rem; } .ins-fig-l { margin-right: .7rem; } }
