/**
 * Site Starter — Magazine Layout (Uravation Media)
 * Self-contained layout that mirrors uravation.com /media/.
 * Overrides parent uravation-base default `p-hero` etc.
 */

/* ============================================================
   Override parent wrappers (l-main, l-container)
   so .p-sub-hero can be full-bleed and content lives in .l-inner
   ============================================================ */
.l-main {
  padding: var(--header-height, 80px) 0 0 !important;
}
.l-container {
  max-width: 100% !important;
  padding: 0 !important;
}

/* ============================================================
   Layout primitives
   ============================================================ */
.l-contents { padding: 0 0 80px; }
.l-section { padding: 60px 0; }
.l-section--surface { background: var(--color-surface); }
.l-section--alt { background: var(--color-bg-alt); }
.l-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Sub-page Hero (dark teal banner) — top of front page
   ============================================================ */
.p-sub-hero {
  background: var(--gradient-subhero);
  padding: 140px 0 60px;
  text-align: center;
  min-height: 280px;
}
.p-sub-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.p-sub-hero__eyebrow {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 14px;
}
.p-sub-hero__title {
  font-family: var(--font-en);
  font-size: clamp(3.6rem, 5vw, 5.2rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.15;
  margin: 0;
}
.p-sub-hero__sub {
  display: block;
  font-family: var(--font-ja);
  font-size: 1.5rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 14px;
  letter-spacing: 0.1em;
}

/* ============================================================
   Breadcrumb
   ============================================================ */
.p-breadcrumb {
  background: var(--color-bg-alt);
  padding: 12px 0;
  min-height: 44px;
}
.p-breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  color: var(--color-text-light);
  flex-wrap: wrap;
}
.p-breadcrumb__item { display: flex; align-items: center; gap: 8px; }
.p-breadcrumb__item + .p-breadcrumb__item::before {
  content: '>';
  color: var(--color-text-light);
}
.p-breadcrumb__link { color: var(--color-text-light); text-decoration: none; }
.p-breadcrumb__link:hover { color: var(--accent); }
.p-breadcrumb__link--current { color: var(--color-text); font-weight: 600; }

/* ============================================================
   Section Heading (English big + Japanese small, magazine style)
   ============================================================ */
.p-section-heading {
  text-align: center;
  margin-bottom: 36px;
}
.p-section-heading__en {
  font-family: var(--font-en);
  font-size: clamp(2.6rem, 3.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--color-text);
  margin: 0;
  line-height: 1.2;
}
.p-section-heading__ja {
  display: block;
  font-family: var(--font-ja);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-text-light);
  letter-spacing: 0.1em;
  margin-top: 10px;
}

/* ============================================================
   Featured Article (big banner card)
   ============================================================ */
.p-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--color-surface);
  border-radius: 16px;
  overflow: hidden;
  border: var(--hairline);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}
.p-featured:hover { box-shadow: var(--shadow-card-hover); }
.p-featured__img {
  position: relative;
  background: var(--color-bg-alt);
  min-height: 280px;
}
.p-featured__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}
.p-featured__noimg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
}
.p-featured__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #FF6B35;
  color: #fff;
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  z-index: 2;
}
.p-featured__body {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.p-featured__meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 1.2rem;
  color: var(--color-text-light);
}
.p-featured__category {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  background: var(--accent-bg);
  color: var(--accent-dark);
}
.p-featured__title {
  font-size: clamp(2rem, 2.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--color-text);
  margin: 0;
}
.p-featured__desc {
  font-size: 1.4rem;
  line-height: 1.85;
  color: var(--color-text-light);
}
@media (max-width: 768px) {
  .p-featured { grid-template-columns: 1fr; }
  .p-featured__img { min-height: 220px; }
  .p-featured__body { padding: 24px; }
}

/* ============================================================
   Article Grid (Latest list)
   ============================================================ */
.p-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 960px) { .p-articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .p-articles-grid { grid-template-columns: 1fr; } }

.p-article-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--color-surface);
  border: var(--hairline);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.p-article-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.p-article-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--color-bg-alt);
  overflow: hidden;
}
.p-article-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.p-article-card:hover .p-article-card__thumb img { transform: scale(1.04); }
.p-article-card__noimg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-soft) 100%);
}
.p-article-card__category {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.95);
  color: var(--accent-dark);
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
.p-article-card__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.p-article-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  color: var(--color-text-light);
}
.p-article-card__date { font-family: var(--font-en); letter-spacing: 0.05em; }
.p-article-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.p-article-card:hover .p-article-card__title { color: var(--accent); }

/* Archive category tabs */
.p-archive-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 30px;
}
.p-archive-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.p-archive-tab:hover {
  border-color: rgba(15,118,110,.35);
  color: #0f766e;
  transform: translateY(-1px);
}
.p-archive-tab.is-active {
  border-color: #0f766e;
  background: #0f766e;
  color: #fff;
}
.p-archive-tab em {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(15,23,42,.08);
  color: inherit;
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-style: normal;
  font-weight: 850;
}
.p-archive-tab.is-active em {
  background: rgba(255,255,255,.18);
}
@media (max-width: 600px) {
  .p-archive-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .p-archive-tab {
    justify-content: center;
    width: 100%;
  }
}

/* ============================================================
   Buttons (link bar to archive)
   ============================================================ */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-ja);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: var(--radius-btn);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.c-btn--primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.c-btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 122, 138, 0.25);
}
.c-btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.c-btn--outline:hover {
  background: var(--accent-bg);
}

/* ============================================================
   CTA Banner (Uravation誘導)
   ============================================================ */
.p-cta-strip {
  background: var(--gradient-subhero);
  padding: 56px 32px;
  border-radius: 16px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.p-cta-strip__copy { flex: 1; min-width: 240px; }
.p-cta-strip__eyebrow {
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
}
.p-cta-strip__title {
  font-size: clamp(1.8rem, 2.2vw, 2.2rem);
  font-weight: 800;
  line-height: 1.5;
  margin: 0 0 6px;
}
.p-cta-strip__desc {
  font-size: 1.3rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.78);
  margin: 0;
}
.p-cta-strip .c-btn--primary {
  background: #fff;
  color: var(--accent-dark);
  border-color: #fff;
}
.p-cta-strip .c-btn--primary:hover {
  background: rgba(255,255,255,0.92);
  color: var(--accent-deep);
}

