@charset "UTF-8";
/* ==========================================================================
   Theme Name: マネーパスポート
   Theme URI: https://m-passport.jp//
   Description: マネーパスポートテーマ
   Author: マネーパスポート
   Version: 0.7.0
   ========================================================================== */

/* ==========================================================================
   3. Layout (汎用レイアウト)
   * Prefix: l-
   ========================================================================== */
/* Container */
.l-container {
  max-width: var(--width-container, 1200px);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: 0 var(--mobile-gutter, 20px);
}

/* Grid System */
.l-grid {
  display: grid;
  gap: var(--mobile-gutter);
  width: 100%;
}

@media screen and (min-width: 768px) {
  .l-grid {
    gap: var(--space-xl);
  }
}

.l-grid--cols-1 {
  grid-template-columns: 1fr;
}

.l-grid--cols-2 {
  grid-template-columns: repeat(2, 1fr);
  gap: var(--mobile-gutter);
}

.l-grid--cols-2-lg {
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media screen and (min-width: 768px) {
  .l-grid--cols-2-lg {
    grid-template-columns: repeat(2, 1fr);
  }
}

.l-grid--cols-3 {
  grid-template-columns: repeat(2, 1fr);
  gap: var(--mobile-gutter);
}

@media screen and (min-width: 768px) {
  .l-grid--cols-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }
}

.l-grid--cols-4 {
  grid-template-columns: repeat(2, 1fr);
  gap: var(--mobile-gutter);
}

@media screen and (min-width: 768px) {
  .l-grid--cols-4 {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }
}

@media screen and (min-width: 1024px) {
  .l-grid--cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.l-grid--cols-6 {
  grid-template-columns: repeat(2, 1fr);
}

@media screen and (min-width: 768px) {
  .l-grid--cols-6 {
    grid-template-columns: repeat(6, 1fr);
  }
}

.l-grid--cols-8 {
  grid-template-columns: repeat(2, 1fr);
}

@media screen and (min-width: 1024px) {
  .l-grid--cols-8 {
    grid-template-columns: repeat(8, 1fr);
  }
}

.l-grid--cols-12 {
  grid-template-columns: repeat(2, 1fr);
}

@media screen and (min-width: 768px) {
  .l-grid--cols-12 {
    grid-template-columns: repeat(12, 1fr);
  }
}


/* Grid Columns */
.l-grid__col-1 {
  grid-column: span 1;
}

.l-grid__col-2 {
  grid-column: span 2;
}

.l-grid__col-3 {
  grid-column: span 3;
}

.l-grid__col-4 {
  grid-column: span 4;
}

.l-grid__col-5 {
  grid-column: span 5;
}

.l-grid__col-6 {
  grid-column: span 6;
}

.l-grid__col-7 {
  grid-column: span 7;
}

.l-grid__col-8 {
  grid-column: span 8;
}

.l-grid__col-9 {
  grid-column: span 9;
}

.l-grid__col-10 {
  grid-column: span 10;
}

.l-grid__col-11 {
  grid-column: span 11;
}

.l-grid__col-12 {
  grid-column: span 12;
}

.xl-l-grid__col-10 {
  grid-column: auto;
}

@media screen and (min-width: 1280px) {
  .xl-l-grid__col-10 {
    grid-column: span 10;
  }
}

.xl-l-grid__start-1 {
  grid-column-start: auto;
}

@media screen and (min-width: 1280px) {
  .xl-l-grid__start-1 {
    grid-column-start: 1;
  }
}


.l-grid__item-center-span-2 {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc((100% - var(--mobile-gutter)) / 2) !important;
}

/* Flexbox Layouts */
.l-flex {
  display: flex;
  gap: var(--mobile-gutter);
}

.l-flex--column {
  flex-direction: column;
}

.l-flex--wrap {
  flex-wrap: wrap;
}

.l-flex--center {
  align-items: center;
  justify-content: center;
}

.l-flex--between {
  justify-content: space-between;
}

.l-flex--around {
  justify-content: space-around;
}

.l-flex--start {
  justify-content: flex-start;
}

.l-flex--end {
  justify-content: flex-end;
}


/* 2-Column Structure (Content + Sidebar) */
.l-layout {
  display: grid;
  grid-template-columns: 100%;
  grid-template-areas:
    "main"
    "side";
  gap: var(--space-xl, 32px);
  padding: var(--space-xl, 32px) var(--mobile-gutter, 20px);
  max-width: var(--width-container, 1200px);
  margin: 0 auto;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.page-template-page-all-archives .l-layout,
.archive .l-layout,
.single .l-layout {
  padding: var(--space-6xl, 120px) var(--mobile-gutter, 20px) var(--space-4xl, 120px);
}

@media screen and (min-width: 1024px) {

  .page-template-page-all-archives .l-layout,
  .archive .l-layout,
  .single .l-layout {
    padding: var(--space-8xl, 120px) var(--mobile-gutter, 20px) var(--space-4xl, 120px);
  }
}

@media screen and (min-width: 1024px) {
  .l-layout {
    grid-template-columns: 1fr var(--width-sidebar, 336px);
    grid-template-areas: "main side";
    padding: var(--space-4xl, 80px) var(--mobile-gutter, 20px);
    gap: var(--space-2xl, 48px);
  }

  /* Sidebar Left Variant */
  body.l-content--left-content .l-layout {
    grid-template-columns: 1fr var(--width-sidebar, 336px);
    grid-template-areas: "main side";
  }

  /* Sidebar Right Variant (Actually moves sidebar to the left) */
  body.l-content--right-content .l-layout {
    grid-template-columns: var(--width-sidebar, 336px) 1fr;
    grid-template-areas: "side main";
  }

  /* 1 Column Wrapper Case on PC */
  body.l-content--one-column .l-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "main";
    max-width: var(--width-container-small, 1000px);
  }
}

.l-content {
  padding: var(--space-4xl) 0;
}

/* List/Archive Grid Layout */
.l-post-list {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
}

@media screen and (min-width: 768px) {
  .l-post-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Main Content Area */
.l-main {
  grid-area: main;
  width: 100%;
}

@media screen and (min-width: 1920px) {
  main {
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Sidebar Wrapper */
.l-sidebar {
  display: flex;
  /* Mobile hidden by default in Mobile-First */
  grid-area: side;
  width: 100%;
  position: relative;
  flex-direction: column;
}

@media screen and (min-width: 1024px) {
  .l-sidebar {
    display: flex;
    width: var(--width-sidebar, 336px);
  }

  body.l-content--one-column .l-sidebar {
    display: none;
  }
}

.l-sidebar .l-post-list {
  grid-template-columns: 1fr !important;
  display: grid !important;
}

/* Footer Layout Wrapper */
.l-footer__wrapper {
  padding-top: var(--section-spacing);
  padding-bottom: var(--space-lg);
  background-color: var(--color-text-body);
  color: var(--color-text-white);
}

.l-footer__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6xl);
}

@media screen and (min-width: 1024px) {
  .l-footer__content {
    flex-direction: row;
    justify-content: space-between;
    gap: var(--space-4xl);
  }
}

.l-footer__navigation {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex-grow: 1;
}

@media screen and (min-width: 768px) {
  .l-footer__navigation {
    flex-direction: row;
    gap: var(--space-2xl);
  }
}

.l-footer__nav {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
}

.l-footer__nav__list {
  position: relative;
  padding: var(--space-lg) 0;
}

.l-footer__nav__list::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-border-base, #e0e0e0);
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 1.2s var(--easeOutCubic);
}

.l-footer__nav__link {
  position: relative;
  display: block;
}

.l-footer__nav__link::after {
  content: "";
  position: absolute;
  bottom: calc(-1 * var(--space-sm));
  left: 0;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background-color: rgba(var(--color-white-rgb), 0.5);
  transition: transform var(--transition-hover);
}

.l-footer__nav__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.l-footer__nav__str .u-lang-en {
  color: inherit;
  font-size: var(--font-2xl);
  font-weight: var(--font-weight-semibold);
}

.l-footer__nav__str .u-lang-ja {
  padding-left: var(--space-md);
  color: inherit;
  font-size: var(--font-sm);
}

.l-footer__sub {
  margin-top: var(--space-md);
}

.l-footer__sub__list {
  position: relative;
  padding: var(--space-sm) 0 var(--space-sm) var(--space-md);
}

.l-footer__sub__list::before {
  content: "";
  position: absolute;
  top: 50%;
  left: var(--space-xs);
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: var(--border-radius-full);
  background-color: currentColor;
}

.l-footer__sub__link {
  position: relative;
  display: block;
  color: inherit;
  font-size: var(--font-title-sm);
}

.l-footer__sub__link::after {
  content: "";
  position: absolute;
  bottom: calc(-1 * var(--space-xs));
  left: 0;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background-color: rgba(var(--color-white-rgb), 0.5);
  transition: transform var(--transition-hover);
}

.l-footer__sub__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.l-footer__btm {
  padding-bottom: var(--space-lg);
}

.l-footer__btm__list {
  position: relative;
  padding: var(--space-sm) 0;
}

.l-footer__btm__link {
  position: relative;
  display: inline-flex;
}

.l-footer__btm__link::after {
  content: "";
  position: absolute;
  bottom: calc(-1 * var(--space-xs));
  left: 0;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background-color: rgba(var(--color-white-rgb), 0.5);
  transition: transform var(--transition-hover);
}

.l-footer__btm__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.l-footer__btm__str .u-lang-en {
  color: inherit;
  font-size: var(--font-title-lg);
  font-weight: var(--font-weight-light);
}

.l-footer__btm__str .u-lang-ja {
  padding-left: var(--space-lg);
  color: var(--color-text-white);
  font-size: var(--font-title-sm);
}

.l-footer__copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xl);
  justify-content: center;
  margin-top: var(--section-spacing);
  font-size: var(--font-xs);
  text-align: center;
  font-weight: var(--font-weight-light);
}

