/*!
Theme Name: MTWorks
Theme URI: https://mtworks0808.com/
Author: MTWorks
Description: 換気空調設備・厨房機器・電気工事 – MTWorks カスタムテーマ v2
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: mtworks
*/

/* ==========================================================================
   0. Design Tokens
   ========================================================================== */
:root {
  --white:   #FFFFFF;
  --black:   #0C0C0C;
  --accent:  #1946C8;          /* vivid blue — one accent colour */
  --accent2: #1036A0;          /* darker variant for hover */
  --surface: #F6F7F9;
  --border:  #E2E4E9;
  --muted:   #5A6070;

  --fs-xs:   clamp(0.65rem, 1.2vw, 0.75rem);
  --fs-sm:   clamp(0.8rem,  1.8vw, 0.9rem);
  --fs-base: clamp(0.95rem, 2vw,   1.05rem);
  --fs-md:   clamp(1.05rem, 2.5vw, 1.2rem);
  --fs-lg:   clamp(1.3rem,  3vw,   1.8rem);
  --fs-xl:   clamp(1.8rem,  4vw,   2.8rem);
  --fs-2xl:  clamp(2.2rem,  5.5vw, 4rem);
  --fs-3xl:  clamp(2.8rem,  7vw,   5.5rem);
  --fs-hero: clamp(3rem,    10vw,  10rem);  /* ima-inc スケール */

  --font-sans: 'Poppins', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-num:  'Jost', 'Poppins', sans-serif;

  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  2rem;
  --sp-lg:  4rem;
  --sp-xl:  7rem;
  --sp-2xl: 11rem;

  --container: 1240px;
  --container-pad: clamp(1.5rem, 5vw, 3rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --header-h: 72px;
}

/* ==========================================================================
   1. Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.75;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-loading { overflow: hidden; }
body.menu-open  { overflow: hidden; }

/* ==========================================================================
   LOADER
   ========================================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.95s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}

.loader.is-done {
  transform: translateY(-100%);
}

.loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
  color: var(--white);
}

/* ロゴテキスト（下からスライドイン） */
.loader__logo {
  overflow: hidden;
  line-height: 1;
}

.loader__logo-text {
  display: block;
  font-size: clamp(2rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: translateY(110%);
  animation: loaderLogoIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

@keyframes loaderLogoIn {
  to { transform: translateY(0); }
}

/* プログレスバー */
.loader__progress-wrap {
  width: clamp(160px, 30vw, 240px);
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.loader__bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}

/* カウンター */
.loader__count {
  font-size: clamp(0.65rem, 1.5vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.28);
  font-family: var(--font-num);
  min-width: 3ch;
  text-align: center;
}

img, video { display: block; max-width: 100%; height: auto; }

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

ul, ol { list-style: none; }

button { cursor: pointer; background: none; border: none; font: inherit; }

/* ==========================================================================
   2. Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ==========================================================================
   3. Scroll Reveal
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }

/* SP: アニメーション距離を短く・遅延を短縮 */
@media (max-width: 899px) {
  [data-reveal] {
    transform: translateY(20px);
    transition-duration: 0.55s;
  }
  [data-reveal-delay="1"] { transition-delay: 0.06s; }
  [data-reveal-delay="2"] { transition-delay: 0.12s; }
  [data-reveal-delay="3"] { transition-delay: 0.18s; }
  [data-reveal-delay="4"] { transition-delay: 0.24s; }
}

/* モーション軽減：アニメーションを無効化 */
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-line-reveal] .line-reveal__inner,
  [data-clip-reveal],
  [data-business-item] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   4. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 2.2em;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.05em;
  border: 1.5px solid transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn--accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn--accent:hover { background: var(--accent2); border-color: var(--accent2); }

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn--outline-white:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.btn--outline-dark {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn--outline-dark:hover {
  background: var(--black);
  color: var(--white);
}

.btn--white-solid {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.btn--white-solid:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* ==========================================================================
   5. Section Header
   ========================================================================== */
.section {
  padding-block: var(--sp-xl);
}

.section--white   { background: var(--white); }
.section--surface { background: var(--surface); }
.section--dark    { background: var(--black); color: var(--white); }

.section-header {
  margin-bottom: var(--sp-lg);
}

.section-header__en {
  display: block;
  font-size: clamp(0.6rem, 1.1vw, 0.7rem);
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.section-header__ja {
  font-size: var(--fs-2xl);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

/* ==========================================================================
   6. Site Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 0 var(--border);
  backdrop-filter: blur(8px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Logo */
.header__logo a {
  display: flex;
  align-items: center;
}

.header__logo-img {
  height: 2rem;
  width: auto;
  display: block;
  transition: filter 0.35s var(--ease-out);
}

.site-header.is-scrolled .header__logo-img {
  filter: invert(1);
}

/* Nav */
.header__nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

@media (max-width: 899px) {
  .header__nav { display: none; }
}

.header__nav a {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.9);
  transition: color 0.25s;
  position: relative;
  text-transform: uppercase;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.header__nav a:hover::after { transform: scaleX(1); }

.site-header.is-scrolled .header__nav a { color: var(--black); }

.header__contact-btn {
  display: none;
  padding: 0.5em 1.3em;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  background: var(--accent);
  color: var(--white);
  transition: background 0.25s, transform 0.2s;
}

.header__contact-btn:hover {
  background: var(--accent2);
  transform: translateY(-1px);
}

@media (min-width: 900px) {
  .header__contact-btn { display: inline-flex; }
}

/* Hamburger */
.header__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.3s var(--ease-out);
  z-index: 300;
}

.header__toggle span {
  display: block;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.38s var(--ease-out), opacity 0.25s, background 0.3s, width 0.3s var(--ease-out);
}

.header__toggle span:nth-child(1) { width: 100%; }
.header__toggle span:nth-child(2) { width: 65%; }
.header__toggle span:nth-child(3) { width: 40%; }

.header__toggle:hover { background: rgba(255,255,255,0.18); }
.header__toggle:hover span { width: 100%; }

.site-header.is-scrolled .header__toggle { background: rgba(0,0,0,0.06); }
.site-header.is-scrolled .header__toggle span { background: var(--black); }
.site-header.is-scrolled .header__toggle:hover { background: rgba(0,0,0,0.12); }

.header__toggle.is-open { background: rgba(255,255,255,0.12); }
.header__toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); width: 100%; }
.header__toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); width: 100%; }
.header__toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); width: 100%; }

