/*
Theme Name: Trusted Partner Custom
Theme URI: https://trusted-p.com/
Description: トラステッドパートナー独自テーマ
Author: QReator（株式会社L.Z.Surf）
Version: 2.0.0
Text Domain: trusted-p-custom
*/

/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --c-bg-start:  #b8c9d5;
  --c-bg-end:    #d5dfe6;
  --c-white:     #ffffff;
  --c-black:     #111111;
  --c-text:      #1f2933;
  --c-muted:     #5a6a78;
  --c-border:    #c8d5df;
  --c-accent:    #3a6070;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
               "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;

  --header-h:  64px;
  --container: 1120px;
  --radius:    12px;
  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================================
   Reset / base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--c-text);
  background: var(--c-white);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
}

/* フロントページはスクロール無効（ヒーローのみ全画面） */
body.home,
body.front-page {
  overflow: hidden;
  height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* ============================================================
   SPA content wrapper & transitions
   ============================================================ */
.spa-content {
  will-change: opacity, transform;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.spa-content.spa-leaving {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.spa-content.spa-entering {
  animation: spaEnter 0.5s var(--ease) forwards;
}

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

/* ============================================================
   Site header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 900;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
}

.site-header__logo {
  display: flex;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--c-white);
  transition: color 0.4s var(--ease);
  line-height: 1;
}

.site-header.is-scrolled .site-header__logo { color: var(--c-text); }

.site-header__logo img {
  max-height: 36px;
  width: auto;
}

/* hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1100;
}

.hamburger__bar {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--c-white);
  transition: transform 0.35s var(--ease), opacity 0.25s ease, background 0.4s var(--ease);
  transform-origin: center;
}

.site-header.is-scrolled .hamburger__bar { background: var(--c-text); }

.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--c-text);
}
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--c-text);
}

/* ============================================================
   Drawer nav overlay — block panel layout
   ============================================================ */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: row;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
  background: var(--c-black);
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ✕ close button */
.nav-overlay__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.nav-overlay__close span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--c-white);
  transition: background 0.2s ease;
}

.nav-overlay__close span:first-child {
  transform: translateY(0.5px) rotate(45deg);
}

.nav-overlay__close span:last-child {
  transform: translateY(-0.5px) rotate(-45deg);
}

.nav-overlay__close:hover span { background: rgba(255,255,255,0.6); }

/* Image panels (left 75%) */
.nav-overlay__panels {
  display: flex;
  flex: 0 0 75%;
  height: 100%;
}

.nav-overlay__panel {
  flex: 1;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 32px 28px;
  background-color: #1a2530;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  overflow: hidden;
  transition: flex 0.4s var(--ease);
}

.nav-overlay__panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.15) 50%, transparent 100%);
  transition: opacity 0.35s ease;
}

.nav-overlay__panel:hover { flex: 1.3; }
.nav-overlay__panel:hover::before { opacity: 0.6; }

.nav-overlay__panel-label {
  position: relative;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--c-white);
  text-transform: uppercase;
}

/* Side nav (right 25%) */
.nav-overlay__side {
  flex: 0 0 25%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 40px 40px;
  background: #0f1920;
  position: relative;
}

.nav-overlay__menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 32px;
  padding: 0;
}

.nav-overlay__menu li { overflow: hidden; }

.nav-overlay__menu a {
  display: block;
  padding: 10px 0;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--c-white);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.nav-overlay__menu a:hover {
  color: rgba(255,255,255,0.55);
  padding-left: 6px;
}

.nav-overlay__sub ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 40px;
  padding: 0;
}

.nav-overlay__sub a {
  display: block;
  padding: 7px 0;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.25s ease;
}

.nav-overlay__sub a:hover { color: rgba(255,255,255,0.7); }

/* CONTACT vertical text */
.nav-overlay__contact-wrap {
  margin-top: auto;
}

.nav-overlay__contact {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transition: color 0.25s ease;
}

.nav-overlay__contact:hover { color: var(--c-white); }

