/*
Theme Name: original
Version: 1.0
*/

/* ═══════════════════════════════════════════════════
   SAKAN CMF Lab. — PC_top
   max-width: 1200px / gutter: max(4%, calc(50% - 600px))
═══════════════════════════════════════════════════ */

:root {
  --black: #000; --white: #fff; --gray:  #939393;
  --font-display: "Nunito Sans", 'Helvetica Neue', Arial, sans-serif;
  --font-ui:      "Nunito Sans", 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', sans-serif;
  /* コンテンツ左右余白: 1440px幅では約120px, それ以下では4% */
  --gutter: max(6%, calc(50% - 600px));
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
}

/* Anchor targets (#about, #news, etc.) shouldn't land hidden under the
   fixed header. */
#about,
#news {
  scroll-margin-top: 95px;
}
@media (max-width: 760px) {
  #about,
  #news {
    scroll-margin-top: 60px;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  min-width: 320px;
  background: var(--white) url(assets/images/cmn/bg_noise.png) top left repeat;
  background-size: 1024px auto;
  color: var(--black);
  font-family: var(--font-body);
}

@media (max-width: 760px) {
  body {
    background-size: 700px auto;
  }
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::selection {
  background: #000;
  color: #fff;
}
.dark_section ::selection {
  background: #fff;
  color: #000;
}



/* ─── Header ────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 95px;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  padding: 40px 4%;
  /* ヘッダーバー自体はクリックを透過させ、中の要素だけ受け取る */
  pointer-events: none;
}
.logo-fixed,
.gnav { pointer-events: auto; }

.logo-fixed {
  flex-shrink: 0;
  margin-right: auto;
  font-size: 0;
  line-height: 0;
}
.logo-fixed a {
  display: block;
  width: 8vw;
  height: 15vw;
  max-width: 90px;
  max-height: 166px;
  background: url(assets/images/cmn/logo_header.svg) left top / contain no-repeat;
  font-size: 0;
  transition: filter 0.3s ease, opacity 0.4s ease;
}
.logo-fixed a:hover {
  opacity: 0.5;
}

.gnav_wrap {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
}
.gnav_wrap a {
  font-family: var(--font-ui);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  color: var(--black);
  transition: color 0.3s ease;
  position: relative;
  text-decoration: none;
}
.gnav_wrap a:hover {
  opacity: 1;
}
.gnav_wrap a::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.gnav_wrap a:hover::before {
  opacity: 1;
}
.gnav_wrap a.blank::before {
  width: calc(100% - 15px);
}
/* 別タブリンク（Contact）に › を付与 */
.gnav_wrap .blank {
  padding-right: 15px;
}

.gnav_wrap .blank::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  width: 8px;
  height: 8px;
  background: url(assets/images/cmn/arrow_blank_g.svg) center center no-repeat;
  background-size: 7px auto;
}

@media (max-width: 760px) {
.header {
  height: 60px;
  padding: 10px 4%;
}
.logo-fixed a {
  width: 50px;
  height: 100px;
}


.drawer-menu {
  padding: 36vw 18vw;
}

.drawer-menu .footer-nav ul {
  width: 100%;
  gap: 8vw;
}

.drawer-menu .footer-nav a,
.drawer-menu .footer-sns-label {
  font-size: 1.4rem;
}

.drawer-menu .footer-nav {
  gap: 8vw;
}

.drawer-menu .footer-nav .sns_link {
  gap: 6vw;
}

.drawer-menu .footer-nav a.sns {
  font-size: 1.3rem;
}
}

/* 暗い背景セクション上に来たとき JS が付与するクラス */
.header--on-dark .logo-fixed a {
  filter: invert(1);
}
.header--on-dark .gnav_wrap a {
  color: var(--white);
}

/* ─── Shared: section heading ────────────────────── */
.section-title {
  font-family: var(--font-ui);
  font-size: clamp(2.8rem, 2.78vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
}

/* ─── Shared: ⠿ list link ────────────────────────── */
.list-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  line-height: 1;
}
.list-link-text {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: opacity 0.4s ease;
}
.list-link:hover .list-link-text {
  opacity: 0.4;
}
.grid-icon {
  display: inline-block;
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  position: relative;
}
.grid-icon::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: currentColor;
  box-shadow:
    5px  0px 0 currentColor, 10px  0px 0 currentColor,
    0px  5px 0 currentColor,  5px  5px 0 currentColor, 10px  5px 0 currentColor,
    0px 10px 0 currentColor,  5px 10px 0 currentColor, 10px 10px 0 currentColor;
}

@media (max-width: 760px) {
.list-link {
  gap: 10px;
  font-size: 1.2rem;
  padding-bottom: 4px;
}

.grid-icon {
  width: 12px;
  height: 11px;
  transform: scale(.8);
}
}