@media (min-width: 900px) {
  .header__toggle { display: none; }
}

/* Mobile nav overlay */
.header__mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: linear-gradient(160deg, #08101f 0%, #0f1e3a 50%, #060d1a 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: calc(var(--header-h) + 2.5rem) clamp(2rem, 9vw, 4.5rem) 3rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-out), visibility 0.45s;
  overflow: hidden;
  counter-reset: nav-item;
}

.header__mobile-nav::before {
  content: '';
  position: absolute;
  top: -25%;
  right: -15%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(25,70,200,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.header__mobile-nav::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(25,70,200,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.header__mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.header__mobile-nav a:not(.btn--accent) {
  counter-increment: nav-item;
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  width: 100%;
  padding: 1rem 0;
  font-size: clamp(1.8rem, 7vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transform: translateX(-28px);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out), color 0.25s;
}

.header__mobile-nav a:not(.btn--accent)::before {
  content: "0" counter(nav-item);
  font-size: 0.5em;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
  flex-shrink: 0;
  align-self: center;
}

.header__mobile-nav a:not(.btn--accent)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width 0.35s var(--ease-out);
}

.header__mobile-nav a:not(.btn--accent):hover { color: rgba(255,255,255,0.6); }
.header__mobile-nav a:not(.btn--accent):hover::after { width: 48px; }

.header__mobile-nav.is-open a:not(.btn--accent) {
  transform: translateX(0);
  opacity: 1;
}

.header__mobile-nav.is-open a:nth-child(1) { transition-delay: 0.07s; }
.header__mobile-nav.is-open a:nth-child(2) { transition-delay: 0.13s; }
.header__mobile-nav.is-open a:nth-child(3) { transition-delay: 0.19s; }
.header__mobile-nav.is-open a:nth-child(4) { transition-delay: 0.25s; }

.header__mobile-nav .btn--accent {
  display: inline-flex;
  align-items: center;
  margin-top: 2.5rem;
  padding: 0.85em 2.2em;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  background: var(--accent);
  color: var(--white);
  border-radius: 2px;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out), background 0.25s;
}

.header__mobile-nav.is-open .btn--accent {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.33s;
}

.header__mobile-nav .btn--accent:hover { background: var(--accent2); }

.header__mobile-nav .mobile-nav__sub {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.15em;
  margin-top: 2.5rem;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out);
}

.header__mobile-nav.is-open .mobile-nav__sub {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.41s;
}

@media (min-width: 900px) {
  .header__mobile-nav { display: none !important; }
}

/* ==========================================================================
   7. Fixed Video Background + Hero
   ========================================================================== */

/* Hero: 動画はヒーロー内に absolute で配置（シンプル構成） */
.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: transparent;
}

/* 縦アクセントライン */
.hero__vline {
  position: absolute;
  left: 62%;
  top: 0;
  height: 100%;
  width: 2px;
  background: var(--accent);
  transform-origin: top center;
  transform: scaleY(0);
  z-index: 1;
  animation: vline-grow 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.15s;
}

@keyframes vline-grow {
  to { transform: scaleY(1); }
}

/* スラッシュ */
.hero__slash {
  display: inline;
  color: var(--accent);
  clip-path: inset(50% 0% 50% 0%);
  animation: slash-reveal 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 0.9s;
}

@keyframes slash-reveal {
  to { clip-path: inset(0% 0% 0% 0%); }
}

/* MESSAGE の / もスクロールリビールで同じアニメーション */
[data-reveal].is-visible .hero__slash {
  animation: slash-reveal 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  animation-delay: 0.3s;
}

@media (max-width: 899px) {
  /* SCROLL インジケーターは非表示 */
  .hero__scroll {
    display: none;
  }

  /* 縦線 → 横線に変換（ヒーロー下部に配置） */
  .hero__vline {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: 40%;
    height: 2px;
    transform-origin: left center;
    animation-name: hline-grow;
  }

  @keyframes hline-grow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero__body {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: var(--header-h);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.hero__sub {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero__catch {
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--sp-sm);
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 6.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.hero__tagline {
  font-size: clamp(0.9rem, 1.8vw, 1.3rem);
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-md);
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__desc {
  font-size: var(--fs-md);
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: var(--sp-md);
  max-width: 480px;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 0;
  right: clamp(1.5rem, 4vw, 3rem);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-bottom: 2.5rem;
}

.hero__scroll-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.45em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}

.hero__scroll-bar {
  display: block;
  width: 1px;
  height: 72px;
  background: rgba(255,255,255,0.12);
  position: relative;
  overflow: hidden;
}

.hero__scroll-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255,255,255,0.85) 50%,
    transparent 100%
  );
  animation: scroll-light 2s ease-in-out infinite;
}

@keyframes scroll-light {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

/* ==========================================================================
   8. Service section over video + white-section z-index
   ========================================================================== */

/* サービスセクション：動画の上に透過で重ねる */
.section--on-video {
  position: relative;
  z-index: 1;
  background: transparent;
}

/* 動画の上でのセクションヘッダー白文字 */
.section-header--dark .section-header__ja {
  color: var(--white);
}

/* ── dark (動画上) サービスカード ─────────────────────────────────── */
.service-grid--dark {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.07);
}

