/* ==========================================================================
   T-Net System - Common Stylesheet
   ========================================================================== */

:root {
  --color-primary: #0b2a4a;        /* deep navy */
  --color-primary-dark: #061b32;
  --color-primary-light: #1c4a7a;
  --color-accent: #ff6b1a;         /* orange */
  --color-accent-dark: #e24f00;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f8fb;
  --color-bg-dark: #0b2a4a;
  --color-text: #1b1f26;
  --color-text-muted: #5a6472;
  --color-border: #e3e8ef;
  --color-success: #2e8b57;

  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-en: "Poppins", "Noto Sans JP", sans-serif;

  --shadow-sm: 0 1px 3px rgba(11, 42, 74, 0.06), 0 1px 2px rgba(11, 42, 74, 0.04);
  --shadow-md: 0 6px 16px rgba(11, 42, 74, 0.08), 0 2px 4px rgba(11, 42, 74, 0.04);
  --shadow-lg: 0 20px 40px rgba(11, 42, 74, 0.12);

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --container: 1180px;
  --header-h: 80px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.75;
  font-size: 16px;
  font-feature-settings: "palt";
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-accent); }
ul, ol { padding-left: 1.2em; }
h1, h2, h3, h4, h5 { line-height: 1.4; margin: 0 0 .6em; letter-spacing: .02em; font-weight: 700; }
p { margin: 0 0 1em; }