/* ============================================================
   Article Single
   ============================================================ */
.p-article-header { padding: 32px 0 24px; max-width: 860px; margin: 0 auto; }
.p-article-header__category {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-bg);
  color: var(--accent-dark);
  border-radius: 4px;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.p-article-header__title {
  font-size: clamp(2.2rem, 3.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.5;
  margin: 0 0 14px;
}
.p-article-header__meta {
  display: flex;
  gap: 16px;
  font-size: 1.3rem;
  color: var(--color-text-light);
}
.p-article-thumbnail {
  max-width: 1000px;
  margin: 0 auto 32px;
  border-radius: 14px;
  overflow: hidden;
}
.p-article-thumbnail img { width: 100%; height: auto; display: block; }
.p-article-body {
  max-width: 860px;
  margin: 0 auto;
  color: #152238;
  font-size: 1.58rem;
  line-height: 2.05;
}
.p-article-body > p:first-child {
  padding: 20px 24px;
  border-left: 5px solid #0f766e;
  border-radius: 0 8px 8px 0;
  background: #f0fdfa;
  color: #0f172a;
  font-weight: 650;
}
.p-article-body h2 {
  margin: 48px 0 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(15,23,42,.10);
  color: #0f172a;
  font-size: clamp(2.1rem, 2.8vw, 2.8rem);
  line-height: 1.45;
  letter-spacing: 0;
}
.p-article-body h3 {
  margin: 32px 0 12px;
  color: #0f766e;
  font-size: 1.85rem;
  line-height: 1.55;
}
.p-article-body ul,
.p-article-body ol {
  margin: 18px 0 28px;
  padding: 22px 28px 22px 44px;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 8px;
  background: #fff;
}
.p-article-body li + li { margin-top: 8px; }
.p-article-body pre {
  margin: 22px 0 32px;
  padding: 22px;
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 1.28rem;
  line-height: 1.8;
  overflow-x: auto;
  white-space: pre-wrap;
}
.p-article-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
.p-article-body table {
  width: 100%;
  margin: 22px 0 32px;
  border-collapse: collapse;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 8px;
  overflow: hidden;
  font-size: 1.32rem;
}
.p-article-body th,
.p-article-body td {
  padding: 12px 14px;
  border: 1px solid rgba(15,23,42,.10);
  text-align: left;
  vertical-align: top;
}
.p-article-body th {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 800;
}
.p-article-body a {
  color: #0f766e;
  font-weight: 800;
  text-underline-offset: 3px;
}
.p-article-action {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  max-width: 1000px;
  margin: 56px auto 20px;
  padding: 34px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(12,15,20,.96), rgba(66,25,8,.94)),
    #0f172a;
  color: #fff;
}
.p-article-action__eyebrow {
  margin: 0 0 12px;
  color: #3a8f5c;
  font-family: var(--font-en);
  font-size: 1.15rem;
  font-weight: 850;
  letter-spacing: .14em;
}
.p-article-action h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.5;
}
.p-article-action p {
  margin: 14px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 1.35rem;
  line-height: 1.85;
}
.p-article-action__side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 190px;
}
.p-article-action .c-btn {
  width: 100%;
  padding-inline: 18px;
}
.p-article-action .c-btn--outline {
  color: #fff;
  border-color: rgba(255,255,255,.34);
  background: transparent;
}
.p-article-footer {
  max-width: 860px;
  margin: 28px auto 0;
}
@media (max-width: 760px) {
  .p-article-body {
    font-size: 1.46rem;
    line-height: 1.95;
  }
  .p-article-body ul,
  .p-article-body ol {
    padding: 18px 18px 18px 32px;
  }
  .p-article-action {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}

/* ============================================================
   iwate AI full visual system restore - 2026-05-19
   ============================================================ */
.l-main { padding: var(--header-height, 80px) 0 0 !important; }
.l-container { max-width: 100% !important; padding: 0 !important; }
.l-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.l-section { padding: 60px 0; }
.l-section--surface { background: #fff; }
.l-header {
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(15,23,42,.08);
  backdrop-filter: blur(14px);
}
.l-header__inner { max-width: 1180px; }
.l-header__nav ul,
.l-header__nav .menu {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.l-header__nav li { margin: 0; padding: 0; list-style: none; }
.l-header__nav a {
  font-size: 1.2rem;
  letter-spacing: .04em;
  text-transform: none;
}
.l-header__logo a {
  display: block !important;
  width: 210px !important;
  height: 58px !important;
  background: none !important;
  text-indent: -9999px !important;
  overflow: hidden !important;
  text-decoration: none;
}
.l-header__logo a::before,
.l-header__logo a::after { content: none !important; display: none !important; }
.l-header__logo a span {
  display: block !important;
  width: 100%;
  height: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-indent: -9999px;
}
.c-btn {
  border-radius: 8px;
  box-shadow: none;
}
.p-iwate-home { padding-bottom: 0; }
.p-iwate-hero {
  position: relative;
  overflow: hidden;
  padding: 132px 0 72px;
  background:
    linear-gradient(120deg, rgba(10,13,18,.92), rgba(28,18,12,.78)),
    radial-gradient(circle at 82% 12%, rgba(47,125,79,.30), transparent 32%),
    url('/wp-content/themes/guragoru-site/assets/images/hero-rox.png'),
    linear-gradient(135deg, #0a0d12, #12301f);
  background-size: auto, auto, cover, auto;
  background-position: center, center, center 42%, center;
  color: #fff;
}
.p-iwate-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 80px;
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(255,255,255,.14) 48% 52%, transparent 52%),
    linear-gradient(45deg, transparent 0 48%, rgba(255,255,255,.10) 48% 52%, transparent 52%);
  background-size: 92px 52px;
  opacity: .45;
}
.p-iwate-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 56px;
  align-items: end;
}
.p-iwate-hero__eyebrow,
.p-label {
  margin: 0 0 14px;
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: .14em;
  color: #8a6d1f;
}
.p-iwate-hero__eyebrow { color: #fcd34d; }
.p-iwate-hero__title {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.6rem, 6vw, 7rem);
  line-height: 1.08;
  letter-spacing: 0;
  color: #fff;
}
.p-iwate-hero__lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255,255,255,.88);
  font-size: clamp(1.55rem, 1.9vw, 1.9rem);
  line-height: 1.9;
}
.p-iwate-hero__actions,
.p-iwate-about__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.p-iwate-hero__actions .c-btn {
  background: #fff;
  color: #0f4f4a;
  border-color: #fff;
}
.p-iwate-hero__actions .c-btn--outline {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.45);
}
.p-iwate-hero__actions .c-btn--community {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #3a8f5c;
  color: #fff;
  border-color: #3a8f5c;
}
.p-iwate-hero__actions .c-btn--community img {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 999px;
}
.p-iwate-hero__actions .c-btn--community:hover {
  background: #2f7d4f;
  border-color: #2f7d4f;
}
.p-iwate-hero__panel {
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 8px;
  padding: 26px;
  backdrop-filter: blur(18px);
}
.p-iwate-hero__panel-label {
  margin: 0 0 18px;
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: .18em;
  color: #bae6fd;
}
.p-iwate-focus-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-iwate-focus-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 1.5rem;
  line-height: 1.55;
}
.p-iwate-focus-list span {
  color: #fcd34d;
  font-family: var(--font-en);
  font-weight: 800;
}
.p-community-strip {
  position: relative;
  z-index: 2;
  margin-top: -1px;
  background: #0f172a;
  border-top: 1px solid rgba(255,255,255,.14);
  border-bottom: 1px solid rgba(15,23,42,.12);
}
.p-community-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.p-community-strip__copy {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #fff;
}
.p-community-strip__logo {
  width: min(330px, 36vw);
  height: auto;
  flex: 0 0 auto;
  margin-right: 6px;
}
.p-community-strip__badge {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 4px;
  background: #3a8f5c;
  color: #fff;
  font-family: var(--font-en);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1;
}
.p-community-strip__copy strong {
  font-size: 1.42rem;
  line-height: 1.7;
}
.p-community-strip a {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 8px;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 850;
  text-decoration: none;
}
.p-community-strip a:hover {
  background: rgba(255,255,255,.10);
}
.p-iwate-intro__grid,
.p-iwate-about__grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.p-iwate-intro h2,
.p-iwate-about h2 {
  margin: 0;
  font-size: clamp(2.4rem, 3vw, 3.4rem);
  line-height: 1.45;
  letter-spacing: 0;
}
.p-iwate-intro p,
.p-iwate-about p {
  font-size: 1.55rem;
  line-height: 2;
  color: #475569;
}
.p-section-heading--left { text-align: left; }
.p-section-heading--between {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
}
.p-section-heading--left .p-section-heading__ja,
.p-section-heading--between .p-section-heading__ja {
  margin: 0;
  color: #0b1220;
  font-size: clamp(2.4rem, 3vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 0;
}
.p-topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.p-topic-card {
  display: block;
  min-height: 220px;
  padding: 22px;
  border: 1px solid rgba(15,23,42,.11);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}
.p-topic-card span {
  display: inline-block;
  margin-bottom: 28px;
  color: #0f766e;
  font-size: 1.2rem;
  font-weight: 800;
}
.p-topic-card h3 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.55;
}
.p-topic-card p {
  margin: 12px 0 0;
  color: #475569;
  font-size: 1.35rem;
  line-height: 1.75;
}
.p-text-link {
  color: #0f766e;
  font-weight: 800;
  text-decoration: none;
}
.p-latest-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: start;
  gap: 18px;
}
.p-latest-layout .p-article-card:first-child { grid-row: auto; }
.p-article-card {
  border-radius: 8px;
  border: 1px solid rgba(15,23,42,.1);
  box-shadow: none;
}
.p-article-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e2e8f0;
}
.p-article-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p-article-card__noimg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(15,118,110,.92), rgba(37,99,235,.70)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.18) 0 1px, transparent 1px 14px);
}
.p-article-card__noimg span {
  color: rgba(255,255,255,.78);
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: .16em;
}
.p-article-card__category {
  position: absolute;
  top: 12px;
  left: 12px;
  margin: 0;
  background: rgba(255,255,255,.92);
  border: 0;
  border-radius: 4px;
  color: #0f4f4a;
}
.p-article-card__body { padding: 18px; }
.p-article-card__meta {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
}
.p-article-card__title {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.55;
  letter-spacing: 0;
}
.p-article-card--featured .p-article-card__thumb { aspect-ratio: 16 / 9; }
.p-article-card--featured .p-article-card__body { padding: 24px; }
.p-article-card--featured .p-article-card__title { font-size: clamp(2.2rem, 3vw, 3rem); }
.p-article-card__excerpt {
  margin: 14px 0 0;
  color: #475569;
}
.p-iwate-about {
  background: #0f172a;
  color: #fff;
}
.p-iwate-about .p-label { color: #fcd34d; }
.p-iwate-about p { color: rgba(255,255,255,.78); }
.p-iwate-about .c-btn--outline {
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
@media (max-width: 960px) {
  .p-iwate-hero__inner,
  .p-iwate-intro__grid,
  .p-iwate-about__grid,
  .p-latest-layout { grid-template-columns: 1fr; }
  .p-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-latest-layout .p-article-card:first-child { grid-row: auto; }
}
@media (max-width: 640px) {
  .l-header__logo a {
    width: 174px !important;
    height: 50px !important;
  }
  .p-iwate-hero { padding: 104px 0 52px; }
  .p-iwate-hero__inner { padding: 0 20px; gap: 32px; }
  .p-iwate-hero__title { font-size: 3.4rem; }
  .p-iwate-hero__actions { align-items: stretch; }
  .p-iwate-hero__actions .c-btn { width: 100%; justify-content: center; }
  .p-community-strip__inner,
  .p-community-strip__copy {
    align-items: flex-start;
    flex-direction: column;
  }
  .p-community-strip__logo {
    width: min(320px, 100%);
  }
  .p-community-strip a {
    width: 100%;
    text-align: center;
  }
  .p-topic-grid { grid-template-columns: 1fr; }
  .p-section-heading--between {
    align-items: start;
    flex-direction: column;
  }
}

/* iwate AI bridge and roadmap section - 2026-05-19 */
.p-iwate-bridge {
  padding-top: 24px;
  background: linear-gradient(180deg, #fff 0%, #f6f8f7 100%);
}
.p-iwate-bridge__box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  overflow: hidden;
  position: relative;
}
.p-iwate-bridge__box::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 42%;
  background: radial-gradient(circle at 70% 40%, rgba(15,118,110,.42), transparent 52%);
  pointer-events: none;
}
.p-iwate-bridge__copy,
.p-iwate-bridge__actions {
  position: relative;
  z-index: 1;
}
.p-iwate-bridge__copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 3vw, 3rem);
  line-height: 1.45;
  letter-spacing: 0;
}
.p-iwate-bridge__copy p:last-child {
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(255,255,255,.76);
  font-size: 1.45rem;
  line-height: 1.9;
}
.p-iwate-bridge__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}
.p-iwate-bridge__actions .c-btn {
  background: #fff;
  color: #0f4f4a;
  border-color: #fff;
}
.p-iwate-bridge__actions .c-btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.45);
}
.p-roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.p-roadmap__item {
  padding: 22px;
  border: 1px solid rgba(15,23,42,.1);
  border-radius: 8px;
  background: #fff;
}
.p-roadmap__item span {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-family: var(--font-en);
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: .14em;
}
.p-roadmap__item h3 {
  margin: 0;
  color: var(--color-text);
  font-size: 1.8rem;
  line-height: 1.45;
}
.p-roadmap__item p {
  margin: 10px 0 0;
  color: var(--color-text-light);
  font-size: 1.35rem;
  line-height: 1.75;
}