.service-grid--dark .service-card {
  background: rgba(4, 8, 22, 0.88);
  border: none;
}

.service-grid--dark .service-card::before {
  background: var(--accent);
}

.service-grid--dark .service-card:hover {
  background: rgba(12, 22, 60, 0.94);
}

.service-grid--dark .service-card__num {
  color: rgba(255, 255, 255, 0.06);
}

.service-grid--dark .service-card__en {
  color: var(--accent);
}

.service-grid--dark .service-card__title {
  color: var(--white);
}

.service-grid--dark .service-card__desc {
  color: rgba(255, 255, 255, 0.58);
}

.service-grid--dark .service-card__link {
  color: rgba(255, 255, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.25);
}

.service-grid--dark .service-card__link:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
  gap: 0.7em;
}

/* ── MESSAGE（暗）から Our Business（白）へのグラデーション遷移 ── */
.video-fade-out {
  position: relative;
  height: clamp(5rem, 10vw, 10rem);
  background: linear-gradient(to bottom, #0d0d0d 0%, var(--white) 100%);
  pointer-events: none;
}

/* ==========================================================================
   HERO CANVAS  —  動画共有ラッパー
   ========================================================================== */
.hero-canvas {
  position: relative;
  background: #0d0d0d;
}

.hero-canvas__bg {
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.hero-canvas__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.hero-canvas__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-canvas__content {
  position: relative;
  z-index: 1;
  margin-top: -100vh;
}

/* ==========================================================================
   MESSAGE Section
   ========================================================================== */
.msg-section {
  position: relative;
  padding: clamp(5rem, 12vw, 10rem) 0;
}

.msg-section__label {
  font-size: clamp(2.4rem, 6vw, 6.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 2rem;
}

.msg-section__text {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 2.2;
  max-width: 680px;
  font-weight: 700;
}

.msg-section__name {
  margin-top: 2.5rem;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.12em;
}

/* 白/ソリッド背景セクション（固定動画は廃止したため z-index 不要）*/

/* ==========================================================================
   (former 8) Services Grid + Card photo
   ========================================================================== */

/* カード上部の写真エリア
 * ネガティブマージンでカードのpaddingを打ち消し、全幅表示にする */
.service-card__img-wrap {
  margin: calc(-1 * clamp(1.8rem, 4vw, 2.8rem));
  margin-bottom: clamp(1.2rem, 2.5vw, 1.8rem);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.service-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
  filter: brightness(0.92);
}

.service-card:hover .service-card__img {
  transform: scale(1.04);
  filter: brightness(1);
}

/* 写真がない場合のプレースホルダー */
.service-card__img-placeholder {
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card__img-placeholder span {
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.2);
  text-transform: uppercase;
}

/* ライト版カードにも写真対応 */
.service-card__img-wrap--light .service-card__img-placeholder {
  background: var(--surface);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  background: var(--white);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s var(--ease-out);
}

.service-card:hover::before { transform: scaleY(1); }
.service-card:hover { background: var(--surface); }

.service-card__num {
  font-family: var(--font-num);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  letter-spacing: -0.04em;
  transition: color 0.25s;
}

.service-card:hover .service-card__num { color: var(--accent); opacity: 0.2; }

.service-card__body { flex: 1; }

.service-card__en {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.service-card__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.7rem;
  line-height: 1.3;
}

.service-card__desc {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.8;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--black);
  border-bottom: 1px solid var(--black);
  padding-bottom: 0.1em;
  align-self: flex-start;
  transition: color 0.25s, border-color 0.25s, gap 0.2s;
}

.service-card__link:hover {
  color: var(--accent);
  border-color: var(--accent);
  gap: 0.7em;
}

/* ==========================================================================
   9. Feature Grid
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature-item {
  background: var(--white);
  border-radius: 6px;
  overflow: visible;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.feature-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 52px rgba(25,70,200,0.13);
}

/* 画像エリア */
.feature-item__img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
  background: #0c1e40;
}

.feature-item__img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85);
  transition: transform 0.55s var(--ease-out), filter 0.55s var(--ease-out);
}

.feature-item:hover .feature-item__img {
  transform: scale(1.06);
  filter: brightness(0.95);
}

.feature-item__placeholder {
  position: absolute;
  inset: 0;
}

.feature-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(8,16,36,0.55) 100%);
  pointer-events: none;
}

/* アイコンバッジ（画像下端に 22px 食い込む） */
.feature-item__icon {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px; height: 44px;
  margin: -22px 0 0 clamp(1.2rem, 3vw, 1.6rem);
  background: var(--accent);
  border-radius: 50%;
  color: var(--white);
  box-shadow: 0 4px 18px rgba(25,70,200,0.4);
  transition: background 0.25s, transform 0.3s var(--ease-out);
}

.feature-item__icon svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
}

.feature-item:hover .feature-item__icon {
  background: var(--accent2);
  transform: scale(1.1) rotate(-6deg);
}

/* テキストエリア */
.feature-item__body {
  padding: 0.75rem clamp(1.2rem, 3vw, 1.8rem) clamp(1.6rem, 3vw, 2.2rem);
  flex: 1;
}

.feature-item__en {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.feature-item__title {
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: 0.7rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.feature-item__desc {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.88;
}

/* ==========================================================================
   10. Company Section
   ========================================================================== */
.company-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-lg);
}

