/* ==========================================================================
   Idenki Theme - Main Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --idenki-red: #e11919;
  --idenki-black: #000000;
  --idenki-gray: #666666;
  --idenki-dim-gray: #868686;
  --idenki-smoke: #d9d9d9;
  --idenki-white: #ffffff;
  --idenki-font-fab: 'Fabrikat', sans-serif;
  --idenki-font-jp: 'Noto Sans JP', sans-serif;
  --content-width: 1120px;
  --wide-width: 1440px;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--idenki-black);
  color: var(--idenki-white);
  font-family: var(--idenki-font-jp);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 900;
}

p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Fabrikat';
  font-style: normal;
  font-weight: 900;
  font-display: fallback;
  src: local('Arial Black'), local('Impact');
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.idenki-container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

.idenki-container--wide {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Utility: visually hidden */
.u-visuallyhidden {
  border: 0;
  clip: rect(0,0,0,0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.idenki-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  mix-blend-mode: difference;
  pointer-events: none;
}

.idenki-header > * {
  pointer-events: auto;
}

/* Logo */
.idenki-logo {
  font-family: var(--idenki-font-fab);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--idenki-white);
  letter-spacing: -0.02em;
}

.idenki-logo a {
  color: var(--idenki-white);
  text-decoration: none;
}

/* Navigation */
.idenki-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.idenki-nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.idenki-nav a {
  font-family: var(--idenki-font-fab);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--idenki-white);
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s;
}

.idenki-nav a:hover {
  opacity: 0.6;
}

/* Language switcher */
.idenki-language {
  font-family: var(--idenki-font-fab);
  font-size: 0.7rem;
  font-weight: 900;
}

.idenki-language .bogo-language-switcher {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.idenki-language .bogo-language-name a {
  color: var(--idenki-white);
  opacity: 0.5;
  text-decoration: none;
  transition: opacity 0.2s;
}

.idenki-language .bogo-language-name a.current,
.idenki-language .bogo-language-name a:hover {
  opacity: 1;
}

.idenki-language .bogoflags {
  display: none;
}

/* Drawer button */
.idenki-drawer {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  pointer-events: auto;
}

.idenki-drawer svg {
  display: block;
  width: 24px;
  height: 4px;
}

.idenki-drawer svg line {
  stroke: var(--idenki-white);
  stroke-width: 1;
}

/* --------------------------------------------------------------------------
   Drawer Menu (mobile overlay)
   -------------------------------------------------------------------------- */
.idenki-drawer-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--idenki-black);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.idenki-drawer-menu.is-open {
  right: 0;
}

.idenki-drawer-menu .idenki-nav ul {
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.idenki-drawer-menu .idenki-nav a {
  font-size: 1.2rem;
}

/* --------------------------------------------------------------------------
   Key Visual
   -------------------------------------------------------------------------- */
.idenki-keyvisual {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background-color: var(--idenki-black);
}

.idenki-keyvisual_container {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Background grid (animated) */
.kv_grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0;
  transition: opacity 1s ease;
}

.kv_grid:not(.is-standby) {
  opacity: 1;
}

/* Title animations */
.kv_title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.8s ease 0.3s;
  pointer-events: none;
}

.kv_title:not(.is-standby) {
  opacity: 1;
}

/* CRAZY + RACCOON SVG logos (background repeating) */
.kv_crazy,
.kv_idenki {
  fill: rgba(255,255,255,0.04);
  position: absolute;
  pointer-events: none;
}

/* Main visible titles */
.kv_crazy.-main,
.kv_idenki.-main {
  fill: none;
  stroke: var(--idenki-white);
  stroke-width: 0.5;
  position: relative;
  width: clamp(240px, 40vw, 516px);
  height: auto;
}

.kv_idenki.-main {
  width: clamp(340px, 55vw, 719px);
}

/* Subscript / Make gamers cool */
.kv_subscript {
  margin: 0;
  text-align: center;
}

.kv_subscript img {
  width: clamp(100px, 15vw, 204px);
  height: auto;
}

/* Member count lead */
.kv_lead {
  position: absolute;
  bottom: 40px;
  left: 40px;
  font-family: var(--idenki-font-fab);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* Arrows */
.kv_arrows {
  position: absolute;
  bottom: 40px;
  right: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.8s ease 0.6s;
}

.kv_arrows:not(.is-standby) {
  opacity: 1;
}

.kv_arrow {
  display: flex;
  gap: 8px;
}

.kv_arrow svg {
  fill: none;
  stroke: var(--idenki-white);
  stroke-width: 0.5;
  opacity: 0.3;
  width: 40px;
  height: auto;
}

.kv_arrow.-l svg {
  opacity: 0.8;
  animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 0.8; transform: translateY(6px); }
}