/* ═══════════════════════════════════════════════════
   HERO  — フルワイド、アスペクト比で高さを維持
═══════════════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  max-height: 100vw;
  min-height: 600px;
}

/* スライドエリア: 左15.3%から右端まで */
.hero-slides {
  position: absolute;
  left: 15.28%; /* 220/1440 */
  top: 0; right: 0; bottom: 48px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  clip-path: inset(0 100% 0 0);
  z-index: 0;
}
.hero-slide.active {
  clip-path: inset(0 0% 0 0);
  z-index: 1;
}
.hero-slide.prev {
  clip-path: inset(0 0% 0 0);
  z-index: 0;
}
.hero-slide.entering {
  transition: clip-path 1.4s cubic-bezier(0.77, 0, 0.175, 1);
}
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.0);
  transform-origin: center center;
  will-change: transform;
}
@keyframes heroZoom {
  from { transform: scale(1.0); }
  to   { transform: scale(1.09); }
}
.hero-slide.active img {
  animation: heroZoom 6.5s ease-out both;
}

/* テキスト */
.hero-text {
  position: absolute;
  left: 4%;
  bottom: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  row-gap: min(6.5vw, 62px);
}

/* 1行ごとの黒帯リビールアニメーション */
.hero-line {
  display: block;
  overflow: hidden;
  position: relative;
}

.hero-line img {
  max-height: 88px;
  height: 9vw;
  width: auto;
}
.hero-line__text {
  display: block;
  opacity: 0;
  animation: heroTextReveal 0.01s forwards;
  animation-delay: var(--text-delay, 1s);
}
.hero-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--black);
  transform: translateX(-101%);
  animation: heroBarSlide 1.0s cubic-bezier(0.77, 0, 0.175, 1) forwards;
  animation-delay: var(--bar-delay, 0.3s);
}
/* 各行の遅延: text-delay = bar-delay + 1.0s × 0.52 */
.hero-line:nth-child(1) { --bar-delay: 0.3s;  --text-delay: 0.82s; }
.hero-line:nth-child(2) { --bar-delay: 0.6s;  --text-delay: 1.12s; }
.hero-line:nth-child(3) { --bar-delay: 0.9s;  --text-delay: 1.42s; }

@keyframes heroBarSlide {
  0%   { transform: translateX(-101%); }
  50%  { transform: translateX(0);     }
  100% { transform: translateX(101%);  }
}
@keyframes heroTextReveal {
  to { opacity: 1; }
}

/* ドット: 右端、ヒーロー下部 */
.hero-dots {
  position: absolute;
  right: 4%;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 20;
}
.dot {
  display: block;
  height: 8px; width: 8px;
  border-radius: 4px;
  background: rgba(0,0,0,.18);
  cursor: pointer;
  transition: width 0.8s cubic-bezier(0.34, 1.7, 0.64, 1),
              background 0.5s ease;
}
.dot.active {
  width: 24px;
  background: rgba(0,0,0,.75);
}

@media (max-width: 760px) {
.hero {
  max-height: 120vw;
  min-height: 360px;
}
.hero-slides {
  left: 16%;
  bottom: 20px;
}
.hero-text {
  left: 5%;
  row-gap: 8.5555vw;
}
.hero-line img {
  height: 11vw;
}
.hero-dots {
  right: 4%;
  bottom: 5px;
  gap: 6px;
}
.dot {
  height: 6px; width: 6px;
}
.dot.active {
  width: 16px;
}
}

/* ═══════════════════════════════════════════════════
   COMMON — 下層ページ共通の main / breadcrumb / ページタイトル
═══════════════════════════════════════════════════ */
.main_low {
  padding-top: 120px;
  padding-bottom: 150px;
}

.breadcrumb {
  padding: 0 var(--gutter);
  text-align: right;
  font-family: var(--font-ui);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  margin-bottom: 90px;
  padding-left: 200px;
}
.breadcrumb a {
  text-decoration: underline;
}

.breadcrumb .sep {
  padding: 0 6px;
}
.breadcrumb .sep,
.breadcrumb .current {
  color: rgba(0, 0, 0, 0.5);
}

.page-title {
  padding: 0 var(--gutter);
  font-family: var(--font-ui);
  font-size: 6rem;
  font-weight: 400;
  text-transform: capitalize;
  line-height: 1.2;
  margin-bottom: 60px;
}

/* Generic white / thin-gray-border content frame — used to wrap the_content()
   on page.php / archive.php / single.php, same treatment as .sample-detail. */
.content-box {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.post-date {
  font-family: var(--font-ui);
  font-size: 1.2rem;
  opacity: .6;
  text-align: right;
  display: block;
  margin-bottom: 20px;
}

@media (max-width: 760px) {
.main_low {
  padding-top: 60px;
  padding-bottom: 20%;
}

.breadcrumb {
  font-size: 1.0rem;
  margin-bottom: 16vw;
  padding-left: 90px;
  height: 18px;
}

.breadcrumb .sep {
  padding: 0 6px;
}

.page-title {
  font-size: 3.2rem;
  margin-bottom: 12vw;
}

.content-box {
  max-width: 94%;
  margin: 0 auto;
  padding: 7%;
}
.post-date {
  font-size: 1.0rem;
  margin-bottom: 5%;
}
}

/* ═══════════════════════════════════════════════════
   SAMPLE
═══════════════════════════════════════════════════ */
.sample {
  position: relative;
  padding-top: 150px;
}
.sample-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 var(--gutter);
  margin-bottom: 40px;
}