@media (min-width: 800px) {
  .company-layout { grid-template-columns: 1fr 1fr; }
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.company-table th,
.company-table td {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
}

.company-table th {
  width: 7rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
  padding-right: 1.5rem;
  white-space: nowrap;
}

.company-table td { line-height: 1.7; }

.company-message__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.company-message__text {
  font-size: var(--fs-md);
  line-height: 2;
  color: var(--black);
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  font-style: normal;
}

.company-message__name {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* ==========================================================================
   11. Contact CTA
   ========================================================================== */
.contact-cta {
  position: relative;
  background: var(--black);
  color: var(--white);
  padding-block: 7rem;
  text-align: center;
  overflow: hidden;
}

/* アクセントライン（上部） */
.contact-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

/* 背景ウォーターマーク */
.contact-cta::after {
  content: 'CONTACT';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(5rem, 16vw, 13rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.contact-cta .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* ラベル：横線 ＋ CONTACT */
.contact-cta__sub {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--accent);
  text-transform: uppercase;
}

.contact-cta__sub::before,
.contact-cta__sub::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.contact-cta__title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* ボタンラッパー */
.contact-cta .btn {
  margin-top: 0.5rem;
}

/* btn--white-solid をCTA用に強化 */
.contact-cta .btn--white-solid {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.8rem;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  border-radius: 2px;
  transition: background 0.25s, color 0.25s, gap 0.25s;
}

.contact-cta .btn--white-solid::after {
  content: '→';
  font-size: 1.1em;
  transition: transform 0.25s;
}

.contact-cta .btn--white-solid:hover::after {
  transform: translateX(4px);
}

/* ==========================================================================
   12. Page Hero (Inner pages)
   ========================================================================== */
.page-hero {
  position: relative;
  background: var(--black);
  color: var(--white);
  padding-block: var(--sp-xl);
  padding-top: calc(var(--sp-xl) + var(--header-h));
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(25,70,200,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero__en {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.page-hero__title {
  font-size: var(--fs-3xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.page-hero__desc {
  margin-top: 1.2rem;
  font-size: var(--fs-md);
  color: rgba(255,255,255,0.65);
  max-width: 580px;
  line-height: 1.8;
}

/* Page breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-bottom: var(--sp-sm);
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--black); }
.breadcrumb__sep { opacity: 0.4; }

/* ==========================================================================
   13. Page Content (Inner pages)
   ========================================================================== */
.page-content {
  padding-block: var(--sp-xl);
}

.page-content .entry-content {
  max-width: 860px;
}

/* Gutenberg / Classic editor content styles */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-top: 2.5em;
  margin-bottom: 0.8em;
}

.entry-content h2 { font-size: var(--fs-xl); }
.entry-content h3 { font-size: var(--fs-lg); }
.entry-content h4 { font-size: var(--fs-md); }

.entry-content h2:first-child,
.entry-content h3:first-child { margin-top: 0; }

.entry-content p {
  margin-bottom: 1.5em;
  line-height: 1.85;
  color: var(--black);
}

.entry-content ul,
.entry-content ol {
  margin: 1.5em 0;
  padding-left: 1.5em;
}

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

.entry-content li {
  margin-bottom: 0.5em;
  line-height: 1.75;
}

.entry-content strong { font-weight: 700; }

.entry-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content a:hover { color: var(--accent2); }

.entry-content img {
  max-width: 100%;
  height: auto;
  margin-block: 2em;
}

.entry-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.5em;
  margin: 2em 0;
  color: var(--muted);
  font-style: normal;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: var(--fs-sm);
}

.entry-content table th,
.entry-content table td {
  padding: 0.75em 1em;
  border: 1px solid var(--border);
  text-align: left;
}

.entry-content table th {
  background: var(--surface);
  font-weight: 600;
}

/* Gutenberg blocks */
.wp-block-group { margin-block: 2em; }

.wp-block-columns {
  display: flex;
  gap: var(--sp-md);
  flex-wrap: wrap;
  margin-block: 2em;
}

.wp-block-column { flex: 1 1 280px; }

.wp-block-image { margin-block: 2em; }
.wp-block-image img { width: 100%; height: auto; }

.wp-block-separator {
  border: none;
  border-top: 1px solid var(--border);
  margin-block: 3em;
}

/* Service page specific content blocks */
.entry-content .wp-block-cover,
.entry-content .wp-block-media-text {
  margin-block: 2em;
}

/* ==========================================================================
   14. Service Page — Structured Sections
   ========================================================================== */

/* Category cards that might be in content */
.service-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-block: var(--sp-lg);
}

.service-category {
  background: var(--white);
  padding: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  transition: background 0.25s;
}

.service-category:hover { background: var(--surface); }

.service-category__icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.service-category__title {
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-category__desc {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.75;
}

/* Works / Case grid */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: var(--sp-sm);
  margin-top: var(--sp-lg);
}

.works-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--surface);
}

.works-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.works-item:hover img { transform: scale(1.05); }

.works-item__label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(12,12,12,0.8), transparent);
  color: var(--white);
  padding: 1.5rem 1rem 0.8rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Benefits list (for 保守点検 etc.) */
.benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--sp-md);
  margin-top: var(--sp-lg);
}

.benefit-item {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.benefit-item:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(25, 70, 200, 0.08);
}

.benefit-item__num {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.1;
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
}

.benefit-item__title {
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.benefit-item__desc {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.85;
}

/* ==========================================================================
   15. Footer
   ========================================================================== */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.6);
  padding-block: var(--sp-lg);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
}

@media (min-width: 700px) {
  .footer__inner {
    grid-template-columns: auto 1fr;
    align-items: start;
  }
}

.footer__brand {}