/* panel stagger animation on open */
.nav-overlay.is-open .nav-overlay__panel {
  animation: panelFadeIn 0.55s var(--ease) both;
}
.nav-overlay.is-open .nav-overlay__panel:nth-child(1) { animation-delay: 0.06s; }
.nav-overlay.is-open .nav-overlay__panel:nth-child(2) { animation-delay: 0.12s; }
.nav-overlay.is-open .nav-overlay__panel:nth-child(3) { animation-delay: 0.18s; }

.nav-overlay.is-open .nav-overlay__menu li {
  animation: menuItemIn 0.45s var(--ease) both;
}
.nav-overlay.is-open .nav-overlay__menu li:nth-child(1) { animation-delay: 0.10s; }
.nav-overlay.is-open .nav-overlay__menu li:nth-child(2) { animation-delay: 0.15s; }
.nav-overlay.is-open .nav-overlay__menu li:nth-child(3) { animation-delay: 0.20s; }
.nav-overlay.is-open .nav-overlay__menu li:nth-child(4) { animation-delay: 0.25s; }
.nav-overlay.is-open .nav-overlay__menu li:nth-child(5) { animation-delay: 0.30s; }
.nav-overlay.is-open .nav-overlay__menu li:nth-child(6) { animation-delay: 0.35s; }

@keyframes panelFadeIn {
  from { opacity: 0; transform: scaleY(0.96); }
  to   { opacity: 1; transform: scaleY(1); }
}

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

/* mobile: stack vertically */
@media (max-width: 767px) {
  .nav-overlay { flex-direction: column; }

  .nav-overlay__panels {
    flex: 0 0 50%;
    width: 100%;
  }

  .nav-overlay__panel { flex: 1; }
  .nav-overlay__panel:hover { flex: 1; }

  .nav-overlay__side {
    flex: 0 0 50%;
    width: 100%;
    padding: 28px 28px 24px;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
    overflow-y: auto;
  }

  .nav-overlay__menu ul,
  .nav-overlay__sub ul { margin-bottom: 0; }

  .nav-overlay__contact-wrap { display: none; }
}

/* ============================================================
   CONTACT side link
   ============================================================ */
.side-contact {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(90deg) translateX(50%);
  transform-origin: right center;
  z-index: 800;
}

.side-contact a {
  display: block;
  background: var(--c-accent);
  color: var(--c-white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 10px 20px;
  transition: background 0.3s ease;
}

.side-contact a:hover { background: var(--c-text); }

/* ============================================================
   Hero — full viewport, no scroll
   ============================================================ */
.corp-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* background layers */
.corp-hero__bg,
.corp-hero__bg--gradient {
  position: absolute;
  inset: -10%;          /* 余白でパララックス余地を確保 */
  background-size: cover;
  background-position: center;
  will-change: transform;
  transition: none;
}

.corp-hero__bg--gradient {
  background: linear-gradient(140deg, var(--c-bg-start) 0%, var(--c-bg-end) 100%);
}

.corp-hero__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.corp-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 30, 0.45);
  z-index: 1;
}

/* テキストコンテンツ */
.corp-hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
  width: 100%;
  will-change: transform;
}

.corp-hero__eyebrow {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--c-white);
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s var(--ease) forwards;
}

.corp-hero h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 100;
  line-height: 1.2;
  color: var(--c-white);
  letter-spacing: 0.03em;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s var(--ease) forwards;
}

.corp-hero__sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 44px;
  line-height: 2;
  max-width: 540px;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s var(--ease) forwards;
}

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

/* OPEN MENU button */
.corp-hero__open-menu {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--c-white);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s var(--ease) forwards;
}

.corp-hero__open-menu:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.8);
}

.corp-hero__open-menu-icon {
  font-size: 1.1rem;
  line-height: 1;
}

/* footer bar */
.corp-hero__footer {
  position: absolute;
  bottom: 24px;
  left: 0; right: 0;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}

.corp-hero__tagline {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.1em;
}

.corp-hero__copy {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.06em;
}

/* ============================================================
   Buttons
   ============================================================ */