.p-iwate-community {
  padding-top: 26px;
  background: #f6f8f7;
}
.p-iwate-community__box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 22px;
  align-items: stretch;
}
.p-iwate-community__copy,
.p-iwate-community__panel {
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 8px;
  background: #fff;
}
.p-iwate-community__copy {
  padding: 30px;
}
.p-iwate-community__logo {
  display: block;
  width: min(520px, 100%);
  height: auto;
  margin: -2px 0 24px;
}
.p-iwate-community__copy h2 {
  max-width: 760px;
  margin: 0;
  color: var(--color-text);
  font-size: clamp(2.2rem, 3vw, 3rem);
  line-height: 1.48;
  letter-spacing: 0;
}
.p-iwate-community__copy p {
  max-width: 780px;
  margin: 14px 0 0;
  color: var(--color-text-light);
  font-size: 1.45rem;
  line-height: 1.9;
}
.p-iwate-community__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.p-iwate-community__tags li {
  margin: 0;
  padding: 7px 11px;
  border-radius: 999px;
  background: #eefdf9;
  color: #0f766e;
  font-size: 1.15rem;
  font-weight: 850;
  line-height: 1;
}
.p-iwate-community__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(8,47,73,.96), rgba(15,118,110,.86)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.16) 0 1px, transparent 1px 16px);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.p-iwate-community__mark {
  position: absolute;
  right: -18px;
  top: -16px;
  width: 150px;
  height: 150px;
  opacity: .18;
  transform: rotate(-7deg);
}
.p-iwate-community__badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 4px;
  color: #ffd84d;
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: .14em;
}
.p-iwate-community__panel h3 {
  margin: 0;
  color: #fff;
  font-size: 2rem;
  line-height: 1.55;
  letter-spacing: 0;
}
.p-iwate-community__panel p {
  margin: 12px 0 22px;
  color: rgba(255,255,255,.78);
  font-size: 1.35rem;
  line-height: 1.8;
}
.p-iwate-community__panel .c-btn {
  width: fit-content;
  background: #fff;
  color: #0f4f4a;
  border-color: #fff;
}
@media (max-width: 900px) {
  .p-iwate-bridge__box,
  .p-roadmap,
  .p-iwate-community__box {
    grid-template-columns: 1fr;
  }
  .p-iwate-bridge__actions {
    justify-content: flex-start;
  }
}

