/* Reset & Base Variables */
:root {
    --color-slate-50: #f8fafc;
    --color-slate-100: #f1f5f9;
    --color-slate-200: #e2e8f0;
    --color-slate-300: #cbd5e1;
    --color-slate-400: #94a3b8;
    --color-slate-500: #64748b;
    --color-slate-600: #475569;
    --color-slate-800: #1e293b;
    --color-slate-900: #0f172a;
    --color-slate-950: #020617;

    --color-blue-200: #bfdbfe;
    --color-blue-400: #60a5fa;
    --color-blue-600: #2563eb;
    --color-blue-900: #1e3a8a;
    --color-indigo-900: #312e81;

    --font-sans: 'Noto Sans JP', sans-serif;
    --font-serif: 'Shippori Mincho', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-slate-600);
    background-color: var(--color-slate-50);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.relative {
    position: relative;
}

.block {
    display: block;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-150 {
    transition-delay: 150ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    transition: all 0.5s ease-out;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.75rem 0;
    box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text-group {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.logo-main {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-slate-900);
    /* Default to dark for visibility initially if wanted, or white on dark hero */
    transition: color 0.3s;
}

.logo-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-blue-600);
    border-radius: 50%;
}

.logo-sub {
    font-size: 0.625rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-slate-500);
    margin-top: 0.25rem;
    transition: color 0.3s;
}

/* Header Text Color Adaptation */
/* Initially, on dark hero, we might want text to be white. 
   However, user requested existing design style which had white text on transparent header. */
header:not(.scrolled) .logo-main {
    color: #fff;
}

header:not(.scrolled) .logo-sub {
    color: rgba(255, 255, 255, 0.7);
}

header:not(.scrolled) .desktop-nav a {
    color: rgba(255, 255, 255, 0.8);
}

header:not(.scrolled) .desktop-nav a:hover {
    color: #fff;
}

header:not(.scrolled) .btn-contact-nav {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

header:not(.scrolled) .btn-contact-nav:hover {
    background: #fff;
    color: var(--color-slate-900);
}

/* Scrolled State colors */
header.scrolled .logo-main {
    color: var(--color-slate-900);
}

header.scrolled .logo-sub {
    color: var(--color-slate-500);
}

header.scrolled .desktop-nav a {
    color: var(--color-slate-600);
}

header.scrolled .desktop-nav a:hover {
    color: var(--color-slate-900);
}

header.scrolled .btn-contact-nav {
    border-color: var(--color-slate-900);
    color: var(--color-slate-900);
}

header.scrolled .btn-contact-nav:hover {
    background: var(--color-slate-900);
    color: #fff;
}

.desktop-nav {
    display: none;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

.desktop-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease-out;
}

.desktop-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-contact-nav {
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid;
    transition: all 0.3s;
}

.menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1100;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-slate-900);
    margin: 6px 0;
    transition: 0.3s;
}

/* White hamburger on hero */
header:not(.scrolled) .menu-toggle span {
    background-color: #fff;
}

/* Dark hamburger on scroll or open */
header.scrolled .menu-toggle span,
body.menu-open .menu-toggle span {
    background-color: var(--color-slate-900);
}

/* Mobile Menu */
.mobile-nav {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 1050;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s;
}

body.menu-open .mobile-nav {
    opacity: 1;
    visibility: visible;
}

.mobile-nav nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-link {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-slate-800);
}

.btn-contact-mobile {
    margin-top: 1rem;
    padding: 0.75rem 2rem;
    background: var(--color-slate-900);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* mobile menu list reset */
.mobile-nav .mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 0;
  margin: 0;
}

.mobile-nav .mobile-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block; /* 親の display:none 対策 */
}

.mobile-nav .mobile-menu a {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-slate-800);
  text-decoration: none;
  display: block;
}