.corp-button {
  display: inline-block;
  padding: 10px 26px;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}

.corp-button--primary {
  background: var(--c-accent);
  color: var(--c-white);
  border: 1px solid var(--c-accent);
}
.corp-button--primary:hover { background: var(--c-text); border-color: var(--c-text); }

.corp-button--outline {
  background: transparent;
  color: var(--c-white);
  border: 1px solid rgba(255,255,255,0.6);
}
.corp-button--outline:hover { background: var(--c-white); color: var(--c-text); border-color: var(--c-white); }

.corp-button--dark {
  background: var(--c-text);
  color: var(--c-white);
  border: 1px solid var(--c-text);
}
.corp-button--dark:hover { background: var(--c-accent); border-color: var(--c-accent); }

.corp-button--outline-light {
  background: transparent;
  color: var(--c-white);
  border: 1px solid rgba(255,255,255,0.55);
  letter-spacing: 0.1em;
}
.corp-button--outline-light:hover {
  background: var(--c-white);
  color: var(--c-text);
  border-color: var(--c-white);
}

.corp-buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ============================================================
   Layout
   ============================================================ */
.corp-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.corp-container--narrow { max-width: 760px; }

.corp-section { padding: 80px 0; }
.corp-section--bg { background: #f5f8fa; }

.corp-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.corp-section-head__button { flex-shrink: 0; padding-top: 8px; }

.corp-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 10px;
}

.corp-heading {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-text);
  margin-bottom: 18px;
}

.corp-lead {
  font-size: 1rem;
  color: var(--c-muted);
  max-width: 680px;
  margin-bottom: 36px;
  line-height: 1.9;
}

/* ============================================================
   Page hero strip (inner pages) — parallax対応
   ============================================================ */
.corp-page-hero {
  position: relative;
  padding: calc(var(--header-h) + 56px) 0 56px;
  overflow: hidden;
}

.corp-page-hero__bg {
  position: absolute;
  inset: -15%;
  background: linear-gradient(140deg, var(--c-bg-start) 0%, var(--c-bg-end) 100%);
  will-change: transform;
}

.corp-page-hero__content {
  position: relative;
  z-index: 1;
}

.corp-page-hero .corp-eyebrow { color: rgba(255,255,255,0.7); }
.corp-page-hero h1 {
  color: var(--c-white);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 200;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.corp-page-hero .corp-lead { color: rgba(255,255,255,0.82); max-width: none; }

/* ============================================================
   Grid / Cards
   ============================================================ */
.corp-grid { display: grid; gap: 24px; }
.corp-grid--2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.corp-grid--3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.corp-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.corp-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.corp-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--c-text); margin-bottom: 10px; }
.corp-card p  { font-size: 0.9rem; color: var(--c-muted); line-height: 1.8; }

.corp-card__link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.corp-card__link:hover { border-color: var(--c-accent); }

/* ============================================================
   Case card
   ============================================================ */
.corp-case-card { display: block; color: inherit; }

.corp-case-card__thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--c-bg-end);
}

.corp-case-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.corp-case-card:hover .corp-case-card__image { transform: scale(1.04); }

.corp-case-card__placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 100%;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; color: var(--c-muted);
}

.corp-case-card__body { padding: 20px; }

/* ============================================================
   Meta / Tags
   ============================================================ */
.corp-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }

.corp-tag {
  display: inline-block;
  background: #eef2f5;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--c-muted);
  letter-spacing: 0.04em;
}

/* ============================================================
   News list
   ============================================================ */
.corp-news-list { margin-bottom: 28px; }

.corp-news-item {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-border);
}

.corp-news-item:first-child { border-top: 1px solid var(--c-border); }
.corp-news-item__date { flex-shrink: 0; font-size: 0.8rem; color: var(--c-muted); }
.corp-news-item__title { font-size: 0.94rem; color: var(--c-text); transition: color 0.25s ease; }
.corp-news-item__title:hover { color: var(--c-accent); }

/* ============================================================
   Post cards
   ============================================================ */
.corp-post-list { display: flex; flex-direction: column; gap: 28px; }

