/*
Theme Name: REED Site Theme
Author: OpenAI
Description: REED corporate site custom theme converted from static HTML.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: reed-site-theme
*/

/* ========================================
   Reset
======================================== */

/* --- Reset CSS (Minimal & Modern) --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img,
picture {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
  background: none;
  border: none;
  outline: none;
  appearance: none;
}

ul,
ol {
  list-style: none;
}

:root {
  --line-color: rgba(51, 51, 51, 0.6);
  --bg-color: #dfdfdf;
  --text-color: #1a1a1a;
  --line-gap: 3.5rem;
}


html,
body {
  background-color: #dfdfdf !important;
}

body {
  overflow-x: hidden;
  font-family: 'Helvetica', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
  min-height: 100%;
}

body.is-locked {
  overflow: hidden;
}

/* ========================================
   Common
======================================== */

/* Common / Layout */
/* --- Common UI --- */
.common-section {
  padding: 150px 0;
  width: 100%;
}

.common-container {
  width: 100%;
  padding: 0 5rem;
  margin: 0 auto;
  position: relative;
}

.common-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.header-left {
  flex: 1;
  position: relative;
  padding: 60px 0;
}

.title-line-decor {
  position: absolute;
  left: -10vw;
  width: 0;
  height: 1px;
  background: linear-gradient(to right, #1a1a1a, transparent);
  transition: width 3s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-reveal.active .title-line-decor {
  width: 60vw;
}

.title-text-stack {
  opacity: 0;
  transform: translateX(-20px);
  transition: .2s ease 0.8s;
}

.js-reveal.active .title-text-stack {
  opacity: 1;
  transform: translateX(0);
}

.main-title {
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1;
}

.sub-title {
  font-size: 1rem;
  margin-top: 1rem;
}

.header-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.items-body-copy {
  margin-top: 100px;
  font-size: 1rem;
  line-height: 2;
  max-width: 400px;
  opacity: 0;
  transition: 1s ease 1.2s;
}

.js-reveal.active .items-body-copy {
  opacity: 1;
}

/* Common / Shared Buttons & CTA */
.button-area {
  margin-top: 50px;
}

.common-grad-btn {
  display: inline-block;
  background: linear-gradient(90deg, #1a1a1a 0%, #444 50%, #1a1a1a 100%);
  background-size: 200% 100%;
  border: none;
  color: #fff;
  text-decoration: none;
  padding: 1.2rem 6rem;
  border-radius: 50px;
  transition: 0.3s;
  white-space: nowrap;
}

.common-grad-btn:hover {
  background-position: 100% 0;
}

.common-grad-btn:hover .arrow1 {
  translate: 20px 0;
}

.arrow1 {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 1px;
  margin-top: 9.9px;
  border-radius: 1px;
  background-color: #fff;
  margin-left: 1rem;
  transition: translate 0.3s ease-in-out;
}

.arrow1::before {
  content: "";
  position: absolute;
  top: calc(50% - 0.5px);
  right: 0;
  width: 25px;
  height: 1px;
  background-color: #fff;
  transform: rotate(30deg);
  transform-origin: calc(100% - 0.5px) 50%;
}

/* Common / Shared Contact CTA */
/* --- Contact Section (白ボックス) --- */
.contact-box-wrapper {
  margin-top: 100px;
  height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-expanding-box {
  width: 40%;
  height: 40%;
  background: #fff;
  border-radius: 40px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.1s linear, height 0.1s linear;
}

.contact-content {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s;
  width: 100%;
  padding: 0 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-expanding-box.content-show .contact-content {
  opacity: 1;
  transform: translateY(0);
}

.contact-copy {
  font-size: 1.8rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: left;
}

.arrow-circle-black {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 1px solid var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  transition: 0.3s;
  position: relative;
}

.arrow-circle-black::before {
  content: "";
  position: relative;
  width: 60px;
  height: 1px;
  margin-top: 9.9px;
  border-radius: 1px;
  background-color: var(--text-color);
  transition: translate 0.3s ease-in-out;
}

.arrow-circle-black::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 1px;
  margin-top: 9.9px;
  border-radius: 1px;
  background-color: var(--text-color);
  transition: translate 0.3s ease-in-out;
  transform: rotate(45deg);
  left: calc(50% + 5px);
  bottom: calc(50% + 5px);
}

.arrow-circle-black:hover {
  background-color: var(--text-color);
  transform: rotate(-45deg);
}

.arrow-circle-black:hover.arrow-circle-black::after,
.arrow-circle-black:hover.arrow-circle-black::before {
  background-color: #fff;
}

/* Common / Page Transition */
/* --- ページ遷移用マスク --- */
html.is-page-transitioning #page-transition {
  visibility: visible;
  transform: translateX(0);
  transition: none;
}
#page-transition {
  position: fixed;
  inset: 0;
  background-color: #1a1a1a;
  z-index: 999999999;
  pointer-events: none;
  visibility: hidden;
  transform: translateX(-100%);
  backdrop-filter: blur(0px);
  opacity: 1;
will-change: transform;
backface-visibility: hidden;
}

#page-transition.is-active {
  visibility: visible;
  transform: translateX(0);
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

#page-transition.is-out {
  visibility: visible;
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Common / Hamburger Menu */
/* --- Hamburger Icon --- */
.menu-trigger {
  position: fixed;
  top: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, color 0.4s;
}

.menu-trigger.is-show {
  opacity: 1;
  visibility: visible;
}

.menu-trigger.is-active {
  opacity: 1 !important;
  visibility: visible !important;
}

.menu-trigger span {
  display: block;
  width: 40px;
  height: 1px;
  background-color: var(--text-color);
  margin: 4px 0;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  transform-origin: right;
}

/* クリック時 */
.menu-trigger.is-active span {
  background-color: #fff;
}

.menu-trigger.is-active span:nth-child(1) {
  width: 60px;
}

/* --- Menu Screen --- */
.g-nav {
  position: fixed;
  top: 0;
  right: -50%;
  width: 50%;
  height: 100vh;
  background: linear-gradient(to right, transparent 0%, #33333370 15%, #333333b8 30%, #1a1a1a 100%);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8%;
  transition: right 0.8s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.8s;
  opacity: 0;
  pointer-events: none;
}

.g-nav.is-active {
  right: 0;
  opacity: 1;
  pointer-events: auto;
}

/* --- Menu Screen リスト出現アニメーション --- */

.g-nav .sitemap {
  list-style: none;
  padding: 0;
  margin: 0;
}

.g-nav .sitemap li {
  overflow: hidden;
  margin-bottom: 25px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* メニューが開いた状態 */
.g-nav.is-active .sitemap li {
  opacity: 1;
  transform: translateY(0);
}

.g-nav.is-active .sitemap li:nth-child(1) {
  transition-delay: 0.4s;
}

.g-nav.is-active .sitemap li:nth-child(2) {
  transition-delay: 0.55s;
}

.g-nav.is-active .sitemap li:nth-child(3) {
  transition-delay: 0.7s;
}

.g-nav.is-active .sitemap li:nth-child(4) {
  transition-delay: 0.85s;
}

.g-nav .sitemap-item {
  display: flex;
  align-items: baseline;
  text-decoration: none;
  color: #fff;
}

.g-nav .sitemap-item .en {
  width: 120px;
}

.g-nav .sitemap-item .jp {
  opacity: 0.5;
}

/* Common / Footer */
/* --- Footer --- */
footer {
  background: var(--text-color);
  padding: 80px 10% 40px;
  color: #fff;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.sitemap {
  list-style: none;
}

.sitemap-item {
  color: #fff;
  text-decoration: none;
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: baseline;
  transition: opacity 0.3s;
}

.sitemap-item:hover {
  opacity: 0.7;
}

.sitemap-item .en {
  font-size: 1rem;
  width: 130px;
  flex-shrink: 0;
  letter-spacing: 0.05rem;
}

.sitemap-item .jp {
  font-size: 0.8rem;
  opacity: 0.6;
  white-space: nowrap;
}

.info-area {
  text-align: right;
}

.company-logo img {
  height: 1.5 rem;
  margin-bottom: 20px;
}

.address-box {
  font-size: 0.9rem;
  line-height: 1.8;
  opacity: 0.8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 60px;
  padding-top: 20px;
  text-align: right;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Common / Sub Page Header */
.sub-page .lower-main {
  padding-top: 80px;
}

.sub-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 900;
}

.sub-logo img {
  height: 2.2rem;
  width: auto;
}

/* ========================================
   Top Page
======================================== */

/* Top / Loader */
/* --- Loader --- */

#loader {
  position: fixed;
  inset: 0;
  background: var(--bg-color);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

html.has-visited #loader {
  display: none !important;
}

.loader-content {
  position: relative;
  width: 300px;
  height: 300px;
  transition: opacity 1s ease, transform 1.2s ease;
  will-change: opacity, transform;
}

.loader-content.is-hidden {
  opacity: 0;
  transform: scale(0.95);
}

.loader-content svg {
  animation: rotateText 10s linear infinite;
}

@keyframes rotateText {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

#loading-text {
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 300;
  font-size: 0.9rem;
  letter-spacing: 0.2rem;
  animation: blinkAndFade 5s forwards;
}

@keyframes blinkAndFade {

  0%,
  20%,
  40%,
  60% {
    opacity: 1;
  }

  10%,
  30%,
  50% {
    opacity: 0;
  }

  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

#percent {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 300;
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#percent.show {
  opacity: 1;
}

/* Top / FV & Lines */
/* --- FV & Lines --- */
.fv-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 10;
}

.lines-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lines-scan span {
  position: absolute;
  opacity: 0;
}

.lines-scan .h-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line-color), transparent);
}