/* 念のため hover */
.mobile-nav .mobile-menu a:hover {
  color: var(--color-blue-600);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background: var(--color-slate-900);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding-bottom: 6rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: slowZoom 30s linear infinite alternate;
    opacity: 0.9;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 23, 42, 0.45),     /* ← 0.3 → 0.45 に強化：文字の視認性UP */
        rgba(15, 23, 42, 0.15),     /* ← 完全 transparentを少し濃く */
        rgba(15, 23, 42, 0.85)      /* ← 0.9 → 0.85 に弱めて自然に */
    );
    z-index: 1;
}

@keyframes slowZoom {
    0% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1.15);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    color: #fff;
}

.tagline {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tagline .line {
    width: 3rem;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
}

.tagline .text {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.hero-title {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-title .italic-accent {
    font-style: italic;
    font-weight: 300;
    color: var(--color-blue-200);
}

.block-sub {
    display: block;
    margin-top: 1rem;
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .block-sub {
        font-size: 2.25rem;
    }
}

.hero-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .hero-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.hero-desc {
    color: var(--color-slate-300);
    font-size: 0.875rem;
    font-weight: 300;
}

.btn-text-arrow {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.875rem;
    color: #fff;
}

.btn-text-arrow:hover {
    color: var(--color-blue-200);
}

.vertical-text {
    position: absolute;
    top: 33%;
    right: 4rem;
    z-index: 2;
    color: rgba(255, 255, 255, 0.2);
    font-family: var(--font-serif);
    font-size: 1.125rem;
    letter-spacing: 0.5em;
    writing-mode: vertical-rl;
    user-select: none;
    display: none;
}

@media (min-width: 768px) {
    .vertical-text {
        display: block;
    }
}

/* Sections Common */
.section {
    padding: 8rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--color-slate-900);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3.5rem;
    }
}

.section-line {
    width: 6rem;
    height: 1px;
    background: var(--color-slate-300);
}

/* About Section */
.about {
    background-color: var(--color-slate-100);
}

.about-layout {
    position: relative;
}

.about-img-wrapper {
    width: 100%;
    height: 500px;
    filter: grayscale(100%);
    transition: filter 1s;
}

.about-img-wrapper:hover {
    filter: grayscale(0%);
}

@media (min-width: 768px) {
    .about-img-wrapper {
        width: 75%;
        height: 600px;
    }
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content-wrapper {
    position: relative;
    z-index: 10;
    margin-top: -3rem;
    padding-left: 1.5rem;
}

@media (min-width: 768px) {
    .about-content-wrapper {
        position: absolute;
        top: 6rem;
        right: 0;
        width: 42%;
        margin-top: 0;
        padding-left: 0;
    }
}

.about-card {
    background: #fff;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: var(--color-slate-900);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item dt {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-slate-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.info-item dd {
    font-size: 1rem;
    color: var(--color-slate-800);
    font-weight: 500;
}

/* Services Section */
.services {
    position: relative;
    background-color: var(--color-slate-50);
    overflow: hidden;
}

.services-bg-art {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.orb-1 {
    top: 5rem;
    left: 2.5rem;
    width: 24rem;
    height: 24rem;
    background: rgba(224, 231, 255, 0.4);
}

.orb-2 {
    bottom: 5rem;
    right: 2.5rem;
    width: 32rem;
    height: 32rem;
    background: rgba(226, 232, 240, 0.4);
}

.services-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 6rem;
}

@media (min-width: 768px) {
    .services-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.section-desc {
    color: var(--color-slate-500);
    font-weight: 300;
    line-height: 1.8;
}

.decorative-line {
    display: none;
    width: 1px;
    height: 6rem;
    background: var(--color-slate-300);
    transform: rotate(12deg);
    transform-origin: bottom;
}

@media (min-width: 768px) {
    .decorative-line {
        display: block;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .staggered {
        margin-top: 4rem;
    }
}

.service-card {
    background: #fff;
    padding: 2.5rem;
    border-top: 2px solid transparent;
    transition: all 0.5s;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
}

.service-card:hover {
    border-color: var(--color-blue-900);
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.watermark {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-family: var(--font-serif);
    font-size: 6rem;
    font-weight: 700;
    color: rgba(241, 245, 249, 0.8);
    pointer-events: none;
    transition: color 0.3s;
}

.service-card:hover .watermark {
    color: rgba(239, 246, 255, 0.5);
}

.icon-circle {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--color-slate-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-slate-900);
    margin-bottom: 2rem;
    transition: 0.5s;
}

.service-card:hover .icon-circle {
    background: var(--color-blue-900);
    color: #fff;
}

.service-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-slate-900);
    transition: color 0.3s;
}

.service-card:hover .service-title {
    color: var(--color-blue-900);
}

.service-desc {
    font-size: 0.875rem;
    color: var(--color-slate-500);
    font-weight: 300;
    margin-bottom: 2rem;
    text-align: justify;
}

.card-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-slate-100);
}