.sample-scroll-wrap {
  position: relative;
  overflow: hidden;
}
.sample-cards {
  display: flex;
  padding-left: var(--gutter);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Card (360×470) */
.card {
  flex: 0 0 360px;
  width: 360px;
  height: 470px;
  background: var(--white);
  position: relative;
  border: 1px solid rgba(0,0,0,0.1);
  border-right: none;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.card.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.sample-cards .card:nth-child(2) { transition-delay: 0.15s; }
.sample-cards .card:nth-child(3) { transition-delay: 0.30s; }
.sample-cards .card:nth-child(4) { transition-delay: 0.45s; }
.sample-cards .card:nth-child(5) { transition-delay: 0.60s; }
.sample-cards .card:nth-child(6) { transition-delay: 0.75s; }
.sample-cards .card:nth-child(7) { transition-delay: 0.90s; }
.sample-cards .card:nth-child(8) { transition-delay: 1.05s; }
.card:last-child {
  border-right: 1px solid rgba(0,0,0,0.1);
}
.card:hover {
  background: #f5f5f5;
  transition: background 0.3s ease;
}
.card a {
  display: block;
  padding: 40px 40px 50px;
}
.card-tag {
  position: absolute;
  top: 16px;
  left: 26px;
  transform: rotate(90deg);
  transform-origin: top left;
  line-height: 1.0;
}
.card-code-label {
  font-family: var(--font-ui);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1;
}
.card-code-label::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 5px;
  margin-bottom: 2px;
  vertical-align: middle;
}
.card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.card-title {
  margin-top: 25px;
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.02em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.card-code {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-family: var(--font-ui);
  font-size: 1.0rem;
  color: var(--gray);
  letter-spacing: 0.04em;
}

/* Next button */
.next-btn {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1;
  white-space: nowrap;
}
.next-btn::after {
  content: '';
  display: inline-block;
  width: 40px; height: 10px;
  vertical-align: middle;
  margin-left: 10px;
  background: url(assets/images/top/arrow_next.svg) center center no-repeat;
}

@media (max-width: 760px) {
  .sample {
    padding-top: 20%;
  }
  .sample-header {
    margin-bottom: 8%;
  }
  .card {
    flex: 0 0 80vw;
    width: 80vw;
    height: auto;
  }
  .card a {
    padding: 30px 30px 50px;
  }
  .card-tag {
    top: 14px;
    left: 25px;
  }
  .card-code-label {
    font-size: 1.0rem;
  }
  .card-code-label::before {
    width: 6px; height: 6px;
    margin-right: 5px;
    margin-bottom: 2px;
  }
  .card-title {
    margin-top: 6%;
    font-size: 1.3rem;
    letter-spacing: 0.02em;
  }
  .card-code {
    bottom: 15px;
    right: 15px;
    font-size: .9rem;
  }
  .next-btn {
    font-size: 1.6rem;
  }
  .next-btn::after {
    width: 30px;
    height: 14px;
    margin-left: 8px;
    background-size: 100% auto;
  }
}


/* ═══════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════ */
.about {
  position: relative;
  width: 100%;
  padding: 0 6%;
  margin-top: 150px;
  z-index: 2;
}

.about_inner {
  max-width: 1200px;
  display: flex;
}

.about_inner .ph_box {
  flex-basis: 50%;
}

.about-img1 {
  aspect-ratio: 54 / 66;
  width: 90%;
  box-shadow: 0px 6px 28px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
}
.about-img1 img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.about-img2 {
  margin-top: 60px;
  width: 47%;
  margin-left: 62%;
  overflow: hidden;
  box-shadow: 0px 6px 28px rgba(0, 0, 0, 0.12);
  position: relative;
}
.about-img2 img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.about-content {
  flex-basis: 50%;
  padding: 0 4%;
}

.about-content .section-title {
  margin-bottom: 50px;
  line-height: 1;
}

.about-body {
  font-family: var(--font-body);
  font-size: clamp(1.3rem, 1.04vw, 1.5rem);
  font-weight: 400;
  line-height: 2.4;
  letter-spacing: 0.04em;
}

.about-img3 {
  aspect-ratio: 3 / 2;
  margin-top: 80px;
  margin-left: 16%;
  overflow: hidden;
  box-shadow: 0px 6px 28px rgba(0, 0, 0, 0.12);
  position: relative;
}
.about-img3 img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.about-img1::after,
.about-img2::after,
.about-img3::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #000;
  transform: translateY(-101%);
  pointer-events: none;
}

/* black bar slides from top → through → exits bottom, then image snaps to grayscale */
.about-img1.is-mono::after {
  animation: monoBarSlide 1.2s ease-in-out forwards;
}
.about-img2.is-mono::after {
  animation: monoBarSlide 1.2s ease-in-out 0.5s forwards;
}
.about-img3.is-mono::after {
  animation: monoBarSlide 1.2s ease-in-out 0s forwards;
}

/* snap to grayscale while bar is fully covering the image (at 50% of animation) */
.about-img1.is-mono img { filter: grayscale(1); transition: filter 0.01s 0.6s; }
.about-img2.is-mono img { filter: grayscale(1); transition: filter 0.01s 1.1s; }
.about-img3.is-mono img { filter: grayscale(1); transition: filter 0.01s 0.6s; }

@keyframes monoBarSlide {
  0%   { transform: translateY(-101%); }
  100% { transform: translateY(101%);  }
}

/* Brand display (outside .about) */
.brand-display {
  position: relative;
  margin-top: -3vw;
  transform: translateX(-4vw);
  z-index: 1;
  overflow: visible;
}
.brand-display img {
  height: 9.2vw;
  width: auto;
  max-width: none;
}

@media (max-width: 760px) {
  .about {
    padding: 0;
    margin-top: 20%;
  }

  .about_inner {
    flex-wrap: wrap;
  }

  .about_inner .ph_box {
    flex-basis: 100%;
    margin-bottom: -6vw;
  }

  .about-img1 {
    width: 72%;
  }

  .about-img2 {
    margin-top: 6%;
    width: 48%;
    margin-left: 52%;
  }

  .about-content {
    flex-basis: 100%;
    padding: 0 7%;
  }

  .about-content .section-title {
    margin-bottom: 6%;
  }

  .about-body {
    line-height: 2.4;
  }

  .about-img3 {
    margin-top: 10%;
    margin-left: 20%;
  }

  .brand-display {
    margin-left: 5%;
  }
  .brand-display img {
    height: 10vw;
  }
}

/* ═══════════════════════════════════════════════════
   NEWS  — max(4%, calc(50% - 500px)) = 220px at 1440px
═══════════════════════════════════════════════════ */
.news {
  padding: 120px max(4%, calc(50% - 500px)) 120px;
}
.news-inner {
  display: flex;
  align-items: flex-start;
}
.news-inner > .section-title {
  flex: 0 0 200px;
  line-height: 1;
}
.news-list { flex: 1; }
.news-item {
  display: flex;
  align-items: center;
  padding: 28px 20px;
  gap: 20px;
  cursor: pointer;
  border-bottom: 1px solid rgba(0,0,0,.15);
  position: relative;
  transition: background 0.2s ease;
}
.news-item:hover {
  background: rgba(0,0,0,.04);
}

.news-item::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translate(-50%,-50%);
  width: 10px;
  height: 10px;
  background: url(assets/images/cmn/arrow_blank.svg) center center no-repeat;
  background-size: 12px auto;
}

