.site-navigation__list a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-color);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.site-navigation__list a:hover::after,
.site-navigation__list a:focus::after,
.site-navigation__list .current-menu-item > a::after,
.site-navigation__list .current_page_item > a::after {
  transform: scaleX(1);
}

.site-navigation__list .current-menu-item > a,
.site-navigation__list .current_page_item > a {
  color: var(--accent-color);
}

/*
Theme Name: Growth Gate
Theme URI: https://growth-gate.jp
Author: Growth Gate
Author URI: https://growth-gate.jp
Description: Growth Gate専用のカスタムテーマ
Version: 0.1.0
Requires at least: 6.5
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: growth-gate
*/

:root {
  --primary-color: #5d020a;
  --accent-color: #303d49;
  --dark-color: #1a1e22;
  --background-color: #f8fafc;
  --text-color: #1f2933;
  --muted-color: #667481;
  --border-color: #e2e8f0;
  --shadow-sm: 0 10px 30px rgba(30, 41, 59, 0.06);
  --shadow-md: 0 20px 50px rgba(30, 41, 59, 0.08);
  font-family: 'Noto Sans JP', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  margin: 0;
  color: var(--text-color);
  background-color: var(--background-color);
  font-family: inherit;
  line-height: 1.7;
}

.screen-reader-text {
  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 {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: #fff;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transform: translateY(-200%);
  transition: transform 0.3s ease;
  z-index: 999;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #f5f5f5;
  box-shadow: var(--shadow-sm);
}

.site-header__bar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  gap: 2rem;
}

.site-header__branding {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-header__title,
.site-header__branding .site-title,
.site-header__branding h1,
.site-header__branding p {
  display: none !important;
}

.site-header__logo img {
  max-height: 66px;
  width: auto;
}

.site-header__logo .custom-logo-link {
  display: inline-block;
  line-height: 1;
}

.site-header__logo .custom-logo {
  display: block;
  max-height: 66px;
  width: auto;
  height: auto;
}

@media (max-width: 1024px) {
  .site-header__bar {
    padding: 0.25rem 0.75rem;
  }

  .site-header__logo img,
  .site-header__logo .custom-logo {
    max-height: 30px;
  }

  .site-header__toggle {
    min-width: 36px;
    min-height: 36px;
    padding: 0.1rem;
  }

  .site-header__toggle-line {
    width: 22px;
    margin: 4px auto;
  }
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-header__actions > * {
  display: flex;
  align-items: center;
}

.site-header__actions nav {
  flex-shrink: 0;
}

.site-navigation__list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.site-navigation__list > li {
  margin: 0;
  padding: 0;
  position: relative;
}

.site-navigation__list a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
  position: relative;
  padding: 0.35rem 0;
  display: block;
}

/* ドロップダウンメニュー */
.menu-item-has-children {
  position: relative;
}

.menu-item-has-children > a::after {
  content: '▼';
  font-size: 0.7em;
  margin-left: 0.4rem;
  display: inline-block;
}

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
}

.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu li {
  margin: 0;
  padding: 0;
}

.sub-menu a {
  padding: 0.6rem 1.2rem;
  color: var(--text-color);
  white-space: nowrap;
  font-weight: 500;
}

.sub-menu a:hover {
  background: #f5f5f5;
  color: var(--primary-color);
}

.sub-menu a::after {
  display: none;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(8px);
}

.site-header.is-scrolled .site-header__bar {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.site-navigation {
  display: flex;
  align-items: center;
}

.site-navigation {
  display: flex;
}

.site-navigation__list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-navigation__list li {
  margin: 0;
  padding: 0;
}

.site-navigation__list a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
  position: relative;
  padding: 0.35rem 0;
}

.site-navigation__list a:hover,
.site-navigation__list a:focus {
  color: var(--primary-color);
}

.site-navigation__list a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-color, #5d020a);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.site-navigation__list a:hover::after,
.site-navigation__list a:focus::after,
.site-navigation__list .current-menu-item > a::after,
.site-navigation__list .current_page_item > a::after {
  transform: scaleX(1);
}

.site-navigation__list .current-menu-item > a,
.site-navigation__list .current_page_item > a {
  color: var(--accent-color, #5d020a);
}

.site-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.site-search__field {
  border: none;
  background: transparent;
  outline: none;
  min-width: 180px;
  font-size: 0.95rem;
}

.site-search__submit {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  color: var(--muted-color);
}

.site-header__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  min-width: 48px;
  min-height: 48px;
}

