/*
Theme Name: YA Current Lightning Child
Theme URI: https://ya-current.com/
Template: lightning
Author: DB Japan / Codex
Description: Lightning 15.36.0 を親テーマにした YAカレント同好会リニューアル用子テーマ。Vektor/Lightning G3 の構成を前提に、トップページ、リュディエ通信、入会導線を親しみやすく整えます。
Version: 1.4.0
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: ya-current-lightning-child
*/

:root {
  --yac-bg: #fffaf7;
  --yac-ink: #21313d;
  --yac-muted: #6b7884;
  --yac-line: #eadfd8;
  --yac-paper: #fffefd;
  --yac-warm: #fff1ea;
  --yac-coral: #e86f62;
  --yac-coral-dark: #b9473e;
  --yac-mint: #8fcfc3;
  --yac-butter: #f6d77c;
  --yac-blue: #264456;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  background: var(--yac-bg);
  color: var(--yac-ink);
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
}

a {
  text-underline-offset: 0.2em;
}

.site-header,
.vk-mobile-nav-menu-btn,
.vk-mobile-nav {
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
}

.site-header {
  border-bottom: 1px solid rgba(234, 223, 216, 0.9);
  box-shadow: 0 8px 28px rgba(50, 38, 28, 0.06);
}

.site-header-logo img {
  max-height: 48px;
}

.global-nav-list > li > a {
  color: #52616c;
  font-weight: 700;
}

.global-nav-list > li > a:hover {
  color: var(--yac-coral-dark);
}

.vk-mobile-nav-menu-btn {
  border-radius: 8px;
}

.vk-mobile-nav-menu-btn,
.vk-mobile-nav {
  display: none !important;
}

.siteContent,
.site-body {
  background: #fffaf7;
}

.page:not(.home) .siteContent,
.page:not(.home) .site-body {
  padding-top: clamp(28px, 5vw, 56px);
}