.news-item:first-child {
  border-top: 1px solid rgba(0,0,0,.15);
}
.news-date {
  flex: 0 0 80px;
  font-family: var(--font-ui);
  font-size: 1.2rem;
  color: var(--gray);
  letter-spacing: 0.04em;
}
.news-text {
  flex: 1;
  font-family: var(--font-body);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-arrow-icon {
  flex: 0 0 16px;
  font-size: 1.1rem;
  font-family: var(--font-ui);
  color: var(--black);
}
.news-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 40px;
}

@media (max-width: 760px) {
.news {
  padding: 18% 6%;
}
.news-inner {
  display: block;
}
.news-inner > .section-title {
  margin-bottom: 8%;
}
.news-item {
  padding: 6% 30px 6% 3%;
  gap: 2vw;
  flex-wrap: wrap;
}
.news-item::after {
  right: 2%;
  background-size: 10px auto;
}
.news-date {
  flex: 0 0 80px;
  font-size: 1.0rem;
}
.news-text {
  font-size: 1.3rem;
  flex-basis: 100%;
  display: block;
}
.news-arrow-icon {
  flex: 0 0 16px;
  font-size: 1.1rem;
  font-family: var(--font-ui);
  color: var(--black);
}
.news-footer {
  padding-top: 8%;
}
}


/* ═══════════════════════════════════════════════════
   SAMPLE ARCHIVE  (/sample)
═══════════════════════════════════════════════════ */

/* --- Filter panel --- */
.filter-panel {
  margin: 0 var(--gutter) 50px;
  padding: 40px 60px 60px;
  background: rgba(217, 217, 217, 0.2) url(assets/images/cmn/bg_noise.png) top left repeat;
  background-size: 1024px auto;
  border-radius: 6px;
}
.filter-panel__header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  padding-bottom: 15px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.filter-panel__icon {
  width: 25px;
  height: 25px;
  background: url(assets/images/cmn/icon_filter.svg) center center no-repeat;
}

.filter-panel__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 60px;
  padding: 0 20px;
  position: relative;
}

.filter-col {
  display: flex;
  flex-direction: column;
  row-gap: 36px;
}

.filter-col--right {
  padding-bottom: 86px;
}

.filter-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.filter-row:last-child {
  margin-bottom: 0;
}
.filter-row__label {
  flex: 0 0 90px;
  font-family: var(--font-ui);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  line-height: 30px;
}

/* Color swatches — <label class="color-swatch"><input type="checkbox">...</label> */
.color-swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.color-swatch {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  box-shadow: 0 0 0 0 transparent;
  transition: box-shadow 0.15s ease;
}
.color-swatch.color_cl {
  background: url(assets/images/cmn/bg_cl.png) top center repeat!important;
  background-size: 15px auto!important;
}
.color-swatch:hover {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0, 0, 0, 0.3);
}

.color-swatch.is-active::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(0, 0, 0, .2) url(assets/images/cmn/icon_check.svg) center center no-repeat;
  background-size: 12px auto;
}
/*
.color-swatch.is-active,
.color-swatch:has(input:checked) {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000;
} */