.link-arrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-slate-400);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-card:hover .link-arrow {
    color: var(--color-blue-900);
}

/* Contact Section */
.contact {
    background: var(--color-slate-900);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.contact-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMiIgY3k9IjIiIHI9IjEiIGZpbGw9IiNmZmYiLz48L3N2Zz4=');
}

.contact-gradient {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
}

.g1 {
    top: 0;
    right: 0;
    background: rgba(30, 58, 138, 0.2);
}

.g2 {
    bottom: 0;
    left: 0;
    background: rgba(49, 46, 129, 0.2);
}

.contact-layout {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

@media (min-width: 768px) {
    .contact-layout {
        flex-direction: row;
        gap: 6rem;
    }
}

.contact-info {
    flex: 5;
}

.contact-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .contact-title {
        font-size: 3.5rem;
    }
}

.contact-desc {
    color: var(--color-slate-400);
    margin-bottom: 3rem;
    font-weight: 300;
}

.office-hours {
    color: var(--color-slate-500);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.contact-form-wrapper {
    flex: 7;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 0;
    color: #fff;
    outline: none;
    transition: border-color 0.3s;
    border-radius: 0;
}

.form-input:focus {
    border-bottom-color: #fff;
}

.form-label {
    position: absolute;
    left: 0;
    top: 0.75rem;
    font-size: 0.875rem;
    color: var(--color-slate-500);
    pointer-events: none;
    transition: 0.3s;
}

.form-input:focus~.form-label,
.form-input:not(:placeholder-shown)~.form-label {
    top: -1.25rem;
    font-size: 0.75rem;
    color: var(--color-slate-400);
}

.required {
    color: var(--color-blue-400);
}

.btn-submit {
    position: relative;
    background: #fff;
    color: var(--color-slate-900);
    border: none;
    padding: 1rem 3rem;
    cursor: pointer;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

@media (min-width: 768px) {
    .btn-submit {
        width: auto;
    }
}

.btn-text {
    position: relative;
    z-index: 2;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.btn-bg {
    position: absolute;
    inset: 0;
    background: var(--color-blue-200);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s;
    z-index: 1;
}

.btn-submit:hover .btn-bg {
    transform: scaleX(1);
}

/* Footer */
footer {
    background: var(--color-slate-950);
    color: var(--color-slate-400);
    padding: 6rem 0;
}

.footer-top {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 8rem;
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-top {
        flex-direction: row;
    }
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-slate-500);
    margin-bottom: 1.5rem;
}

.footer-menu ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-menu a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-slate-300);
}

.footer-menu a:hover {
    color: #fff;
}

/* Footer nav hover */
.site-footer .footer-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--color-slate-300);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color .3s ease, transform .3s ease;
}

/* 下線アニメ */
.site-footer .footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s ease;
  opacity: .7;
}

.site-footer .footer-nav a:hover {
  color: #fff;
  transform: translateX(2px);
}
.site-footer .footer-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* キーボード操作も同じ見た目に */
.site-footer .footer-nav a:focus-visible {
  outline: none;
  color: #fff;
}
.site-footer .footer-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer-address-block address {
    font-style: normal;
    font-size: 0.875rem;
    line-height: 2;
    color: var(--color-slate-300);
}