/* Category and local industry discovery - 2026-05-19 */
.p-category-lane {
  background: #f6f8f7;
  padding-top: 36px;
}
.p-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.p-category-card {
  display: block;
  min-height: 210px;
  padding: 22px;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.p-category-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -48px auto;
  width: 132px;
  height: 132px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(15,118,110,.12), transparent 68%);
}
.p-category-card__num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 850;
}
.p-category-card__count {
  position: absolute;
  top: 22px;
  right: 22px;
  color: #64748b;
  font-size: 1.2rem;
  font-weight: 700;
}
.p-category-card h3 {
  margin: 0;
  color: #0b1220;
  font-size: 2rem;
  line-height: 1.45;
}
.p-category-card p {
  margin: 12px 0 0;
  color: #475569;
  font-size: 1.35rem;
  line-height: 1.75;
}
.p-industry-section {
  background:
    linear-gradient(180deg, #fff 0%, #f6f8f7 100%);
}
.p-industry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.p-industry-card {
  display: block;
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,255,255,.88)),
    linear-gradient(135deg, rgba(15,118,110,.12), rgba(180,83,9,.10));
  color: inherit;
  text-decoration: none;
}
.p-industry-card span {
  display: inline-block;
  margin-bottom: 20px;
  color: #8a6d1f;
  font-size: 1.2rem;
  font-weight: 850;
}
.p-industry-card h3 {
  margin: 0;
  color: #0b1220;
  font-size: 1.8rem;
  line-height: 1.55;
}
.p-industry-card p {
  margin: 10px 0 0;
  color: #475569;
  font-size: 1.35rem;
  line-height: 1.75;
}
@media (max-width: 960px) {
  .p-category-grid,
  .p-industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .p-category-grid,
  .p-industry-grid {
    grid-template-columns: 1fr;
  }
  .p-category-card,
  .p-industry-card {
    min-height: auto;
  }
  .p-iwate-community__logo {
    width: 100%;
    margin-bottom: 20px;
  }
  .p-iwate-community__mark {
    width: 122px;
    height: 122px;
  }
}

/* Responsive article guardrails - 2026-05-21 */
.p-article,
.p-article-content,
.p-article-body,
.entry-content,
.l-main,
.l-contents,
.l-container,
.l-inner {
  min-width: 0;
}