.color-swatch input,
.pill-btn input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Pill buttons (material / finish / case) — <label class="pill-btn"><input type="checkbox">label</label> */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 20px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.0;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, padding 0.25s ease;
}
.pill-btn:hover {
  border-color: rgba(0, 0, 0, 0.3);
}
.pill-btn.is-active,
.pill-btn:has(input:checked) {
  background: #000;
  color: #fff;
  border-color: #000;
  /* checkmark (9px) + its 6px gap = 15px, split evenly off both sides
     (20px -> 12.5px each) so the checkmark+text group ends up centered
     and the button's overall width never changes. */
  padding-left: 12.5px;
  padding-right: 12.5px;
}
.pill-btn::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 9px;
  background: url(assets/images/cmn/icon_check.svg) center center no-repeat;
  background-size: 9px auto;
  opacity: 0;
  overflow: hidden;
  transform: translateY(6px);
  /* width/margin-right are NOT delayed and match .pill-btn's padding
     transition (0.25s, no delay) exactly, so the space they reserve
     always exactly offsets the padding change — the button's total
     width never shrinks/grows mid-animation. opacity/transform (which
     don't affect layout) get a delay on the way in, and fade+slide down
     immediately on the way out. */
  transition: width 0.25s ease, margin-right 0.25s ease, opacity 0.15s ease, transform 0.15s ease;
}
.pill-btn.is-active::before,
.pill-btn:has(input:checked)::before {
  width: 9px;
  opacity: 1;
  margin-right: 6px;
  transform: translateY(0);
  transition: width 0.25s ease, margin-right 0.25s ease, opacity 0.15s ease 0.15s, transform 0.15s ease 0.15s;
}

/* Keyword input + search button */
.keyword-row .filter-row__label {
  padding-top: 10px;
}
.keyword-input {
  flex: 1 1 auto;
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1.4rem;
  background: #fff;
}
.keyword-input::placeholder {
  color: rgba(18, 18, 18, 0.3);
}

.search-btn_wrap {
  position: absolute;
  bottom: 0;
  right: 20px;
  width: 300px;
}

.search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  height: 50px;
  width: 100%;
  padding: 0 30px;
  max-width: 300px;
  background: #000;
  color: #fff;
  border: 1px solid #000;
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  position: relative;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.search-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 25px;
  width: 10px;
  height: 10px;
  background: url(assets/images/cmn/arrow_blank_w.svg) center center no-repeat;
  transform: rotate(45deg) translateY(-50%);
  transform-origin: center center;
}

.search-btn__icon {
  width: 15px;
  height: 15px;
  background: url(assets/images/cmn/icon_search.svg) center center no-repeat;
  background-size: 13px auto;
  transition: filter 0.3s ease;
}
.search-btn:hover {
  background: #fff;
  color: #000;
  border-color: #000;
}
.search-btn:hover .search-btn__icon,
.search-btn:hover::after {
  filter: invert(1);
}

@media (max-width: 760px) {
.filter-panel {
  margin: 0 2.5% 15%;
  padding: 8% 6% 10%;
  border-radius: 4px;
}
.filter-panel__header {
  gap: 10px;
  font-size: 1.5rem;
  padding-bottom: 4%;
  margin-bottom: 8%;
}
.filter-panel__icon {
  width: 20px;
  height: 20px;
  background-size: 20px auto;
}

.filter-panel__body {
  gap: 8vw;
  padding: 0 4%;
}

.filter-col {
  row-gap: 7vw;
}

.filter-col--right {
  padding-bottom: 75px;
}
.filter-row {
  flex-direction: column;
}
.filter-row:last-child {
  margin-bottom: 0;
}
.filter-row__label {
  flex: 0 0 24px;
  font-size: 1.3rem;
  line-height: 1.0;
}

.color-swatches {
  gap: 10px;
}
.color-swatch {
  width: 30px;
  height: 30px;
}

.color-swatch input,
.pill-btn input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Pill buttons (material / finish / case) — <label class="pill-btn"><input type="checkbox">label</label> */
.pill-group {
  gap: 6px;
}
.pill-btn {
  padding: 8px 12px;
  font-size: 1.3rem;
}

/* Keyword input + search button */
.keyword-row .filter-row__label {
  padding-top: 0;
}
.keyword-input {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  font-size: 1.3rem;
}

.search-btn_wrap {
  right: 2%;
  width: 96%;
}

.search-btn {
  padding: 0 8%;
  font-size: 1.4rem;
}

.search-btn::after {
  right: 8%;
}
}


/* Sort */
.sample-sort {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  padding: 0 var(--gutter);
  margin-bottom: 24px;
  font-family: var(--font-body);
  font-size: 1.2rem;
}
.sample-sort__label {
  margin-right: 4px;
  padding-left: 20px;
  position: relative;
}

.sample-sort__label::after {
  content: "  /";
}

.sample-sort__label::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: url(assets/images/cmn/icon_sort.svg) center center no-repeat;
}

.sample-sort__wrap {
  display: flex;
}

.sort-btn {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  line-height: 1.0;
  position: relative;
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: rgba(0, 0, 0, 0.3);
}

.sort-btn.is-active,
.sort-btn:hover {
  color: #000;
}
.sort-btn::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.sort-btn.is-active::after,
.sort-btn:hover::after {
  border-bottom: 1px solid #000;
}

@media (max-width: 760px) {
.sample-sort {
  gap: 6px;
  margin-bottom: 6%;
  font-size: 1.1rem;
}
.sample-sort__label {
  margin-right: 4px;
  padding-left: 20px;
}
.sort-btn {
  padding: 4px 6px;
  font-size: 1.1rem;
}
}