.lines-scan .v-line {
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--line-color), transparent);
}

@keyframes scanH {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }

  20%,
  80% {
    opacity: 1;
  }

  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes scanV {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }

  20%,
  80% {
    opacity: 1;
  }

  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

.lines-corners {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

.corner-group span {
  position: absolute;
  background-color: var(--line-color);
  transition: transform 0.1s linear;
  will-change: transform;
}

.corner-group .h-line {
  height: 1px;
  background: linear-gradient(to right, var(--line-color), transparent);
}

.corner-group .v-line {
  width: 1px;
  background: linear-gradient(to bottom, var(--line-color), transparent);
}

.br .h-line {
  background: linear-gradient(to left, var(--line-color), transparent);
}

.br .v-line {
  background: linear-gradient(to top, var(--line-color), transparent);
}

/* --- Logo & Scroll Hint --- */
.logo-wrapper {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 500;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.logo img {
  height: 5rem;
  width: auto;
}

.tagline {
  margin-top: 1rem;
  font-size: 0.9rem;
  letter-spacing: 0.5rem;
  color: #666;
}

.scroll-hint {
  position: fixed;
  bottom: 8vh;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #666;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 400;
}

.arrow-circle {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(153, 153, 153, 0.5);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px auto 0;
  animation: floatArrow 2s ease-in-out infinite;
}

.arrow-v {
  width: 10px;
  height: 10px;
  border-right: 1px solid #666;
  border-bottom: 1px solid #666;
  transform: rotate(45deg);
  margin-top: -5px;
}

@keyframes floatArrow {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }
}

/* Top / Story Section */
/* --- Story Section --- */
.story-section {
  height: 250vh;
  position: relative;
  z-index: 5;
  background-color: #dfdfdf;
}

.story-sticky-container {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.content-split {
  width: 100%;
  padding: 0 10%;
  align-items: flex-end;
}

.left-side {
  margin-bottom: 100px;
}

.story-body-adjust {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s ease;
}

.lead-copy {
  font-size: 1.1rem;
  line-height: 2.2;
  color: #444;
  flex: 1;
}

.right-side {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.story-right-content {
  text-align: right;
  margin-bottom: 10vh;
}

.title-line {
  font-size: 2.5rem;
  line-height: 1.8;
  font-weight: 300;
  opacity: 0;
  transform: translateY(30px);
  margin-bottom: 0.5rem;
}

.copy-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: end;
}

#story-copy-group,
#story-button-area {
  opacity: 0;
  transform: translateY(30px);
}

.title-line.is-active {
  opacity: 1;
  transform: translateY(0);
}


/* Top / Items Grid */
/* --- Items Grid --- */
.items-grid-wrapper {
  margin-top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.items-grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  width: 100%;
  margin-bottom: 5rem;
}

.item-box {
  width: 300px;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(50px);
  transition: 0.8s ease;
}

.item-box.active {
  opacity: 1;
  transform: translateY(0);
}

.box-2 {
  margin-top: 3rem;
  transition-delay: 0.2s;
}

.box-3 {
  margin-top: 6rem;
  transition-delay: 0.4s;
}

.item-image-mask {
  position: relative;
  width: 100%;
  height: 100%;
}

.item-image-mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mask-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.item-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 1.5rem;
  letter-spacing: 0.2rem;
}