.site-header__toggle-line {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--text-color);
  margin: 6px auto;
  transition: transform 0.3s, opacity 0.3s;
  border-radius: 999px;
}

.site-header__toggle.is-active .site-header__toggle-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header__toggle.is-active .site-header__toggle-line:nth-child(2) {
  opacity: 0;
}

.site-header__toggle.is-active .site-header__toggle-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.site-header__drawer {
  display: none;
  border-top: 1px solid var(--border-color);
  padding: 1rem 1.5rem 1.5rem;
  background-color: #fff;
  transition: max-height 0.3s ease;
  max-height: 0;
  overflow: hidden;
}

.site-header__drawer.is-open {
  display: block;
  max-height: 600px;
}

.site-search--mobile {
  margin-bottom: 1rem;
}

.site-navigation__list--mobile {
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  width: 100%;
}

.site-navigation__list--mobile > li {
  width: 100%;
  text-align: left;
}

.site-navigation__list--mobile a {
  font-size: 1.05rem;
  text-align: left;
  width: 100%;
}

/* モバイルメニューのドロップダウン */
.site-navigation--mobile .menu-item-has-children {
  position: relative;
}

.site-navigation--mobile .mobile-submenu-toggle {
  width: 100%;
  padding: 0.6rem 0;
  background: none;
  border: none;
  color: var(--text-color);
  font-weight: 600;
  font-size: 1.05rem;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.site-navigation--mobile .mobile-submenu-toggle::after {
  content: '▼';
  font-size: 0.7em;
  margin-left: 0.4rem;
  display: inline-block;
  transition: transform 0.2s;
}

.site-navigation--mobile .menu-item-has-children.is-open .mobile-submenu-toggle::after {
  transform: rotate(180deg);
}

.site-navigation--mobile .sub-menu {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  margin-top: 0.5rem;
  padding: 0.5rem 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.site-navigation--mobile .menu-item-has-children.is-open > .sub-menu {
  max-height: 500px;
}

.site-navigation--mobile .sub-menu a {
  padding-left: 1.5rem;
  font-size: 0.95rem;
}

.site-header__drawer .site-search {
  width: 100%;
  padding: 0.6rem 1rem;
}

body.is-menu-open {
  overflow: hidden;
}

.site-footer {
  background-color: #1a1e22;
  color: #ffffff;
  padding: 4rem 1.5rem 2rem;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 1fr 2fr;
  }
}

.site-footer__branding {
  max-width: 300px;
}

.site-footer__logo {
  margin-bottom: 1rem;
}

.site-footer__logo a {
  display: inline-block;
  line-height: 1;
}

.site-footer__logo img,
.site-footer__logo .custom-logo,
.site-footer__logo .footer-custom-logo {
  display: block;
  max-height: 75px;
  width: auto;
  height: auto;
}

.site-footer__title {
  display: none !important;
}

.site-footer__description {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  line-height: 1.6;
}

.site-footer__nav-group {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

@media (min-width: 640px) {
  .site-footer__nav-group {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .site-footer__nav-group {
    grid-template-columns: repeat(3, 1fr);
  }
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-footer__nav-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #5D020A;
}

.site-footer__menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer__menu-list a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.9rem;
}

.site-footer__menu-list a:hover,
.site-footer__menu-list a:focus {
  color: #ffffff;
  text-decoration: underline;
}

.site-footer__bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-footer__copyright {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.site-footer__copyright p {
  margin: 0;
}

.site-main {
  min-height: 60vh;
  padding: 3rem 1.5rem;
}

.site-main .site-article {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  padding: 2.5rem;
}

.site-article__title {
  margin-top: 0;
  color: var(--primary-color);
  text-align: center;
}

@media (max-width: 1024px) {
  .site-header__search--desktop,
  .site-navigation--desktop {
    display: none;
  }

  .site-header__toggle {
    display: block;
  }

  .site-search__field {
    min-width: 0;
    flex: 1;
  }

  .site-header__drawer {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
    max-height: 0;
  }

  .site-header__drawer.is-open {
    max-height: 600px;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 3rem 1.5rem 1.5rem;
  }

  .site-main {
    padding: 2rem 1rem;
  }

  .site-main .site-article {
    padding: 1.75rem;
  }
}

/* ================================================
   パンくずリスト + プロモーション表示
   ================================================ */
.site-breadcrumb-wrapper {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.75rem 0;
}

.site-breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
}

.site-breadcrumb__item {
  display: flex;
  align-items: center;
  color: #6b7280;
}

.site-breadcrumb__item::after {
  content: '›';
  margin: 0 0.5rem;
  color: #9ca3af;
}

.site-breadcrumb__item:last-child::after {
  display: none;
}

.site-breadcrumb__item a {
  color: #5d020a;
  text-decoration: none;
  transition: color 0.2s;
}

.site-breadcrumb__item a:hover {
  color: #303d49;
  text-decoration: underline;
}

.site-breadcrumb__item--current {
  color: #374151;
  font-weight: 500;
}

.site-promotion-notice {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0;
  padding: 0.25rem 0.75rem;
  background-color: #f0f0f0;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}

@media (max-width: 768px) {
  .site-breadcrumb-inner {
    padding: 0 1rem;
  }

  .site-breadcrumb__list {
    font-size: 0.75rem;
  }
}

/* ================================================
   ニュース単体ページ
   ================================================ */
.news-single {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.news-entry {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.news-entry__header {
  padding: 2.5rem 2.5rem 2rem;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

.news-entry__date {
  display: inline-block;
  font-size: 0.875rem;
  color: #5d020a;
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.75rem;
  background-color: rgba(93, 2, 10, 0.08);
  border-radius: 4px;
}

.news-entry__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1e22;
  line-height: 1.4;
  margin: 0;
}

.news-entry__content {
  padding: 2.5rem;
  font-size: 1rem;
  line-height: 1.8;
  color: #374151;
}

.news-entry__content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1a1e22;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #5d020a;
}

.news-entry__content h2:first-child {
  margin-top: 0;
}

.news-entry__content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #303d49;
  margin: 2rem 0 0.75rem;
}

.news-entry__content p {
  margin: 0 0 1.25rem;
}

.news-entry__content ul,
.news-entry__content ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}

.news-entry__content li {
  margin-bottom: 0.5rem;
}

.news-entry__content a {
  color: #5d020a;
  text-decoration: underline;
  transition: color 0.2s;
}

.news-entry__content a:hover {
  color: #303d49;
}

.news-entry__content strong {
  font-weight: 700;
  color: #1a1e22;
}

.news-entry__footer {
  padding: 1.5rem 2.5rem;
  border-top: 1px solid #e5e7eb;
  background-color: #fafafa;
}

.news-entry__footer .post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.news-entry__footer .nav-links {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

.news-entry__footer .nav-previous a,
.news-entry__footer .nav-next a {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #5d020a;
  text-decoration: none;
  border: 1px solid #5d020a;
  border-radius: 6px;
  transition: all 0.2s;
}

.news-entry__footer .nav-previous a:hover,
.news-entry__footer .nav-next a:hover {
  background-color: #5d020a;
  color: #fff;
}

@media (max-width: 768px) {
  .news-single {
    padding: 1.5rem 1rem 3rem;
  }

  .news-entry__header {
    padding: 1.5rem;
  }

  .news-entry__title {
    font-size: 1.375rem;
  }

  .news-entry__content {
    padding: 1.5rem;
  }

  .news-entry__footer {
    padding: 1rem 1.5rem;
  }

  .news-entry__footer .nav-links {
    flex-direction: column;
  }
}

/* ================================================
   ニュースアーカイブページ
   ================================================ */
.news-archive {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.news-archive__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.news-archive__title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1e22;
  margin: 0 0 0.5rem;
}

.news-archive__description {
  font-size: 1rem;
  color: #6b7280;
  margin: 0;
}

.news-archive__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-archive__item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #e5e7eb;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.news-archive__item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.news-archive__item-date {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #5d020a;
  background-color: rgba(93, 2, 10, 0.08);
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  white-space: nowrap;
}

.news-archive__item-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1e22;
  margin: 0;
  line-height: 1.5;
}

.news-archive__item-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.news-archive__item-title a:hover {
  color: #5d020a;
}

.news-archive__pagination {
  margin-top: 2.5rem;
  text-align: center;
}

.news-archive__empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #6b7280;
}

@media (max-width: 768px) {
  .news-archive {
    padding: 1.5rem 1rem 3rem;
  }

  .news-archive__item {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
  }

  .news-archive__title {
    font-size: 1.5rem;
  }
}