.footer__logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer__logo img {
  width: 140px;
  height: auto;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.footer__logo:hover img {
  opacity: 1;
}

.footer__tagline {
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  line-height: 1.7;
}

.footer__address {
  font-size: var(--fs-xs);
  margin-top: 0.8rem;
  line-height: 1.7;
  font-style: normal;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: flex-end;
}

.footer__nav a {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  transition: color 0.2s;
}

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

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: var(--sp-md);
  padding-top: var(--sp-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.footer__copy {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
}

.footer__policy a {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.footer__policy a:hover { color: rgba(255,255,255,0.7); }

/* ==========================================================================
   16. Contact Form Page
   ========================================================================== */
.contact-page { padding-block: var(--sp-xl); }

.contact-page .container { max-width: 700px; }

.contact-page p { margin-bottom: 1em; color: var(--muted); }

/* Contact Form 7 */
.wpcf7 .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.wpcf7 label,
.wpcf7 .contact-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 0.85em 1em;
  border: 1.5px solid var(--border);
  background: var(--white);
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--black);
  transition: border-color 0.2s;
  outline: none;
  -webkit-appearance: none;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus { border-color: var(--accent); }

.wpcf7 textarea { resize: vertical; min-height: 180px; }

.wpcf7 input[type="submit"] {
  padding: 0.9em 2.5em;
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
  align-self: flex-start;
}

.wpcf7 input[type="submit"]:hover {
  background: var(--accent2);
  transform: translateY(-2px);
}

/* ==========================================================================
   17. 404 Page
   ========================================================================== */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: var(--sp-xl);
  padding-top: calc(var(--sp-xl) + var(--header-h));
}

.error-page__num {
  font-size: clamp(6rem, 20vw, 14rem);
  font-weight: 700;
  line-height: 1;
  color: var(--border);
  letter-spacing: -0.05em;
}

.error-page__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: 1rem;
}

.error-page__desc {
  color: var(--muted);
  margin-bottom: var(--sp-md);
}

/* ==========================================================================
   18. Clip-path Image Reveal  (ima-inc / tetopaint 風)
   ========================================================================== */

/* 画像を下から上へワイプで表示 */
[data-clip-reveal] {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s var(--ease-out);
}
[data-clip-reveal].is-visible {
  clip-path: inset(0 0 0% 0);
}

/* テキスト行リビール */
.line-reveal {
  overflow: hidden;
  display: block;
}
.line-reveal__inner {
  display: block;
  transform: translateY(110%);
  transition: transform 0.85s var(--ease-out);
}
[data-line-reveal].is-visible .line-reveal__inner {
  transform: translateY(0);
}
[data-line-reveal].is-visible .line-reveal__inner:nth-child(2) { transition-delay: 0.08s; }
[data-line-reveal].is-visible .line-reveal__inner:nth-child(3) { transition-delay: 0.16s; }

/* ------------------------------------------------------------------
   Marker highlight animation  (.hero__marker)
   line-reveal完了後(0.9s)に左→右へマーカーが走る
   ------------------------------------------------------------------ */
.hero__marker {
  background: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: left center;
  padding: 0.1em 0.4em;
  margin: 0 -0.4em;
  opacity: 0.85;
}

[data-reveal].is-visible .hero__marker {
  animation: marker-draw 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  animation-delay: 0.5s;
}

@keyframes marker-draw {
  from { background-size: 0% 100%; }
  to   { background-size: 100% 100%; }
}

/* ==========================================================================
   18b. Our Business Section  (tetopaint 風 交互レイアウト)
   ========================================================================== */

/* コンテナを使わず全幅で表示 */
.business-list {
  border-top: 1px solid var(--border);
}

/* 1ロウ = 左右2分割グリッド */
.business-item {
  display: grid;
  grid-template-columns: 5fr 7fr;   /* コンテンツ42% / 画像58% */
  border-bottom: 1px solid var(--border);
  min-height: clamp(300px, 52vh, 580px);
  overflow: hidden;
}

/* 偶数ロウ: 画像を左に */
.business-item:nth-child(even) {
  grid-template-columns: 7fr 5fr;
}
.business-item:nth-child(even) .business-item__img-col {
  order: -1;
}

/* 画像カラム */
.business-item__img-col {
  position: relative;
  overflow: hidden;
  background: var(--black);
}

.business-item__img-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.2s var(--ease-out);
}
.business-item.is-visible .business-item__img-wrap {
  clip-path: inset(0 0 0% 0);
}

.business-item__img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--ease-out);
  filter: brightness(0.9);
}
.business-item:hover .business-item__img {
  transform: scale(1.04);
  filter: brightness(1);
}

/* 写真なしのプレースホルダー */
.business-item__no-img {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0d1f42 0%, #0a1628 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.business-item__no-img span {
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.18);
  text-transform: uppercase;
}