@media screen and (min-width: 768px) {
  .l-footer__copy {
    justify-content: flex-start;
    text-align: left;
    margin-top: var(--space-lg);
  }
}

.l-footer__privacy {
  position: static;
  color: var(--color-text-white);
  font-size: var(--font-sm);
  opacity: 0.7;
  transition: opacity var(--duration-base);
}

@media screen and (min-width: 768px) {
  .l-footer__privacy {
    position: absolute;
    right: 0;
    bottom: 0;
  }
}

.l-footer__privacy:hover {
  opacity: 1;
}

.l-footer__utility {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  margin-top: 0;
}

@media screen and (min-width: 1024px) {
  .l-footer__utility {
    flex-direction: row;
    justify-content: flex-end;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
  }
}

.l-footer__utility__list {
  position: relative;
  padding: var(--space-sm) 0 var(--space-sm) var(--space-md);
}

.l-footer__utility__list::before {
  content: "";
  position: absolute;
  top: 50%;
  left: var(--space-xs);
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: var(--border-radius-full);
  background-color: currentColor;
}

.l-footer__utility__link {
  position: relative;
  display: block;
  color: inherit;
  font-size: var(--font-title-sm);
  opacity: 0.7;
  transition: opacity var(--duration-base);
}

.l-footer__utility__link::after {
  content: "";
  position: absolute;
  bottom: calc(-1 * var(--space-xs));
  left: 0;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background-color: rgba(var(--color-white-rgb), 0.5);
  transition: transform var(--transition-hover);
}

.l-footer__utility__link:hover {
  opacity: 1;
}

.l-footer__utility__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Footer Address Text */
.l-footer__logo__link img {
  width: 220px;
}

.l-footer__address {
  margin-top: var(--space-2xl);
  font-size: var(--font-sm);
}

@media screen and (min-width: 1024px) {
  .l-footer__address {
    margin-top: var(--space-4xl);
  }
}

/* ==========================================================================
   4. Structure: Regional Components (構造)
   * Header -> Sidebar -> (Footer is layout)
   ========================================================================== */
/* --- Header (ヘッダー) --- */
.c-header {
  display: flex;
  align-items: center;
  position: fixed;
  right: 0;
  left: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-white-opacity-20);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(var(--color-white-rgb), .4);
  top: 0;
  border-radius: 0;
  transform: none;
  width: 100%;
  padding: var(--mobile-gutter);
}

@media screen and (min-width: 768px) {
  .c-header {
    padding: var(--space-md) var(--mobile-gutter);
    width: auto;
    margin: auto;
    border-radius: var(--border-radius-md);
    transform: scaleX(0.96);
    top: var(--space-lg);
  }
}

@media screen and (min-width: 1920px) {
  .c-header {
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
  }
}


.c-header__inner {
  width: 100%;
  height: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.c-header__logo {
  width: calc(var(--space-4xl) * 1.5);
  margin: 0;
}

@media screen and (min-width: 768px) {
  .c-header__logo {
    width: var(--space-8xl);
  }
}

.c-header__logo-img {
  max-width: 100%;
  height: auto;
  display: block;
}

.c-header__logo-text {
  font-size: var(--font-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-main);
}

/* Nav Wrapper */
.c-header__nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.c-header__nav-item {
  width: fit-content;
  cursor: pointer;
  position: relative;
  display: none;
}

@media screen and (min-width: 1024px) {
  .c-header__nav-item {
    display: list-item;
  }
}

.c-header__nav-item--cta {
  display: none;
}

@media screen and (min-width: 1024px) {
  .c-header__nav-item--cta {
    display: flex;
    align-items: center;
  }
}

/* Header Hover Animation (Structure Specific) */
.c-header__nav-item:hover .u-hover-motion:after {
  transform-origin: left top;
  transform: scale(1, 1);
}

.c-header__nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: var(--font-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-main);
}

.c-header__nav-arrow {
  width: var(--font-lg);
  height: var(--font-lg);
}

/* CTA PC Button */
.c-header .c-btn--header-cta {
  width: clamp(14rem, 15vw, 18rem);
  height: var(--space-3xl);
  background-color: var(--color-text-body);
  color: var(--color-text-white);
  border-radius: var(--border-radius-full);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: background-color var(--transition-hover);
}

/* CTA PC Button */
.c-header .c-btn--header-cta:hover {
  background-color: var(--color-primary);
}

/* Hamburger SP */
.c-header__hamburger {
  display: flex;
  padding: var(--space-xs) 0 var(--space-xs) var(--space-xs);
  cursor: pointer;
}

@media screen and (min-width: 1024px) {
  .c-header__hamburger {
    display: none;
  }
}

.c-header__hamburger-bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.c-header__hamburger-bar {
  width: var(--space-lg);
  height: 2px;
  border-radius: var(--border-radius-sm);
  background-color: var(--color-text-body);
}


/* --- Mega Menu (メガメニュー) --- */
.c-header-mega {
  display: none;
}

@media screen and (min-width: 1024px) {
  .c-header-mega {
    display: flex;
    width: var(--width-container-small);
    position: fixed;
    /* absolute -> fixed に変更して親要素の影響を断ち切る */
    top: 100px;
    /* ヘッダーの高さ等の調整が必要 */
    left: 0;
    right: 0;
    margin: auto;
    gap: var(--space-3xl);
    box-shadow: 0 var(--space-xl) var(--space-xl) rgba(0, 0, 0, .3);
    padding: var(--space-2xl);
    background-color: var(--color-bg-dark-translucent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-2xl);
    z-index: 100;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    /* 登場時の演出用 */
    transition: all var(--transition-hover);
    align-items: flex-start;
  }

  /* ホバー時の挙動 */
  .c-header__nav-item:hover .c-header-mega {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }
}

.c-header-mega__heading {
  width: calc(var(--space-4xl) * 3);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.c-header-mega__subtitle {
  line-height: var(--line-height-tight);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.c-header-mega__title {
  color: var(--color-text-white);
  margin: 0;
}

.c-header-mega__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl) var(--space-md);
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.c-header-mega__item {
  height: 100%;
}

.c-header-mega__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.c-header-mega__item img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  margin-bottom: var(--space-xs);
}

.c-header-mega__label {
  font-size: var(--font-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-white);
  z-index: 1;
  transition: color var(--transition-hover);
}

.c-header-mega__link:hover .c-header-mega__label {
  color: var(--color-primary);
}

/* --- Drawer (ドロワーメニュー / c-sp-nav) --- */
.c-sp-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
}

@media screen and (min-width: 1024px) {
  .c-sp-nav {
    display: none !important;
  }
}

.c-sp-nav.is-open {
  display: block;
}

.c-sp-nav__overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  inset: 0;
  background-color: var(--color-overlay-dark);
  z-index: 10;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.c-sp-nav__container {
  position: fixed;
  inset: auto 0 0 0;
  margin: auto;
  width: calc(100% - var(--mobile-gutter));
  max-height: 92%;
  z-index: 20;
  overflow-y: auto;
  background-color: var(--color-bg-dark-translucent);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  scrollbar-width: none;
}

.c-sp-nav__container::-webkit-scrollbar {
  display: none;
}

.c-sp-nav__close {
  z-index: 30;
  display: flex;
  justify-content: center;
  align-items: center;
  width: var(--space-4xl);
  height: var(--space-4xl);
  right: 0;
  top: 0;
  cursor: pointer;
  position: absolute;
  background: transparent;
  border: none;
  padding: 0;
  outline: none;
  appearance: none;
}

.c-sp-nav__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: 0;
  margin: 0;
  list-style: none;
}

.c-sp-nav__nav-label,
.c-sp-nav__nav-link,
.c-sp-nav__nav-text,
.c-sp-nav__nav-subtext,
.c-sp-nav__cta-label {
  font-size: var(--font-md) !important;
  font-weight: var(--font-weight-bold) !important;
  line-height: var(--line-height-tight);
}

.c-sp-nav__nav-item {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  padding: var(--space-md) 0;
}

.c-sp-nav__nav-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text-white);
  margin: 0;
}

.c-sp-nav__nav-item.is-open .c-sp-nav__nav-arrow {
  transform: rotate(180deg);
}

.c-sp-nav__nav-arrow {
  width: var(--font-lg);
  height: var(--font-lg);
  color: var(--color-text-white);
}

.c-sp-nav__nav-desc,
.c-sp-nav__nav-desc-inline,
.c-sp-nav__nav-subdesc {
  display: none !important;
}

.c-sp-nav__nav-link {
  display: flex;
  align-items: center;
  color: var(--color-text-white);
  text-decoration: none;
}

.c-sp-nav__nav-accordion {
  height: 0;
  overflow: hidden;
  transition: height var(--transition-fast);
}

.c-sp-nav__nav-sublist {
  margin-top: var(--space-sm);
  padding: var(--space-sm) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  list-style: none;
}

.c-sp-nav__nav-sublink {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  color: var(--color-text-white);
}

.c-sp-nav__nav-sublink::before {
  content: "";
  width: 4px;
  height: 4px;
  background-color: var(--color-text-white);
  border-radius: var(--border-radius-full);
  flex-shrink: 0;
}

