/* のろ志 静的サイト用スタイル。元のWordPress（Cocoon・スキン grayish-topfull）の見た目に寄せている。 */
:root {
  --ink: #535252;
  --ink-strong: #333;
  --accent: #a6bfce;
  --accent-deep: #6f8fa5;
  --label: #56606a;
  --soft: #f0f0f0;
  --line: #d9e2e8;
  --footer: #e4e4e3;
  --content-w: 760px;
  --wide-w: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
  overflow-wrap: anywhere;
}
a { color: #3b6f8c; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--wide-w); margin: 0 auto; padding: 6px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-logo { margin: 0; line-height: 0; flex: none; }
.site-logo img { width: 84px; height: auto; }
.gnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: 0 2px; }
.gnav a {
  display: block; padding: 6px 12px; font-size: 14px; color: var(--ink);
  font-family: Montserrat, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  white-space: nowrap;
}
.gnav a:hover { color: var(--accent-deep); text-decoration: none; }
.gnav a[aria-current="page"] { color: var(--accent-deep); border-bottom: 2px solid var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }

/* ホーム（ヘッダー画像） */
.home .site-header { position: absolute; left: 0; right: 0; background: rgba(240,244,247,.55); border-bottom: 0; }
.home .header-inner { justify-content: center; }
.home .site-logo { display: none; }
.home .gnav ul { justify-content: center; }
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: url("/wp-content/uploads/2024/06/AdobeStock_236122432-scaled.jpeg") center / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: #fff; opacity: .5; }
.hero > * { position: relative; }
.hero-tagline {
  margin: 0 0 16px; font-size: 22px; color: #000; letter-spacing: .08em;
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 6px #fff, 0 0 6px #fff;
}
.hero-logo { margin: 0; line-height: 0; }
.hero-logo img { width: min(500px, 80vw); height: auto; }
.hero-scroll {
  position: absolute !important; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-size: 13px; letter-spacing: .2em; color: var(--ink); font-family: Montserrat, sans-serif;
}
.hero-scroll::before {
  content: ""; display: block; width: 14px; height: 14px; margin: 0 auto 6px;
  border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: rotate(45deg);
}