.p-article-content,
.p-article-body {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

.p-article-content *,
.p-article-body * {
  box-sizing: border-box;
  max-width: 100%;
}

.p-article-content img,
.p-article-content iframe,
.p-article-content video,
.p-article-body img,
.p-article-body iframe,
.p-article-body video {
  max-width: 100%;
  height: auto;
}

.p-article-content a,
.p-article-body a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.p-article-content table,
.p-article-body table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.p-article-content pre,
.p-article-body pre {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.p-article-content pre code,
.p-article-body pre code,
.p-article-content code.hljs {
  display: block;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  white-space: inherit;
  overflow-wrap: inherit;
  word-break: inherit;
}

.p-article-content :not(pre) > code,
.p-article-body :not(pre) > code {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.urv-related-articles {
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

.urv-related-articles > div[style] {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)) !important;
}

.urv-related-articles a,
.urv-related-articles strong {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 480px) {
  .p-article-content {
    padding-left: clamp(16px, 5vw, 20px);
    padding-right: clamp(16px, 5vw, 20px);
  }

  .p-article-body {
    width: 100%;
    font-size: clamp(1.52rem, 4.4vw, 1.68rem);
    line-height: 1.85;
  }

  .p-article-body ul,
  .p-article-body ol,
  .p-article-content ul,
  .p-article-content ol {
    margin-left: 0;
    padding-left: 1.25em;
  }

  .p-article-content pre,
  .p-article-body pre {
    margin-left: 0;
    margin-right: 0;
    padding: 14px;
    border-radius: 8px;
    font-size: 1.25rem;
  }

  .urv-related-articles {
    margin: 40px 0 24px !important;
    padding: 24px 16px !important;
  }

  .urv-related-articles > div[style] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .urv-related-articles a[style] {
    padding: 16px 14px !important;
  }
}

/* Responsive article text refinements - 2026-05-21 */
.p-article-content p,
.p-article-content li,
.p-article-content h1,
.p-article-content h2,
.p-article-content h3,
.p-article-content h4,
.p-article-content h5,
.p-article-content h6,
.p-article-content strong,
.p-article-content span,
.p-article-body p,
.p-article-body li,
.p-article-body h1,
.p-article-body h2,
.p-article-body h3,
.p-article-body h4,
.p-article-body h5,
.p-article-body h6,
.p-article-body strong,
.p-article-body span {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.p-article-content ul,
.p-article-content ol,
.p-article-body ul,
.p-article-body ol {
  max-width: 100%;
}


/* ============================================================
   ぐらごるナビ additions — start cards / category list (2026-08-19)
   Cloned iwateai site.css lacked these blocks (fleet-wide latent bug).
   ============================================================ */
.p-iwate-start { background: var(--color-bg); }

.p-start-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
@media (max-width: 900px) {
  .p-start-grid { grid-template-columns: 1fr; }
}

.p-start-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 26px 26px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: var(--color-text);
  transition: transform .18s ease, box-shadow .18s ease;
}
.p-start-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.p-start-card h3 {
  font-size: 22px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .02em;
}
.p-start-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-light);
  flex-grow: 1;
}
.p-start-card__action {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}
.p-start-card--contact {
  background: linear-gradient(135deg, #10151d, #12301f);
  border-top-color: var(--volt, #f6c744);
  color: #fff;
}
.p-start-card--contact p { color: rgba(255,255,255,.78); }
.p-start-card--contact .p-start-card__action { color: var(--volt, #f6c744); }

.p-category-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
  list-style: none;
  padding: 0;
}
@media (max-width: 900px) {
  .p-category-list { grid-template-columns: repeat(2, 1fr); }
}
.p-category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: 15px;
  transition: border-color .18s ease, transform .18s ease;
}
.p-category-list a:hover { border-color: var(--accent); transform: translateY(-2px); }
.p-category-list a span {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-bg);
  border-radius: 999px;
  padding: 3px 10px;
  margin-left: 10px;
}

.p-empty { color: var(--color-text-muted); padding: 24px 0; }

/* ============================================================
   ぐらごるナビ — 2カラムレイアウト＋サイドバー (2026-08-20)
   ============================================================ */
.p-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}
.p-single-main { min-width: 0; }
.p-single-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (max-width: 1023px) {
  .p-single-layout { grid-template-columns: 1fr; }
  .p-single-sidebar { position: static; }
}

.p-sb-widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 20px 20px 16px;
  box-shadow: var(--shadow-card);
}
.p-sb-widget__title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}
.p-sb-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}
.p-sb-toc__list li {
  counter-increment: toc;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.5;
}
.p-sb-toc__list a {
  color: var(--color-text-2);
  text-decoration: none;
  display: flex;
  gap: 8px;
}
.p-sb-toc__list a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--accent);
  font-weight: 800;
  font-family: var(--font-en);
}
.p-sb-toc__list a:hover { color: var(--accent); }

.p-sb-popular { list-style: none; padding: 0; margin: 0; }
.p-sb-popular li { margin-bottom: 12px; }
.p-sb-popular a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
}
.p-sb-popular__rank {
  flex: 0 0 auto;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 16px;
  color: var(--accent);
  width: 18px;
}
.p-sb-popular__thumb { flex: 0 0 56px; }
.p-sb-popular__thumb img {
  width: 56px; height: 42px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.p-sb-popular__title {
  font-size: 12.5px;
  line-height: 1.5;
  font-weight: 600;
}
.p-sb-popular a:hover .p-sb-popular__title { color: var(--accent); }

.p-sb-cats { list-style: none; padding: 0; margin: 0; }
.p-sb-cats li { margin-bottom: 6px; }
.p-sb-cats a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 6px;
}
.p-sb-cats a:hover { background: var(--accent-bg); color: var(--accent); }
.p-sb-cats a span {
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-bg);
  border-radius: 999px;
  padding: 2px 8px;
}

.p-sb-race {
  background: linear-gradient(135deg, #10151d, #12301f);
  border: none;
  color: #fff;
}
.p-sb-race__badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .08em;
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 10px;
}
.p-sb-race__title { font-size: 16px; font-weight: 800; line-height: 1.5; margin-bottom: 8px; }
.p-sb-race__body { font-size: 12.5px; line-height: 1.7; color: rgba(255,255,255,.75); margin-bottom: 14px; }
.p-sb-race .c-btn { width: 100%; text-align: center; }

/* ============================================================
   ぐらごるナビ — header logo / pagination / footer 補完 (2026-08-20)
   ============================================================ */