@media (min-width: 768px) {
    .footer-address-block {
        text-align: right;
    }
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 3rem;
}

.footer-heading {
    text-align: left !important;
}

.footer-big-logo {
    font-family: var(--font-serif);
    font-size: 12vw;
    line-height: 1;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    user-select: none;
}

.footer-big-logo {
    font-size: 12vw; /* スマホ */
}

@media (min-width: 768px) {
    .footer-big-logo {
        font-size: 6vw; /* PC */
    }
}

@media (min-width: 1200px) {
    .footer-big-logo {
        font-size: 72px; /* 大画面では打ち止め */
    }
}

.footer-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-slate-600);
}

.footer-menu li {
    list-style: none;
}

/* === WP/Lightning干渉対策 === */

/* Lightningのコンテナ幅を無視して自前の.containerを優先 */
body .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Lightningのセクション余白やブロック余白を潰す */
body .section {
    padding: 8rem 0;
    margin: 0;
}

/* headerがLightning側で別class当たるので両対応 */
body header,
body .site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* SVGのデフォ異常拡大を防止（Tailwind問題の再発を止める） */
body svg {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* WPメニュー用：ul と li をフレックス化 */
.desktop-nav .menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* li のデフォルト余白を打ち消す */
.desktop-nav .menu li {
    margin: 0;
    padding: 0;
}

/* a のスタイル */
.desktop-nav .menu a {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
    color: inherit;
}

/* hover 下線 */
.desktop-nav .menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease-out;
}

.desktop-nav .menu a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Contact ボタンは例外的に a 単体 */
.desktop-nav .btn-contact-nav {
    margin-left: 2rem;
}

/* --- Contact Nav Button 基本 --- */
.btn-contact-nav {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid currentColor;
    transition: color .3s, border-color .3s, background .3s;
}

/* --- ヘッダーコンタクトボタン挙動 --- */
header:not(.scrolled) .btn-contact-nav {
    color: #ffffff;
    border-color: #ffffff;
}

header:not(.scrolled) .btn-contact-nav:hover {
    background: #ffffff;
    color: #000000 !important;
    border-color: #ffffff;
}
header.scrolled .btn-contact-nav {
    color: #000000;
    border-color: #000000;
}
header.scrolled .btn-contact-nav:hover {
    background: #000000;
    color: #ffffff !important;
    border-color: #000000;
}

/* Lightningのdl/section系の余計な余白を殺す保険 */
#about dl, #about dt, #about dd {
  margin: 0;
  padding: 0;
}

/* aboutカードの幅・重なりが崩れる場合の保険 */
.about-layout {
  position: relative;
}

/* =========================
   Recruit Page
========================= */

.page-recruit .section {
  padding: 10rem 0;
  background: #fff;
}

.page-recruit .section:nth-of-type(odd) {
  background: #f8fafc; /* slate-50相当 */
}

.page-hero{
  background:#fff;
}

.page-hero-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  color: var(--color-slate-900);
  margin-bottom: 0.75rem;
  margin-top: 6rem;
}

.page-hero-sub {
  font-size: 1.05rem;
  color: var(--color-slate-600);
}

/* Intro box */
.recruit-box {
  max-width: 900px;
  background: #fff;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(15,23,42,0.08);
}

.recruit-box-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--color-slate-900);
  margin-bottom: 2rem;
}

.recruit-block + .recruit-block {
  margin-top: 2.5rem;
}

.recruit-block-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-slate-900);
  margin-bottom: 1rem;
}

.recruit-text {
  color: var(--color-slate-600);
  line-height: 1.9;
}

.recruit-list {
  display: grid;
  gap: 0.75rem;
  color: var(--color-slate-600);
  line-height: 1.8;
  padding-left: 1.2rem;
}

.recruit-list li {
  list-style: disc;
}