.c-sp-nav__cta {
  margin-top: var(--space-md);
}

.c-sp-nav__cta-card {
  border: 1px solid var(--color-white-opacity-10);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--border-radius-md);
}

.c-sp-nav__cta-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--color-text-white);
}

.c-sp-nav__cta-label {
  flex: 1;
}

.c-sp-nav__cta-border {
  width: 1px;
  height: var(--space-2xl);
  background-color: var(--color-white-opacity-20);
  margin: 0 var(--space-lg);
}

.c-sp-nav__cta-icon {
  width: var(--font-lg);
  height: var(--font-lg);
  font-size: var(--font-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.c-sp-nav__bottom {
  margin-top: var(--space-3xl);
  border-top: 1px solid var(--color-white-opacity-20);
  padding: var(--space-xl) 0;
}

.c-sp-nav__policies {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.c-footer__secondary-link {
  color: var(--color-text-white);
  font-size: var(--font-sm);
  text-decoration: none;
}

.c-sp-nav__copyright {
  display: block;
  text-align: center;
  font-size: var(--font-xs);
  opacity: 0.6;
}

/* --- Sidebar Widgets (サイドバーウェジェット) --- */
.c-sidebar-widget {
  margin-bottom: var(--space-3xl);
}

.c-sidebar-widget__title {
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-md);
  border-left: 4px solid var(--color-primary);
  padding-left: var(--space-sm);
}

.c-sidebar-contact {
  padding: var(--space-lg);
  background: var(--grad-primary);
  /* グラデーション背景に変更 */
  border-radius: var(--border-radius-lg);
  text-align: center;
  margin-bottom: var(--space-3xl);
  color: var(--color-text-white);
}

@media screen and (min-width: 768px) {
  .c-sidebar-contact {
    padding: var(--space-xl);
  }
}

.c-sidebar-contact__subject {
  font-size: var(--font-lg);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-normal);
  margin-top: var(--space-sm);
  margin-bottom: var(--space-lg);
}

@media screen and (min-width: 768px) {
  .c-sidebar-contact__subject {
    font-size: var(--font-md);
  }
}

/* WP Menu List Styling */
.c-sidebar-contact__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  list-style: none;
  padding: 0;
  margin: 0;
}

.c-sidebar-contact__list li {
  width: 100%;
}

.c-sidebar-contact__list li a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: var(--space-md);
  background-color: var(--color-bg-surface);
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-md);
  text-decoration: none;
  border-radius: var(--border-radius-full);
  box-shadow: var(--shadow-sm);
  transition: opacity var(--duration-base) var(--easeOutCubic), transform var(--duration-base) var(--easeOutCubic);
}

.c-sidebar-contact__list li a:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.c-sidebar-contact__button {
  height: 48px;
  font-size: var(--font-base);
  width: 200px;
  margin: 0 auto;
  border-radius: var(--border-radius-full);
  background: var(--color-primary);
  color: var(--color-text-white);
  font-weight: var(--font-weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  transition: transform var(--transition-hover), box-shadow var(--transition-hover), background-color var(--transition-hover);
}

.c-sidebar-contact__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  background-color: var(--color-primary-dark, #004494);
}



/* Tags */
.c-sidebar-tags {
  width: 100%;
  position: relative;
  overflow: hidden;
  gap: var(--space-lg);
  display: flex;
  flex-direction: column;
}

/* Sidebar Heading */
.c-sidebar-heading {
  font-size: 22px;
  color: var(--color-text-body);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-md);
}

@media screen and (min-width: 768px) {
  .c-sidebar-heading {
    font-size: var(--font-xl);
  }
}


.c-sidebar-tags__content {
  position: relative;
  width: 100%;
  z-index: 2;
  gap: var(--space-xs);
  display: flex;
  flex-wrap: wrap;
}

.c-sidebar-tags__item {
  border-radius: var(--border-radius-full);
  margin-bottom: var(--space-xs);
}

.c-sidebar-tags__link,
.c-sidebar-tags__item>a {
  position: relative;
  padding: var(--space-xs) var(--space-md);
  gap: var(--space-xs);
  width: fit-content;
  border: solid 1px var(--color-border-main);
  border-radius: var(--border-radius-md);
  font-size: var(--font-sm);
  color: var(--color-text-body);
  background: var(--color-bg-surface);
  text-decoration: none;
  display: inline-block;
  transition: background var(--transition-hover), color var(--transition-hover);
}

.c-sidebar-tags__link:hover,
.c-sidebar-tags__item>a:hover {
  background: var(--color-primary);
  color: var(--color-text-white);
}

/* Recommend */
.c-sidebar-recommend {
  gap: var(--space-sm);
  display: flex;
  flex-direction: column;
}

/* .c-sidebar-recommend__subject removed (replaced by .c-sidebar-heading) */

.c-sidebar-recommend__content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.c-sidebar-recommend__item {
  border-bottom: 1px solid var(--color-border-main);
  padding-bottom: var(--space-xs);
}

.c-sidebar-recommend__link {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  width: 100%;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  cursor: pointer;
  transition: background-color var(--transition-hover), opacity var(--transition-hover);
  border-radius: var(--border-radius-md);
}

.c-sidebar-recommend__link:hover {
  background-color: rgba(var(--color-primary-rgb), 0.05);
  opacity: 0.9;
}

.c-sidebar-recommend__thumb {
  width: 100px;
  aspect-ratio: 1/1;
  flex-shrink: 0;
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.c-sidebar-recommend__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.c-sidebar-recommend__info {
  width: 100%;
  gap: var(--space-xs);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}



.c-sidebar-recommend__title {
  font-size: var(--font-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-body);
  line-height: var(--line-height-tight);
}




/* ==========================================================================
   5. Modules: Components (汎用コンポーネント)
   ========================================================================== */

/* -------------------------------------------
   5.1 Common (共通)
   ------------------------------------------- */
/* --- Meta Info (メタ情報) --- */
.c-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  color: var(--color-text-muted);
  font-size: var(--font-sm);
  line-height: 1;
}

.c-meta__date {
  display: inline-block;
  font-size: var(--font-xs);
}

/* --- Tag Component (c-tag) --- */
.c-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: var(--font-xs);
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--color-border-main);
  background-color: var(--color-bg-surface);
  color: var(--color-text-sub);
  text-decoration: none;
  transition: all var(--transition-hover);
  border-radius: var(--border-radius-sm);
  line-height: 1;
}


.c-tag--category {
  border-radius: var(--border-radius-full);
}


.c-tag:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* --- Section Title (セクション見出し) --- */
.c-section-title {
  font-size: var(--font-lg);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-md);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: var(--space-xs);
}

/* --- Tag List (タグリスト) --- */
.c-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  list-style: none;
  padding: 0;
  margin: 0;
}

.c-tag-list__item {
  display: block;
}

/* Buttons */
.c-btn {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.c-btn--square {
  display: block;
  width: var(--space-md);
  height: var(--space-md);
  position: relative;
}

.c-btn--square::before,
.c-btn--square::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: var(--space-lg);
  background-color: var(--color-text-white);
}

.c-btn--square::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.c-btn--square::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Search Form */
.c-search-form {
  position: relative;
  border: 1px solid var(--color-border-dark);
  border-radius: var(--border-radius-md);
  background: var(--color-bg-surface);
  transition: border-color var(--transition-hover);
}

.c-search-form:focus-within {
  border-color: var(--color-primary);
}

.c-search-form__input {
  width: 100%;
  padding: 12px var(--space-3xl) 12px var(--space-md);
  border: none;
  background: transparent;
  font-size: var(--font-base);
  outline: none;
}

.c-search-form__submit {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: var(--font-lg);
  transition: color var(--transition-hover);
}

.c-search-form__submit:hover {
  color: var(--color-primary);
}



/* Breadcrumb */
.c-breadcrumb {
  font-size: var(--font-xs);
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.c-breadcrumb__item:not(:last-child)::after {
  content: "/";
  margin-left: var(--space-sm);
}

.c-breadcrumb__link {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-hover);
  position: relative;
  display: inline-block;
}

.c-breadcrumb__link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background-color: var(--color-primary);
  transition: transform var(--transition-hover);
}

.c-breadcrumb__link:hover {
  color: var(--color-primary);
}

.c-breadcrumb__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Cards */
.c-card {
  width: 100%;
  margin: 0;
  display: flex !important;
  flex-direction: column;
  background: var(--color-bg-surface);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  text-decoration: none !important;
  color: inherit !important;
}

.c-card__wrapper {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.c-card__img-box {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
}

.c-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-hover);
}

.c-card:hover .c-card__img {
  transform: scale(1.05);
}

.c-card__body {
  position: relative;
  background: var(--color-bg-surface);
  padding: var(--space-md) var(--space-md) var(--space-4xl) var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
  flex: 1;
}

@media screen and (min-width: 768px) {
  .c-card__body {
    padding: var(--space-lg) calc(var(--space-4xl) * 2) var(--space-lg) var(--space-lg);
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
  }
}

.c-card--simple .c-card__body {
  padding: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-sm);
  flex: 1;
  flex-direction: column;
}



.c-card__category {
  font-size: var(--font-xs);
  padding: var(--space-xs);
  width: fit-content;
  border: solid 1px var(--color-border-main);
  border-radius: var(--border-radius-sm);
  color: var(--color-text-muted);
  background: var(--color-bg-surface);
  text-decoration: none;
  display: inline-block;
}

