/*
Theme Name: Iyashiro News Child v1.8.0
Template: swell
Version: 1.8.0
*/

:root {
  --color_main: #356b52;
  --color_text: #243229;
  --color_link: #356b52;
  --color_bg: #ffffff;
}

body {
  color: var(--color_text);
  background: var(--color_bg);
}

.l-content__body,
.post_content {
  line-height: 2;
}

.p-postList__item,
.c-postThumb__figure {
  border-radius: 8px;
}

a {
  text-underline-offset: 0.18em;
}

.l-footer {
  background: #f7f4ec;
}

.iyashiro-hero {
  margin: 2rem auto 4rem;
  max-width: 52rem;
  padding: 4rem 1.5rem;
  background: #f7f4ec;
  border-top: 4px solid #356b52;
}

.iyashiro-hero h1 { color: #243229; }
.iyashiro-kicker { color: #356b52; font-weight: 700; letter-spacing: .08em; }
.iyashiro-news { max-width: 52rem; margin: 0 auto; padding: 0 1.5rem 4rem; }
.iyashiro-news-card { margin: 1.5rem 0; padding: 1.25rem; border: 1px solid #dfe7e0; border-radius: 8px; }
.iyashiro-news-card.-has-image { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); align-items: start; gap: 1.25rem; }
.iyashiro-news-image { display: block; overflow: hidden; border-radius: 4px; }
.iyashiro-news-image img { display: block; width: 100%; height: auto; }
.iyashiro-news-copy { min-width: 0; }
.iyashiro-news-copy h3 { margin-top: .4rem; line-height: 1.6; }
@media (max-width: 639px) {
  .iyashiro-news-card.-has-image { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
}
.iyashiro-news-date { color: #647067; font-size: .9em; }
.iyashiro-empty { padding: 2rem; background: #f7f4ec; border-radius: 8px; }

/* The news landing page supplies its own calm introduction and empty state. */
.p-mainVisual, #main_visual, #post_slider { display: none !important; }
.iyashiro-hero h1 { font-size: clamp(28px, 4vw, 48px); line-height: 1.35; }
.l-sidebar, .p-sidebar { display: none !important; }

/* Keep the slogan in natural phrases, including narrow phone screens. */
.iyashiro-hero h1 span { display: inline-block; }
@media (max-width: 767px) {
  .iyashiro-hero h1 { font-size: clamp(20px, 6.25vw, 28px); }
}
/* Menus become visible automatically once a menu or menu widget is assigned. */
.iyashiro-no-mobile-menu .l-header__menuBtn,
.iyashiro-no-mobile-menu #sp_menu { display: none !important; }

.iyashiro-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; padding: 1rem 0; list-style: none; }
.iyashiro-pagination a, .iyashiro-pagination .current { display: inline-block; padding: .4rem .8rem; border: 1px solid #dfe7e0; border-radius: 4px; }
.iyashiro-pagination .current { background: #356b52; color: white; }
.post_content a { overflow-wrap: anywhere; }
.iyashiro-source-date { font-size: .875em; color: #647067; }
.post_content h2 { background: #356b52; color: #fff; }
.c-shareBtns__item.-pocket { display: none; }

/* Preserve a centered readable column after removing the unused sidebar. */
#body_wrap .l-mainContent {
  width: 100%;
  max-width: 56rem;
  margin-inline: auto;
}

.iyashiro-footer { padding: 2.5rem 0 1rem; border-top: 1px solid #dfe7e0; }
.iyashiro-footer h2 { margin: 0 0 1rem; font-size: 1rem; font-weight: 700; }
.iyashiro-footer-news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.iyashiro-footer-card { display: flex; align-items: center; gap: .8rem; padding: .8rem; border: 1px solid #dfe7e0; border-radius: 8px; background: white; text-decoration: none; line-height: 1.7; }
.iyashiro-footer-card img { width: 5.5rem; height: auto; flex: 0 0 5.5rem; border-radius: 4px; }
.iyashiro-footer-card span { min-width: 0; overflow-wrap: anywhere; }
.iyashiro-footer-columns { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 2rem; }
.iyashiro-footer-columns ul { list-style: none; margin: 0; padding: 0; }
.iyashiro-footer-columns a { display: inline-block; padding: .5rem 0; }
.iyashiro-footer-follow { margin-top: 2rem; padding: 1.5rem 0; border-top: 1px solid #dfe7e0; text-align: center; }
.iyashiro-footer-follow p { margin-bottom: 1rem; }
.iyashiro-footer .iyashiro-x-link { display: inline-block; padding: .8rem 1.25rem; color: #fff; background: #356b52; border-radius: 6px; text-decoration: none; font-weight: 700; }
.iyashiro-x-link:hover { opacity: .85; }
.iyashiro-footer a:focus-visible { outline: 2px solid #356b52; outline-offset: 4px; }
@media (max-width: 959px) { .iyashiro-footer-news { grid-template-columns: 1fr; } }
@media (max-width: 599px) { .iyashiro-footer-columns { grid-template-columns: 1fr; gap: 1.5rem; } }

.iyashiro-card-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .5rem; }
.iyashiro-card-label { display: inline-block; padding: .25rem .65rem; border: 1px solid #c9d8ce; border-radius: 4px; background: #f2f6f1; color: #2d5b45; font-size: .85rem; line-height: 1.6; text-decoration: none; }
.iyashiro-card-label:hover { background: #e5eee4; }
.iyashiro-card-label:focus-visible { outline: 2px solid #356b52; outline-offset: 3px; }

.iyashiro-skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 999999; padding: .75rem 1rem; border: 2px solid #356b52; border-radius: 4px; color: #243229; background: #fff; transform: translateY(-200%); }
.iyashiro-skip-link:focus { transform: translateY(0); outline: 3px solid #356b52; outline-offset: 3px; }
#main_content { scroll-margin-top: 6rem; }

/* 2026-10-12 adsense-copy-cleanup：記事下は出典と訂正窓口の案内だけにする（旧「祈りと紋章」欄は撤去） */
.post_content .iyashiro-article-note { margin-top: 3rem; padding: 1.25rem 1.25rem .25rem; border: 1px solid #dfe7e0; border-left: 4px solid #356b52; border-radius: 6px; background: #f6f9f5; color: #374838; font-size: 15px; line-height: 1.85; }
.post_content .iyashiro-article-note p { margin: 0 0 1rem; }
.post_content .iyashiro-article-note .iyashiro-article-note-title { margin-bottom: .5rem; color: #28543f; font-weight: 700; }
.post_content .iyashiro-article-note a { font-weight: 700; }

.iyashiro-perspectives-intro { color: #69552b; font-size: .9rem; line-height: 1.9; }
.iyashiro-perspectives-intro span { display: inline-block; }
.iyashiro-hero-concept { margin-top: 1.5rem; color: #28543f; font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 700; line-height: 1.9; }
.iyashiro-hero-about { margin-top: 1.5rem; }
.iyashiro-hero-about a { font-weight: 700; }


/* iyashiro-article-type-refresh-v1: strengthen article hierarchy on desktop and mobile. */
.l-mainContent.l-article .p-articleHead .c-postTitle__ttl {
  text-wrap: balance;
  font-size: clamp(30px, 2.65vw, 34px);
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: .01em;
}
#main_content.l-mainContent.l-article .post_content {
  font-size: 17px;
  line-height: 1.85;
}
.l-mainContent.l-article .post_content h2 {
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.5;
}
@media (max-width: 767px) {
  .l-mainContent.l-article .p-articleHead .c-postTitle__ttl {
    font-size: clamp(22px, 6.15vw, 24px);
    line-height: 1.42;
    letter-spacing: 0;
  }
  #main_content.l-mainContent.l-article .post_content {
    font-size: 16.5px;
    line-height: 1.85;
  }
  .l-mainContent.l-article .post_content h2 {
    font-size: clamp(20px, 5.2vw, 21px);
    line-height: 1.45;
  }
}