/* ========================================
   About Page
======================================== */

.about-content-wrapper {
  margin: 60px auto 0;
  width: 90%;
}

.company-profile {
  width: 100%;
}

.profile-row {
  display: flex;
  padding: 40px 0;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.profile-row.active {
  opacity: 1;
  transform: translateY(0);
}

.profile-row::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: linear-gradient(to right,
      transparent 0%,
      var(--line-color) 20%,
      var(--line-color) 80%,
      transparent 100%);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.3s;
}

.profile-row.active::after {
  width: 100%;
}

.company-profile dt {
  width: 30%;
  font-size: 0.85rem;
  color: #888;
  letter-spacing: 0.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-profile dd {
  width: 70%;
  font-size: 1.05rem;
  color: var(--text-color);
  line-height: 1.8;
  text-align: left;
}

.sp-br {
  display: none;
}

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

/* --- Privacy Page Layout & Animation --- */

.privacy-content-wrapper {
  margin: 60px auto 0;
  width: 90%;
}

.policy-h3 {
  width: 80%;
  margin: 2rem auto;
}

.privacy-text {
  width: 80%;
  margin: 0 auto;
  line-height: 2rem;
}

.privacy-content-wrapper>.profile-row {
  display: block;
}

/* ========================================
   Items Page
======================================== */

/* --- Items Sticky Nav --- */
.items-sticky-nav {
    position: sticky;
    top: 80px;
    width: 100%;
    height: 60px;
    background-color: #dfdfdf;
    z-index: 850;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.items-sticky-nav ul {
    display: flex;
    gap: 5%;
    width: 100%;
    justify-content: center;
}

.items-sticky-nav a {
    font-size: 0.9rem;
    color: #1a1a1a;
    transition: opacity 0.3s;
}

.items-sticky-nav a:hover {
    opacity: 0.6;
}
.items-sticky-nav li:not(:last-child){
  border-right:1px solid #1a1a1a ;
  padding-right: 5%;
}

.stack-flex {
    display: flex;
    align-items: flex-start;
    position: sticky;
    top: 140px; 
    width: 100%;
    height: calc(100vh - 140px);
    overflow: hidden;
}

.sub-page .lower-main {
    padding-top: 80px; 
}

.item-category-block {
  position: relative;
  width: 100%;
  background-color: #dfdfdf;
  padding: 100px 0;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.2) 20%, rgba(0, 0, 0, 0.2) 80%, transparent);
  margin: 0;
}