.c-card__title {
  font-size: var(--font-md);
  line-height: var(--line-height-tight);
  margin: 0;
  font-weight: var(--font-weight-bold);
  flex: 1;
  color: var(--color-text-main);
  transition: color var(--transition-hover);
}

.c-card:hover .c-card__title {
  color: var(--color-primary);
}

.c-card__date {
  display: block;
  font-size: var(--font-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
}

@media screen and (min-width: 768px) {
  .c-card__date {
    margin-left: auto;
  }
}

.c-card--simple .c-card__date {
  margin-left: 0;
}

.c-card__btn {
  width: 100%;
  height: var(--space-3xl);
  color: var(--color-text-white);
  background: var(--color-text-body);
  font-size: var(--font-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  transition: background-color var(--transition-hover);
  text-decoration: none;
}

@media screen and (min-width: 768px) {
  .c-card__btn {
    width: calc(var(--space-4xl) * 1.8);
    height: 100%;
    top: 0;
  }
}

.c-card__btn:after {
  content: '';
  position: absolute;
  width: var(--space-md);
  height: 1px;
  background: var(--color-text-white);
  top: 50%;
  right: var(--space-sm);
}

.c-card__btn span {
  font-weight: var(--font-weight-bold);
  padding-right: var(--space-lg);
}

.c-card:hover .c-card__btn {
  background: var(--color-primary);
}


/* Slider Generic */
.c-slider.swiper {
  width: 100%;
  height: auto;
  overflow: visible !important;
  margin: 0 auto;
}

.c-slider .swiper-pagination {
  bottom: calc(var(--space-xl) * -1) !important;
  position: absolute;
  left: 0;
  width: 100%;
  text-align: center;
  line-height: 1;
}

.c-slider__slide {
  flex-shrink: 0;
  transition: transform var(--duration-base) var(--easeOutCubic), opacity var(--duration-base) ease;
  transform: scale(0.9) !important;
  opacity: 0.6;
  padding: 0 var(--space-xs);
  cursor: pointer;
}

@media screen and (min-width: 768px) {
  .c-slider__slide {
    width: var(--width-container) !important;
    max-width: 100%;
    transform: scale(0.85);
    opacity: 0.4;
    padding: 0;
  }
}

.c-slider__slide.swiper-slide-active,
.c-slider__slide.swiper-slide-duplicate-active {
  transform: scale(1.0) !important;
  opacity: 1 !important;
  z-index: 10;
}


.c-slider__prev,
.c-slider__next {
  display: none;
  color: var(--color-text-main);
  z-index: 20;
}

@media screen and (min-width: 768px) {

  .c-slider__prev,
  .c-slider__next {
    display: flex;
  }
}

.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: var(--color-bg-surface);
  transition: all var(--transition-hover);
}

.swiper-pagination-bullet-active {
  background: var(--color-primary) !important;
  opacity: 1;
  width: 24px;
  border-radius: 4px;
}


/* -------------------------------------------
   5.2 List (一覧ページ)
   ------------------------------------------- */
/* Post Item */
.c-post-item {}

@media screen and (min-width: 1024px) {
  .c-post-item {}
}

.c-post-item__title {
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-md);
  letter-spacing: var(--letter-spacing-tight);
}

.c-post-item__title-link {
  color: var(--color-text-body);
  text-decoration: none;
  transition: color var(--transition-hover);
}

.c-post-item__title-link:hover {
  color: var(--color-primary);
}



.c-post-item__content {
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-lg);
}

.c-post-item__content a:not([class]) {
  color: var(--color-text-link, #0056b3);
  text-decoration: none;
  position: relative;
  display: inline-block;
  font-weight: 500;
}

.c-post-item__content a:not([class])::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background-color: currentColor;
  transition: transform var(--transition-hover);
}

.c-post-item__content a:not([class]):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.c-post-item--single .c-post-item__content h2,
.c-post-item--single .c-post-item__content h3,
.c-post-item--single .c-post-item__content h4,
.c-post-item--single .c-post-item__content h5,
.c-post-item--single .c-post-item__content h6 {
  position: relative;
  padding-left: 0.6em;
}

.c-post-item--single .c-post-item__content h2 {
  padding: var(--space-md) var(--space-lg) var(--space-md) var(--space-xl);
  border-radius: var(--border-radius-md);
  background-color: var(--color-bg-white-translucent);
  box-shadow: var(--box-shadow-sm);
}

.c-post-item--single .c-post-item__content h2::before,
.c-post-item--single .c-post-item__content h3::before,
.c-post-item--single .c-post-item__content h4::before,
.c-post-item--single .c-post-item__content h5::before,
.c-post-item--single .c-post-item__content h6::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 0.3em;
  height: 0.3em;
  transform: translateY(-50%);
  background-color: var(--color-bg-inverse);
  border-radius: 50%;
}

.c-post-item--single .c-post-item__content h2::before {
  left: 0.6em;
  background-color: var(--color-secondary);
}

.c-post-item--single .c-post-item__content ul,
.c-post-item--single .c-post-item__content ol {
  margin: var(--space-md) 0;
  padding-left: 0;
}

.c-post-item--single .c-post-item__content ul li,
.c-post-item--single .c-post-item__content ol li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: var(--space-xs);
  line-height: var(--line-height-relaxed);
}

/* Post Navigation */
.c-post-nav {
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.c-post-nav .nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

@media screen and (min-width: 768px) {
  .c-post-nav .nav-links {
    flex-direction: row;
    justify-content: space-between;
  }
}

.c-post-nav .nav-previous,
.c-post-nav .nav-next {
  width: 100%;
}

.c-post-nav a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: var(--space-lg);
  background-color: var(--color-bg-surface);
  border-radius: var(--border-radius-md);
  text-decoration: none;
  transition: all var(--duration-base) var(--easeOutCubic);
  box-shadow: var(--shadow-sm);
}

.c-post-nav a:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.c-post-nav__label {
  font-size: var(--font-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
}

.c-post-nav .nav-previous .c-post-nav__label::before {
  content: "\ea64";
  /* remixicon arrow-left */
  font-family: "remixicon";
  margin-right: var(--space-xs);
  font-size: 1.2em;
}

.c-post-nav .nav-next .c-post-nav__label {
  justify-content: flex-end;
}

.c-post-nav .nav-next .c-post-nav__label::after {
  content: "\ea6e";
  /* remixicon arrow-right */
  font-family: "remixicon";
  margin-left: var(--space-xs);
  font-size: 1.2em;
}

.c-post-nav__title {
  font-size: var(--font-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-body);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.c-post-nav .nav-next .c-post-nav__title {
  text-align: right;
}

/* Unordered List Dots */
.c-post-item--single .c-post-item__content ul li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0.4em;
  width: 0.35em;
  height: 0.35em;
  background-color: var(--color-primary);
  border-radius: 50%;
}

/* Ordered List Numbers */
.c-post-item--single .c-post-item__content ol {
  counter-reset: content-list;
}

.c-post-item--single .c-post-item__content ol li {
  counter-increment: content-list;
}

.c-post-item--single .c-post-item__content ol li::before {
  content: counter(content-list);
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-family: var(--font-family-en);
  font-weight: var(--font-weight-bold);
  font-size: 0.9em;
}

/* Pagination */
.c-pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin: var(--space-3xl) 0 var(--space-4xl);
}

.c-pagination__link,
.c-pagination__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  padding: 0;
  /* Remove padding to center content perfectly */
  border: none;
  border-radius: 50%;
  /* Circle */
  text-decoration: none;
  color: var(--color-text-body);
  background: var(--color-bg-surface);
  box-shadow: var(--shadow-sm);
  /* Match Follow Box shadow */
  transition: all var(--transition-hover);
  font-weight: var(--font-weight-bold);
  font-size: 1.1rem;
  font-family: var(--font-family-en);
}

.c-pagination__link:hover {
  background: var(--color-bg-surface);
  color: var(--color-text-main);
  transform: translateY(-2px);
  /* Lift effect */
  box-shadow: var(--shadow-md);
}

.c-pagination__item--current {
  background: var(--color-primary);
  color: var(--color-text-white);
  cursor: default;
  pointer-events: none;
}


/* -------------------------------------------
   5.3 Post (投稿ページ)
   ------------------------------------------- */
/* SNS Buttons */
/* Author Box */
.c-author-card {
  width: 100%;
  border-radius: var(--border-radius-md);
  background-color: var(--color-bg-surface);
  overflow: hidden;
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-3xl);
  box-shadow: var(--shadow-sm);
}

.c-author-card__title {
  padding: var(--space-lg);
  font-size: var(--font-md);
  font-weight: var(--font-weight-bold);
  text-align: center;
  margin: 0;
}

@media screen and (min-width: 768px) {
  .c-author-card__title {
    text-align: left;
  }
}

.c-author-card__content {
  padding: 0 var(--space-lg) var(--space-lg) var(--space-lg);
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: var(--space-md);
}

@media screen and (min-width: 768px) {
  .c-author-card__content {
    grid-template-columns: 120px 1fr;
    gap: var(--space-lg);
    justify-items: start;
  }
}

.c-author-card__image {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.c-author-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.c-author-card__text {
  text-align: center;
  width: 100%;
}

@media screen and (min-width: 768px) {
  .c-author-card__text {
    text-align: left;
  }
}

.c-author-card__name-link {
  text-decoration: none;
  color: var(--color-text-body);
  display: inline-block;
}

.c-author-card__name-link:hover .c-author-card__name {
  color: var(--color-primary);
}

.c-author-card__name {
  font-size: var(--font-lg);
  font-weight: var(--font-weight-bold);
  margin: 0 0 var(--space-md);
  transition: color var(--transition-hover);
}

.c-author-card__description {
  font-size: var(--font-sm);
  line-height: 1.6;
  margin: 0 0 var(--space-md);
}

.c-author-card__social {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
}

@media screen and (min-width: 768px) {
  .c-author-card__social {
    justify-content: flex-start;
  }
}

.c-author-card__social-link {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-bg-main);
  color: var(--color-text-body);
  transition: all var(--transition-hover);
}