.l-header__logo a { text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.l-header__logo-name {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .06em;
  color: var(--color-ink);
  line-height: 1;
}
.l-header__logo-name em {
  font-style: normal;
  color: var(--accent);
  margin-left: 6px;
}
.l-header__logo-sub {
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--color-text-muted);
  font-weight: 600;
}
.p-page-desc { color: var(--color-text-light); font-size: 14px; margin-top: 10px; }
.p-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 48px 0 24px;
}
.p-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 700;
  text-decoration: none;
}
.p-pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.p-pagination .page-numbers:hover:not(.current) { border-color: var(--accent); color: var(--accent); }
.l-footer__brand { font-family: var(--font-en); font-weight: 800; font-size: 18px; letter-spacing: .05em; }

/* ============================================================
   ぐらごるナビ polish (2026-08-20): logo可視化 / FAQ整形 / aioブロック調整
   ============================================================ */
.l-header__logo-name, .l-header__logo-sub { text-indent: 0 !important; }

.p-faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  margin: 14px 0;
}
.p-faq-item .p-faq-q {
  font-weight: 800;
  font-size: 15.5px;
  margin: 0 0 8px;
  display: flex;
  gap: 10px;
  line-height: 1.6;
}
.p-faq-item .p-faq-q::before {
  content: "Q";
  flex: 0 0 auto;
  color: #fff;
  background: var(--accent);
  border-radius: 6px;
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-en); font-size: 13px;
}
.p-faq-item .p-faq-a { margin: 0; font-size: 14.5px; line-height: 1.9; color: var(--color-text-2); }

/* aio service CTA はNEXT ACTIONと重複するため非表示 */
.urv-aio-service-cta { display: none !important; }
/* trustブロックはブランド色に */
.urv-aio-trust { border-color: var(--color-border) !important; }
.urv-aio-trust__label, .urv-aio-trust dt { color: var(--accent) !important; }

/* FAQ: テキスト側にQ.を持つためバッジは無効化し、Q.を強調表示 */
.p-faq-item .p-faq-q::before { content: none; }
.p-faq-item .p-faq-q { color: var(--color-text); display: block; }
.p-faq-item .p-faq-q::first-letter { color: var(--accent); }

/* contact page cards (2026-08-20) */
.p-contact-lead { font-size: 15px; color: var(--color-text-2); margin-bottom: 28px; }
.p-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0 0 32px; }
@media (max-width: 900px) { .p-contact-grid { grid-template-columns: 1fr; } }
.p-contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.p-contact-card__label { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--accent); margin: 0; }
.p-contact-card h3 { font-size: 17px; margin: 0; }
.p-contact-card p { font-size: 13.5px; line-height: 1.8; color: var(--color-text-light); flex-grow: 1; margin: 0; }
.p-contact-card .c-btn { text-align: center; }
.p-contact-note {
  background: var(--accent-bg);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  font-size: 13px; line-height: 1.8; color: var(--color-text-2);
}
.p-contact-note p { margin: 0 0 6px; }