/* コンテンツカラム */
.business-item__content {
  padding: clamp(2.5rem, 5vw, 5rem) clamp(2rem, 5vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* ゴーストナンバー（超大きく薄く） */
.business-item__num {
  position: absolute;
  bottom: -0.15em;
  right: -0.05em;
  font-size: clamp(6rem, 14vw, 13rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--accent);
  opacity: 0.06;
  pointer-events: none;
  font-family: var(--font-num);
  transition: opacity 0.4s;
}
.business-item:nth-child(even) .business-item__num {
  right: auto;
  left: -0.05em;
}
.business-item:hover .business-item__num { opacity: 0.1; }

/* EN ラベル */
.business-item__en {
  font-size: clamp(0.58rem, 1vw, 0.68rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  overflow: hidden;
}
.business-item__en span {
  display: block;
  transform: translateY(100%);
  transition: transform 0.75s var(--ease-out) 0.05s;
}
.business-item.is-visible .business-item__en span { transform: translateY(0); }

/* 日本語タイトル */
.business-item__title {
  font-size: clamp(1.4rem, 2.8vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  overflow: hidden;
}
.business-item__title span {
  display: block;
  transform: translateY(110%);
  transition: transform 0.85s var(--ease-out) 0.12s;
}
.business-item.is-visible .business-item__title span { transform: translateY(0); }

/* 説明文 */
.business-item__desc {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.95;
  margin-bottom: 2rem;
  max-width: 420px;
  opacity: 0;
  transform: translateY(1.2rem);
  transition: opacity 0.7s var(--ease-out) 0.25s,
              transform 0.7s var(--ease-out) 0.25s;
}
.business-item.is-visible .business-item__desc {
  opacity: 1;
  transform: translateY(0);
}

/* リンク */
.business-item__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--black);
  border-bottom: 1.5px solid var(--black);
  padding-bottom: 0.2em;
  align-self: flex-start;
  opacity: 0;
  transform: translateY(0.8rem);
  transition: opacity 0.6s var(--ease-out) 0.35s,
              transform 0.6s var(--ease-out) 0.35s,
              color 0.22s, border-color 0.22s, gap 0.2s;
}
.business-item.is-visible .business-item__link {
  opacity: 1;
  transform: translateY(0);
}
.business-item__link:hover {
  color: var(--accent);
  border-color: var(--accent);
  gap: 0.85em;
}

/* モバイル: 縦積みに */
@media (max-width: 768px) {
  .business-item,
  .business-item:nth-child(even) {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .business-item__img-col {
    aspect-ratio: 4/3;
    min-height: 240px;
  }
  .business-item:nth-child(even) .business-item__img-col {
    order: 0;
  }
  .business-item__num {
    font-size: clamp(5rem, 20vw, 8rem);
  }
}

/* 黒背景時の上書き */
.section--dark .business-list {
  border-top-color: rgba(255,255,255,0.08);
}
.section--dark .business-item {
  border-bottom-color: rgba(255,255,255,0.08);
}
.section--dark .business-item__desc {
  color: rgba(255,255,255,0.5);
}
.section--dark .business-item__num {
  opacity: 0.07;
}
.section--dark .business-item:hover .business-item__num {
  opacity: 0.12;
}
.section--dark .business-item__link {
  color: rgba(255,255,255,0.8);
  border-bottom-color: rgba(255,255,255,0.25);
}
.section--dark .business-item__link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ==========================================================================
   18. Hero Wave Animation (accent colour blobs)
   ========================================================================== */
.hero__wave {
  display: none;
}

.hero__wave-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.hero__wave-blob--1 {
  width: clamp(50vw, 70vw, 900px);
  height: clamp(50vw, 70vw, 900px);
  background: var(--accent);
  top: -25%;
  left: -15%;
  opacity: 0.38;
  animation: blob1 14s ease-in-out infinite alternate;
}

.hero__wave-blob--2 {
  width: clamp(35vw, 50vw, 650px);
  height: clamp(35vw, 50vw, 650px);
  background: var(--accent);
  bottom: -18%;
  right: -12%;
  opacity: 0.22;
  animation: blob2 18s ease-in-out infinite alternate;
}

.hero__wave-blob--3 {
  width: clamp(25vw, 38vw, 500px);
  height: clamp(25vw, 38vw, 500px);
  background: #5b8df5;           /* lighter blue accent */
  top: 35%;
  left: 45%;
  opacity: 0.18;
  animation: blob3 11s ease-in-out infinite alternate;
}

@keyframes blob1 {
  0%   { transform: translate(0, 0)      scale(1)    rotate(0deg);   }
  33%  { transform: translate(6%, 10%)   scale(1.12) rotate(40deg);  }
  66%  { transform: translate(-4%, 6%)   scale(1.05) rotate(-20deg); }
  100% { transform: translate(4%, -6%)   scale(0.94) rotate(25deg);  }
}

@keyframes blob2 {
  0%   { transform: translate(0, 0)       scale(1);    }
  40%  { transform: translate(-9%, -7%)   scale(1.18); }
  70%  { transform: translate(6%, -3%)    scale(0.92); }
  100% { transform: translate(-4%, 6%)    scale(1.08); }
}

@keyframes blob3 {
  0%   { transform: translate(0, 0)       scale(1);    }
  50%  { transform: translate(12%, -14%)  scale(1.3);  }
  100% { transform: translate(-7%, 9%)    scale(0.82); }
}

/* ==========================================================================
   19. Parallax Fixed-Background Sections
   ========================================================================== */

/*
 * パターン：
 *   白セクション → parallax photo → 白セクション → parallax photo → ...
 *
 * 写真ファイルは assets/images/ に配置し、
 * .parallax-section--1 のような固有クラスで背景を指定してください。
 */

.parallax-section {
  position: relative;
  overflow: hidden;
  min-height: clamp(280px, 45vw, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fixed background image layer */
.parallax-section__bg {
  position: absolute;
  inset: -20%;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  background-image: linear-gradient(135deg, #0d1f42 0%, #0a1628 50%, #112244 100%);
}

/* Dark overlay */
.parallax-section__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 20, 0.52);
  z-index: 1;
}

/* Content */
.parallax-section__content {
  position: relative;
  z-index: 2;
  color: var(--white);
  text-align: center;
  padding: clamp(2rem, 6vw, 4rem) var(--container-pad);
  max-width: 800px;
}

.parallax-section__quote {
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.parallax-section__sub {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.1em;
}

/* ==========================================================================
   PARALLAX BAND 1  —  POLICY  (フル高さ・左下レイアウト)
   ========================================================================== */
.parallax-section--1 {
  min-height: 100svh;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: clamp(5rem, 8vw, 7rem) var(--container-pad) clamp(3.5rem, 6vw, 5rem);
}

.parallax-section--1 .parallax-section__bg {
  background-image: url(assets/images/parallax-1.jpg);
}

.parallax-section--1 .parallax-section__overlay {
  background: rgba(0, 0, 0, 0.3);
}

.parallax-section__label {
  position: relative;
  z-index: 2;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
}

.parallax-section--1 .parallax-section__content {
  text-align: left;
  max-width: none;
  padding: 0;
  width: 100%;
}

.parallax-section--1 .parallax-section__quote {
  font-size: clamp(2.4rem, 6vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.parallax-section--1 .parallax-section__sub {
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
  line-height: 1.8;
  margin-top: 1.2rem;
}

/* ==========================================================================
   PARALLAX BAND 2  —  STRENGTH  (フル高さ・左下レイアウト)
   ========================================================================== */
.parallax-section--2 {
  min-height: 100svh;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: clamp(5rem, 8vw, 7rem) var(--container-pad) clamp(3.5rem, 6vw, 5rem);
}

.parallax-section--2 .parallax-section__bg {
  background-image: url(assets/images/parallax-2.jpg);
}

.parallax-section--2 .parallax-section__overlay {
  background: linear-gradient(
    to top,
    rgba(4, 8, 20, 0.82) 0%,
    rgba(4, 8, 20, 0.45) 55%,
    rgba(4, 8, 20, 0.18) 100%
  );
}

.parallax-section--2 .parallax-section__content {
  text-align: left;
  max-width: 740px;
  padding: 0;
  width: 100%;
}

/* / STRENGTH → / POLICY と同サイズ */
.parallax-section--2 .parallax-section__label {
  font-size: clamp(2.4rem, 6vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

/* 引用文はコンパクトなサブテキストに */
.parallax-section--2 .parallax-section__quote {
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 2rem;
}

/* マーカーアニメーション */
.marker-text {
  position: relative;
  display: inline;
  white-space: nowrap;
}
.marker-text::after {
  content: '';
  position: absolute;
  left: -5px;
  top: 0;
  bottom: 0;
  width: 0;
  background: rgba(25, 70, 200, 0.55);
  z-index: -1;
  transition: width 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.55s;
}
.is-visible .marker-text::after {
  width: calc(100% + 6px);
}

/* 説明文 */
.parallax-section__body {
  font-size: clamp(0.82rem, 1.5vw, 0.95rem);
  color: rgba(255, 255, 255, 0.65);
  line-height: 2.1;
  letter-spacing: 0.02em;
  border-left: 2px solid var(--accent);
  padding-left: 1.2rem;
  margin-bottom: 1.8rem;
}

.parallax-section--2 .parallax-section__sub {
  font-size: clamp(0.7rem, 1.3vw, 0.82rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* iOS / touch: background-attachment:fixed is unsupported → scroll instead */
@media (hover: none) {
  .parallax-section__bg {
    background-attachment: scroll;
    inset: 0;
  }
}

/* ==========================================================================
   18. Responsive tweaks
   ========================================================================== */
@media (max-width: 600px) {
  .hero__title { font-size: clamp(2rem, 8vw, 3.5rem); letter-spacing: -0.02em; }
  .hero__tagline { font-size: clamp(0.85rem, 3.5vw, 1rem); }
  .hero__body { padding-bottom: 3.5rem; }
  .section { padding-block: clamp(3.5rem, 10vw, 6rem); }
  .company-table th { width: 5.5rem; }
}

@media (min-width: 1000px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Ensure last service card spans if 5 items in 3-col */
@media (min-width: 1000px) {
  .service-grid .service-card:nth-child(4) { border-bottom: none; }
}

/* ==========================================================================
   下層ページ — サービス概要リード文
   ========================================================================== */
.service-overview__lead {
  font-size: var(--fs-md);
  color: var(--muted);
  line-height: 1.95;
  max-width: 740px;
  margin-bottom: var(--sp-lg);
}

/* service-category アイコンをSVG対応に */
.service-category__icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 0.9rem;
  color: var(--accent);
}
.service-category__icon svg {
  width: 100%;
  height: 100%;
}

/* 2列 × 2行レイアウト */
.service-categories--2x2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 480px) {
  .service-categories--2x2 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   施工事例 (Case Studies)
   ========================================================================== */
.case-list {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 4rem);
  margin-top: var(--sp-lg);
}

.case-item {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06);
}

/* ヘッダー部 */
.case-item__head {
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.4rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--border);
}

.case-item__num {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.case-item__title {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.case-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.case-item__tags span {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.28em 0.85em;
  border: 1px solid var(--border);
  color: var(--muted);
}

/* ボディ: 左=テキスト / 右=写真 */
.case-item__body {
  display: grid;
  grid-template-columns: 2fr 3fr;
}

.case-item__info {
  padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1.4rem, 4vw, 2.5rem);
  border-right: 1px solid var(--border);
}

.case-item__dl {
  margin-bottom: 1.4rem;
}

.case-item__dl > div {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  padding: 0.6em 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-sm);
  gap: 0.6em;
}

.case-item__dl > div:first-child {
  border-top: 1px solid var(--border);
}

.case-item__dl dt {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding-top: 0.1em;
}

.case-item__dl dd { color: var(--black); }

.case-item__desc {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.92;
}

/* 写真グリッド */
.case-item__gallery {
  display: grid;
  align-content: start;
}

/* 5枚: 上段2枚 + 下段3枚 */
.case-item__gallery--5 {
  grid-template-columns: repeat(3, 1fr);
}
.case-item__gallery--5 .case-item__photo:nth-child(1),
.case-item__gallery--5 .case-item__photo:nth-child(2) {
  grid-column: span 1;
}

/* 4枚: 2×2グリッド */
.case-item__gallery--4 {
  grid-template-columns: repeat(2, 1fr);
}

/* 6枚: 3×2グリッド */
.case-item__gallery--6 {
  grid-template-columns: repeat(3, 1fr);
}

/* 3枚: 横3分割 */
.case-item__gallery--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* 2枚: 横2分割 */
.case-item__gallery--2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
  .case-item__gallery--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.case-item__photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
  border: 0.5px solid rgba(0, 0, 0, 0.06);
}

.case-item__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease-out);
}

.case-item__photo:hover img { transform: scale(1.05); }

/* プレースホルダー（写真未配置時） */
.case-item__placeholder {
  width: 100%;
  height: 100%;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
}

.case-item__placeholder span {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: rgba(0, 0, 0, 0.18);
  text-transform: uppercase;
}

/* CTA 補足文 */
.contact-cta__note {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
  margin-top: -0.5rem;
}

/* モバイル */
@media (max-width: 768px) {
  .case-item__body {
    grid-template-columns: 1fr;
  }
  .case-item__info {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .case-item__gallery--5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .case-item__gallery--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

/* ----- Info Band ----- */
.contact-info-band {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.contact-info-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem 1.75rem;
  text-align: center;
}

.contact-info-item__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.contact-info-item__icon svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
}

.contact-info-item__label {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.contact-info-item__value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.4rem;
}

.contact-info-item__value a {
  color: var(--accent);
  text-decoration: none;
}

.contact-info-item__value a:hover {
  text-decoration: underline;
}

.contact-info-item__value--sm {
  font-size: 1rem;
}

.contact-info-item__note {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ----- Form Section ----- */
.contact-form-section {
  background: #162348;
  padding: 5rem 0 6rem;
}

.contact-form-section .section-header--light .section-header__en {
  color: rgba(255, 255, 255, 0.45);
}

.contact-form-section .section-header--light .section-header__ja {
  color: #fff;
}

.contact-form-section .section-header--light::after {
  background: var(--accent);
}

.contact-form-section__note {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 2.5rem;
}

/* 白背景バリアント */
.contact-form-section--light {
  background: var(--white);
  padding: 5rem 0 6rem;
}

.contact-form-section--light .contact-form-section__note {
  color: var(--muted);
}

.contact-form-section--light .wpcf7 input[type="text"],
.contact-form-section--light .wpcf7 input[type="tel"],
.contact-form-section--light .wpcf7 input[type="email"],
.contact-form-section--light .wpcf7 textarea {
  background: #F6F7F9;
  border: 1px solid var(--border);
  color: var(--black);
}

.contact-form-section--light .wpcf7 input[type="text"]::placeholder,
.contact-form-section--light .wpcf7 input[type="tel"]::placeholder,
.contact-form-section--light .wpcf7 input[type="email"]::placeholder,
.contact-form-section--light .wpcf7 textarea::placeholder {
  color: #aab0be;
}

.contact-form-section--light .wpcf7 input[type="text"]:focus,
.contact-form-section--light .wpcf7 input[type="tel"]:focus,
.contact-form-section--light .wpcf7 input[type="email"]:focus,
.contact-form-section--light .wpcf7 textarea:focus {
  background: #fff;
  border-color: var(--accent);
}

.contact-form-section--light .cf7-label {
  color: var(--black);
}

.contact-form-section--light .cf7-checkbox-wrap .wpcf7-list-item-label {
  color: var(--black);
}

.contact-form-section--light .cf7-thanks__title {
  color: var(--black);
}

.contact-form-section--light .cf7-thanks__text {
  color: var(--muted);
}

/* ----- CF7 Wrap ----- */
.cf7-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.cf7-field-group {
  margin-bottom: 2rem;
}

.cf7-label {
  display: block;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
  letter-spacing: 0.04em;
}

.cf7-required {
  color: #e05252;
  margin-left: 3px;
}

/* inputs */
.wpcf7 input[type="text"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: #fff;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  -webkit-appearance: none;
  font-family: inherit;
}

.wpcf7 input[type="text"]::placeholder,
.wpcf7 input[type="tel"]::placeholder,
.wpcf7 input[type="email"]::placeholder,
.wpcf7 textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
}

.wpcf7 textarea {
  height: 160px;
  resize: vertical;
}

/* checkboxes */
.cf7-checkbox-wrap .wpcf7-checkbox {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.cf7-checkbox-wrap .wpcf7-list-item {
  display: flex;
  align-items: center;
  margin: 0;
}

.cf7-checkbox-wrap .wpcf7-list-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  margin-right: 0.7rem;
  flex-shrink: 0;
  cursor: pointer;
}

.cf7-checkbox-wrap .wpcf7-list-item-label {
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
}

/* submit */
.cf7-submit-wrap {
  margin-top: 2.5rem;
  text-align: center;
}

.wpcf7 input[type="submit"] {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 0.95rem 4rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: inherit;
}

.wpcf7 input[type="submit"]:hover {
  background: var(--accent2);
  transform: translateY(-2px);
}

/* validation */
.wpcf7 .wpcf7-not-valid-tip {
  color: #f07070;
  font-size: 0.8rem;
  margin-top: 0.4rem;
  display: block;
}

.wpcf7 input.wpcf7-not-valid,
.wpcf7 textarea.wpcf7-not-valid {
  border-color: #e05252;
}

/* hide default response output */
.wpcf7 .wpcf7-response-output {
  display: none !important;
}

/* ----- Thanks Message ----- */
.cf7-thanks {
  display: none;
  text-align: center;
  padding: 4rem 1.5rem;
  animation: thanksIn 0.7s ease forwards;
}

.cf7-thanks.is-visible {
  display: block;
}

@keyframes thanksIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cf7-thanks__icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.cf7-thanks__icon svg {
  width: 34px;
  height: 34px;
  stroke: #fff;
  stroke-width: 2.5;
}

.cf7-thanks__title {
  color: #fff;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 1.2rem;
  letter-spacing: 0.04em;
}

.cf7-thanks__text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 2;
}

/* ----- SP ----- */
@media (max-width: 599px) {
  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .wpcf7 input[type="submit"] {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