.page:not(.home) .entry {
  background: var(--yac-paper);
  border: 1px solid var(--yac-line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(95, 72, 55, 0.08);
  padding: clamp(22px, 4vw, 36px);
}

.page:not(.home) .entry-title,
.page:not(.home) h1 {
  color: var(--yac-blue);
  font-weight: 850;
  letter-spacing: 0;
}

.yac-front {
  background:
    linear-gradient(180deg, rgba(255, 250, 247, 0.95), rgba(255, 247, 239, 0.95)),
    radial-gradient(circle at 14% 8%, rgba(246, 215, 124, 0.24), transparent 24%),
    radial-gradient(circle at 88% 2%, rgba(143, 207, 195, 0.28), transparent 22%);
  color: var(--yac-ink);
  overflow: hidden;
}

.yac-front * {
  box-sizing: border-box;
}

.yac-front > * {
  margin-block-start: 0;
}

.yac-front [id] {
  scroll-margin-top: 86px;
}

.yac-front img {
  display: block;
  height: auto;
  max-width: 100%;
}

.yac-site-nav {
  align-items: center;
  background: rgba(255, 254, 253, 0.92);
  border-bottom: 1px solid rgba(234, 223, 216, 0.92);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 14px clamp(18px, 5vw, 72px);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
}

.yac-brand {
  align-items: center;
  color: var(--yac-blue);
  display: inline-flex;
  gap: 12px;
  min-width: 220px;
  text-decoration: none;
}

.yac-brand__mark {
  align-items: center;
  aspect-ratio: 1;
  background: var(--yac-blue);
  border-radius: 8px;
  color: #fffaf7;
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  width: 42px;
}

.yac-brand strong,
.yac-brand small {
  display: block;
}

.yac-brand strong {
  font-size: 15px;
  line-height: 1.25;
}

.yac-brand small {
  color: var(--yac-muted);
  font-size: 11px;
  margin-top: 2px;
}

.yac-nav-links {
  flex: 1;
}

.yac-nav-list {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
}

.yac-nav-links a,
.yac-menu__panel a {
  color: #52616c;
  font-size: 14px;
  font-weight: 800;
  padding: 8px 0;
  text-decoration: none;
}

.yac-nav-links a:hover {
  color: var(--yac-coral-dark);
}

.yac-menu {
  display: none;
  position: relative;
}

.yac-menu summary {
  align-items: center;
  aspect-ratio: 1;
  background: var(--yac-paper);
  border: 1px solid var(--yac-line);
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  list-style: none;
  width: 44px;
}

.yac-menu summary::-webkit-details-marker {
  display: none;
}

.yac-menu summary span {
  background: var(--yac-blue);
  border-radius: 99px;
  display: block;
  height: 2px;
  transition: opacity 180ms ease, transform 180ms ease;
  width: 19px;
}

.yac-menu[open] summary span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.yac-menu[open] summary span:nth-child(2) {
  opacity: 0;
}

.yac-menu[open] summary span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.yac-menu__panel {
  background: rgba(255, 254, 253, 0.98);
  border: 1px solid var(--yac-line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(95, 72, 55, 0.16);
  display: grid;
  gap: 4px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(270px, calc(100vw - 36px));
}

.yac-menu__panel .yac-nav-list {
  align-items: stretch;
  display: grid;
  gap: 4px;
  justify-content: stretch;
}

.yac-menu__panel a {
  border-radius: 8px;
  color: var(--yac-blue);
  font-weight: 850;
  padding: 13px 14px;
  text-decoration: none;
}

.yac-menu__panel a:hover {
  background: var(--yac-warm);
}

.yac-hero {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
  min-height: 560px;
  padding: clamp(42px, 5.6vw, 72px) clamp(18px, 5vw, 72px) 28px;
}

.yac-hero__copy {
  align-self: center;
  max-width: 700px;
}

.yac-kicker {
  color: var(--yac-coral-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 14px;
}

.yac-hero h1 {
  color: var(--yac-blue);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
}

.yac-lead {
  color: #53626d;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.95;
  margin: 28px 0 0;
}

.yac-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.yac-button,
.yac-button .wp-block-button__link,
.wpcf7-submit {
  align-items: center;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  text-decoration: none;
}

.yac-button--primary,
.yac-button--primary .wp-block-button__link,
.wpcf7-submit {
  background: var(--yac-coral);
  box-shadow: 0 14px 26px rgba(232, 111, 98, 0.26);
  color: #fff;
}

.yac-form .wpcf7-submit {
  background: var(--yac-coral) !important;
  border: 0 !important;
  box-shadow: 0 14px 26px rgba(232, 111, 98, 0.26);
  color: #fff !important;
}

.yac-button--secondary,
.yac-button--secondary .wp-block-button__link {
  background: var(--yac-paper);
  border: 1px solid var(--yac-line);
  color: var(--yac-blue);
}

.wp-block-button.yac-button {
  background: transparent;
  border: 0;
  box-shadow: none;
  min-height: 0;
  padding: 0;
}

.wp-block-button.yac-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
}

.yac-hero__media {
  align-self: end;
  background: var(--yac-paper);
  border: 1px solid var(--yac-line);
  border-radius: 8px;
  box-shadow: 0 22px 50px rgba(95, 72, 55, 0.14);
  overflow: hidden;
}

.yac-hero__media figure {
  margin: 0;
}

.yac-quick {
  background: var(--yac-blue);
  color: #fffaf7;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 clamp(18px, 5vw, 72px);
}

.yac-quick div {
  background: rgba(255, 255, 255, 0.06);
  min-height: 112px;
  padding: 26px;
}

.yac-quick strong,
.yac-quick span {
  display: block;
}

.yac-quick strong {
  color: var(--yac-butter);
  font-size: 22px;
  line-height: 1.35;
}

.yac-quick span {
  color: rgba(255, 250, 247, 0.82);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 8px;
}

.yac-section {
  padding: clamp(56px, 7vw, 92px) clamp(18px, 5vw, 72px);
}

.yac-section--split {
  display: grid;
  gap: clamp(24px, 5vw, 72px);
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
}

.yac-section h2 {
  color: var(--yac-blue);
  font-size: clamp(29px, 4vw, 46px);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0;
}

.yac-text {
  display: grid;
  gap: 18px;
}

.yac-text p,
.yac-section-heading p,
.yac-join__copy p {
  color: #53626d;
  font-size: 16px;
  line-height: 1.95;
  margin: 0;
}

.yac-section-heading {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
  max-width: 780px;
}

.yac-activity-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.yac-card {
  background: var(--yac-paper);
  border: 1px solid var(--yac-line);
  border-radius: 8px;
  min-height: 260px;
  padding: 24px;
}

.yac-card__number {
  color: var(--yac-coral);
  display: block;
  font-size: 13px;
  font-weight: 850;
  margin-bottom: 28px;
}

.yac-card h3 {
  color: var(--yac-blue);
  font-size: 20px;
  line-height: 1.45;
  margin: 0 0 14px;
}

.yac-card p {
  color: #5e6c78;
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

.yac-magazine {
  background: #f5fbf9;
}

.yac-post-list {
  display: grid;
  gap: 10px;
}

.yac-post-list .yac-post-list__empty,
.yac-form-placeholder {
  background: var(--yac-paper);
  border: 1px solid var(--yac-line);
  border-radius: 8px;
  color: #63717b;
  line-height: 1.8;
  padding: 18px;
}

.yac-post-row {
  align-items: center;
  background: var(--yac-paper);
  border: 1px solid #d9ece8;
  border-radius: 8px;
  color: inherit;
  display: grid;
  gap: 14px;
  grid-template-columns: 116px minmax(0, 1fr);
  padding: 18px;
  text-decoration: none;
}

.yac-post-row:hover {
  border-color: var(--yac-mint);
  box-shadow: 0 12px 28px rgba(61, 126, 113, 0.1);
}

.yac-post-row time {
  color: var(--yac-coral-dark);
  font-size: 13px;
  font-weight: 800;
}

.yac-post-row strong {
  color: var(--yac-blue);
  font-size: 17px;
}

.yac-join {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.22fr);
}

.yac-join__copy {
  display: grid;
  gap: 18px;
  align-content: start;
}

.yac-text-link {
  color: var(--yac-coral-dark);
  font-weight: 800;
}

.yac-form {
  background: var(--yac-paper);
  border: 1px solid var(--yac-line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(95, 72, 55, 0.1);
  padding: clamp(22px, 4vw, 34px);
}

.yac-form .wpcf7-form {
  display: grid;
  gap: 18px;
}

.yac-form p {
  margin: 0;
}

.yac-form h3,
.yac-form h4 {
  color: var(--yac-blue);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.45;
  margin: 0;
}

.yac-form h3 {
  font-size: 20px;
}

.yac-form h4 {
  font-size: 15px;
}

.yac-form input[type="text"],
.yac-form input[type="email"],
.yac-form textarea {
  border: 1px solid var(--yac-line);
  border-radius: 8px;
  font-size: 16px;
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}

.yac-form .wpcf7-list-item {
  margin: 0 14px 10px 0;
}

.yac-form .wpcf7-list-item label {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.yac-form input[type="radio"],
.yac-form input[type="checkbox"] {
  accent-color: var(--yac-coral);
}

.yac-fallback-form {
  display: grid;
  gap: 16px;
}

.yac-fallback-form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.yac-fallback-form legend {
  color: var(--yac-blue);
  font-weight: 850;
  margin-bottom: 12px;
}

.yac-role-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.yac-role-grid label,
.yac-consent {
  align-items: center;
  background: var(--yac-warm);
  border-radius: 8px;
  display: flex;
  gap: 8px;
  padding: 12px;
}

.yac-field {
  color: var(--yac-blue);
  display: grid;
  font-weight: 800;
  gap: 8px;
}

.yac-contact-layout {
  display: grid;
  gap: clamp(24px, 5vw, 56px);
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
}

.yac-contact-layout .yac-form {
  box-shadow: none;
}

.yac-page-hero {
  background:
    linear-gradient(90deg, rgba(255, 250, 247, 0.98), rgba(255, 241, 234, 0.88)),
    linear-gradient(135deg, rgba(143, 207, 195, 0.24), rgba(246, 215, 124, 0.18));
  border-bottom: 1px solid var(--yac-line);
  padding: clamp(44px, 7vw, 86px) clamp(18px, 5vw, 72px);
}

.yac-page-hero__inner {
  margin: 0 auto;
  max-width: 980px;
}

.yac-page-hero h1 {
  color: var(--yac-blue);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.16;
  margin: 0;
}

.yac-page-hero__lead {
  color: #53626d;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.9;
  margin: 18px 0 0;
  max-width: 720px;
}

.yac-page .yac-section--page {
  margin: 0 auto;
  max-width: 1180px;
  width: 100%;
}

.entry-meta-item-author {
  display: none;
}

.yac-contact-page .yac-contact-layout {
  align-items: start;
}

.yac-site-footer {
  background: var(--yac-blue);
  color: rgba(255, 250, 247, 0.82);
  margin-top: 0;
}

.yac-site-footer__inner {
  display: grid;
  gap: 22px;
  margin: 0 auto;
  max-width: 1180px;
  padding: 34px clamp(18px, 5vw, 72px);
}

.yac-site-footer .yac-brand {
  color: #fffaf7;
}

.yac-site-footer .yac-brand__mark {
  background: #fffaf7;
  color: var(--yac-blue);
}

.yac-site-footer .yac-brand small {
  color: rgba(255, 250, 247, 0.72);
}

.yac-site-footer__nav .yac-nav-list {
  justify-content: flex-start;
}

.yac-site-footer__nav a {
  color: rgba(255, 250, 247, 0.86);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.yac-site-footer__nav a:hover {
  color: var(--yac-butter);
}

.yac-site-footer__copy {
  border-top: 1px solid rgba(255, 250, 247, 0.16);
  font-size: 12px;
  margin: 0;
  padding-top: 18px;
}

@media (max-width: 980px) {
  .yac-hero,
  .yac-section--split,
  .yac-join,
  .yac-contact-layout {
    grid-template-columns: 1fr;
  }

  .yac-activity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yac-post-row {
    grid-template-columns: 110px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .yac-site-nav {
    padding: 12px 18px;
  }

  .yac-brand {
    min-width: 0;
  }

  .yac-brand small {
    display: none;
  }

  .yac-nav-links {
    display: none;
  }

  .yac-menu {
    display: block;
  }

  .yac-hero {
    min-height: auto;
    padding-top: 28px;
  }

  .yac-hero h1 {
    font-size: 38px;
  }

  .yac-actions {
    display: grid;
  }

  .yac-button {
    width: 100%;
  }

  .yac-quick {
    grid-template-columns: 1fr;
    margin: 0 18px;
  }

  .yac-section {
    padding: 54px 18px;
  }

  .yac-page-hero {
    padding: 38px 18px;
  }

  .yac-activity-grid,
  .yac-role-grid {
    grid-template-columns: 1fr;
  }

  .yac-card {
    min-height: auto;
  }

  .yac-post-row {
    align-items: start;
    grid-template-columns: 1fr;
  }
}