.corp-post-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.corp-post-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.07); }

.corp-post-card__thumb {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--c-bg-end);
}

.corp-post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.corp-post-card__thumb:hover img { transform: scale(1.04); }

.corp-post-card__placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 100%;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; color: var(--c-muted);
}

.corp-post-card__body { padding: 24px 24px 24px 0; display: flex; flex-direction: column; }

.corp-post-card__meta { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.corp-post-card__meta time { font-size: 0.78rem; color: var(--c-muted); }
.corp-post-card__category { background: #eef2f5; border-radius: 4px; padding: 2px 8px; font-size: 0.7rem; font-weight: 600; color: var(--c-muted); }

.corp-post-card__title { font-size: 1rem; font-weight: 700; color: var(--c-text); margin-bottom: 8px; line-height: 1.5; }
.corp-post-card__title a { transition: color 0.25s ease; }
.corp-post-card__title a:hover { color: var(--c-accent); }

.corp-post-card__excerpt { font-size: 0.88rem; color: var(--c-muted); line-height: 1.7; flex: 1; margin-bottom: 16px; }
.corp-post-card__actions { margin-top: auto; }

/* ============================================================
   Post single
   ============================================================ */
.corp-post-single__meta { display: flex; gap: 12px; align-items: center; margin-bottom: 28px; font-size: 0.85rem; color: var(--c-muted); }
.corp-post-single__thumb { margin-bottom: 32px; border-radius: var(--radius); overflow: hidden; }
.corp-post-single__content { line-height: 1.9; font-size: 1rem; }
.corp-post-single__content h2, .corp-post-single__content h3 { font-weight: 700; color: var(--c-text); margin: 28px 0 12px; }
.corp-post-single__content p { margin-bottom: 16px; }
.corp-post-single__footer { margin-top: 40px; }

/* ============================================================
   Event cards
   ============================================================ */
.corp-event-list { display: flex; flex-direction: column; gap: 2px; }

.corp-event-card {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.3s ease;
}

.corp-event-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }

.corp-event-card__link { position: absolute; inset: 0; z-index: 1; }

.corp-event-card__date {
  background: var(--c-bg-end);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  padding: 16px;
  font-size: 0.85rem; font-weight: 700; color: var(--c-text); text-align: center; gap: 4px;
}

.corp-event-card__body { padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; }
.corp-event-card__type { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; color: var(--c-accent); text-transform: uppercase; }
.corp-event-card__body h3 { font-size: 0.96rem; font-weight: 700; color: var(--c-text); line-height: 1.5; }
.corp-event-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.78rem; color: var(--c-muted); }

.corp-event-card__action { padding: 16px; display: flex; align-items: center; position: relative; z-index: 2; }
.corp-event-card__action a { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; color: var(--c-accent); border-bottom: 1px solid var(--c-accent); white-space: nowrap; transition: color 0.25s ease, border-color 0.25s ease; }
.corp-event-card__action a:hover { color: var(--c-text); border-color: var(--c-text); }

/* ============================================================
   Table
   ============================================================ */
.corp-table { width: 100%; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; }
.corp-table th, .corp-table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--c-border); font-size: 0.94rem; vertical-align: top; }
.corp-table tr:last-child th, .corp-table tr:last-child td { border-bottom: none; }
.corp-table th { background: #f5f8fa; font-weight: 700; color: var(--c-text); white-space: nowrap; width: 180px; }

/* ============================================================
   List / CTA / Privacy / Contact
   ============================================================ */
.corp-list { list-style: disc; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; color: var(--c-muted); }

.corp-cta {
  background: linear-gradient(140deg, var(--c-bg-start), var(--c-bg-end));
  border-radius: var(--radius);
  padding: 60px 52px;
  text-align: center;
}

.corp-cta .corp-eyebrow { color: rgba(255,255,255,0.7); }
.corp-cta h2 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 700; color: var(--c-white); margin-bottom: 14px; line-height: 1.5; }
.corp-cta > p { font-size: 0.94rem; color: rgba(255,255,255,0.8); margin-bottom: 28px; line-height: 1.9; }
.corp-cta .corp-buttons { justify-content: center; }