/* c-btn--primary: 文字色定義漏れの恒久修正（オレンジ地にオレンジ文字になっていた） */
.c-btn.c-btn--primary, a.c-btn--primary { color: #fff !important; -webkit-text-fill-color: #fff; }

/* Mobile nav open state (2026-08-20) */
@media (max-width: 1023px) {
  body.is-nav-open .l-header__nav {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: var(--header-height, 80px);
    left: 0; right: 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 24px 48px rgba(16,21,29,.14);
    padding: 12px 0 18px;
    z-index: 1000;
    max-height: calc(100vh - var(--header-height, 80px));
    overflow-y: auto;
  }
  body.is-nav-open .l-header__nav a {
    display: block;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
  }
  body.is-nav-open .l-header__nav a.is-current { color: var(--accent); }
  body.is-nav-open { overflow: hidden; }
}

/* ============================================================
   ぐらごるナビ — FRESH SKIN (2026-08-20)
   STUDIO「Webメディア｜Fresh」移植。f-*クラス＋既存要素の見た目転換
   ============================================================ */
:root{
  --f-accent:#2f7d4f; --f-lime:#D9E94F; --f-hl:#F3F8C9; --f-bg:#F4F4F2;
  --f-chip-basics:#FADFC0; --f-chip-events:#F5D8E8; --f-chip-training:#C4E9DD;
  --f-chip-gear:#CBE2F5; --f-chip-gyms:#D6EBC8; --f-chip-interviews:#E9E0F5;
  --font-en:'Quicksand','M PLUS Rounded 1c',sans-serif;
  --font-ja:'M PLUS Rounded 1c','Hiragino Maru Gothic ProN',sans-serif;
}
body{font-family:var(--font-ja);background:var(--f-bg)}

/* ---- header ---- */
.f-topbar{height:6px;background:var(--f-accent)}
.f-header{background:#fff;display:grid;grid-template-columns:110px 1fr 110px;align-items:center;padding:14px 28px 10px}
.f-menu-btn{display:none;flex-direction:column;gap:5px;align-items:flex-start;background:none;border:none;cursor:pointer;padding:0}
.f-menu-btn span{display:block;width:32px;height:4px;border-radius:2px;background:var(--f-accent)}
.f-menu-btn em{font-style:normal;font-size:11px;font-weight:700;margin-top:3px;color:var(--color-text,#333)}
.f-logo{text-align:center;text-decoration:none;display:block}
.f-logo__tag{display:block;font-size:12.5px;font-weight:700;letter-spacing:.1em;color:var(--color-text,#333)}
.f-logo__name{display:block;font-family:var(--font-en);font-size:31px;font-weight:700;color:var(--f-accent);letter-spacing:.04em;line-height:1.25}
.f-logo__name i{font-style:normal;font-size:14px;vertical-align:middle;letter-spacing:.15em}
.f-search{justify-self:end;text-align:center;color:var(--f-accent);text-decoration:none}
.f-search svg{display:block;margin:0 auto 1px}
.f-search em{font-style:normal;font-size:11px;font-weight:700;color:var(--color-text,#333)}
.f-catnav{background:#fff;border-top:1px solid #eee}
.f-catnav ul{display:flex;justify-content:center;list-style:none;margin:0;padding:0}
.f-catnav a{display:block;padding:16px 26px;font-weight:700;font-size:14.5px;color:var(--color-text,#333);text-decoration:none;border-left:1px solid #eee}
.f-catnav li:last-child a{border-right:1px solid #eee}
.f-catnav a:hover,.f-catnav a.is-current{color:var(--f-accent)}
.f-dashed{border:none;border-top:2px dashed #ddd;margin:0}

/* ---- hero carousel ---- */
.f-hero{padding:50px 0 44px;overflow:hidden;background:var(--f-bg)}
.f-hero__track{display:flex;gap:26px;justify-content:center;align-items:stretch}
.f-fcard{background:#fff;border-top:5px solid var(--f-lime);box-shadow:0 2px 10px rgba(0,0,0,.05);width:600px;flex:0 0 auto}
.f-fcard.is-side{opacity:.92;width:430px}
.f-fcard a{text-decoration:none;color:inherit;display:block}
.f-fcard__img{position:relative;aspect-ratio:1280/640;overflow:hidden}
.f-fcard__img img{width:100%;height:100%;object-fit:cover}
.f-fcard__body{padding:16px 24px 18px}
.f-fcard__body h3{font-size:18px;margin:8px 0 6px;line-height:1.6}
.f-fcard__body p{font-size:13px;color:#555;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0}
.f-arrow{align-self:center;width:32px;height:32px;border-radius:50%;background:var(--f-accent);color:#fff;display:flex;align-items:center;justify-content:center;font-family:var(--font-en);flex:0 0 auto}
.f-new{position:absolute;top:12px;left:12px;width:48px;height:48px;border-radius:50%;background:#fff;color:var(--f-accent);font-family:var(--font-en);font-weight:700;font-size:13px;display:flex;align-items:center;justify-content:center;transform:rotate(-12deg);box-shadow:0 2px 6px rgba(0,0,0,.12);z-index:2}
.f-meta{display:flex;justify-content:space-between;align-items:center;font-size:12.5px}
.f-chip{font-size:11.5px;font-weight:700;padding:3px 13px;border-radius:999px;background:#eee}
.f-chip--basics{background:var(--f-chip-basics)}.f-chip--events{background:var(--f-chip-events)}
.f-chip--training{background:var(--f-chip-training)}.f-chip--gear{background:var(--f-chip-gear)}
.f-chip--gyms{background:var(--f-chip-gyms)}.f-chip--interviews{background:var(--f-chip-interviews)}
.f-author{display:flex;justify-content:flex-end;align-items:center;gap:6px;font-size:12px;margin-top:10px;color:#555}
.f-author i{width:16px;height:16px;border-radius:50%;background:linear-gradient(135deg,#d8d8d8,#efefef)}

/* ---- layout / cards ---- */
.f-wrap{max-width:1180px;margin:0 auto;padding:0 28px}
.f-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:52px;padding:52px 0 36px}
.f-sec-h{display:flex;align-items:baseline;gap:14px;margin-bottom:28px}
.f-sec-h .en{font-family:var(--font-en);font-size:29px;font-weight:700}
.f-sec-h .ja{font-size:12.5px;font-weight:700}
.f-grid2{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.f-grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;text-align:left}
.f-acard{background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.04)}
.f-acard a{text-decoration:none;color:inherit;display:block}
.f-acard__img{position:relative;aspect-ratio:1280/720;overflow:hidden}
.f-acard__img img{width:100%;height:100%;object-fit:cover;transition:.3s}
.f-acard:hover .f-acard__img img{transform:scale(1.04)}
.f-acard__noimg{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#f0f0ec;font-family:var(--font-en);font-weight:700;color:#bbb}
.f-acard__body{padding:15px 18px}
.f-acard__body h3{font-size:15.5px;margin:8px 0 6px;line-height:1.65}
.f-acard__body p{font-size:12.5px;color:#555;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0}
.f-allbtn{display:block;width:250px;margin:40px auto 0;text-align:center;background:#e4e4e0;border-radius:999px;padding:14px 0;font-weight:700;font-size:13.5px;color:var(--color-text,#333);text-decoration:none}
.f-allbtn:hover{background:#dcdcd6}

/* ---- sidebar ---- */
.f-side{display:flex;flex-direction:column;gap:22px;position:sticky;top:24px;align-self:start}
.f-widget{background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.04);padding:18px 20px 16px}
.f-widget__h{font-weight:800;font-size:15px;padding-bottom:9px;border-bottom:4px solid var(--f-accent);margin:0 0 14px}
.f-widget__h.en{font-family:var(--font-en);font-size:18px}
.f-tags{display:flex;flex-wrap:wrap;gap:10px 16px}
.f-tags a{font-size:13px;font-weight:700;color:var(--color-text,#333);text-decoration:none}
.f-tags a:hover{color:var(--f-accent)}
.f-pick{display:flex;flex-direction:column;gap:12px}
.f-pcard{display:block;text-decoration:none;color:inherit;border-bottom:1px dashed #e5e5e0;padding-bottom:10px}
.f-pcard:last-child{border-bottom:none;padding-bottom:0}
.f-pcard__top{display:flex;gap:14px;font-size:12px;margin-bottom:7px}
.f-pcard__top b{color:var(--f-accent);font-family:var(--font-en)}
.f-pcard__row{display:flex;gap:11px;align-items:center}
.f-pcard__row img{width:72px;height:50px;object-fit:cover;flex:0 0 auto}
.f-pcard__row span{font-size:12.5px;font-weight:700;line-height:1.6}
.f-pcard:hover .f-pcard__row span{color:var(--f-accent)}
.f-toc ol{list-style:none;padding:0;margin:0;counter-reset:toc}
.f-toc li{counter-increment:toc;margin-bottom:7px;font-size:12.5px;line-height:1.55}
.f-toc a{color:var(--color-text-2,#444);text-decoration:none;display:flex;gap:8px}
.f-toc a::before{content:counter(toc,decimal-leading-zero);color:var(--f-accent);font-weight:800;font-family:var(--font-en)}
.f-toc a:hover{color:var(--f-accent)}
.f-racecard{background:linear-gradient(135deg,#10151d,#12301f);color:#fff}
.f-racecard .f-widget__h{color:#fff}
.f-racecard__badge{display:inline-block;background:var(--f-accent);color:#fff;font-family:var(--font-en);font-weight:800;font-size:11px;letter-spacing:.08em;border-radius:4px;padding:3px 8px;margin:0 0 10px}
.f-racecard__title{font-size:15.5px;font-weight:800;line-height:1.5;margin:0 0 8px}
.f-racecard__body{font-size:12px;line-height:1.7;color:rgba(255,255,255,.75);margin:0 0 12px}
.f-racecard .c-btn{width:100%;text-align:center;display:block}

/* ---- catsec / race band ---- */
.f-catsec{padding:52px 0 40px;text-align:center}
.f-catsec .en{font-family:var(--font-en);font-size:29px;font-weight:700}
.f-catsec .ja{font-size:12.5px;font-weight:700;margin:4px 0 30px}
.f-race{background:#ececea;padding:58px 0}
.f-race__in{display:grid;grid-template-columns:440px 1fr;gap:40px;align-items:center}
.f-race__in img{width:100%;height:280px;object-fit:cover}
.f-race__in h2{background:var(--f-accent);color:#fff;font-size:17px;padding:11px 22px;margin:0 0 18px}
.f-race__in p{font-size:13.5px;margin:0 0 10px}
.f-apply{display:inline-block;background:#fff;border-radius:999px;padding:12px 40px;font-weight:700;font-size:13.5px;float:right;box-shadow:0 2px 8px rgba(0,0,0,.08);color:var(--color-text,#333);text-decoration:none}

/* ---- 記事ページのFresh転換（既存クラスを再スタイル） ---- */
.p-sub-hero{display:none}
.p-breadcrumb{background:#fff;border-top:2px dashed #ddd;border-bottom:2px dashed #ddd;padding:12px 0}
.p-article-header__title{font-size:25px;line-height:1.7;padding-bottom:14px;border-bottom:5px solid var(--f-lime)}
.p-article-header__category{background:var(--f-chip-basics);color:var(--color-text,#333);border-radius:999px;padding:3px 14px;font-size:12px;font-weight:700}
.p-article-body h2{background:var(--f-hl);padding:12px 18px;border:none;border-radius:0;font-size:19.5px}
.p-article-body h3{background:var(--f-hl);padding:10px 16px;font-size:16.5px;color:var(--color-text,#333)}
.p-single-sidebar .p-sb-widget{border:none;box-shadow:0 2px 8px rgba(0,0,0,.04)}
.p-single-sidebar .p-sb-widget__title{border-bottom:4px solid var(--f-accent);font-size:15px}

/* ---- footer Fresh化 ---- */
.l-footer{background:#fff !important;text-align:center;color:var(--color-text,#333) !important}
.l-footer *{color:var(--color-text,#333) !important}
.l-footer__brand{font-family:var(--font-en);font-size:26px;font-weight:700;color:var(--f-accent) !important}
.p-trademark-note{background:var(--f-bg)}

/* ---- モバイル ---- */
@media(max-width:1023px){
  .f-menu-btn{display:flex}
  .f-header{grid-template-columns:70px 1fr 70px;padding:12px 18px 8px}
  .f-logo__name{font-size:24px}
  .f-catnav{display:none}
  body.is-nav-open .f-catnav{display:block;position:fixed;top:0;left:0;right:0;bottom:0;background:#fff;z-index:1000;overflow-y:auto;padding-top:90px}
  body.is-nav-open .f-catnav ul{flex-direction:column}
  body.is-nav-open .f-catnav a{border:none;border-bottom:1px solid #eee;padding:16px 26px;font-size:15px;text-align:center}
  .f-hero__track{flex-direction:column;align-items:center;padding:0 20px}
  .f-fcard,.f-fcard.is-side{width:100%;max-width:600px}
  .f-arrow{display:none}
  .f-layout{grid-template-columns:1fr;gap:36px}
  .f-side{position:static}
  .f-grid2,.f-grid3{grid-template-columns:1fr}
  .f-race__in{grid-template-columns:1fr}
}

/* fresh-skin fix: 明示的グリッド配置（menu非表示時のロゴずれ防止） */
.f-menu-btn{grid-column:1;grid-row:1}
.f-logo{grid-column:2;grid-row:1}
.f-search{grid-column:3;grid-row:1}
@media(min-width:1024px){ .f-menu-btn{display:flex;visibility:hidden} }

/* fresh-skin fix2: メニュー展開時もヘッダー(閉じるボタン)を最前面に */
body.is-nav-open .f-topbar, body.is-nav-open .f-header { position: relative; z-index: 1001; background: #fff; }

/* fresh-skin fix3: sub-heroを復活させFresh化（singleのみ非表示） */
.p-sub-hero{display:block;background:#fff;padding:40px 0 26px;text-align:center;min-height:0}
.single .p-sub-hero{display:none}
.p-sub-hero__eyebrow{font-family:var(--font-en);font-size:12px;font-weight:700;letter-spacing:.14em;color:var(--f-accent);margin:0 0 6px}
.p-sub-hero__title{font-size:26px;font-weight:800;color:var(--color-text,#333);display:inline-block;padding-bottom:10px;border-bottom:5px solid var(--f-lime);line-height:1.5}
.p-sub-hero__sub{display:block;font-size:12.5px;font-weight:700;color:var(--color-text-muted,#888);margin-top:8px;border:none}
/* 固定ページタイトルもFresh化 */
.page .p-article__title{font-size:26px;padding-bottom:12px;border-bottom:5px solid var(--f-lime);display:inline-block}


/* ===== ぐらごるナビ: 60〜80代の読者向けの読みやすさ（2026-09-04） ===== */
html { font-size: 112.5%; }
body { line-height: 1.9; letter-spacing: 0.02em; color: #1a1f1c; }
.p-article-body { font-size: 1.15rem; }
.p-article-body p { margin-bottom: 1.4em; }
.p-article-body h2 { font-size: 1.55rem; line-height: 1.5; margin-top: 2.2em; padding: 0.5em 0.8em; border-left: 8px solid var(--accent); background: var(--accent-light); border-radius: 6px; }
.p-article-body h3 { font-size: 1.3rem; line-height: 1.5; margin-top: 1.8em; }
.p-article-body a { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
.p-article-body li { margin-bottom: 0.5em; }
.p-article-body table { font-size: 1.05rem; }
.p-article-body img { border-radius: 8px; }
.f-catnav a, .f-menu-btn, .f-search { font-size: 1.05rem; }
.c-btn { font-size: 1.1rem; padding: 0.9em 1.4em; }
@media (max-width: 767px) { html { font-size: 106%; } .p-article-body { font-size: 1.1rem; } }