/* Work style cards */
.work-style-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .work-style-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.work-style-card {
  background: #fff;
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 12px 40px rgba(15,23,42,0.06);
}

.work-style-icon {
  color: var(--color-blue-600);
  margin-bottom: 1.5rem;
}

.work-style-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-slate-900);
  margin-bottom: 0.75rem;
}

.work-style-text {
  color: var(--color-slate-600);
  line-height: 1.9;
}

/* Conditions */
.conditions-card {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(15,23,42,0.08);
}

.conditions-list {
  display: grid;
  gap: 1.25rem;
}

.conditions-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-slate-200);
}

.conditions-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.conditions-item dt {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-slate-500);
}

.conditions-item dd {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-slate-900);
}

/* Recruit contact */
.recruit-contact {
  background: var(--color-slate-900) !important;
  color: #fff;
}

.recruit-contact .section-title,
.recruit-contact .section-desc {
  color: #fff;
}

.recruit-contact-text {
  text-align: center;
  color: var(--color-slate-300);
  line-height: 1.9;
  margin: 0 auto 2.5rem;
  max-width: 720px;
}

.recruit-contact-form {
  max-width: 720px;
  margin: 0 auto;
}

/* Centered section header helper */
.section-header.center {
  text-align: center;
}

.section-header.center .section-line {
  margin-left: auto;
  margin-right: auto;
}
/* Contactセクション（CF7）のラベルをリセット */
#contact label {
  position: static !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  display: block;
  margin-bottom: 0.5rem;
  pointer-events: auto !important;
  color: #cbd5e1;         /* お好みで */
  font-size: 0.875rem;
}

/* 念のため、入力欄も前面に出しておく */
#contact .wpcf7 input[type="text"],
#contact .wpcf7 input[type="email"],
#contact .wpcf7 textarea {
  position: relative;
  z-index: 1;
}
/* ボタン本体 */
#contact .btn-submit,
.page-recruit .btn-submit {
    position: relative;
    overflow: hidden;
    display: inline-block;
    padding: 1rem 3rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    cursor: pointer;
}

/* ボタンテキスト */
#contact .btn-text,
.page-recruit .btn-text {
    position: relative;
    z-index: 2;
}

/* スライド背景 */
#contact .btn-bg,
.page-recruit .btn-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1;
    transition: all 0.4s ease;
}

/* ホバーで左→右へ */
#contact .btn-submit:hover .btn-bg,
.page-recruit .btn-submit:hover .btn-bg {
    left: 0;
}

/* ホバー時に文字色が変わる */
#contact .btn-submit:hover .btn-text,
.page-recruit .btn-submit:hover .btn-text {
    color: #0f172a;
}
/* ヘッダーのベース（既にあれば調整だけでOK） */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

/* ======================
   Mobile Navigation
   ====================== */
@media (max-width: 1024px) {
  /* ナビ本体：全画面 & 白背景 */
  #mobile-nav {
    position: fixed;
    inset: 0; /* top:0 right:0 bottom:0 left:0 と同じ */
    background: #ffffff;
    padding: 96px 24px 40px; /* 上はヘッダー分をあける */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 40; /* ヘッダーより少し低く・コンテンツより高く */
	height:100vh;
  }

  /* メニューオープン時の状態 */
  body.menu-open #mobile-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* リンクの並びと見た目 */
  #mobile-nav a {
    display: block;
    font-size: 1.25rem;
    letter-spacing: 0.12em;
    text-decoration: none;
    margin-bottom: 8px;
  }

  #mobile-nav a:hover {
    opacity: 0.7;
  }

  /* メニュー内の「お問い合わせ」ボタン */
  #mobile-nav .mobile-contact-btn {
    margin-top: 32px;
    padding: 14px 40px;
    border-radius: 999px;
    background: #0f172a;  /* ネイビー */
    color: #ffffff;
    font-size: 0.9rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-align: center;
  }

  /* メニューを開いている間は下のページをスクロールさせない */
  body.menu-open {
    overflow: hidden;
  }
}