.c-author-card__social-link svg,
.c-author-card__social-link i {
  width: 18px;
  height: 18px;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.c-author-card__social-link:hover {
  transform: translateY(-2px);
  color: var(--color-text-white);
}

.c-author-card__social-link.twitter:hover {
  background-color: var(--color-x);
}

.c-author-card__social-link.facebook:hover {
  background-color: var(--color-facebook);
}

.c-author-card__social-link.instagram:hover {
  background: var(--color-instagram);
}

.c-author-card__social-link.threads:hover {
  background-color: var(--color-x);
}

/* SNS Buttons */
.c-sns-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  list-style: none;
  padding: 0;
  margin: var(--space-lg) 0;
}

@media screen and (min-width: 768px) {
  .c-sns-buttons {
    gap: var(--space-md);
  }
}

.c-sns-buttons__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 10px 20px;
  border-radius: var(--border-radius-full);
  color: var(--color-text-white);
  text-decoration: none;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-sm);
  transition: filter var(--transition-hover), transform var(--transition-hover);
}

.c-sns-buttons__link:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.c-sns-buttons__link--facebook {
  background-color: var(--color-facebook);
}

.c-sns-buttons__link--x {
  background-color: var(--color-x);
}

.c-follow-card {
  margin: var(--space-4xl) 0 0 0;
  gap: var(--space-lg);
  display: flex;
  flex-direction: column;
}

.c-follow-card__title {
  text-align: center;
  font-size: var(--font-sm);
  margin: 0;
  font-weight: var(--font-weight-bold);
  display: block;
  letter-spacing: var(--letter-spacing-wide);
}

@media screen and (min-width: 768px) {
  .c-follow-card__title {
    font-size: var(--font-base);
  }
}

.c-follow-card__list {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media screen and (min-width: 768px) {
  .c-follow-card__list {
    gap: 20px;
  }
}

.c-follow-card__item {
  width: 56px;
  aspect-ratio: 1/1;
  border-radius: 80px;
  transition: all var(--transition-hover);
  list-style: none;
  background-color: var(--color-bg-surface);
  position: relative;
  box-shadow: var(--shadow-sm);
}

@media screen and (min-width: 768px) {
  .c-follow-card__item {
    width: 72px;
  }
}

.c-follow-card__item a,
.c-follow-card__item button {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  color: inherit;
}

.c-follow-card__icon {
  width: 24px;
  /* Default sizing base */
  height: 24px;
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.c-follow-card__item.facebook .c-follow-card__icon {
  height: 20px;
  width: auto;
  color: #1877F2;
}

@media screen and (min-width: 768px) {
  .c-follow-card__item.facebook .c-follow-card__icon {
    height: 24px;
  }
}

.c-follow-card__item.x .c-follow-card__icon {
  width: 18px;
  height: auto;
  font-size: 20px;
  color: #000;
}

@media screen and (min-width: 768px) {
  .c-follow-card__item.x .c-follow-card__icon {
    width: 22px;
  }
}

.c-follow-card__item.instagram .c-follow-card__icon {
  width: 24px;
  height: auto;
  color: var(--color-text-body);
}

.c-follow-card__item.threads .c-follow-card__icon {
  width: 24px;
  height: auto;
  color: var(--color-text-body);
}

.c-follow-card__item.line .c-follow-card__icon {
  width: 20px;
  height: auto;
  color: var(--color-text-body);
}

@media screen and (min-width: 768px) {
  .c-follow-card__item.line .c-follow-card__icon {
    width: 24px;
  }
}

.c-follow-card__item.copy .c-follow-card__icon {
  width: 18px;
  height: auto;
  font-size: 22px;
  color: #333;
}

@media screen and (min-width: 768px) {
  .c-follow-card__item.copy .c-follow-card__icon {
    width: 22px;
  }
}

/* Hover States */
.c-follow-card__item:hover .c-follow-card__icon {
  color: #fff !important;
  fill: #fff !important;
}

.c-follow-card__item.facebook:hover {
  background-color: #1877F2;
}

.c-follow-card__item.x:hover {
  background-color: #000;
}

.c-follow-card__item.instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.c-follow-card__item.threads:hover {
  background-color: #000;
}

.c-follow-card__item.line:hover {
  background-color: #00B900;
}

.c-follow-card__item.copy:hover {
  background-color: #2a2a2a;
}

/* Success Message */
.c-follow-card__msg {
  display: none;
  opacity: 0;
  position: fixed;
  width: 300px;
  height: 56px;
  background-color: rgba(0, 0, 0, .65);
  inset: 0;
  margin: auto;
  z-index: 1000;
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  transition: opacity var(--transition-hover);
}

.c-follow-card__msg.is-active {
  display: flex !important;
  opacity: 1 !important;
}

.c-follow-card__msg span {
  font-size: 14px;
  color: #fff;
  font-weight: bold;
}

/* -------------------------------------------
   5.4 テーブル
   ------------------------------------------- */
.c-definition-list {
  width: 100%;
  border-top: 1px solid var(--color-border-main);
}

.c-definition-list__item {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 1px solid var(--color-border-main);
}

@media screen and (min-width: 768px) {
  .c-definition-list__item {
    grid-template-columns: 160px 1fr;
  }
}

.c-definition-list__item dt {
  display: flex;
  align-items: center;
  padding: var(--space-md);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-sm);
}

@media screen and (min-width: 768px) {
  .c-definition-list__item dt {
    padding: var(--space-lg) var(--space-md);
  }
}

.c-definition-list__item dd {
  display: flex;
  align-items: center;
  padding: var(--space-md);
  margin: 0;
  font-size: var(--font-base);
}

@media screen and (min-width: 768px) {
  .c-definition-list__item dd {
    padding: var(--space-lg) var(--space-md);
  }
}

/* -------------------------------------------
   5.4 Home (トップページ)
   ------------------------------------------- */
/* Hero Slider Wrapper */
.p-hero-slider__wrapper {
  background: var(--grad-accent);
}

/* Hero Slider */
.p-hero-slider {
  width: 100%;
  padding: var(--space-6xl) 0 var(--space-3xl);
  overflow: hidden;
  position: relative;
}

@media screen and (min-width: 768px) {
  .p-hero-slider {
    padding: var(--space-8xl) 0 var(--space-6xl);
  }
}

@media screen and (min-width: 1920px) {
  .p-hero-slider {
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ==========================================================================
   6. Views: Page Specifics (ページ固有スタイル)
   * Prefix: p- (Project)
   ========================================================================== */

/* Landing Page (LP) - p-lp */
.p-lp {
  padding: var(--space-xl) 0;
}

.p-lp .p-lp__wrap {
  width: 100%;
  max-width: 1160px;
  border: 1px solid var(--color-border-main);
  margin: 0 auto;
  background: var(--color-bg-surface);
  padding: var(--space-xl) var(--mobile-margin);
}

@media screen and (min-width: 1920px) {
  .p-lp {
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (min-width: 1024px) {
  .p-lp .p-lp__wrap {
    padding: var(--space-3xl) var(--space-4xl);
  }
}

.p-lp .p-lp__thumbnail {
  border: 1px var(--color-border-dark) solid;
  margin-bottom: var(--space-md);
}

@media screen and (min-width: 1024px) {
  .p-lp .p-lp__thumbnail {
    float: right;
    margin: 0 0 var(--space-md) var(--space-md);
    max-width: 40%;
  }
}

.p-lp .p-lp__thumbnail img {
  vertical-align: top;
  width: 100%;
}

.p-lp .p-lp__content {
  padding: 0;
  overflow: hidden;
}

.p-lp .p-lp__header {
  background: var(--color-bg-surface);
  padding: var(--space-lg) var(--mobile-margin);
  text-align: center;
}

@media screen and (min-width: 1024px) {
  .p-lp .p-lp__header {
    padding: var(--space-2xl) var(--space-4xl);
    text-align: left;
  }
}

.p-lp .p-lp__header h1 {
  font-size: var(--font-2xl);
  color: var(--color-primary);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border-main);
  font-weight: var(--font-weight-bold);
}

@media screen and (min-width: 1024px) {
  .p-lp .p-lp__header h1 {
    font-size: var(--font-3xl);
  }
}

.p-lp.l-content {
  padding: var(--space-xl) var(--mobile-margin);
}

@media screen and (min-width: 1024px) {
  .p-lp.l-content {
    padding: var(--space-2xl) var(--space-4xl);
  }
}

.p-lp .l-main {
  width: 100%;
}

.p-lp .p-lp__sidebar {
  width: 100%;
  padding-top: var(--space-2xl);
}

@media screen and (min-width: 1024px) {
  .p-lp .p-lp__sidebar {
    width: 320px;
    float: right;
    padding-top: 0;
  }
}

.p-lp .p-lp__sidebar dl,
.p-lp .p-lp__sidebar dt,
.p-lp .p-lp__sidebar dd {
  width: 100%;
  margin-bottom: var(--space-md);
}

.p-lp .p-lp__sidebar dt {
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-xs);
}

.p-lp .c-lp-form {
  background: var(--color-text-body);
  color: var(--color-text-white);
  padding: var(--space-xl);
  width: 100%;
  max-width: 500px;
  margin: var(--space-2xl) auto;
  border-radius: var(--border-radius-md);
}

.p-lp .c-lp-form h3 {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-md);
  margin-bottom: var(--space-md);
}

.p-lp .c-lp-form input[type=text],
.p-lp .c-lp-form input[type=email] {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: var(--border-radius-sm);
  margin-bottom: var(--space-sm);
}

.p-lp .c-lp-form input[type=submit],
.p-lp .c-lp-form button {
  width: 100%;
  padding: 14px 0;
  background: #5ace5f;
  color: var(--color-text-white);
  border: none;
  border-bottom: 4px solid #38bd3e;
  border-radius: var(--border-radius-sm);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-base);
  transition: opacity var(--transition-hover);
}

.p-lp .c-lp-form input[type=submit]:hover,
.p-lp .c-lp-form button:hover {
  opacity: 0.8;
}



/* ==========================================================================
   7. Utilities (ユーティリティ)
   * Prefix: u- (Utility)
   * Must be last to override components
   ========================================================================== */
.u-items--center {
  align-items: center;
}

.u-items--end {
  align-items: flex-end;
}

.u-items--start {
  align-items: flex-start;
}

.u-inline-flex {
  display: inline-flex;
}

.u-radius {
  border-radius: var(--border-radius-md);
}

.u-font-bold {
  font-weight: var(--font-weight-bold);
}

.u-transition {
  transition: all var(--transition-hover);
}

.u-align--center {
  text-align: center;
}

.u-font-gray {
  color: var(--color-text-muted);
}

.u-grid--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl, 32px);
}

