:root {
  --green: #1d7f96;
  --green-dark: #135e70;
  --gold: #c8943c;
  --ink: #27343a;
  --muted: #7b8589;
  --line: #e5e9e8;
  --paper: #fff;
  --soft: #f7faf9;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  line-height: 1.75;
}
img { display: block; max-width: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 8px 16px; background: #fff; }

.site-header { background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-inner {
  width: min(calc(100% - 48px), var(--max)); min-height: 104px; margin: auto;
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px;
}
.brand { display: flex; flex-direction: column; flex-shrink: 0; line-height: 1.25; }
.brand-name { color: var(--green-dark); font-size: 34px; letter-spacing: .04em; }
.brand-sub { color: #687377; font-family: sans-serif; font-size: 10px; letter-spacing: .03em; }
.brand-sub b { color: var(--gold); margin-right: 8px; font-family: Georgia, serif; font-size: 14px; font-weight: 400; }
.global-nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); font-family: sans-serif; font-size: 13px; font-weight: 600; }
.nav-link, .nav-trigger { padding-block: 18px; border: 0; border-bottom: 1px solid transparent; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.nav-link:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { color: var(--green); border-color: var(--green); }
.nav-trigger span { display: inline-block; margin-left: 4px; color: var(--gold); transition: transform .2s; }
.nav-trigger[aria-expanded="true"] span { transform: rotate(180deg); }
.nav-dropdown { position: relative; }
.submenu {
  display: none; position: absolute; z-index: 20; top: calc(100% - 4px); left: 50%; width: 210px;
  padding: 9px 0; transform: translateX(-50%); background: #fff; border: 1px solid var(--line);
  border-top: 2px solid var(--green); border-radius: 0 0 5px 5px; box-shadow: 0 12px 28px rgba(29, 70, 80, .12);
}
.submenu a { display: block; padding: 10px 18px; color: #405158; font-size: 12px; font-weight: 500; }
.submenu a:hover, .submenu a:focus { color: var(--green-dark); background: var(--soft); }
.nav-dropdown:hover .submenu, .nav-dropdown:focus-within .submenu, .nav-dropdown.is-open .submenu { display: block; }
.nav-dropdown--mega { position: static; }
.mega-menu {
  left: 50%; width: min(calc(100vw - 48px), 1120px); padding: 24px;
  transform: translateX(-50%); grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0;
}
.nav-dropdown--mega:hover .mega-menu,
.nav-dropdown--mega:focus-within .mega-menu,
.nav-dropdown--mega.is-open .mega-menu { display: grid; }
.mega-group { padding: 0 16px; border-right: 1px solid var(--line); }
.mega-group:last-child { border-right: 0; }
.mega-group a { padding: 6px 4px; line-height: 1.45; }
.mega-group .mega-title {
  margin-bottom: 7px; padding: 0 4px 8px; color: var(--green-dark);
  border-bottom: 1px solid rgba(29, 127, 150, .25); font-weight: 700;
}
.mega-title-toggle { display: none; }
.official-link { padding: 11px 17px; color: var(--gold); border: 1px solid var(--gold); border-radius: 3px; }
.official-link span, .section-heading a span, .brista-cta a span { margin-left: 10px; }
.menu-button { display: none; }

.hero-section { padding-top: 48px; }
.featured-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.featured-card { overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.featured-card > a { display: flex; flex-direction: column; }
.featured-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.featured-card--1 { grid-column: 1 / -1; }
.featured-card--1 > a { display: grid; grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr); align-items: center; }
.featured-copy { padding: 14px 18px 18px; }
.article-meta { display: flex; align-items: center; gap: 20px; margin: 0 0 6px; font-family: sans-serif; font-size: 11px; }
.article-meta span { color: var(--green); font-weight: 700; }
.article-meta time { color: #939b9e; }
.featured-copy h1, .featured-copy h2, .article-card h3, .popular-grid h3 { margin: 0; font-weight: 500; line-height: 1.55; }
.featured-copy h1 { font-size: clamp(22px, 2.2vw, 31px); }
.featured-copy h2 { font-size: clamp(17px, 1.6vw, 22px); }
.excerpt { margin: 9px 0 0; color: #697478; font-size: 14px; }

.content-section { padding-top: 42px; }
.section-heading { display: flex; align-items: center; gap: 28px; margin-bottom: 24px; }
.section-heading::after { content: ""; order: 2; flex: 1; height: 1px; background: var(--line); }
.section-heading h2 { margin: 0; color: var(--green-dark); font-size: 25px; font-weight: 500; letter-spacing: .08em; }
.section-heading a { order: 3; color: var(--green); font-family: sans-serif; font-size: 12px; font-weight: 700; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.article-card { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; transition: transform .2s, box-shadow .2s; }
.article-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(28, 72, 82, .1); }
.article-card img { width: 100%; aspect-ratio: 4 / 2.65; }
.article-card-copy { padding: 13px 16px 18px; }
.article-card h3 { font-size: 17px; }

.popular-grid { counter-reset: rank; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 34px; margin: 0; padding: 0; list-style: none; }
.popular-grid li { border-bottom: 1px solid var(--line); }
.popular-grid a { display: grid; grid-template-columns: 48px 150px 1fr; align-items: center; gap: 14px; min-height: 126px; padding: 14px 0; }
.popular-grid img { width: 150px; height: 94px; border-radius: 5px; }
.rank { color: var(--gold); font-family: Georgia, serif; font-size: 31px; text-align: center; }
.popular-grid h3 { font-size: 16px; }
.popular-grid time { color: #9ba2a4; font-family: sans-serif; font-size: 11px; }

.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 18px; }
.category-grid a {
  min-height: 120px; padding: 12px 24px; display: grid; grid-template-columns: 96px minmax(0, 150px);
  align-items: center; justify-content: center; gap: 24px;
  color: #263b41; border: 1px solid var(--green); border-radius: 7px; font-size: 17px; transition: background .2s, color .2s;
}
.category-grid a > span:last-child { text-align: left; }
.category-grid a:hover { color: var(--green-dark); background: #f1f8f9; box-shadow: 0 7px 20px rgba(29, 127, 150, .1); }
.category-icon {
  width: 96px; height: 96px; display: grid; place-items: center; flex: 0 0 auto;
}
.category-icon img { width: 96px; height: 96px; object-fit: contain; transition: transform .2s; }
.category-grid a:hover .category-icon img { transform: scale(1.06); }

.brista-cta {
  margin-top: 34px; margin-bottom: 36px; min-height: 90px; padding: 15px 38px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  border: 1px solid var(--gold); border-radius: 6px;
}
.brista-cta > div { display: flex; align-items: center; gap: 22px; }
.brista-cta p { margin: 0; letter-spacing: .05em; }
.cta-logo { width: 100px; height: 50px; object-fit: contain; }
.brista-cta > a { min-width: 290px; padding: 10px 20px; color: var(--gold); border: 1px solid var(--gold); text-align: center; }

.site-footer { color: #33464c; background: #fff; border-top: 3px solid var(--green); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr) 1.25fr; gap: 34px; padding-top: 32px; padding-bottom: 25px; }
.footer-grid h2 { margin: 0 0 8px; color: var(--green); font-family: sans-serif; font-size: 12px; letter-spacing: .08em; }
.footer-grid a { display: block; font-family: sans-serif; font-size: 11px; line-height: 1.9; }
.footer-brand p { margin: 10px 0 0; font-size: 11px; }
.footer-brand .brand-name, .footer-brand .brand-sub { display: block; }
.footer-brand .brand-name { font-size: 27px; line-height: 1.2; }
.copyright { margin: 0; padding: 12px; color: #879095; background: var(--soft); font-family: sans-serif; font-size: 10px; text-align: center; }

/* 記事詳細ページ */
.breadcrumb { padding-top: 22px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; color: #879095; font-family: sans-serif; font-size: 11px; }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 7px; color: #adb4b6; }
.breadcrumb a:hover { color: var(--green); }
.article-page { width: min(calc(100% - 48px), 860px); margin: 42px auto 0; }
.article-header .article-meta { justify-content: center; }
.article-header .article-meta a { color: var(--green); font-weight: 700; }
.article-header h1 { margin: 13px 0 20px; color: #25383e; font-size: clamp(29px, 4vw, 44px); font-weight: 500; line-height: 1.55; letter-spacing: .04em; text-align: center; }
.article-lead { max-width: 720px; margin: 0 auto 30px; color: #59696e; font-size: 16px; line-height: 2; }
.article-eyecatch { width: 100%; aspect-ratio: 3 / 2; border-radius: 7px; object-fit: cover; }
.article-layout { width: min(100%, 720px); margin: 48px auto 0; }
.article-body { color: #34474d; font-size: 16px; line-height: 2.05; }
.article-body section { scroll-margin-top: 24px; }
.article-body h2 { margin: 64px 0 24px; padding: 0 0 13px 17px; color: var(--green-dark); border-left: 3px solid var(--gold); border-bottom: 1px solid var(--line); font-size: 25px; font-weight: 500; line-height: 1.6; }
.article-body h3 { margin: 38px 0 15px; color: #30464c; font-size: 19px; font-weight: 600; }
.article-body p { margin: 0 0 24px; }
.article-body figure { margin: 38px 0; }
.article-body figure img { width: 100%; max-height: 520px; border-radius: 6px; }
.article-body figcaption { margin-top: 8px; color: #8a9497; font-family: sans-serif; font-size: 11px; text-align: center; }
.article-image-slot { margin: 34px 0 44px; }
.article-image-grid { display: grid; gap: 14px; margin: 34px 0 44px; }
.article-image-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-image-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-image-grid--feature { grid-template-columns: 1.45fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); }
.article-image-grid--feature figure:first-child { grid-row: 1 / 3; }
.article-image-grid figure { min-width: 0; margin: 0; }
.article-image-grid figure img { width: 100%; height: 100%; min-height: 220px; max-height: 430px; object-fit: cover; }
.article-image-grid--3 figure img { min-height: 180px; }
.article-image-slot-box {
  display: grid;
  min-height: 360px;
  place-items: center;
  padding: 24px;
  color: #87979b;
  border: 1px dashed #bcc9cc;
  border-radius: 7px;
  background: #f7f9f8;
  font-family: sans-serif;
  font-size: 13px;
  letter-spacing: .08em;
  text-align: center;
}
.table-of-contents { padding: 25px 30px; background: var(--soft); border-top: 2px solid var(--green); }
.table-of-contents > p { margin: 0 0 12px; color: var(--green-dark); font-size: 18px; font-weight: 600; }
.table-of-contents ol { margin: 0; padding-left: 24px; }
.table-of-contents a { color: #43575d; border-bottom: 1px dotted #9aa5a8; }
.table-of-contents a:hover { color: var(--green); }
.article-note { margin: 35px 0; padding: 24px 28px; background: #f7faf9; border: 1px solid #dce9e7; border-radius: 6px; }
.article-note h3 { margin: 0 0 8px; color: var(--green); font-size: 17px; }
.article-note p { margin: 0; font-size: 14px; }
.article-cta { margin: 65px 0 40px; padding: 38px; text-align: center; background: #fffdf8; border: 1px solid var(--gold); border-radius: 7px; }
.article-cta .article-cta-label { margin: 0; color: var(--gold); font-family: sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.article-cta h2 { margin: 10px 0; padding: 0; color: #33484e; border: 0; font-size: 24px; }
.article-cta p { margin-bottom: 20px; font-size: 14px; }
.article-cta-benefits { width: fit-content; margin: 0 auto 24px; padding: 0; list-style: none; color: #55676c; font-family: sans-serif; font-size: 13px; text-align: left; }
.article-cta-benefits li { position: relative; padding: 4px 0 4px 20px; }
.article-cta-benefits li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.article-cta a { display: inline-block; min-width: 330px; padding: 12px 22px; color: #fff; background: var(--green); border-radius: 3px; font-family: sans-serif; font-size: 13px; }
.article-cta a:hover { background: var(--green-dark); }
.article-cta a span { margin-left: 12px; }
.article-author { margin-top: 45px; padding: 22px 25px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.article-author p { margin: 4px 0; font-size: 13px; }
.article-author .article-author-title { color: var(--green); font-family: sans-serif; font-size: 11px; font-weight: 700; }
.related-section { padding-top: 70px; padding-bottom: 70px; }

/* 検索・カテゴリ一覧 */
.listing-page { min-height: 60vh; }
.listing-header { padding-top: 44px; text-align: center; }
.listing-header > p:first-child { margin: 0; color: var(--gold); font-family: sans-serif; font-size: 11px; letter-spacing: .12em; }
.listing-header h1 { margin: 8px 0 12px; color: var(--green-dark); font-size: 34px; font-weight: 500; }
.listing-header .heading-rule { width: 46px; height: 1px; margin: 0 auto 18px; background: var(--gold); }
.listing-header > p:last-child { margin: 0; color: #657579; font-size: 14px; }
.listing-results { padding-top: 38px; padding-bottom: 70px; }
.listing-count { margin-bottom: 16px; color: var(--green); font-family: sans-serif; font-size: 12px; font-weight: 700; }
.search-results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.search-card { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.search-card > a { display: grid; grid-template-columns: 38% 62%; height: 100%; }
.search-card img { width: 100%; height: 100%; min-height: 190px; }
.search-card-copy { padding: 18px; }
.search-card-copy h2 { margin: 0 0 8px; font-size: 18px; font-weight: 500; line-height: 1.55; }
.search-card-copy > p:last-child { margin: 0; color: #6e7a7e; font-size: 12px; }
.empty-message { padding: 45px 20px; color: #7b8589; background: var(--soft); text-align: center; }
.search-panel { margin-top: 34px; padding: 25px; background: var(--soft); border: 1px solid var(--line); border-radius: 7px; }
.search-keyword-label { display: block; margin-bottom: 7px; color: var(--green-dark); font-family: sans-serif; font-size: 12px; font-weight: 700; }
.search-keyword-row { display: grid; grid-template-columns: 1fr 130px; gap: 10px; }
.search-keyword-row input, .search-filters select {
  width: 100%; padding: 11px 12px; color: var(--ink); background: #fff; border: 1px solid #cfd8da; border-radius: 3px; font: inherit;
}
.search-keyword-row button { color: #fff; background: var(--green); border: 0; border-radius: 3px; font-family: sans-serif; cursor: pointer; }
.search-filters { display: grid; grid-template-columns: repeat(3, 1fr) 130px; gap: 12px; margin-top: 15px; align-items: end; }
.search-filters label { color: #59696e; font-family: sans-serif; font-size: 11px; }
.search-filters select { display: block; margin-top: 5px; }
.search-reset { padding: 11px; color: var(--green); background: #fff; border: 1px solid var(--green); border-radius: 3px; cursor: pointer; }

@media (max-width: 900px) {
  .header-inner { min-height: 82px; }
  .brand-name { font-size: 28px; }
  .menu-button {
    width: 44px; height: 44px; padding: 10px; display: grid; align-content: center; gap: 5px;
    border: 0; background: transparent; cursor: pointer;
  }
  .menu-button > span:not(.visually-hidden) { display: block; height: 1px; background: var(--green-dark); }
  .global-nav {
    display: none; position: absolute; z-index: 10; top: 82px; left: 0; right: 0;
    max-height: calc(100vh - 82px); padding: 22px 24px; overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
  }
  .global-nav.is-open { display: flex; }
  .global-nav > .nav-link { padding: 13px !important; border-bottom: 1px solid var(--line); }
  .nav-dropdown { border-bottom: 1px solid var(--line); }
  .nav-trigger { width: 100%; padding: 13px; text-align: left; pointer-events: none; }
  .nav-trigger span { display: none; }
  .submenu, .mega-menu {
    display: grid; position: static; width: auto; padding: 0 10px 12px; transform: none;
    grid-template-columns: repeat(2, minmax(0, 1fr)); border: 0; box-shadow: none;
  }
  .submenu a { padding: 9px 12px; border: 0 !important; color: #5d6a6e; }
  .mega-group { padding: 10px 8px; border-right: 0; border-top: 1px solid var(--line); }
  .mega-group .mega-title { padding: 2px 4px 7px !important; color: var(--green-dark); }
  .mega-title-link { display: none !important; }
  .mega-title-toggle {
    width: 100%; margin: 0; display: flex; align-items: center; justify-content: space-between;
    border: 0; background: transparent; font-family: sans-serif; font-size: 13px; text-align: left; cursor: pointer;
  }
  .mega-title-toggle span { color: var(--gold); font-size: 17px; font-weight: 400; }
  .mega-children { display: none; padding: 2px 6px 5px; }
  .mega-group.is-open .mega-children { display: block; }
  .official-link { margin-top: 12px; text-align: center; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-card--1 { grid-column: auto; }
  .featured-card--1 > a { display: flex; }
  .article-grid, .category-grid { grid-template-columns: repeat(2, 1fr); }
  .popular-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: span 2; }
  .search-results { grid-template-columns: 1fr; }
  .search-filters { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .container, .header-inner { width: min(calc(100% - 32px), var(--max)); }
  .brand-sub { display: none; }
  .hero-section { padding-top: 22px; }
  .featured-grid { gap: 15px; }
  .featured-copy { padding: 11px 13px 14px; }
  .featured-copy h1 { font-size: 21px; }
  .featured-copy h2 { font-size: 15px; }
  .content-section { padding-top: 34px; }
  .section-heading { gap: 14px; margin-bottom: 17px; }
  .section-heading h2 { font-size: 21px; }
  .article-grid, .category-grid { grid-template-columns: 1fr; }
  .article-grid { gap: 16px; }
  .popular-grid a { grid-template-columns: 34px 105px 1fr; gap: 10px; }
  .popular-grid img { width: 105px; height: 72px; }
  .popular-grid h3 { font-size: 14px; }
  .category-grid { gap: 10px; }
  .category-grid a {
    min-height: 96px; grid-template-columns: 78px minmax(0, 1fr);
    justify-content: stretch; padding-inline: 24px;
  }
  .category-icon, .category-icon img { width: 78px; height: 78px; }
  .brista-cta { padding: 22px; flex-direction: column; text-align: center; }
  .brista-cta > div { flex-direction: column; gap: 10px; }
  .brista-cta > a { min-width: 0; width: 100%; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 25px 18px; }
  .footer-brand { grid-column: 1 / -1; }
  .mega-menu { grid-template-columns: 1fr; }
  .article-page { width: min(calc(100% - 32px), 860px); margin-top: 28px; }
  .article-header h1 { font-size: 26px; text-align: left; }
  .article-header h1 br { display: none; }
  .article-header .article-meta { justify-content: flex-start; }
  .article-lead, .article-body { font-size: 15px; }
  .article-layout { margin-top: 34px; }
  .article-body h2 { margin-top: 50px; font-size: 21px; }
  .article-body h3 { font-size: 17px; }
  .article-image-slot-box { min-height: 230px; }
  .article-image-grid,.article-image-grid--2,.article-image-grid--3,.article-image-grid--feature { grid-template-columns: 1fr; grid-template-rows: auto; gap: 18px; }
  .article-image-grid--feature figure:first-child { grid-row: auto; }
  .article-image-grid figure img,.article-image-grid--3 figure img { height: auto; min-height: 0; max-height: 520px; }
  .table-of-contents { padding: 21px 20px; }
  .article-cta { padding: 28px 20px; }
  .article-cta h2 { font-size: 21px; }
  .article-cta a { min-width: 0; width: 100%; }
  .related-section { padding-top: 50px; padding-bottom: 50px; }
  .listing-header { padding-top: 30px; text-align: left; }
  .listing-header h1 { font-size: 27px; }
  .listing-header .heading-rule { margin-left: 0; }
  .search-card > a { grid-template-columns: 36% 64%; }
  .search-card img { min-height: 160px; }
  .search-card-copy { padding: 13px; }
  .search-card-copy h2 { font-size: 15px; }
  .search-keyword-row { grid-template-columns: 1fr; }
  .search-keyword-row button { padding: 12px; }
  .search-filters { grid-template-columns: 1fr; }
}