.stack-flex {
  display: flex;
  align-items: flex-start;
  position: sticky;
  top: 140px;
  width: 100%;
  height: calc(100vh - 140px);
  overflow: hidden;
}

.stack-sidebar {
  width: 15%;
  height: 100%;
}

.item-nav-list {
  list-style: none;
  margin-top: 30px;
  padding-left: 20px;
  border-left: 1px solid rgba(0, 0, 0, 0.2);
}

.nav-item {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 12px;
  cursor: pointer;
  transition: 0.3s;
}

.nav-item.active {
  color: #000;
  font-weight: bold;
}

.stack-main {
  width: 85%;
  height: 111.5%;
  position: relative;
}

.stack-viewport {
  position: relative;
  width: 100%;
  height: calc(100% - 80px);
  overflow: hidden;
  background-color: #dfdfdf;
}

.stack-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  transform: translateY(100%);
  will-change: transform;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.stack-card:first-child {
  transform: translateY(0);
}

.card-img-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.6s ease;
}

.stack-card.is-active .card-overlay {
  background-color: rgba(0, 0, 0, 0.7);
}


.card-title,
.card-desc {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}

.stack-card.is-active .card-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.stack-card.is-active .card-desc {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}


.card-text-content {
  color: #fff;
  padding: 0 10%;
  position: relative;
  text-align: center;
  width: 80%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.card-title {
  margin: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  font-size: 2rem;
  line-height: 2rem;
}

.card-title span {
  font-size: 1rem;
  opacity: 0.6;
}


.card-desc {
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.stack-card::before {
  content: attr(data-label);
  position: absolute;
  top: 6px;
  left: 20px;
  color: #fff;
  font-size: 0.75rem;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  transition: background-color 0.8s ease;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stack-card.is-step-mask-mid .card-overlay {
  background-color: rgba(0, 0, 0, 0.6);
}

.stack-card.is-step-title .card-title {
  opacity: 1;
  transform: translateY(0);
}

.stack-card.is-step-desc .card-desc {
  opacity: 1;
  transform: translateY(0);
}

.stack-card.is-step-mask-strong .card-overlay {
  background-color: rgba(0, 0, 0, 0.85);
}

.stack-card.is-step-label::before {
  opacity: 1;
}

.stack-card.is-under .card-overlay {
  background-color: rgba(0, 0, 0, 0.95);
}

/* ========================================
   Contact Page
======================================== */

.contact-section {
  background: #dfdfdf;
  margin-bottom: 200px;
}

.contact-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-lead {
  text-align: center;
  margin-bottom: 60px;
}

.contact-lead h2 {
  font-size: 2.5rem;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.contact-lead p {
  line-height: 1.8;
  font-size: 0.95rem;
  color: #444;
}

.form-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-input-group.radio-group{
  display: flex;
  gap: 4rem;
}
.label-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-label {
  font-weight: bold;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.required {
  background: #1a1a1a;
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 2px;
}

.form-guide {
  font-size: 0.75rem;
  color: #666;
  margin-top: 4px;
}

.error-msg {
  color: #d93025;
  font-size: 0.8rem;
  font-weight: bold;
  display: none;
}

.is-error .error-msg {
  display: block;
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-5px);
  }

  40%,
  80% {
    transform: translateX(5px);
  }
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
  outline: none;
  transition: 0.3s;
}

input:focus,
textarea:focus {
  border-color: #1a1a1a;
  background: #fff;
}

textarea {
    resize: none;
}

.flex-row {
  display: flex;
  gap: 10px;
}

.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.radio-label,
.checkbox-label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

input[type="radio"],
input[type="checkbox"] {
  display: none;
}

.custom-radio,
.custom-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #1a1a1a;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}

.custom-radio {
  border-radius: 50%;
}

.custom-checkbox {
  border-radius: 4px;
}

input[type="radio"]:checked+.custom-radio::after {
  content: "";
  width: 10px;
  height: 10px;
  background: #1a1a1a;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

input[type="checkbox"]:checked+.custom-checkbox::after {
  content: "⚫︎";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  font-size: 14px;
  color: #1a1a1a;
}
.policy-note p{
font-size: .8rem;
padding-top: 1rem;
}
.policy-note a{
  font-weight: bold;
  transition: .3s;
}
.policy-note a:hover{
  opacity: 0.7;
}
.form-agreement{
  text-align: center;
}
.form-submit{
  margin: 0 auto;
}
.submit-btn {
  background: #1a1a1a;
  color: #fff;
  padding: 20px 60px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
  margin-top: 20px;
  width: 100%;
}

.submit-btn:hover {
  opacity: 0.8;
}

/* ========================================
   Thanks Page
======================================== */

/* --- Thanks Page Base --- */
.thanks-wrapper {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #dfdfdf;
    color: #1a1a1a;
    text-align: center;
    overflow: hidden;
}

.thanks-content {
    padding: 0 10px;
    max-width: 1200px;
    width: 100%;
}

.split-text {
    font-size: clamp(2rem, 10vw, 8rem); 
    font-weight: 900;
    letter-spacing: 0.1em;
    margin-bottom: 30px;
    line-height: 1.2;
    
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.split-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.thanks-message {
    margin-bottom: 50px;
}

.fade-in-text {
    font-size: 1rem;
    line-height: 2;
    color: #444;
    opacity: 0;
    transform: translateY(10px);
    transition: all 1s ease 1.2s; 
}

.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.back-link {
    opacity: 0;
    transition: opacity 1s ease 1.8s;
}

.btn-hover-line {
    font-size: 0.9rem;
    text-decoration: none;
    color: #1a1a1a;
    letter-spacing: 0.1em;
    position: relative;
    padding-bottom: 8px;
    display: inline-block;
}

.btn-hover-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #1a1a1a;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s ease;
}

.btn-hover-line:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ========================================
   Responsive
======================================== */

@media (max-width: 1024px) {
  .g-nav {
    width: 100%;
    right: -100%;
  }
}

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

  /* Common */
  .common-header {
    flex-direction: column;
  }

  .common-container {
    padding: 0 1rem;
  }

  .common-section {
    padding: 50px 0 100px 0;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  .info-area {
    text-align: left;
  }

  .sp-br {
    display: block;
  }

  /* Top Page */
  .tagline {
    letter-spacing: 0.2rem;
    white-space: nowrap;
  }

  .title-wrapper {
    margin-top: 10rem;
    text-align: center;
  }

  .title-line {
    font-size: 1.6rem;
    margin-bottom: 3rem;
  }

  .story-right-content {
    margin-bottom: 0;
  }

  .copy-wrapper {
    flex-direction: column;
  }

  .items-body-copy {
    margin-top: 0;
  }

  .items-grid {
    flex-direction: column;
    align-items: center;
  }

  .item-box {
    width: 100%;
    height: 300px;
    margin-top: 0 !important;
  }

  .contact-content {
    flex-direction: column;
    height: 80%;
  }

  .contact-box-wrapper {
    margin-top: 50px;
    height: 70vh;
  }

  /* About Page */
  .profile-row {
    flex-direction: column;
    padding: 25px 0;
    align-items: flex-start;
  }

  .company-profile dt {
    width: 100%;
    margin-bottom: 8px;
  }

  .company-profile dd {
    width: 100%;
    text-align: center;
  }

  .about-content-wrapper {
    margin: 0 auto;
    width: 100%;
  }

  .addr2 {
    display: block;
  }

  /* Items Page */
  .item-category-block {
    padding: 0;
  }

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

  .stack-sidebar {
    width: 100%;
    height: 15%;
  }

  .stack-main {
    width: 100%;
  }

  .item-nav-list {
    display: none;
  }

  /* Contact Page */
  .contact-lead {
    font-size: 1.3rem;
    font-weight: bold;
  }

  .form-input-group.radio-group {
    gap: 2rem;
    flex-wrap: wrap;
  }

  /* Thanks Page */
  .thanks-message p {
    font-size: 0.9rem;
    display: inline-block;
  }

  .split-text {
    letter-spacing: 0.1em;
  }
}

/* ======================================
   Contact Form 7 用
====================================== */

/* 種別 */
#row-type .wpcf7-form-control {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

#row-type .wpcf7-list-item {
  margin: 0;
}

#row-type .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

#row-type input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

#row-type .wpcf7-list-item-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-left: 32px;
  line-height: 1;
}

#row-type .wpcf7-list-item-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 20px;
  border: 1px solid #1a1a1a;
  border-radius: 50%;
  transform: translateY(-50%);
  box-sizing: border-box;
}

#row-type input[type="radio"]:checked + .wpcf7-list-item-label::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  width: 10px;
  height: 10px;
  background: #1a1a1a;
  border-radius: 50%;
  transform: translateY(-50%);
}