.u-overflow-hidden {
  overflow: hidden !important;
}

/* Hover Animation - Base definition (specific usage moved to header) */
.u-hover-motion {
  display: inline-flex;
  position: relative;
}

.u-hover-motion:after {
  position: absolute;
  bottom: calc(var(--space-xs) * -1);
  left: 0;
  content: '';
  width: 100%;
  height: 1px;
  background: var(--color-text-main);
  transform: scale(0, 1);
  transform-origin: right top;
  transition: transform var(--transition-hover);
}

/* Display Utilities */
.u-hide {
  display: none !important;
}

.u-show {
  display: block !important;
}

.u-active {
  display: block !important;
}

.u-text-center {
  text-align: center;
}

.u-text-right {
  text-align: right;
}

.u-m-sp {
  margin: var(--mobile-margin);
}

@media screen and (min-width: 1024px) {
  .u-m-sp {
    margin: 0;
  }
}

/* Renamed & Logic Fixed */
.u-hide-sp {
  display: none !important;
}

@media screen and (min-width: 768px) {
  .u-hide-sp {
    display: flex !important;
    /* or whatever original state was, but usually block/flex */
  }

  .u-hide-pc {
    display: none !important;
  }
}

/* ==========================================================================
   Common: c-section-heading / c-title__primary
   ========================================================================== */
.c-section-heading {
  display: flex;
  flex-direction: column;
}

.c-title__primary {
  display: flex;
  flex-direction: column-reverse;
  gap: var(--space-xs);
  position: relative;
}

.c-title__primary .u-lang-ja {
  position: relative;
  padding-left: var(--space-md);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-lg);
}

.c-title__primary .u-lang-ja::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  transform: translateY(-50%);
  background-color: var(--color-primary);
  /* 金融サイトのテーマカラー */
  border-radius: 50%;
}

.c-title__primary .u-lang-en {
  font-size: var(--font-3xl);
  line-height: 1.1;
}

/* min-width: 768px (Tablet & PC) */
@media screen and (min-width: 768px) {
  .c-title__primary .u-lang-en {
    font-size: var(--font-4xl);
  }
}

/* ==========================================================================
   Page Header
   ========================================================================== */
.p-page-header__wrapper {
  background-color: var(--color-bg-main);
}

.p-page-header {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 240px;
  padding: calc(var(--space-xl) + 60px) 0 var(--space-xl);
  /* サイトヘッダー分の余白 */
  background-color: var(--color-primary);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

@media screen and (min-width: 768px) {
  .p-page-header {
    min-height: 560px;
    padding: calc(var(--space-2xl) + 120px) 0 var(--space-2xl);
    /* サイトヘッダー分の余白調整 */
  }
}

.p-page-header.has-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  /* 画像のコントラスト調整用 */
  z-index: 1;
}

.p-page-header__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.p-page-header.has-image .c-title__primary {
  color: var(--color-text-white);
}

.p-page-header.has-image .c-title__primary .u-lang-ja::before {
  background-color: var(--color-text-white);
}

/* ==========================================================================
   About hero
   ========================================================================== */

.p-about-hero {
  margin-bottom: var(--section-spacing);
}

/* ==========================================================================
   About Challenge
   ========================================================================== */
.p-about-challenge {
  margin-bottom: var(--section-spacing);
}

.p-about-challenge__title {
  font-size: var(--font-xl);
  font-weight: var(--font-weight-bold);
  text-align: center;
}

.p-about-challenge__box {
  width: min(800px, 100%);
  margin: 0 auto;
  padding: var(--space-xl);
  background-color: var(--color-bg-white-translucent);
  border-radius: var(--border-radius-lg);
}

.p-about-challenge__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  list-style: none;
  padding: 0;
}

@media screen and (min-width: 768px) {
  .p-about-challenge__list {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md) var(--space-2xl);
  }
}

.p-about-challenge__item {
  position: relative;
  padding-left: 2em;
  font-weight: var(--font-weight-bold);
  text-align: left;
}

.p-about-challenge__item::before {
  content: "";
  position: absolute;
  top: 0.3em;
  left: 0;
  width: 1em;
  height: 0.5em;
  border-left: 3px solid var(--color-primary);
  border-bottom: 3px solid var(--color-primary);
  transform: rotate(-45deg);
}

/* ==========================================================================
   About Flow
   ========================================================================== */
.p-about-flow__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

@media screen and (min-width: 768px) {
  .p-about-flow__grid {
    flex-direction: row;
    gap: 0;
  }

  .p-about-flow__heading-wrap {
    flex: 0 0 30%;
    position: sticky;
    top: var(--space-xl);
    align-self: flex-start;
  }

  .p-about-flow__content {
    flex: 1;
  }
}

.p-about-flow__list {
  position: relative;
  list-style: none;
  padding: 0;
  counter-reset: flow-num;
}

.p-about-flow__list>li {
  position: relative;
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  padding-left: 60px;
  border-bottom: 1px solid var(--color-border-main);
  counter-increment: flow-num;
}

@media screen and (min-width: 768px) {
  .p-about-flow__list>li {
    margin-bottom: var(--space-5xl);
    padding-bottom: var(--space-5xl);
    padding-left: 100px;
  }
}

.p-about-flow__list>li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* 垂直線（トラック） */
.p-about-flow__list>li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  width: 1px;
  height: 100%;
  background: var(--color-border-main);
}

@media screen and (min-width: 768px) {
  .p-about-flow__list>li::after {
    left: 35px;
  }
}

.p-about-flow__list>li:last-child::after {
  display: none;
}

/* 番号の円 */
.p-about-flow__title::before {
  content: "0" counter(flow-num);
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  align-items: center;
  justify-content: center;
  z-index: 2;
  width: 48px;
  height: 48px;
  background-color: var(--color-bg-white-translucent);
  border: 1px solid var(--color-primary);
  border-radius: 50%;
  color: var(--color-primary);
  font-family: var(--font-family-en);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-md);
  box-shadow: 0 0 0 5px rgba(var(--color-primary-rgb), 0.2);
  transition: transform 0.5s var(--easeOutBack), opacity 0.5s ease;
}

/* Pulse Animation */
@keyframes pulse-shadow {
  0% {
    box-shadow: 0 0 0 0 rgba(252, 76, 134, 0.4);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(252, 76, 134, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(252, 76, 134, 0);
  }
}

.is-pulsing .p-about-flow__title::before,
.p-about-flow__number.is-pulsing .p-about-flow__title::before {
  animation: pulse-shadow 2s infinite;
}

@media screen and (min-width: 768px) {
  .p-about-flow__title::before {
    width: 70px;
    height: 70px;
    font-size: var(--font-lg);
    box-shadow: 0 0 0 8px rgba(var(--color-primary-rgb), 0.2);
  }
}

.p-about-flow__title {
  font-size: var(--font-lg);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-sm);
}

.p-about-flow__text {
  line-height: var(--line-height-relaxed);
  color: var(--color-text-main);
  text-align: justify;
}

/* ==========================================================================
   About FAQ
   ========================================================================== */
.p-about-faq__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

@media screen and (min-width: 768px) {
  .p-about-faq__grid {
    flex-direction: row;
    gap: 0;
  }

  .p-about-faq__heading-wrap {
    flex: 0 0 30%;
  }

  .p-about-faq__content {
    flex: 1;
    border-top: 1px solid var(--color-border);
  }
}

.p-about-faq__item {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--color-border);
}

.p-about-faq__question {
  position: relative;
  padding-left: 40px;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-lg);
  margin-bottom: var(--space-sm);
}

.p-about-faq__question::before {
  content: "Q";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-family: var(--font-family-en);
  font-size: var(--font-2xl);
  line-height: 1;
}

.p-about-faq__answer {
  position: relative;
  margin-left: var(--space-xl);
  padding-left: var(--space-xl);
  line-height: var(--line-height-relaxed);
}