.corp-privacy-list { display: flex; flex-direction: column; gap: 36px; }
.corp-privacy-item h2 { font-size: 1.05rem; font-weight: 700; color: var(--c-text); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--c-border); }
.corp-privacy-item p { font-size: 0.94rem; color: var(--c-muted); line-height: 1.9; }

/* ============================================================
   Contact page
   ============================================================ */
.corp-form-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: linear-gradient(135deg, #f0f5f8 0%, #e8eef3 100%);
  border-left: 3px solid var(--c-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin-bottom: 48px;
  font-size: 0.88rem;
  color: var(--c-muted);
  line-height: 1.85;
}

.corp-contact-form { margin-top: 0; }

/* --- CF7 wrapper reset --- */
.corp-contact-form .wpcf7 { margin: 0; padding: 0; }
.corp-contact-form .wpcf7-form { display: flex; flex-direction: column; gap: 0; }

/* --- Field groups --- */
.corp-contact-form .wpcf7-form > p,
.corp-contact-form .wpcf7-form > label {
  display: flex;
  flex-direction: column;
  margin: 0 0 28px;
}

/* --- Labels (CF7 wraps label around input) --- */
.corp-contact-form .wpcf7-form label,
.corp-contact-form .wpcf7-form > p > label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--c-text);
  text-transform: uppercase;
}

/* Required badge */
.corp-contact-form .wpcf7-form label .required-badge,
.corp-contact-form abbr[title] {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #e05555;
  text-decoration: none;
}

/* --- Inputs, selects, textareas --- */
.corp-contact-form input[type="text"],
.corp-contact-form input[type="email"],
.corp-contact-form input[type="tel"],
.corp-contact-form input[type="url"],
.corp-contact-form select,
.corp-contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  background: #ffffff;
  border: 1.5px solid var(--c-border);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--c-text);
  line-height: 1.6;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}

.corp-contact-form input[type="text"]:focus,
.corp-contact-form input[type="email"]:focus,
.corp-contact-form input[type="tel"]:focus,
.corp-contact-form input[type="url"]:focus,
.corp-contact-form select:focus,
.corp-contact-form textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(58, 96, 112, 0.12);
  background: #fdfeff;
}

.corp-contact-form input::placeholder,
.corp-contact-form textarea::placeholder {
  color: #aab8c2;
  font-size: 0.9rem;
}

/* --- Select arrow --- */
.corp-contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a6a78' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

/* --- Textarea --- */
.corp-contact-form textarea {
  min-height: 180px;
  resize: vertical;
}

/* --- Checkbox (同意チェック) --- */
.corp-contact-form .wpcf7-acceptance {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 32px;
}

.corp-contact-form .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}

.corp-contact-form .wpcf7-acceptance input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--c-accent);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

.corp-contact-form .wpcf7-acceptance .wpcf7-list-item-label {
  font-size: 0.85rem;
  color: var(--c-muted);
  line-height: 1.7;
}

/* --- Submit button --- */
.corp-contact-form input[type="submit"],
.corp-contact-form .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 52px;
  background: var(--c-accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  width: auto;
  align-self: flex-start;
}

.corp-contact-form input[type="submit"]:hover,
.corp-contact-form .wpcf7-submit:hover {
  background: #2d4e5e;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(58, 96, 112, 0.28);
}

.corp-contact-form input[type="submit"]:active,
.corp-contact-form .wpcf7-submit:active {
  transform: translateY(0);
  box-shadow: none;
}

/* --- Validation --- */
.corp-contact-form .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-size: 0.76rem;
  color: #e05555;
  letter-spacing: 0.02em;
}

.corp-contact-form .wpcf7-not-valid {
  border-color: #e05555 !important;
  box-shadow: 0 0 0 3px rgba(224, 85, 85, 0.1) !important;
}