/* --- Grid (overrides the TOP-page carousel .card defaults) --- */
.sample-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 var(--gutter);
}
.sample-grid .card {
  flex: none;
  width: auto;
  height: auto;
  min-height: 340px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: -1px;
  margin-left: -1px;
  opacity: 1; /* override base .card { opacity: 0 } so cards show immediately without the (disabled) scroll-reveal JS */
  transform: none;
  transition: background 0.3s ease;
}
.sample-grid .card:nth-child(4n + 1) {
  margin-left: 0;
}
.sample-grid .card:nth-child(-n + 4) {
  margin-top: 0;
}
.sample-grid .card a {
  padding: 34px 34px 50px;
}
.sample-grid .card-title {
  font-size: 1.4rem;
  margin-top: 20px;
}
.sample-grid .card-code {
  font-size: 1.0rem;
  bottom: 10px;
  right: 14px;
}
.sample-grid .card-tag {
  top: 15px;
  left: 24px;
}

.sample-empty {
  grid-column: 1 / -1;
  padding: 60px 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: 1.4rem;
  color: rgba(0, 0, 0, 0.5);
}

/* Pagination — native the_posts_pagination() markup:
   <nav class="navigation pagination"><div class="nav-links">
     <a/span class="page-numbers"> ... <a class="prev page-numbers"> <a class="next page-numbers">
   </div></nav> */
.pagination {
  margin: 60px var(--gutter) 0;
}
.pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: -1px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-family: var(--font-ui);
  font-size: 1.1rem;
  color: rgba(0, 0, 0, 0.4);
  text-decoration: none;
}
.pagination .page-numbers:first-of-type {
  margin-left: 0;
}
.pagination .page-numbers.current {
  background: #000;
  color: #fff;
  border-color: #000;
}
.pagination .page-numbers.dots {
  border: none;
  background: none;
  width: auto;
}
.pagination .page-numbers.prev,
.pagination .page-numbers.next {
  width: auto;
  height: auto;
  margin-left: 0;
  padding: 0;
  border: none;
  background: none;
  font-family: var(--font-ui);
  font-size: 1.4rem;
  color: #000;
  letter-spacing: 0.03em;
}

@media (max-width: 900px) {
  .filter-panel__body {
    grid-template-columns: 1fr;
  }
  .sample-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
.sample-grid .card {
  min-height: auto;
}
.sample-grid .card a {
  padding: 12% 12% 22%;
}
.sample-grid .card-title {
  font-size: 1.3rem;
  margin-top: 6%;
}
.sample-grid .card-code {
  font-size: .9rem;
  bottom: 8px;
  right: 10px;
}
.sample-grid .card-code-label {
  font-size: .9rem;
}
.sample-grid .card-code-label::before {
  width: 5px;
  height: 5px;
  margin-right: 4px;
  margin-bottom: 1px;
}
.sample-grid .card-tag {
  top: 8px;
  left: 20px;
}
.sample-empty {
  padding: 60px 0;
  font-size: 1.4rem;
}

.pagination {
  margin: 12% var(--gutter) 0;
}
.pagination .nav-links {
  gap: 10px;
}
.pagination .page-numbers {
  width: 30px;
  height: 30px;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
  font-size: 1.4rem;
}
}

/* ═══════════════════════════════════════════════════
   SINGLE SAMPLE  (/sample/{slug})
═══════════════════════════════════════════════════ */

/* --- Detail card: photo + spec + body + CTA --- */
.sample-detail {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 60px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.sample-detail__top {
  display: flex;
  align-items: center;
  gap: 20px;
}

.sample-detail__photo {
  flex: 0 0 50%;
  width: 50%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
}
.sample-detail__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sample-detail__info {
  flex: 1;
  padding: 40px 40px 0;
}

.sample-detail__head {
  padding-bottom: 20px;
  margin-bottom: 15px;
  border-bottom: 1px solid #000;
}
.sample-detail__title {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.6;
}
.sample-detail__code {
  text-align: right;
  flex-shrink: 0;
  font-family: var(--font-ui);
  font-size: 1.0rem;
  color: var(--gray);
  letter-spacing: 0.04em;
}

.sample-spec {
  display: flex;
  flex-direction: column;
}
.sample-spec__row {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 28px 0 16px;
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-family: var(--font-ui);
  font-size: 1.4rem;
}
.sample-spec__row::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 120px;
  height: 1px;
  background: #000;
}
.sample-spec__row dt {
  flex: 0 0 120px;
  padding: 0 10px;
}
.sample-spec__row dd {
  flex: 1;
  display: flex;
  padding: 0 10px;
  align-items: center;
}
.sample-spec__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 8px;
}

.sample-detail__body {
  padding: 60px 40px 90px;
}

.sample-detail__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 80px 4% 40px;
  margin: 0 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.sample-detail__cta .sample-detail__cta_txt {
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 500;
}

/* Outline "Contact form" button (same sizing/arrow convention as .contact-btn,
   just inverted for a light background). */