.p-about-faq__answer::before {
  content: "A";
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-family: var(--font-family-en);
  font-size: var(--font-2xl);
  line-height: 1;
  font-weight: var(--font-weight-bold);
}


/* ==========================================================================
   Privacy Policy Page
   ========================================================================== */

.p-privacy__body {
  color: var(--color-text-main);
  line-height: var(--line-height-relaxed);
}

.p-privacy__section {
  margin-bottom: var(--space-4xl);
}

.p-privacy__head {
  font-size: var(--font-xl);
  font-weight: var(--font-weight-bold);
  border-left: 4px solid var(--color-primary);
  padding-left: var(--space-md);
  margin-bottom: var(--space-xl);
  color: var(--color-text-main);
}

.p-privacy__sub-head {
  font-size: var(--font-lg);
  font-weight: var(--font-weight-bold);
  margin: var(--space-xl) 0 var(--space-md);
}

.p-privacy__text {
  margin-bottom: var(--space-md);
  text-align: justify;
}

/* 箇条書き */
.p-privacy__list {
  list-style: none;
  padding: 0;
}

.p-privacy__list>li {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-md);
  border-left: 1px solid var(--color-border-main);
}

.p-privacy__check-list {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-lg);
}

.p-privacy__check-list>li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: var(--space-xs);
}

.p-privacy__check-list>li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

/* 枠組み */
.p-privacy__box {
  padding: var(--space-lg);
  border: 1px solid var(--color-border-main);
  border-radius: var(--border-radius-md);
  background-color: var(--color-bg-surface);
}

.p-privacy__box--gray {
  background-color: var(--color-bg-main);
  border: none;
}

.p-privacy__footer {
  text-align: right;
  font-size: var(--font-sm);
  border-top: 1px solid var(--color-border-main);
  padding-top: var(--space-xl);
}

.u-small {
  font-size: 0.85em;
  color: var(--color-text-muted);
}

@media screen and (max-width: 767.98px) {
  .p-privacy__head {
    font-size: var(--font-lg);
  }

  .p-privacy__box {
    padding: var(--space-md);
  }
}

/* ==========================================================================
   3. Sections - セクション別スタイル
   ========================================================================== */

.p-contact-flow {
  max-width: var(--width-container-small);
  margin: 0 auto;
}

.p-contact-flow__list {
  display: flex;
  position: relative;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-xl);
}

@media screen and (max-width: 767.98px) {
  .p-contact-flow__list {
    gap: var(--space-lg);
  }
}

.p-contact-flow__item {
  position: relative;
  z-index: var(--z-above);
  flex: 1;
  text-align: center;
}

.p-contact-flow__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(var(--space-5xl) * 1.25 / 2);
  left: 50%;
  z-index: -1;
  width: 100%;
  height: 1px;
  background-color: var(--color-border-main);
}

.p-contact-flow__item.is-current:not(:last-child)::after {
  background: linear-gradient(to right, var(--color-primary), var(--color-border-main));
}

.p-contact-flow__circle {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: calc(var(--space-5xl) * 1.25);
  height: calc(var(--space-5xl) * 1.25);
  margin: 0 auto var(--space-sm);
  background-color: var(--color-text-white);
  border: 1px solid var(--color-border-main);
  border-radius: 50%;
  color: var(--color-text-muted);
}

@media screen and (max-width: 767.98px) {
  .p-contact-flow__circle {
    width: calc(var(--space-4xl) * 1.25);
    height: calc(var(--space-4xl) * 1.25);
  }
}

@media screen and (max-width: 767.98px) {
  .p-contact-flow__item:not(:last-child)::after {
    top: calc(var(--space-4xl) * 1.25 / 2);
  }
}

.p-contact-flow__num {
  margin-bottom: 2px;
  font-family: var(--font-family-en);
  font-size: var(--font-base);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  letter-spacing: var(--letter-spacing-en, 0);
  /* Fallback 0 */
}

.p-contact-flow__text {
  font-size: var(--font-sm);
  font-weight: var(--font-weight-medium);
}

.p-contact-flow__item.is-current .p-contact-flow__circle {
  background: var(--color-text-white);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}

.p-contact-flow__circle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: calc(var(--space-5xl) * 1.25 + var(--space-md));
  height: calc(var(--space-5xl) * 1.25 + var(--space-md));
  transform: translate(-50%, -50%);
  background: rgba(var(--color-primary-rgb), 0.1);
  border-radius: var(--border-radius-full);
  opacity: 0;
}

@media screen and (max-width: 767.98px) {
  .p-contact-flow__circle::before {
    width: calc(var(--space-4xl) * 1.25 + var(--space-md));
    height: calc(var(--space-4xl) * 1.25 + var(--space-md));
  }
}

@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.6);
    opacity: 0;
  }
}

.p-contact-flow__item.is-current .p-contact-flow__circle::before {
  background: rgba(var(--color-primary-rgb), 0.1);
  opacity: 1;
  /* 明示的に表示 */
  animation: pulse-ring 1.4s ease-out infinite;
  display: block;
  /* 念のため */
}

.p-contact-form {
  max-width: var(--width-container-small);
  margin: 0 auto;
}

.p-contact-form__lead {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
  text-align: center;
}

.p-contact-form__list {
  border-top: 1px solid var(--color-border-main);
}

.p-contact-form__item {
  display: flex;
  flex-wrap: wrap;
  padding: var(--space-lg) 0;
}

@media screen and (max-width: 767.98px) {
  .p-contact-form__item {
    display: block;
    padding: var(--space-md) 0;
  }
}

.p-contact-form__label {
  display: flex;
  align-items: center;
  width: 240px;
  padding-right: 20px;
  font-weight: var(--font-weight-semibold);
}

@media screen and (max-width: 767.98px) {
  .p-contact-form__label {
    width: 100%;
    margin-bottom: 10px;
    padding-right: 0;
  }
}

.u-required {
  display: inline-block;
  margin-left: var(--space-sm);
  padding: calc(var(--icon-size-xs) / 2) var(--space-sm);
  background-color: var(--color-status-error);
  color: var(--color-text-white);
  font-size: var(--font-xs);
  line-height: 1.4;
  vertical-align: middle;
  border-radius: var(--border-radius-full);
}

.p-contact-form__input {
  flex: 1;
  width: 100%;

}

.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.p-contact-form__input input[type="text"],
.p-contact-form__input input[type="email"],
.p-contact-form__input input[type="tel"],
.p-contact-form__input select,
.p-contact-form__input textarea {
  width: 100%;
  padding: var(--space-md);
  background-color: var(--color-text-white);
  font-size: var(--font-base);
  appearance: none;
  transition: border-color var(--duration-base) var(--easeOutCubic),
    background-color var(--duration-base) var(--easeOutCubic);
}

.p-contact-form__input input[type="text"],
.p-contact-form__input input[type="email"],
.p-contact-form__input input[type="tel"],
.p-contact-form__input select {
  border-radius: var(--border-radius-full);
}

.p-contact-form__input textarea {
  height: 120px;
  border-radius: var(--border-radius-xl);
}

.p-contact-form__input input:focus,
.p-contact-form__input select:focus,
.p-contact-form__input textarea:focus {
  background-color: var(--color-text-white);
  border-color: var(--color-primary);
  outline: none;
}

.p-contact-form__input select {
  padding-right: var(--space-2xl);
  background-image: none;
}

.p-contact-form__privacy {
  text-align: center;
}

.p-contact-form__privacy a {
  color: var(--color-primary);
  text-decoration: underline;
}

.p-contact-form__privacy a:hover {
  text-decoration: none;
}

.p-contact-form__btn {
  margin-top: var(--space-lg);
  text-align: center;
}

.p-contact-form__btn .c-button__primary {
  justify-content: center;
  min-width: 240px;
}

@media screen and (max-width: 1023.98px) {
  .p-contact-form__item {
    display: block;
    padding: 0 0 var(--space-xl);
    border-bottom: none;
  }
}

@media screen and (max-width: 1023.98px) {
  .p-contact-form__list {
    border-top: none;
  }
}

@media screen and (max-width: 1023.98px) {
  .p-contact-form__label {
    width: 100%;
    margin-bottom: var(--space-sm);
    padding-right: 0;
    font-size: var(--font-base);
  }
}

.p-contact-form__input .wpcf7-form-control-wrap {
  display: block;
  position: relative;
  border: 1px solid var(--color-border-dark);
  border-radius: var(--border-radius-full);

}

.p-contact-form__input:has(textarea) .wpcf7-form-control-wrap {
  border-radius: var(--border-radius-xl);
}

.p-contact-form__input input[type="text"],
.p-contact-form__input input[type="email"],
.p-contact-form__input input[type="tel"],
.p-contact-form__input textarea {
  width: 100%;
  padding: var(--space-md);
  background-color: var(--color-bg-main);
  border: none;
  font-size: 16px;
  appearance: none;
}

.p-contact-form__input select {
  width: 100%;
  padding: var(--space-md);
  padding-right: var(--space-lg);
  background-color: var(--color-bg-main);
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23333'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8.25 15 12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-md) center;
  background-size: var(--space-lg);
  border: none;
  border-radius: var(--border-radius-full);
  appearance: base-select;
}

.p-contact-form__input select:focus {
  outline: none;
}

.p-contact-form__input ::picker(select) {
  margin-top: var(--space-xs);
  padding: var(--space-md);
  background-color: var(--color-text-white);
  border: none;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-card);
  appearance: base-select;
  outline: none;
}