/* --- Response messages --- */
.corp-contact-form .wpcf7-response-output {
  margin: 24px 0 0 !important;
  padding: 16px 20px !important;
  border-radius: 8px !important;
  font-size: 0.88rem !important;
  border: none !important;
}

.corp-contact-form .wpcf7-mail-sent-ok {
  background: #e8f5ee !important;
  color: #1e7040 !important;
  border-left: 3px solid #2a9d5c !important;
}

.corp-contact-form .wpcf7-mail-sent-ng,
.corp-contact-form .wpcf7-spam-blocked {
  background: #fdf0f0 !important;
  color: #b33 !important;
  border-left: 3px solid #e05555 !important;
}

.corp-contact-form .wpcf7-validation-errors {
  background: #fff8e8 !important;
  color: #7a5c00 !important;
  border-left: 3px solid #e6a817 !important;
}

/* --- Loading spinner overlay --- */
.corp-contact-form .wpcf7-spinner {
  margin-left: 12px;
  vertical-align: middle;
}

/* --- 2-col grid for short fields (name + company) --- */
@media (min-width: 600px) {
  .corp-contact-form .wpcf7-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
  }

  /* full-width rows */
  .corp-contact-form .wpcf7-form > p:has(textarea),
  .corp-contact-form .wpcf7-form > p:has(select),
  .corp-contact-form .wpcf7-form > p:has([type="submit"]),
  .corp-contact-form .wpcf7-form .wpcf7-acceptance,
  .corp-contact-form .wpcf7-form .wpcf7-response-output,
  .corp-contact-form .wpcf7-form > br {
    grid-column: 1 / -1;
  }
}

@media (max-width: 599px) {
  .corp-contact-form input[type="submit"],
  .corp-contact-form .wpcf7-submit {
    width: 100%;
    padding: 16px;
  }
}

/* ============================================================
   Pagination
   ============================================================ */
.corp-pagination { display: flex; justify-content: center; margin-top: 48px; }
.corp-pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.corp-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--c-border); border-radius: 6px; font-size: 0.86rem; color: var(--c-text); transition: background 0.25s ease, color 0.25s ease; }
.corp-pagination .page-numbers.current, .corp-pagination .page-numbers:hover { background: var(--c-accent); color: var(--c-white); border-color: var(--c-accent); }

/* ============================================================
   Empty state
   ============================================================ */
.corp-empty-card { padding: 40px; text-align: center; color: var(--c-muted); background: #f5f8fa; border-radius: var(--radius); border: 1px dashed var(--c-border); }

/* ============================================================
   Site footer — hidden on front page
   ============================================================ */
.site-footer {
  background: var(--c-text);
  color: rgba(255,255,255,0.7);
  padding: 48px 28px 28px;
  text-align: center;
}

.is-front-page ~ * .site-footer,
body.home .site-footer,
body.front-page .site-footer { display: none; }

.site-footer__tagline { font-size: 0.95rem; font-weight: 200; letter-spacing: 0.12em; color: rgba(255,255,255,0.5); margin-bottom: 24px; }
.site-footer__logo { margin: 0 auto 24px; }
.site-footer__logo img { max-height: 32px; margin: 0 auto; filter: brightness(0) invert(1) opacity(0.65); }
.site-footer__logo a { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.08em; color: rgba(255,255,255,0.75); }
.site-footer__copy { font-size: 0.72rem; color: rgba(255,255,255,0.3); letter-spacing: 0.06em; }

/* ============================================================
   Loading indicator (SPA)
   ============================================================ */
.spa-loader {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--c-accent);
  z-index: 9999;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease), opacity 0.3s ease;
  opacity: 0;
}

.spa-loader.is-loading {
  opacity: 1;
  animation: loadProgress 1.2s var(--ease) infinite;
}

@keyframes loadProgress {
  0%   { transform: scaleX(0) translateX(0); }
  50%  { transform: scaleX(0.6) translateX(30%); }
  100% { transform: scaleX(0.1) translateX(110%); }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .corp-hero__inner { padding: 0 28px; }
  .corp-hero__footer { padding: 0 28px; }
}