/* 同意チェック */
#row-policy .wpcf7-list-item {
  margin: 0;
}

#row-policy .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

#row-policy input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

#row-policy .wpcf7-list-item-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-left: 32px;
  line-height: 1.5;
}

#row-policy .wpcf7-list-item-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 20px;
  border: 1px solid #1a1a1a;
  border-radius: 4px;
  transform: translateY(-50%);
  box-sizing: border-box;
}

#row-policy input[type="checkbox"]:checked + .wpcf7-list-item-label::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  width: 10px;
  height: 10px;
  background: #1a1a1a;
  transform: translateY(-50%);
}

#row-type .wpcf7-form-control-wrap,
#row-policy .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.wpcf7-not-valid-tip,
.wpcf7-response-output {
  display: none !important;
}

#row-message textarea {
  width: 100%;
  height: 240px;
  resize: none;
}

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

.form-row.is-error .error-msg,
.form-agreement.is-error .error-msg {
  display: inline-block;
}

.form-row .error-msg,
.form-agreement .error-msg {
  display: none;
}

#row-policy {
  position: relative;
}

#row-policy .error-msg {
  display: none;
  margin-left: 12px;
}

#row-policy.is-error .error-msg {
  display: inline-block;
}

.p-postal-code{
  width: 160px !important;
}

.grecaptcha-badge {
  visibility: hidden;
} 
.recaptcha-text {
  font-size: 12px;
  color: #999;
  text-align: center;
  margin-top: 20px;
}