/* ---------- 本文まわり ---------- */
.container { max-width: var(--wide-w); margin: 0 auto; padding: 0 20px; }
.article { max-width: var(--content-w); margin: 0 auto; padding: 40px 20px 72px; }
.article-title { font-size: 26px; line-height: 1.55; margin: 0 0 8px; color: var(--ink-strong); font-weight: 700; }
.article-date { display: block; font-size: 13px; color: var(--accent-deep); letter-spacing: .1em; margin-bottom: 28px; font-family: Montserrat, sans-serif; }
.article-title + .entry { margin-top: 28px; }
.entry h2 { font-size: 22px; line-height: 1.5; margin: 2.4em 0 1em; padding: 0 0 .4em; border-bottom: 2px solid var(--accent); color: var(--ink-strong); }
.entry h3 { font-size: 19px; line-height: 1.5; margin: 2.2em 0 1em; padding: .5em .8em; background: #f1f5f8; border-left: 5px solid var(--accent); color: var(--ink-strong); }
.entry h4 { font-size: 17px; margin: 1.8em 0 .8em; padding-bottom: .2em; border-bottom: 1px dashed var(--accent); color: var(--ink-strong); }
.entry p { margin: 0 0 1.4em; }
.entry ul, .entry ol { margin: 0 0 1.4em; padding-left: 1.6em; }
.entry li { margin: .3em 0; }
.entry hr, .entry .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.entry figure { margin: 0 0 1.6em; }
.entry img { display: block; margin: 0 auto; }
.entry .wp-block-columns img, .entry .wp-block-media-text img { margin: 0; }
.entry .has-text-align-right { text-align: right; }
.entry .bold, .entry strong { font-weight: 700; }
.entry .bold-red { color: #d64545; font-weight: 700; }
.entry .bold-blue { color: #2c7bc4; font-weight: 700; }
.entry blockquote { margin: 0 0 1.6em; padding: 1em 1.2em; background: #f6f8fa; border-left: 4px solid var(--accent); }
.entry blockquote p:last-child { margin-bottom: 0; }
.entry .wp-block-verse { font-family: inherit; white-space: pre-wrap; margin: 0 0 1.4em; }
.entry .wp-block-group { margin: 0; }

/* 表 */
.entry .wp-block-table { overflow-x: auto; }
.entry table { border-collapse: collapse; width: 100%; font-size: 15px; }
.entry td, .entry th { border: 1px solid var(--line); padding: .6em .9em; vertical-align: top; }
.entry td.has-text-align-right { text-align: right; background: #f6f8fa; white-space: nowrap; width: 1%; }

/* カラム・メディアとテキスト */
.entry .wp-block-columns { display: flex; gap: 24px; margin: 0 0 1.6em; }
.entry .wp-block-column { flex: 1 1 0; min-width: 0; }
.entry .wp-block-media-text { display: grid; grid-template-columns: 38% 1fr; gap: 28px; align-items: center; margin: 0 0 1.8em; }
.entry .wp-block-media-text__media { margin: 0; }
.entry .wp-block-media-text__content p:last-child { margin-bottom: 0; }
.entry .wp-block-media-text__content { font-size: 15px; }
.entry .wp-block-image.is-resized img { max-width: 100%; }

/* YouTube */
.entry .wp-block-embed { margin: 0 0 1.8em; }
.entry .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; }
.entry .wp-block-embed__wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 「受付は終了しました」の表示 */
.entry .closed { display: inline-block; background: #f1f1f1; color: #666; border-radius: 4px; padding: .3em .9em; margin: 0 0 1.4em; }

.entry .note-link { display: inline-block; border: 1px solid var(--accent); border-radius: 6px; padding: .5em 1.2em; margin: 0 0 1.6em; }

.post-nav { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); margin-top: 48px; padding-top: 24px; font-size: 14px; }
.post-nav a { display: block; max-width: 46%; }
.post-nav .next { margin-left: auto; text-align: right; }
.post-nav small { display: block; color: var(--accent-deep); letter-spacing: .1em; font-family: Montserrat, sans-serif; }
.back-link { margin-top: 32px; text-align: center; }

/* ---------- カード（新着・一覧） ---------- */
.section-title { text-align: center; margin: 0; padding: 72px 20px 0; }
.section-title .en { display: block; font-family: Montserrat, sans-serif; font-size: 48px; color: var(--accent); letter-spacing: .02em; line-height: 1.2; font-weight: 300; }
.section-title .ja { display: block; font-size: 18px; color: var(--ink-strong); letter-spacing: .1em; padding-bottom: 14px; position: relative; }
.section-title .ja::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 26px; border-bottom: 1px solid var(--accent-deep); transform: translateX(-50%); }
.cards { list-style: none; margin: 40px auto 0; padding: 0 20px; max-width: var(--wide-w); display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
.card a { display: block; color: inherit; text-decoration: none; }
.card a:hover .card-title { color: var(--accent-deep); }
.card-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #eef2f5; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.card-thumb.noimg { display: flex; align-items: center; justify-content: center; }
.card-thumb.noimg img { width: 40%; height: auto; object-fit: contain; opacity: .5; }
.card-title { font-size: 17px; line-height: 1.6; margin: 14px 0 6px; color: var(--ink-strong); font-weight: 500; }
.card-date { display: block; text-align: right; font-size: 12px; letter-spacing: .12em; color: var(--accent-deep); font-family: Montserrat, sans-serif; }
.more { text-align: center; margin: 48px 0 80px; }
.btn { display: inline-block; min-width: 220px; padding: 12px 28px; border: 1px solid var(--accent-deep); color: var(--accent-deep); font-family: Montserrat, sans-serif; letter-spacing: .1em; text-decoration: none; }
.btn:hover { background: var(--accent-deep); color: #fff; text-decoration: none; }
.page-lead { text-align: center; padding: 40px 20px 0; }
.page-lead h1 { font-size: 26px; margin: 0; color: var(--ink-strong); }
.news-list-page .cards { margin-bottom: 80px; }

/* ---------- フッター ---------- */
.site-footer { background: var(--footer); padding: 44px 20px 28px; text-align: center; }
.footer-logo { margin: 0 0 20px; line-height: 0; }
.footer-logo img { width: 200px; height: auto; }
.footer-tagline { margin: 0 0 14px; font-size: 12px; letter-spacing: .1em; }
.footer-nav ul { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 8px; }
.footer-nav a { display: block; padding: 4px 10px; font-size: 13px; color: var(--ink); }
.footer-sub { margin: 0 0 10px; font-size: 12px; }
.footer-sub a { color: #555; }
.copyright { margin: 0; font-size: 12px; color: #777; letter-spacing: .04em; font-family: Montserrat, "Helvetica Neue", Arial, sans-serif; }

/* 幅が中くらいのとき：メニューを詰めて1行に収める */
@media (max-width: 1180px) and (min-width: 1025px) {
  .gnav a { padding: 6px 7px; font-size: 13px; }
  .site-logo img { width: 64px; }
}


/* ---------- スマホ ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .nav-toggle { display: inline-block; }
  .gnav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line); padding: 8px 12px 16px; }
  .gnav.open { display: block; }
  .gnav ul { flex-direction: column; }
  .gnav a { padding: 12px 8px; white-space: normal; border-bottom: 1px solid #f0f0f0; }
  .gnav a[aria-current="page"] { border-bottom: 1px solid #f0f0f0; }
  .header-inner { position: relative; }
  .home .header-inner { justify-content: flex-end; }
  .home .site-header { background: transparent; }
  .home .nav-toggle { background: rgba(255,255,255,.8); }
}
@media (max-width: 782px) {
  .gnav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line); padding: 8px 12px 16px; }
  .gnav.open { display: block; }
  .gnav ul { flex-direction: column; }
  .gnav a { padding: 12px 8px; white-space: normal; border-bottom: 1px solid #f0f0f0; }
  .gnav a[aria-current="page"] { border-bottom: 1px solid #f0f0f0; }
  .header-inner { position: relative; }
  .home .header-inner { justify-content: flex-end; }
  .home .site-header { background: transparent; }
  .home .nav-toggle { background: rgba(255,255,255,.8); }
  .hero-tagline { font-size: 17px; }
  .article { padding-top: 28px; }
  .article-title { font-size: 22px; }
  .entry .wp-block-columns { flex-direction: column; gap: 8px; }
  .entry .wp-block-media-text { grid-template-columns: 1fr; gap: 12px; }
  .entry .wp-block-media-text__media img { max-width: 340px; margin: 0 auto; }
  .cards { grid-template-columns: 1fr; gap: 28px; }
  .section-title .en { font-size: 38px; }
  .post-nav { flex-direction: column; }
  .post-nav a { max-width: none; }
  .post-nav .next { text-align: left; margin-left: 0; }
}