.p-contact-form__input option {
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-sm);
  cursor: pointer;
  color: var(--color-text-main);
  background-color: var(--color-bg-surface);
  border-radius: var(--border-radius-full);
  transition: background-color var(--duration-slow) var(--easeOutCubic);
}

.p-contact-form__input option:hover,
.p-contact-form__input option:focus {
  background: var(--color-bg-);
}

.p-contact-form__input ::picker-icon {
  display: none;
}

.p-contact-form__input ::checkmark {
  display: none;
}

.p-contact-form__input input,
.p-contact-form__input select {
  border-radius: var(--border-radius-full);
}

.p-contact-form__input textarea {
  border-radius: var(--border-radius-xl);
}

.p-contact-form__input input:focus,
.p-contact-form__input select:focus,
.p-contact-form__input textarea:focus {
  background-color: var(--color-text-white);
  outline: none;
  animation: none;
}

@property --mask-percent {
  syntax: '<percentage>';
  initial-value: 0%;
  inherits: false;
}

.p-contact-form__input .wpcf7-form-control-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: var(--z-sticky);
  border: 1px solid var(--color-primary);
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  --mask-percent: 0%;
  -webkit-mask-image: conic-gradient(from 100deg at 50% 50%, #000 var(--mask-percent), transparent var(--mask-percent));
  mask-image: conic-gradient(from 100deg at 50% 50%, #000 var(--mask-percent), transparent var(--mask-percent));
}

.p-contact-form__input .wpcf7-form-control-wrap:focus-within::after {
  opacity: 1;
  animation: borderDrawRound var(--duration-slower) forwards var(--easeOutExpo),
    inputPulse 2s var(--duration-slower) infinite var(--easeOutCubic);
}

@keyframes borderDrawRound {
  0% {
    --mask-percent: 0%;
  }

  100% {
    --mask-percent: 100%;
  }
}

@keyframes inputPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(var(--color-primary-rgb), 0.4);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(var(--color-primary-rgb), 0);
  }
}

.p-contact-form__checkbox {
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
  text-align: center;
}

.p-contact-form__checkbox label {
  display: inline-flex;
  align-items: center;
  font-weight: var(--font-weight-bold);
  cursor: pointer;
}

.p-contact-form__checkbox input[type="checkbox"] {
  display: none;

}

.p-contact-form__checkbox .wpcf7-list-item-label {
  position: relative;
}

/* ネストされたspanでの二重表示防止: 直下のspanのみに適用 */
.p-contact-form__checkbox input[type="checkbox"]+.wpcf7-list-item-label::before {
  content: "";
  display: inline-block;
  position: relative;
  top: -2px;
  width: 32px;
  height: 32px;
  margin-right: var(--space-sm);
  background-color: var(--color-text-white);
  border: 1px solid var(--color-primary);
  border-radius: var(--border-radius-full);
  vertical-align: middle;
  transition: background-color var(--duration-slow) var(--easeOutCubic),
    border-color var(--duration-slow) var(--easeOutCubic),
    box-shadow var(--duration-slow) var(--easeOutCubic);
}

.p-contact-form__checkbox input[type="checkbox"]+.wpcf7-list-item-label::after {
  content: "";
  position: absolute;
  top: 15px;
  /* 調整 */
  left: 12px;
  /* 調整 */
  width: 8px;
  height: 12px;
  border-right: 2px solid var(--color-text-white);
  border-bottom: 2px solid var(--color-text-white);
  transform: translateY(-60%) rotate(45deg) scale(0);
  opacity: 0;
  transition: transform var(--duration-slow) var(--easeOutCubic),
    opacity var(--duration-slow) var(--easeOutCubic);
}

.p-contact-form__checkbox input[type="checkbox"]:checked+.wpcf7-list-item-label::before {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  animation: checkboxPulse 0.6s var(--easeOutCubic);
}

.p-contact-form__checkbox input[type="checkbox"]:checked+.wpcf7-list-item-label::after {
  transform: translateY(-60%) rotate(45deg) scale(1);
  opacity: 1;
}

@keyframes checkboxPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--color-primary-rgb), 0.5);
  }

  100% {
    box-shadow: 0 0 0 8px rgba(var(--color-primary-rgb), 0);
  }
}

.p-contact-form__privacy-text {
  font-size: var(--font-xs);
  color: var(--color-text-muted);
}

/* Error Message Fix - 強制的に絶対配置にする */
.wpcf7-not-valid-tip {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  margin-top: 4px !important;
  font-size: var(--font-xs) !important;
  color: var(--color-status-error);
  font-weight: var(--font-weight-bold);
  z-index: 10;
  white-space: nowrap;
  display: block;
}

/* 入力欄コンテナ自体をrelativeにして基準点とする */
.wpcf7-form-control-wrap {
  position: relative !important;
  display: block;
}

/* Checkbox Error Position */
.p-contact-form__checkbox .wpcf7-not-valid-tip {
  left: 50% !important;
  transform: translateX(-50%);
}

/* Button Styling Fix - input[type="submit"]を明示的にターゲット */
/* Button Styling Fix - input[type="submit"] & button tagをターゲット */
input.c-button__contact[type="submit"],
button.c-button__contact {
  display: inline-flex !important;
  /* flex for centering span in button */
  justify-content: center;
  align-items: center;
  width: auto;
  min-width: 240px;
  margin: 0 auto;
  padding: var(--space-md) var(--space-2xl);
  background: var(--grad-primary);
  color: var(--color-text-white);
  font-family: var(--font-family-ja);
  font-size: var(--font-lg);
  font-weight: var(--font-weight-bold);
  line-height: normal;
  /* inputの高さ崩れ防止 */
  border-radius: var(--border-radius-full);
  appearance: none;
  border: none;
  cursor: pointer;
  transition: opacity var(--duration-base) var(--easeOutCubic), transform var(--duration-base) var(--easeOutCubic);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

input.c-button__contact[type="submit"]:hover,
button.c-button__contact:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Confirmation Screen Text Alignment */
.p-contact-form__input span[id^="prev-"] {
  display: flex;
  align-items: center;
  min-height: calc(var(--font-base) * 1.5 + var(--space-md) * 2);
  /* Approximate input height */
  padding: var(--space-md);
  padding-left: 0;
  /* Align left with input position if needed, or keep padding */
  padding-left: var(--space-md);
  /* Match input padding-left */
  font-weight: var(--font-weight-medium);
}

@media screen and (max-width: 767.98px) {
  .p-contact-form__input span[id^="prev-"] {
    min-height: auto;
    padding: var(--space-sm) 0;
  }
}

/* 戻るボタン (Confirmation Back Button) */
.c-button__back {
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  min-width: 160px;
  padding: var(--space-md) var(--space-xl) !important;
  background: var(--color-bg-light) !important;
  color: var(--color-text-main) !important;
  font-family: var(--font-family-ja);
  font-size: var(--font-lg) !important;
  font-weight: var(--font-weight-bold);
  border: 1px solid var(--color-border-main) !important;
  border-radius: var(--border-radius-full);
  appearance: none;
  cursor: pointer;
  transition: opacity var(--duration-base) var(--easeOutCubic), transform var(--duration-base) var(--easeOutCubic), background-color var(--duration-base) var(--easeOutCubic);
  box-shadow: none !important;
  text-decoration: none;
}

.c-button__back:hover {
  opacity: 0.8;
  transform: translateY(-2px);
  background: var(--color-border-main) !important;
}

/* Button Group (Flex Layout) */
.p-contact-form__btn-group {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  align-items: center;
  margin-top: var(--space-xl);
}

@media screen and (max-width: 767.98px) {
  .p-contact-form__btn-group {
    flex-direction: column-reverse;
    /* change to column-reverse or column as needed, user didn't specify order preference but usually submit top or back bottom */
    gap: var(--space-md);
  }

  .c-button__back,
  input.c-button__contact[type="submit"],
  button.c-button__contact {
    width: 100%;
    min-width: 100%;
  }
}

/* Response Output Customization */
.wpcf7 form .wpcf7-response-output {
  margin: var(--space-lg) 0 0 !important;
  padding: var(--space-md) !important;
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-primary) !important;
  border-radius: var(--border-radius-md);
  color: var(--color-text-main);
  font-size: var(--font-sm);
  text-align: center;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  background-color: var(--color-mark-bg);
  border-color: var(--color-status-error) !important;
  color: var(--color-text-main);
}

.wpcf7 form.sent .wpcf7-response-output {
  background-color: rgba(var(--color-primary-rgb), 0.05);
  border-color: var(--color-primary) !important;
  color: var(--color-primary-dark);
}

/* Header Contact Button (Full Radius & SP CTA Styled) */
.c-header-cta-button {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 240px;
  height: var(--space-3xl);
  padding: 0 var(--space-lg) !important;
  background-color: var(--color-text-body) !important;
  color: var(--color-text-white) !important;
  border-radius: 9999px !important;
  /* Full Radius */
  text-decoration: none;
  transition: all var(--duration-base) var(--easeOutCubic);
  box-shadow: var(--shadow-sm);
  /* Reset potentially inherited styles */
  line-height: 1;
  border: none;
}

.c-header-cta-button:hover {
  background-color: var(--color-primary) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--color-text-white) !important;
}

.c-header-cta-button__label {
  flex: 1;
  /* Pushes border/icon to right if needed, or takes space */
  font-size: var(--font-sm);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.05em;
  text-align: left;
}

.c-header-cta-button__border {
  width: 1px;
  height: 20px;
  margin: 0 var(--space-md);
  background-color: rgba(255, 255, 255, 0.3);
  display: block;
}

.c-header-cta-button__icon {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}