.contact-btn-outline {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  width: 300px;
  height: 60px;
  padding: 0 30px;
  border: 1px solid #000;
  border-radius: 4px;
  color: var(--black);
  font-family: var(--font-ui);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  transition: background 0.3s ease, color 0.3s ease;
}
.contact-btn-outline::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 30px;
  transform: translate(50%, -50%);
  width: 10px;
  height: 10px;
  background: url(assets/images/cmn/arrow_blank.svg) center center no-repeat;
  background-size: 10px;
}
.contact-btn-outline:hover {
  background: #000;
  color: #fff;
  opacity: 1;
}
.contact-btn-outline:hover::after {
  filter: invert(1);
}

/* Article body typography lives in assets/css/system.css under
   .system_article (shared with page.php / single.php etc.) */

/* --- Related Samples: same layout as TOP's .sample section (reused
   verbatim), just override the scroll-reveal opacity since topevent.js
   (which adds .is-visible) only runs on the front page. --- */
.related-samples {
  padding-top: 0;
}
.related-samples .card {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .sample-detail {
    padding: 30px;
  }
  .sample-detail__top {
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
  }
  .sample-detail__photo {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 760px) {
.sample-detail {
  max-width: 94%;
  margin: 0 auto 15%;
  padding: 6%;
}

.sample-detail__top {
  flex-wrap: wrap;
  gap: 5vw;
}

.sample-detail__photo {
  flex: 0 0 100%;
  width: 100%;
}

.sample-detail__info {
  padding: 0 2%;
}

.sample-detail__head {
  padding-bottom: 5%;
  margin-bottom: 4%;
}
.sample-detail__title {
  font-size: 1.6rem;
}
.sample-detail__code {
  font-size: 1rem;
}

.sample-spec__row {
  padding: 5% 0 4%;
  font-size: 1.2rem;
}
.sample-spec__row::after {
  width: 100px;
}
.sample-spec__row dt {
  flex: 0 0 100px;
  padding: 0 2%;
}
.sample-spec__row dd {
  padding: 0 2%;
}
.sample-spec__dot {
  width: 8px;
  height: 8px;
  margin-right: 8px;
}

.sample-detail__body {
  padding: 10% 2%;
}

.sample-detail__cta {
  flex-wrap: wrap;
  gap: 4vw;
  padding: 10% 4% 4%;
  margin: 0;
}
.sample-detail__cta .sample-detail__cta_txt {
  font-size: 1.4rem;
}

.contact-btn-outline {
  width: 100%;
  height: 54px;
  padding: 0 30px;
  font-size: 1.4rem;
}
.contact-btn-outline::after {
  right: 30px;
  width: 10px;
  height: 10px;
  background: url(assets/images/cmn/arrow_blank.svg) center center no-repeat;
  background-size: 10px;
}
}



/* ═══════════════════════════════════════════════════
   CONTACT  — フルワイド、高さ固定
═══════════════════════════════════════════════════ */
.contact {
  position: relative;
  padding: 0 2.5%;
}

.contact_inner {
  border-radius: 10px;
  background: #000 url(assets/images/cmn/bg_contact.jpg) center center no-repeat;
  background-size: cover;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 120px 8%;
}

.content_wrap {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.contact-content {
  position: relative;
  z-index: 10;
}
.contact-title {
  font-family: var(--font-ui);
  font-size: clamp(2.8rem, 3.47vw, 5rem);
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.03em;
  line-height: 1;
  margin-bottom: 20px;
}
.contact-desc {
  font-family: var(--font-body);
  font-size: 1.4rem;
  color: var(--white);
  line-height: 2;
  letter-spacing: 0.04em;
}
.contact-btn {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 300px;
  height: 60px;
  padding: 0 30px;
  border: 1px solid var(--white);
  border-radius: 4px;
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  gap: 16px;
  transition: background 0.4s ease, color 0.4s ease;
}
.contact-btn:hover {
  opacity: 1;
  background: var(--white);
  color: var(--black);
}
.contact-btn:hover::after {
  filter: invert(1);
}

.contact-btn::after {
  content: "";
  position: absolute;
  z-index: 9;
  top: 50%;
  right: 30px;
  transform: translate(50%,-50%);
  width: 10px;
  height: 10px;
  background: url(assets/images/cmn/arrow_blank_w.svg) center center no-repeat;
  background-size: 12px;
}

@media (max-width: 760px) {
.contact_inner {
  border-radius: 8px;
  padding: 20% 10%;
}

.content_wrap {
  flex-wrap: wrap;
}

.contact .title_box {
  margin-bottom: 12%;
}

.contact-title {
  margin-bottom: 5%;
}
.contact-desc {
  font-size: 1.3rem;
}
.btn_cv {
  width: 100%;
}
.contact-btn {
  width: 100%;
  height: 50px;
  padding: 0 6%;
  border-radius: 3px;
  font-size: 1.3rem;
  gap: 16px;
}

.contact-btn::after {
  right: 8%;
  background-size: 10px;
}
}

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
.footer {
  width: 100%;
  padding: 100px var(--gutter) 60px;
}
.footer-top {
  display: flex;
  align-items: flex-start;
  padding-bottom: 100px;
}
.footer-logo {
  width: 22vw;
  max-width: 214px;
  flex-shrink: 0;
  margin-right: auto;
}
.footer-logo img {
  width: 100%; height: auto;
  transition: opacity 0.4s ease;
}
.footer-logo a:hover img {
  opacity: 0.5;
}

.footer-nav {
  display: flex;
  gap: 60px;
}
.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  min-width: 120px;
  gap: 30px;
  line-height: 1.0;
}

.footer-nav .sns_link {
  gap: 15px;
}
.footer-nav a {
  font-family: var(--font-ui);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  line-height: 1;
  position: relative;
}
.footer-nav a::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.footer-nav a:hover::before {
  opacity: 1;
}
.footer-nav a.blank::before {
  width: calc(100% - 15px);
}
.footer-nav .sns_link li:not(.footer-sns-label)::before {
  content: '- ';
  font-family: var(--font-ui);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.footer-nav a.sns {
  font-size: 1.2rem;
}

.footer-nav a.blank {
  position: relative;
  padding-right: 15px;
  display: inline-block;
}
.footer-nav a.blank::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  background: url(assets/images/cmn/arrow_blank_g.svg) center center no-repeat;
  background-size: 8px;
  width: 8px;
  height: 8px;
}

.footer-sns { min-width: 120px; }
.footer-sns-label {
  font-family: var(--font-ui);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
}
.footer-sns ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.footer-sns a {
  font-family: var(--font-ui);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.footer-powered {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.powered-label {
  font-family: var(--font-ui);
  font-size: 1.0rem;
  opacity: .3;
  letter-spacing: 0.04em;
}
.powered-logo { display: block; }
.powered-logo img {
  height: 32px; width: auto;
  transition: opacity 0.4s ease;
}
.powered-logo:hover img {
  opacity: 0.5;
}
.footer-address {
  font-family: var(--font-ui);
  font-size: 1.0rem;
  letter-spacing: 0.02em;
  color: var(--black);
  opacity: .5;
  margin-top: 5px;
}
.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}
.privacy-link {
  font-family: var(--font-ui);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-decoration: underline;
  opacity: .6;
}
.copyright {
  font-family: var(--font-ui);
  font-size: .9rem;
  opacity: .4;
  letter-spacing: 0.02em;
  color: var(--black);
}

@media (max-width: 760px) {
.footer {
  width: 100%;
  padding: 15% 8% 8%;
}
.footer-top {
  flex-wrap: wrap;
  padding-bottom: 20%;
}
.footer-logo {
  width: 40vw;
  margin-bottom: 12%;
}

.footer-nav {
  flex-wrap: wrap;
  gap: 10vw;
}
.footer-nav ul {
  min-width: auto;
  gap: 5vw;
}

.footer-nav .sns_link {
  gap: 2.5vw;
}
.footer-nav a {
  font-size: 1.2rem;
}
.footer-nav a::before {
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1px;
}
.footer-nav a.blank::before {
  width: calc(100% - 15px);
}

.footer-nav a.sns {
  font-size: 1.0rem;
}

.footer-nav a.blank {
  padding-right: 15px;
}
.footer-nav a.blank::after {
  background-size: 8px;
  width: 8px;
  height: 8px;
}

.footer-sns { min-width: auto; }
.footer-sns-label {
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}
.footer-sns ul {
  gap: 30px;
}

.footer-bottom {
  flex-wrap: wrap;
  row-gap: 10vw;
}
.footer-powered {
  gap: 2vw;
}
.powered-label {
  font-size: 1.0rem;
}
.powered-logo img {
  height: 28px;
}
.footer-address {
  font-size: 1.0rem;
  margin-top: 0;
}
.footer-legal {
  gap: 4vw;
  flex-basis: 100%;
}
.privacy-link {
  font-size: 1.0rem;
}
.copyright {
  font-size: .8rem;
}
}

/* ═══════════════════════════════════════════════════
   SCROLL FADE-IN
═══════════════════════════════════════════════════ */
[data-scroll] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-scroll].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-scroll-delay="1"] { transition-delay: 0.1s; }
[data-scroll-delay="2"] { transition-delay: 0.2s; }
[data-scroll-delay="3"] { transition-delay: 0.3s; }
[data-scroll-delay="4"] { transition-delay: 0.4s; }
[data-scroll-delay="5"] { transition-delay: 0.5s; }
[data-scroll-delay="8"] { transition-delay: 0.8s; }

/* ─── Next arrow: 右に飛び出して戻るアニメーション ─── */
@keyframes arrowFlyRight {
  0%   { translate: 0 0;      opacity: 1; }
  44%  { translate: 12px 0;   opacity: 0; }
  45%  { translate: -12px 0;  opacity: 0; }
  100% { translate: 0 0;      opacity: 1; }
}
.next-btn:hover::after,
.search-btn:hover::after {
  animation: arrowFlyRight 0.45s ease forwards;
}

/* ─── Blank arrow: 斜め上に飛び出して戻るアニメーション ─── */
@keyframes arrowFly {
  0%   { translate: 0 0;          opacity: 1; }
  44%  { translate: 5px -5px;     opacity: 0; }
  45%  { translate: -5px  5px;    opacity: 0; }
  100% { translate: 0 0;          opacity: 1; }
}
.gnav_wrap .blank:hover::after,
.news-item:hover::after,
.contact-btn:hover::after,
.footer-nav a.blank:hover::after,
.contact-btn-outline:hover::after {
  animation: arrowFly 0.45s ease forwards;
}