/* Utilities */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  background: var(--color-accent);
  color: #fff;
  border: 2px solid var(--color-accent);
  transition: transform .2s, background .2s, box-shadow .2s, color .2s;
  box-shadow: 0 10px 24px rgba(255, 107, 26, .25);
  cursor: pointer;
}
.btn:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); transform: translateY(-2px); color: #fff; }
.btn--outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); box-shadow: none; }
.btn--outline:hover { background: var(--color-primary); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); box-shadow: none; }
.btn--ghost:hover { background: #fff; color: var(--color-primary); border-color: #fff; }

.section { padding: 96px 0; }
.section--alt { background: var(--color-bg-alt); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head__en { display: block; color: var(--color-accent); font-family: var(--font-en); font-weight: 600; letter-spacing: .18em; font-size: 14px; text-transform: uppercase; margin-bottom: 8px; }
.section-head__title { font-size: clamp(26px, 3.4vw, 36px); color: var(--color-primary); position: relative; display: inline-block; padding-bottom: 18px; }
.section-head__title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  transform: translateX(-50%);
  border-radius: 3px;
}
.section-head__lead { color: var(--color-text-muted); max-width: 640px; margin: 16px auto 0; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.site-logo { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--color-primary); font-size: 18px; line-height: 1.2; }
.site-logo__mark {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: 10px;
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--font-en);
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.site-logo__mark::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 55%, var(--color-accent) 55% 60%, transparent 60%);
  opacity: .9;
}
.site-logo__mark span { position: relative; z-index: 1; font-size: 18px; }
.site-logo__text { display: flex; flex-direction: column; }
.site-logo__text small { font-weight: 500; font-size: 11px; color: var(--color-text-muted); letter-spacing: .1em; }
.site-logo__img { height: 44px; width: auto; max-width: 220px; display: block; }
.site-footer__brand .site-logo__img { height: 40px; }
@media (max-width: 1180px) and (min-width: 721px) {
  .site-logo__img { height: 3.73vw; max-width: none; }
}
@media (max-width: 720px) {
  .site-logo__img { height: 36px; max-width: 160px; }
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__list { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.site-nav__list a {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 0;
  position: relative;
}
.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.site-nav__list a:hover::after,
.site-nav__list .current-menu-item > a::after { transform: scaleX(1); }

.site-nav__cta { display: flex; align-items: center; gap: 12px; }
.site-nav__tel { color: var(--color-primary); font-weight: 700; font-family: var(--font-en); font-size: 18px; display: flex; align-items: center; gap: 6px; }
.site-nav__tel small { display: block; font-size: 10px; color: var(--color-text-muted); letter-spacing: .15em; font-family: var(--font-sans); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--color-primary);
  transition: transform .25s, opacity .25s, top .25s;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: #fff;
  padding: calc(var(--header-h) + 40px) 0 40px;
  overflow: hidden;
  background: linear-gradient(135deg, #061b32 0%, #0b2a4a 60%, #1c4a7a 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(800px 400px at 80% 20%, rgba(255,107,26,.25), transparent 60%),
    radial-gradient(600px 300px at 10% 80%, rgba(28, 74, 122, .6), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .5;
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; max-width: 760px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .1em;
  margin-bottom: 24px;
  backdrop-filter: blur(6px);
}
.hero__badge::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255,107,26,.25);
}
.hero__title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 24px;
  letter-spacing: .02em;
}
.hero__title .accent { color: var(--color-accent); }
.hero__lead {
  font-size: clamp(15px, 1.6vw, 18px);
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero__stat-num { font-family: var(--font-en); font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; color: #fff; }
.hero__stat-num .unit { font-size: .5em; margin-left: 4px; color: var(--color-accent); }
.hero__stat-label { font-size: 13px; color: rgba(255,255,255,.7); letter-spacing: .08em; }

/* Page header (sub pages) */
.page-header {
  padding: calc(var(--header-h) + 80px) 0 80px;
  background: linear-gradient(135deg, #061b32 0%, #0b2a4a 60%, #1c4a7a 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-header::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .5;
}
.page-header__inner { position: relative; z-index: 1; }
.page-header__en { font-family: var(--font-en); letter-spacing: .2em; color: var(--color-accent); font-size: 14px; text-transform: uppercase; font-weight: 600; }
.page-header__title { font-size: clamp(26px, 4vw, 40px); margin-top: 6px; }

.breadcrumb {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  font-size: 13px;
  padding: 14px 0;
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; color: var(--color-text-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--color-border); }
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-accent); }

/* Features / service cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.features--4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.features--4 .feature { padding: 32px 20px; }
.feature {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature:hover::before { transform: scaleX(1); }
.feature__icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  display: grid; place-items: center;
  color: #fff;
  margin-bottom: 20px;
}
.feature__icon svg { width: 28px; height: 28px; }
.feature__title { font-size: 20px; color: var(--color-primary); margin-bottom: 12px; }
.feature__text { color: var(--color-text-muted); font-size: 15px; margin: 0; }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card__media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  position: relative;
  display: grid; place-items: center;
  color: rgba(255,255,255,.9);
  overflow: hidden;
}
.service-card__media::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.service-card__icon { width: 88px; height: 88px; position: relative; z-index: 1; }
.service-card__body { padding: 32px; flex-grow: 1; display: flex; flex-direction: column; }
.service-card__tag {
  display: inline-block;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  font-size: 12px;
  letter-spacing: .1em;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.service-card__title { font-size: 22px; color: var(--color-primary); margin-bottom: 14px; }
.service-card__text { color: var(--color-text-muted); font-size: 15px; flex-grow: 1; }

/* About split */
.about { display: grid; grid-template-columns: 5fr 6fr; gap: 60px; align-items: center; }
.about__figure {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about__figure::after {
  content: "T-NET";
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-en);
  font-size: clamp(60px, 10vw, 120px);
  font-weight: 800;
  color: rgba(255,255,255,.08);
  letter-spacing: .08em;
}
.about__figure-overlay {
  position: absolute;
  right: -24px; bottom: -24px;
  width: 180px; height: 180px;
  background: var(--color-accent);
  border-radius: 30px;
  transform: rotate(15deg);
  opacity: .9;
  z-index: 0;
}
.about__en { font-family: var(--font-en); letter-spacing: .18em; color: var(--color-accent); font-weight: 600; font-size: 14px; text-transform: uppercase; }
.about__title { font-size: clamp(26px, 3vw, 34px); color: var(--color-primary); margin: 10px 0 24px; }
.about__text { color: var(--color-text-muted); margin-bottom: 20px; }
.about__list { list-style: none; padding: 0; margin: 20px 0 32px; display: grid; gap: 12px; }
.about__list li { padding-left: 32px; position: relative; color: var(--color-text); }
.about__list li::before {
  content: "";
  position: absolute; left: 0; top: 6px;
  width: 20px; height: 20px;
  background: var(--color-accent);
  border-radius: 50%;
}
.about__list li::after {
  content: "";
  position: absolute; left: 6px; top: 11px;
  width: 8px; height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* News */
.news-list { display: grid; gap: 12px; }
.news-item {
  display: grid;
  grid-template-columns: 140px 120px 1fr;
  align-items: center;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color .2s, transform .2s;
  gap: 20px;
  color: var(--color-text);
}
.news-item:hover { border-color: var(--color-accent); transform: translateX(4px); }
.news-item__date { font-family: var(--font-en); color: var(--color-text-muted); font-weight: 500; }
.news-item__cat {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  letter-spacing: .08em;
  padding: 4px 12px;
  border-radius: 4px;
  text-align: center;
}
.news-item__title { font-weight: 600; color: var(--color-primary); }

/* CTA strip */
.cta-strip {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1c4a7a 100%);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,107,26,.3), transparent 70%);
  border-radius: 50%;
}
.cta-strip__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-strip__en { font-family: var(--font-en); color: var(--color-accent); letter-spacing: .2em; font-weight: 600; font-size: 13px; }
.cta-strip__title { font-size: clamp(24px, 3vw, 32px); margin: 6px 0 8px; }
.cta-strip__text { color: rgba(255,255,255,.8); margin: 0; }