/* Character images */
.kv_thumb {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.kv_thumb:not(.is-standby) {
  opacity: 1;
}

.kv_character {
  position: absolute;
  bottom: 0;
  right: 5%;
  width: clamp(260px, 35vw, 500px);
  margin: 0;
  cursor: pointer;
}

.kv_character img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(255,255,255,0.1));
}

.kv_character:not(:first-child) {
  display: none;
}

.kv_character_chromatic {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.kv_character_chromatic .r,
.kv_character_chromatic .g,
.kv_character_chromatic .b {
  position: absolute;
  inset: 0;
  background-position: center bottom;
  background-size: contain;
  background-repeat: no-repeat;
  mix-blend-mode: screen;
}

.kv_character_label {
  position: absolute;
  left: 0;
  bottom: -1px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  pointer-events: none;
}

.kv_character_label.-shadow {
  filter: blur(8px);
  opacity: 0.4;
}

.kv_character_team {
  font-family: var(--idenki-font-fab);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--idenki-white);
  opacity: 0.7;
  text-transform: uppercase;
}

.kv_character_name {
  font-family: var(--idenki-font-fab);
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 0.9;
  color: var(--idenki-white);
  letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   Sponsors Logo (Splide Slider)
   -------------------------------------------------------------------------- */
.idenki-sponsors_logo {
  padding: 20px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.idenki-sponsors_logo .splide__track {
  overflow: hidden;
}

.idenki-sponsors_logo .splide__list {
  display: flex;
  align-items: center;
}

.idenki-sponsors_logo .item {
  padding: 0 24px;
}

.idenki-sponsors_logo .link {
  display: block;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.idenki-sponsors_logo .link:hover {
  opacity: 1;
}

.idenki-sponsors_logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: brightness(10);
}

/* --------------------------------------------------------------------------
   Main Content Area
   -------------------------------------------------------------------------- */
.idenki-main {
  padding-top: 0;
}

/* Common section styles */
section {
  padding: 100px 40px;
  max-width: var(--wide-width);
  margin: 0 auto;
}

.idenki-main section {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Section headings */
.idenki-main h2,
section h2.wp-block-heading {
  font-family: var(--idenki-font-fab);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 60px;
  color: var(--idenki-white);
  text-transform: uppercase;
}

/* Section lead text */
.idenki-home_lead {
  text-align: center;
  font-size: 0.85rem;
  line-height: 2;
  color: rgba(255,255,255,0.6);
  margin-bottom: 60px;
}

/* --------------------------------------------------------------------------
   NEWS Section
   -------------------------------------------------------------------------- */
.idenki-home_news {
  padding: 100px 40px;
}

.idenki-news_list .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.idenki-news_list .wp-block-post {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.idenki-news_list .wp-block-post-info {
  margin-bottom: 8px;
}

.idenki-news_list .wp-block-post-date time a,
.idenki-news_list .wp-block-post-date time {
  display: block;
  font-family: var(--idenki-font-fab);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  margin-bottom: 6px;
}

.idenki-news_list .wp-block-post-title {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

.idenki-news_list .wp-block-post-title a {
  color: var(--idenki-white);
  text-decoration: none;
  transition: opacity 0.2s;
}

.idenki-news_list .wp-block-post-title a:hover {
  opacity: 0.7;
}

.idenki-news_list .wp-block-post-featured-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 12px;
}

.idenki-news_list .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.idenki-news_list .wp-block-post:hover .wp-block-post-featured-image img {
  transform: scale(1.05);
}

.idenki-news_list .taxonomy-category {
  font-family: var(--idenki-font-fab);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.idenki-news_list .taxonomy-category a {
  color: var(--idenki-red);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   COMIC Section
   -------------------------------------------------------------------------- */
.idenki-home_comic .idenki-news_list .wp-block-post-template {
  grid-template-columns: repeat(4, 1fr);
}

.idenki-home_comic .wp-block-post-info.wp-block-post-title {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  text-align: center;
}

.idenki-home_comic .wp-block-post-info.wp-block-post-title a {
  color: var(--idenki-white);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   MEMBER Section
   -------------------------------------------------------------------------- */
.idenki-home_member {
  padding: 100px 40px;
}

/* Category filter */
.idenki-home_member .wp-block-categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 48px;
  padding: 0;
  list-style: none;
}

.idenki-home_member .wp-block-categories-list a {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  font-family: var(--idenki-font-fab);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: all 0.2s;
}

.idenki-home_member .wp-block-categories-list a:hover,
.idenki-home_member .wp-block-categories-list .current a {
  background: var(--idenki-white);
  color: var(--idenki-black);
  border-color: var(--idenki-white);
}

/* Member lineup grid */
.idenki-member_lineup .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.idenki-member_lineup .wp-block-post {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.idenki-member_lineup .wp-block-post-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  font-family: var(--idenki-font-fab);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  z-index: 1;
}

.idenki-member_lineup .wp-block-post-title a {
  color: var(--idenki-white);
  text-decoration: none;
}

.idenki-member_lineup .wp-block-post-featured-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.idenki-member_lineup .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
  filter: grayscale(20%);
}

.idenki-member_lineup .wp-block-post:hover .wp-block-post-featured-image img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

/* --------------------------------------------------------------------------
   Idenki CUP Section
   -------------------------------------------------------------------------- */
.idenki-home_crcup {
  padding: 100px 40px;
}

.idenki-crcup_lineup {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.idenki-crcup_lineup .wp-block-group {
  padding: 0;
}

.idenki-crcup_lineup figure {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 0 0 16px;
}

.idenki-crcup_lineup figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.idenki-crcup_lineup .wp-block-group:hover figure img {
  transform: scale(1.05);
}

.idenki-crcup_lineup h3 {
  font-family: var(--idenki-font-fab);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--idenki-red);
  margin-bottom: 4px;
}

.idenki-crcup_lineup p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}

.idenki-crcup_lineup a {
  color: var(--idenki-white);
  text-decoration: none;
  transition: opacity 0.2s;
}

.idenki-crcup_lineup a:hover {
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   STORE Section
   -------------------------------------------------------------------------- */
.idenki-home_store {
  padding: 100px 40px;
}

.idenki-store_lineup {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.idenki-store_lineup .wp-block-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.idenki-store_lineup figure {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin: 0;
}

.idenki-store_lineup figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.idenki-store_lineup .wp-block-column:hover figure img {
  transform: scale(1.05);
}

.idenki-store_lineup h3 {
  font-family: var(--idenki-font-fab);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--idenki-white);
}

.idenki-store_lineup p a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Idenki APP Section
   -------------------------------------------------------------------------- */
.idenki-home_idenki-app {
  padding: 100px 40px;
}

.idenki-store_app {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 0;
}

.idenki-store_app .wp-block-column:last-child {
  background: var(--idenki-red);
  padding: 40px;
  border-radius: 4px;
}

.idenki-store_app .wp-block-media-text {
  display: grid;
  grid-template-columns: 20% auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.idenki-store_app .wp-block-media-text__media img {
  width: 100%;
  border-radius: 16px;
}

.idenki-store_app .wp-block-media-text__content p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--idenki-white);
}

.idenki-store_app .wp-block-media-text__content strong {
  font-family: var(--idenki-font-fab);
  font-size: 1.1rem;
  font-weight: 900;
  display: block;
}

.idenki-store_app .is-nowrap {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.idenki-store_app .wp-block-image {
  margin: 0;
}

.idenki-store_app figure img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.idenki-note {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   GOODS Section
   -------------------------------------------------------------------------- */
.idenki-home_goods {
  padding: 100px 40px;
}

.idenki-goods_lineup {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.idenki-goods_lineup .wp-block-group {
  padding: 0;
}

.idenki-goods_lineup figure {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin: 0 0 12px;
}

.idenki-goods_lineup figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.idenki-goods_lineup .wp-block-group:hover figure img {
  transform: scale(1.05);
}

.idenki-goods_lineup h3 {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--idenki-white);
}

/* --------------------------------------------------------------------------
   COLLABORATION Section
   -------------------------------------------------------------------------- */
.idenki-home_collabo {
  padding: 100px 40px;
}

.idenki-collabo_item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding: 0;
  margin-bottom: 48px;
}

.idenki-collabo_item figure {
  margin: 0;
  overflow: hidden;
}

.idenki-collabo_item figure img {
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.idenki-collabo_item:hover figure img {
  transform: scale(1.03);
}

.idenki-collabo_item h3 {
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 16px;
}

.idenki-collabo_item p {
  font-size: 0.85rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
}

/* --------------------------------------------------------------------------
   ABOUT Section
   -------------------------------------------------------------------------- */
.idenki-home_about {
  padding: 100px 40px;
}

.idenki-about_statement {
  max-width: 800px;
  margin: 0 auto 48px;
  padding: 0;
}

.idenki-about_statement p {
  font-size: 0.9rem;
  line-height: 2;
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
  text-align: justify;
}

.idenki-p-signature {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 40px;
  gap: 8px;
}

.idenki-p-signature figure {
  margin: 0;
}

.idenki-p-signature figure img {
  width: 200px;
  height: auto;
  filter: invert(1);
}

.idenki-p-signature p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.wp-block-button__link,
.idenki-btn {
  display: inline-block;
  padding: 14px 48px;
  background: transparent;
  border: 1px solid var(--idenki-white);
  font-family: var(--idenki-font-fab);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--idenki-white);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wp-block-button__link:hover,
.idenki-btn:hover {
  background: var(--idenki-white);
  color: var(--idenki-black);
}

.wp-block-buttons {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.idenki-footer {
  padding: 60px 40px 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.idenki-termslink {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}

.idenki-termslink a {
  font-family: var(--idenki-font-fab);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.idenki-termslink a:hover {
  color: var(--idenki-white);
}

.idenki-copyright {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.idenki-copyright small {
  font-family: var(--idenki-font-fab);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
}

.idenki-copyright a {
  color: rgba(255,255,255,0.4);
  font-size: 1rem;
  transition: color 0.2s;
  text-decoration: none;
}

.idenki-copyright a:hover {
  color: var(--idenki-white);
}

/* SNS icons in footer (using pseudo-elements or font icons) */
.idenki-copyright a[href*="instagram"]::before {
  content: "IG";
  font-family: var(--idenki-font-fab);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.idenki-copyright a[href*="twitter"]::before,
.idenki-copyright a[href*="x.com"]::before {
  content: "TW";
  font-family: var(--idenki-font-fab);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .idenki-news_list .wp-block-post-template {
    grid-template-columns: repeat(2, 1fr);
  }

  .idenki-member_lineup .wp-block-post-template {
    grid-template-columns: repeat(4, 1fr);
  }

  .idenki-goods_lineup {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  section {
    padding: 60px 24px;
  }

  .idenki-header {
    padding: 16px 24px;
  }

  .idenki-nav {
    display: none;
  }

  .idenki-language {
    display: none;
  }

  .idenki-drawer {
    display: flex;
  }

  .idenki-crcup_lineup,
  .idenki-store_lineup,
  .idenki-store_app,
  .idenki-collabo_item {
    grid-template-columns: 1fr;
  }

  .kv_lead {
    left: 24px;
    bottom: 24px;
  }

  .kv_arrows {
    right: 24px;
    bottom: 24px;
  }

  .contact_wrapper {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  .contact_form_area,
  .direct_contact_box,
  .line_contact_box {
    padding: 30px 20px !important;
  }
}

@media (max-width: 600px) {
  .idenki-news_list .wp-block-post-template,
  .idenki-home_comic .idenki-news_list .wp-block-post-template {
    grid-template-columns: 1fr;
  }

  .idenki-member_lineup .wp-block-post-template {
    grid-template-columns: repeat(2, 1fr);
  }

  .idenki-goods_lineup {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Animations & Scroll effects
   -------------------------------------------------------------------------- */
.idenki-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.idenki-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Lenis smooth scroll support */
html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

/* --------------------------------------------------------------------------
   Loading screen
   -------------------------------------------------------------------------- */
.idenki-loading {
  position: fixed;
  inset: 0;
  background: var(--idenki-black);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.idenki-loading.is-loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.idenki-loading svg {
  width: clamp(120px, 20vw, 240px);
  fill: var(--idenki-white);
  animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* --------------------------------------------------------------------------
   Splide customization
   -------------------------------------------------------------------------- */
.splide__pagination {
  display: none;
}

.splide__arrow {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  width: 40px;
  height: 40px;
  border-radius: 0;
}

.splide__arrow svg {
  fill: var(--idenki-white);
}

.splide__arrow:hover {
  background: var(--idenki-white);
}

.splide__arrow:hover svg {
  fill: var(--idenki-black);
}