@media (max-width: 768px) {
  .corp-post-card { grid-template-columns: 1fr; }
  .corp-post-card__thumb { aspect-ratio: 16/7; }
  .corp-post-card__body { padding: 16px; }

  .corp-event-card { grid-template-columns: 80px 1fr; }
  .corp-event-card__action { grid-column: 1 / -1; padding: 0 16px 16px; }

  .corp-cta { padding: 36px 24px; }
  .corp-section { padding: 56px 0; }
  .corp-table th { width: 90px; }
}

@media (max-width: 480px) {
  .corp-grid--2, .corp-grid--3 { grid-template-columns: 1fr; }
  .side-contact { display: none; }
  .corp-hero h1 { font-size: 2.2rem; }
}

/* ============================================================
   NobleOne page
   ============================================================ */

/* --- shared --- */
.noble-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 10px;
}
.noble-label--light { color: rgba(255,255,255,0.55); }

.noble-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--c-text);
  margin-bottom: 24px;
  line-height: 1.35;
}
.noble-title--light { color: var(--c-white); }

/* --- section alternates --- */
.corp-section--alt  { background: #0f1920; }
.corp-section--dark { background: var(--c-text); }

/* ---- OUR STORY ---- */
.noble-story__head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.noble-story__lead {
  font-size: 0.95rem;
  color: var(--c-muted);
  line-height: 1.9;
}

.noble-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.noble-feature {
  text-align: center;
  padding: 32px 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: #fff;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.noble-feature:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.noble-feature__icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
  line-height: 1;
}
.noble-feature__title {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-text);
  margin-bottom: 10px;
}
.noble-feature__text {
  font-size: 0.82rem;
  color: var(--c-muted);
  line-height: 1.8;
}

/* ---- OUR SPACE ---- */
.noble-space__head {
  text-align: center;
  margin-bottom: 48px;
}

.noble-spaces {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.noble-space-card {
  position: relative;
  overflow: hidden;
  background: #1a2530;
}

.noble-space-card__img {
  height: 300px;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s var(--ease);
  background-color: #1f2e3a;
}
.noble-space-card:hover .noble-space-card__img { transform: scale(1.04); }

.noble-space-card__body {
  padding: 24px 28px 28px;
  background: #0f1920;
}

.noble-space-card__cap {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 3px 10px;
  margin-bottom: 10px;
}

.noble-space-card__name {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--c-white);
  margin-bottom: 10px;
}

.noble-space-card__text {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
}

.noble-space__cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* ---- ACCESS ---- */
.noble-access__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.noble-access__dl {
  display: grid;
  grid-template-columns: 5em 1fr;
  gap: 4px 16px;
  margin-bottom: 24px;
  font-size: 0.88rem;
}
.noble-access__dl dt {
  font-weight: 700;
  color: var(--c-text);
  padding-top: 2px;
}
.noble-access__dl dd {
  color: var(--c-muted);
  line-height: 1.85;
}

.noble-access__map {
  height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-border);
}
.noble-access__map iframe { width: 100%; height: 100%; display: block; }

.noble-access__map-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--c-muted);
}

/* ---- CTA ---- */
.noble-cta__inner {
  text-align: center;
  padding: 24px 0;
}
.noble-cta__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 300;
  color: var(--c-white);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.noble-cta__sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 36px;
  line-height: 1.8;
}
.noble-cta__btn { font-size: 0.82rem; gap: 10px; }
.noble-cta__arrow { font-size: 1rem; }

/* ---- Responsive ---- */
@media (max-width: 959px) {
  .noble-features { grid-template-columns: repeat(2, 1fr); }
  .noble-spaces   { grid-template-columns: 1fr; gap: 2px; }
  .noble-access__grid { grid-template-columns: 1fr; gap: 36px; }
  .noble-access__map { height: 280px; }
}

@media (max-width: 599px) {
  .noble-features { grid-template-columns: 1fr 1fr; gap: 16px; }
  .noble-feature  { padding: 22px 14px; }
  .noble-space-card__img { height: 220px; }
}