/* Tables */
.info-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.info-table th, .info-table td { padding: 18px 24px; text-align: left; border-bottom: 1px solid var(--color-border); font-size: 15px; vertical-align: top; }
.info-table th { background: var(--color-bg-alt); color: var(--color-primary); font-weight: 700; width: 220px; white-space: nowrap; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }

/* Timeline */
.timeline { position: relative; max-width: 720px; margin: 0 auto; padding-left: 24px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-accent), var(--color-primary));
  border-radius: 2px;
}
.timeline__item { position: relative; padding: 0 0 32px 32px; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -24px; top: 6px;
  width: 18px; height: 18px;
  background: #fff;
  border: 3px solid var(--color-accent);
  border-radius: 50%;
  z-index: 1;
}
.timeline__date { font-family: var(--font-en); font-weight: 700; color: var(--color-primary); font-size: 15px; letter-spacing: .04em; }
.timeline__content { color: var(--color-text); margin-top: 4px; }

/* Access */
.access-wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: stretch; }
.access-info { background: #fff; padding: 40px; border-radius: var(--radius); border: 1px solid var(--color-border); }
.access-info dl { margin: 0; display: grid; gap: 16px; }
.access-info dt { font-weight: 700; color: var(--color-primary); font-size: 13px; letter-spacing: .08em; }
.access-info dd { margin: 4px 0 0; }
.access-map { aspect-ratio: 16 / 13; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--color-border); }
.access-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Form */
.form { display: grid; gap: 20px; max-width: 680px; margin: 0 auto; }
.form__row { display: grid; gap: 8px; }
.form__label { font-weight: 700; color: var(--color-primary); font-size: 14px; display: flex; align-items: center; gap: 10px; }
.form__label .required {
  background: var(--color-accent);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: .04em;
}
.form__input, .form__textarea, .form__select {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font: inherit;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form__input:focus, .form__textarea:focus, .form__select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255,107,26,.15);
}
.form__textarea { min-height: 160px; resize: vertical; }
.form__actions { text-align: center; margin-top: 12px; }

/* ── Contact Form 7 ─────────────────────────────
   Styles CF7's own markup to match the .form design above, so a
   plain CF7 form (default template) looks consistent with the site.
   ─────────────────────────────────────────────── */
.wpcf7 { max-width: 680px; margin: 0 auto; }

/* Field rows — CF7's default template wraps each field in <p> */
.wpcf7-form > p { margin: 0 0 20px; }
.wpcf7-form > p:last-of-type { margin-bottom: 0; }
.wpcf7-form .form__row { margin-bottom: 20px; }

/* Labels */
.wpcf7-form label {
  display: block;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 14px;
}

/* The span CF7 wraps each control in */
.wpcf7-form-control-wrap { display: block; margin-top: 8px; }

/* Inputs / textarea / select */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="date"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font: inherit;
  color: var(--color-text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 26, .15);
}
.wpcf7-form textarea { min-height: 160px; resize: vertical; }

/* Required badge (when the label contains <span class="required">必須</span>) */
.wpcf7-form .required {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: .04em;
  margin-left: 8px;
}

/* Submit button — match .btn */
.wpcf7-form input[type="submit"],
.wpcf7-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  background: var(--color-accent);
  color: #fff;
  border: 2px solid var(--color-accent);
  box-shadow: 0 10px 24px rgba(255, 107, 26, .25);
  cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.wpcf7-form input[type="submit"]:hover,
.wpcf7-form button[type="submit"]:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-2px);
}

/* Center the submit row */
.wpcf7-form p:has(input[type="submit"]),
.wpcf7-form p:has(button[type="submit"]),
.wpcf7-form .form__actions { text-align: center; margin-top: 32px; }

/* Radio / checkbox lists */
.wpcf7-form .wpcf7-list-item { display: inline-block; margin: 0 18px 8px 0; }
.wpcf7-form .wpcf7-list-item-label { margin-left: 6px; }

/* Validation — invalid field + inline tip */
.wpcf7-form .wpcf7-not-valid { border-color: #e02b2b; }
.wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  color: #e02b2b;
  font-size: 13px;
  font-weight: 500;
}

/* Response message box */
.wpcf7-response-output {
  margin: 28px 0 0 !important;
  padding: 14px 18px !important;
  border-radius: var(--radius-sm);
  border-width: 1px !important;
  font-size: 14px;
}
.wpcf7 form.sent .wpcf7-response-output {
  border-color: #2e7d32 !important;
  background: #eaf5ea;
  color: #246626;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
  border-color: #e02b2b !important;
  background: #fdeaea;
  color: #c62020;
}

/* Loading spinner */
.wpcf7-spinner { margin: 14px auto 0; }

/* Contact cards */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 64px; }
.contact-card {
  text-align: center;
  padding: 40px 28px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: transform .2s, box-shadow .2s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-card__icon {
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
}
.contact-card__icon svg { width: 28px; height: 28px; }
.contact-card__label { font-size: 13px; color: var(--color-text-muted); letter-spacing: .08em; margin-bottom: 6px; }
.contact-card__value { font-family: var(--font-en); font-size: 22px; font-weight: 700; color: var(--color-primary); }

/* Recruit cards */
.recruit-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.recruit-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 40px;
  position: relative;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.recruit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.recruit-card__tag {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 12px;
  letter-spacing: .08em;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.recruit-card__title { font-size: 22px; color: var(--color-primary); margin-bottom: 8px; }
.recruit-card__salary { font-family: var(--font-en); color: var(--color-accent); font-weight: 700; font-size: 24px; margin-bottom: 20px; }
.recruit-card__salary small { font-size: 14px; color: var(--color-text-muted); margin-left: 4px; font-family: var(--font-sans); font-weight: 500; }
.recruit-card__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.recruit-card__list li { display: flex; gap: 12px; font-size: 14px; }
.recruit-card__list dt { color: var(--color-text-muted); font-weight: 500; min-width: 84px; }
.recruit-card__list dd { margin: 0; color: var(--color-text); }

/* Article */
.article { max-width: 800px; margin: 0 auto; }
.article h2 { font-size: 24px; color: var(--color-primary); padding-left: 16px; border-left: 4px solid var(--color-accent); margin-top: 48px; margin-bottom: 20px; }
.article h3 { font-size: 20px; color: var(--color-primary); margin-top: 36px; margin-bottom: 12px; }
.article p { color: var(--color-text); }
.article ul { color: var(--color-text); }

/* President */
.president { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.president__photo {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
  color: rgba(255,255,255,.4);
}
.president__photo svg { width: 40%; height: 40%; }
.president__body h2 { font-size: 28px; color: var(--color-primary); border: 0; padding: 0; margin-top: 0; }
.president__sign {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}
.president__sign small { color: var(--color-text-muted); font-size: 13px; }
.president__sign strong { font-size: 22px; color: var(--color-primary); }

/* Footer */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,.7);
  padding: 72px 0 0;
}
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--color-accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.7); font-size: 14px; }
.site-footer a:hover { color: var(--color-accent); }
.site-footer__brand p { font-size: 14px; margin-top: 18px; max-width: 320px; color: rgba(255,255,255,.6); }
.site-footer__brand .site-logo { color: #fff; }
.site-footer__brand .site-logo__text small { color: rgba(255,255,255,.5); }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  font-size: 13px;
  text-align: center;
  color: rgba(255,255,255,.5);
}

/* Animations */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity .7s, transform .7s; }
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 960px) {
  .features, .services, .recruit-cards { grid-template-columns: 1fr; }
  .features--4 { grid-template-columns: repeat(2, 1fr); }
  .about, .access-wrap, .president { grid-template-columns: 1fr; gap: 32px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
  .news-item { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 720px) {
  .features--4 { grid-template-columns: 1fr; }
  .site-nav__list { display: none; }
  .site-nav__tel { display: none; }
  .nav-toggle { display: block; }
  .site-nav.is-open .site-nav__list {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: #fff;
    padding: 24px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }
  .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { border-bottom: 0; padding-bottom: 4px; }
  .info-table tr { border-bottom: 1px solid var(--color-border); display: block; }
  .info-table tr:last-child { border-bottom: 0; }
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Header: fluid scaling between mobile breakpoint and 1180px
   Text never wraps; sizes shrink smoothly using vw.
   ========================================================================== */
.site-header__inner { flex-wrap: nowrap; min-width: 0; }
.site-logo { flex-shrink: 0; white-space: nowrap; }
.site-logo__text { white-space: nowrap; }
.site-logo__text small { white-space: nowrap; }
.site-nav { flex-wrap: nowrap; min-width: 0; }
.site-nav__list { flex-wrap: nowrap; white-space: nowrap; }
.site-nav__list a { white-space: nowrap; }
.site-nav__cta { flex-shrink: 0; flex-wrap: nowrap; }
.site-nav__tel { white-space: nowrap; }
.site-nav__cta .btn { white-space: nowrap; }

/* 1180px base. Below that, header uses vw so it shrinks until mobile breakpoint (721px). */
@media (max-width: 1180px) and (min-width: 721px) {
  :root { --header-h: 6.78vw; }
  .container { padding: 0 2.03vw; }

  .site-logo { gap: 1.01vw; font-size: 1.52vw; }
  .site-logo__mark { width: 3.73vw; height: 3.73vw; border-radius: 0.85vw; }
  .site-logo__mark span { font-size: 1.52vw; }
  .site-logo__text small { font-size: 0.93vw; }

  .site-nav { gap: 2.37vw; }
  .site-nav__list { gap: 2.03vw; }
  .site-nav__list a { font-size: 1.27vw; padding: 0.68vw 0; }

  .site-nav__cta { gap: 1.01vw; }
  .site-nav__tel { font-size: 1.52vw; gap: 0.5vw; }
  .site-nav__tel small { font-size: 0.85vw; letter-spacing: .08em; }

  .site-nav__cta .btn {
    padding: 1.18vw 2.03vw;
    font-size: 1.27vw;
    border-width: 0.17vw;
    border-radius: 9999px;
    letter-spacing: .02em;
  }

  /* Hero keeps proper proportions too */
  .hero { padding-top: calc(var(--header-h) + 3.4vw); }
}

/* Header CTA button: smaller than default btn */
.site-nav__cta .btn {
  padding: 10px 18px;
  font-size: 13px;
  border-width: 1.5px;
  box-shadow: 0 6px 16px rgba(255, 107, 26, .22);
}

@media (max-width: 1180px) and (min-width: 721px) {
  .site-nav__cta .btn {
    padding: 0.85vw 1.52vw;
    font-size: 1.10vw;
    border-width: 0.13vw;
  }
}

/* Breathing space to the right of the company name */
.site-logo { margin-right: 40px; }

@media (max-width: 1180px) and (min-width: 721px) {
  .site-logo { margin-right: 3.4vw; }
}

@media (max-width: 720px) {
  .site-logo { margin-right: 16px; }
}

/* ── Real photo helpers ─────────────── */
.about__figure-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.about__figure--photo::after { content: none; }

.president__photo { position: relative; overflow: hidden; }
.president__photo-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  border-radius: var(--radius-lg);
}
.president__photo > svg { display: none; }

.service-card__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}

/* ──────────────────────────────────────────────
   Block editor (Gutenberg) compatibility.
   inc/block-compat.php strips WP's is-layout-* classes and the legacy
   inner-container wrapper at render time, so wp:group outputs a plain
   <div class="wp-block-group [bem]"> and all the base CSS above applies.
   These rules only smooth small native-block vs static-markup differences.
   ────────────────────────────────────────────── */

/* en labels were inline <span>/<div> in the static markup, now <p> blocks —
   kill the browser-default paragraph top margin. */
.section-head__en,
.about__en,
.cta-strip__en { display: block; margin: 0 0 8px; }

/* wp:heading adds .wp-block-heading; keep headings flush where the layout
   expects no top gap. */
.president__body .wp-block-heading:first-child,
.article .wp-block-heading:first-child { margin-top: 0; }

/* Hero stats: num/label are <p> blocks now — drop default paragraph margin. */
.hero__stat-num,
.hero__stat-label { margin: 0; }

/* Business rows: photo-right (reversed) variant. */
.about--reverse { direction: rtl; }
.about--reverse > * { direction: ltr; }
.about__figure--reverse .about__figure-overlay { right: auto; left: -24px; }
