/*
Theme Name: S&Y Theme
Theme URI: https://sy-co.jp
Author: S&Y Co.,Ltd.
Author URI: https://sy-co.jp
Description: S&Y（エスアンドワイ）コーポレートサイト用オリジナルWordPressテーマ
Version: 1.0.1
License: GNU General Public License v2 or later
Text Domain: sy-theme
*/

/* =============================================================
   CSS Custom Properties
============================================================= */
:root {
  --navy:       #204483;
  --navy-dark:  #163366;
  --navy-mid:   #2a5599;
  --blue-mid:   #2d5292;
  --white:      #ffffff;
  --off-white:  #f5f5f5;
  --light-grey: #e0e0e0;
  --mid-grey:   #999999;
  --text:       #37373c;
  --text-sub:   #666666;

  --font-jp: 'Noto Sans JP', sans-serif;
  --font-en: 'Roboto', sans-serif;

  --max-w:      1200px;
  --max-w-wide: 1440px;
  --gutter:     40px;
  --header-h:   176px;

  --ease: 0.3s ease;
  --shadow: 0 4px 24px rgba(32,68,131,0.12);
}

/* =============================================================
   Reset
============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-jp);
  color: var(--text);
  line-height: 1.8;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* =============================================================
   Layout
============================================================= */
.inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.inner--wide { max-width: var(--max-w-wide); }
.inner--narrow { max-width: 760px; }

/* =============================================================
   Header
============================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--header-h);
  background: var(--white);
  z-index: 900;
  border-bottom: 1px solid var(--light-grey);
  transition: box-shadow var(--ease);
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(32,68,131,0.12); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 56px;
}

/* Logo */
.site-logo a {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-mark {
  width: 80px;
  height: 62px;
  flex-shrink: 0;
}
.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-name {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
}
.logo-tagline {
  font-family: var(--font-en);
  font-size: 10px;
  color: var(--mid-grey);
  letter-spacing: 0.14em;
  white-space: nowrap;
}

/* Global Nav */
.gnav-list {
  display: flex;
  align-items: center;
  gap: 40px;
}
.gnav-list a {
  display: block;
  font-family: var(--font-jp);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  transition: color var(--ease);
  white-space: nowrap;
  position: relative;
  padding-bottom: 4px;
}
.gnav-list a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 2px;
  background: var(--navy);
  transition: width var(--ease);
}
.gnav-list a:hover { color: var(--navy); }
.gnav-list a:hover::after,
.gnav-list .current-menu-item > a::after { width: 100%; }
.gnav-list .current-menu-item > a { color: var(--navy); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  transition: transform var(--ease), opacity var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.sp-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  right: 0;
  width: 280px;
  height: calc(100vh - var(--header-h));
  background: var(--navy);
  z-index: 800;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--ease);
}
.sp-menu.open { transform: translateX(0); }
.sp-menu-inner { padding: 24px; }
.sp-menu-list a {
  display: block;
  padding: 16px 0;
  font-size: 14px;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.sp-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 799;
}
.sp-overlay.open { display: block; }

/* =============================================================
   Main offset
============================================================= */
/* front-page hero handles its own margin-top, inner pages use page-hero padding */
.site-main { padding-top: var(--header-h); }
.home .site-main { padding-top: 0; }

/* =============================================================
   Buttons
============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 40px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: 2px;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border: 1px solid var(--navy);
}
.btn-navy:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-white {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--white);
}
.btn-white:hover { background: transparent; color: var(--white); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); }

/* Section Center BTN */
.sec-btn { text-align: center; margin-top: 48px; }

/* =============================================================
   Section Common — Figma "h1 component" pattern:
   horizontal line (146px) + small JP label (14px/fw600) + big EN (80px/fw600/Roboto)
============================================================= */
.sec-head {
  margin-bottom: 64px;
}
.sec-head-inner {
  display: flex;
  align-items: flex-end;
  gap: 24px;
}
/* left accent line */
.sec-head-inner::before {
  content: '';
  display: block;
  width: 146px;
  height: 3px;
  background: var(--navy);
  flex-shrink: 0;
  margin-bottom: 20px;
}
.sec-head-inner--white::before { background: var(--white); }
.sec-head-texts { display: flex; flex-direction: column; }
.sec-en {
  font-family: var(--font-jp);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 2px;
}
.sec-en--white { color: var(--white); }
.sec-title {
  font-family: var(--font-en);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
  line-height: 1;
}
.sec-title--white { color: var(--white); }
/* fallback for pages without sec-head-inner wrapper */
.sec-bar { display: none; }
.sec-bar--white { display: none; }

/* =============================================================
   Hero (TOP) — Figma: MV 1440x1080, full viewport
============================================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
}
.hero-swiper { width: 100%; height: 100%; }
.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--navy);
  background-size: cover;
  background-position: center;
}
/* 画像なし時のグラデ */
.hero-slide:nth-child(1) {
  background: linear-gradient(135deg, #e5eef9 0%, #eaf3fb 50%, #eceff9 100%);
}
.hero-slide:nth-child(2) {
  background: linear-gradient(135deg, #e8f0fa 0%, #edf4fc 100%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(32,68,131,0.25);
}
/* 右側ビジネスイメージ枠（Figma再現） */
.hero-img-panel {
  position: absolute;
  right: 0; top: 0;
  width: 45%;
  height: 100%;
  overflow: hidden;
}
.hero-img-panel img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-img-panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(27,45,91,0.9) 0%, rgba(27,45,91,0) 60%);
}

.hero-body {
  position: absolute;
  left: 0; top: 0;
  width: 55%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 0 0 80px;
  padding-top: var(--header-h);
  color: var(--text);
  z-index: 2;
}
.hero-en {
  font-family: var(--font-jp);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin-bottom: 20px;
}
.hero-catch {
  font-family: var(--font-jp);
  font-size: clamp(24px, 2.5vw, 28px);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 32px;
}
.hero-sub {
  font-size: 13px;
  opacity: 0.75;
  line-height: 1.9;
  margin-bottom: 36px;
  max-width: 360px;
}
.hero-sub {
  font-family: var(--font-jp);
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.9;
  margin-bottom: 40px;
  max-width: 360px;
}
.hero-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  transition: opacity var(--ease);
}
.hero-more:hover { opacity: 0.7; }
.hero-more-arrow {
  width: 40px;
  height: 40px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-more-arrow::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--white);
  border-right: 2px solid var(--white);
  transform: rotate(45deg) translate(-1px, 1px);
}

/* Swiper pagination */
.swiper-pagination-bullet {
  background: rgba(255,255,255,0.45) !important;
  opacity: 1 !important;
  width: 8px !important;
  height: 8px !important;
  transition: background var(--ease), transform var(--ease) !important;
}
.swiper-pagination-bullet-active {
  background: var(--white) !important;
  transform: scale(1.3) !important;
}

/* =============================================================
   ABOUT (TOP)
============================================================= */
.about-sec {
  padding: 100px 0;
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
}
.about-label {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--mid-grey);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.about-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
  line-height: 1.4;
}
.about-text {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 2;
  margin-bottom: 14px;
}
.about-text + .about-text { margin-top: -6px; }
.about-btn-wrap { margin-top: 32px; }
.about-photo {
  position: relative;
}
.about-photo img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.about-photo-frame {
  position: absolute;
  bottom: -16px;
  left: -16px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--navy);
  z-index: -1;
}

/* =============================================================
   BUSINESS (TOP) – navy background
============================================================= */
.home-biz-sec {
  background: var(--navy);
  padding: 100px 0;
}
.home-biz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.home-biz-label {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.home-biz-title {
  font-family: var(--font-en);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin-bottom: 20px;
}
.home-biz-text {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 2;
  margin-bottom: 32px;
}
.home-biz-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 6px;
}
.home-biz-photo {
  overflow: hidden;
  background: rgba(255,255,255,0.05);
}
.home-biz-photo:first-child {
  grid-row: 1 / 3;
}
.home-biz-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.home-biz-photo:hover img { transform: scale(1.05); }
/* No image fallback */
.home-biz-photo--placeholder {
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.15);
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.1em;
}

/* =============================================================
   NEWS (TOP)
============================================================= */
.home-news-sec {
  padding: 100px 0;
  background: var(--off-white);
}
.news-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(27,45,91,0.07);
  transition: box-shadow var(--ease), transform var(--ease);
}
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.news-card a { display: block; }
.news-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--light-grey);
}
.news-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.news-card:hover .news-card-thumb img { transform: scale(1.05); }
.news-card-thumb-empty {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-mid) 100%);
  color: rgba(255,255,255,0.2);
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.news-card-cat {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--navy);
  color: var(--white);
  font-size: 10px;
  padding: 3px 10px;
  letter-spacing: 0.05em;
}
.news-card-body { padding: 18px 20px 22px; }
.news-card-date {
  font-family: var(--font-en);
  font-size: 11px;
  color: var(--mid-grey);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 8px;
}
.news-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =============================================================
   CTA (COMPANY / CONTACT) — footer pre-section
============================================================= */
.cta-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.cta-panel {
  position: relative;
  height: 380px;
  overflow: hidden;
  background: var(--navy);
}
.cta-panel-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}
.cta-panel:hover .cta-panel-bg { transform: scale(1.05); }
.cta-panel-overlay {
  position: absolute;
  inset: 0;
  background: rgba(32,68,131,0.55);
}
.cta-panel-body {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 80px;
  color: var(--white);
}
.cta-panel-en {
  font-family: var(--font-en);
  font-size: 52px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 14px;
}
.cta-panel-jp {
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 28px;
}
.cta-panel-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-jp);
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  transition: opacity var(--ease);
}
.cta-panel-link:hover { opacity: 0.75; }
.cta-panel-arrow {
  width: 40px;
  height: 40px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cta-panel-arrow svg { display: block; }

/* =============================================================
   Footer
============================================================= */
.site-footer {
  background: var(--text);
  padding: 0;
}
.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 56px;
  gap: 32px;
}
.footer-logo a {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-logo-name {
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
}
.footer-logo-tagline {
  font-family: var(--font-en);
  font-size: 9px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.14em;
  display: block;
  margin-top: 3px;
}
.footer-nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}
.footer-nav-list li + li { border-left: 1px solid rgba(255,255,255,0.2); }
.footer-nav-list a {
  display: block;
  padding: 4px 20px;
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  transition: color var(--ease);
}
.footer-nav-list a:hover { color: var(--white); }
.footer-copy {
  background: rgba(0,0,0,0.3);
  text-align: center;
  padding: 14px;
  font-family: var(--font-jp);
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
}

/* =============================================================
   Page Hero (inner pages)
============================================================= */
.page-hero {
  position: relative;
  height: 320px;
  background: var(--navy);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding-bottom: 48px;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20,35,75,0.65);
}
.page-hero-body {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 56px;
}
.page-hero-en {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.page-hero-title {
  font-family: var(--font-en);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}
.breadcrumb a { color: rgba(255,255,255,0.5); transition: color var(--ease); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { opacity: 0.4; }
.breadcrumb-current { color: rgba(255,255,255,0.8); }

/* =============================================================
   Business Page
============================================================= */
/* Why Choose Us */
.why-sec {
  padding: 100px 0;
  background: var(--white);
}
.why-list { display: flex; flex-direction: column; gap: 72px; }
.why-item {
  display: grid;
  grid-template-columns: 88px 1fr 400px;
  gap: 40px;
  align-items: center;
}
.why-item--rev {
  grid-template-columns: 400px 1fr 88px;
}
.why-item--rev .why-num { order: 3; }
.why-item--rev .why-body { order: 2; }
.why-item--rev .why-photo { order: 1; }
.why-num {
  font-family: var(--font-en);
  font-size: 64px;
  font-weight: 700;
  color: var(--light-grey);
  line-height: 1;
  letter-spacing: -0.02em;
}
.why-body-label {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--mid-grey);
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.why-body-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--light-grey);
  line-height: 1.5;
}
.why-body-text {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 2;
}
.why-photo {
  aspect-ratio: 4/3;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.why-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Service – navy */
.service-sec-navy {
  background: var(--navy);
  padding: 100px 0;
}
.service-sec-white {
  background: var(--white);
  padding: 100px 0;
}
.service-lead {
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 2;
  max-width: 640px;
  margin: -32px auto 56px;
}
.service-lead--dark { color: var(--text-sub); }

/* Icon grid */
.service-icon-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  margin-bottom: 48px;
}
.service-icon-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  text-align: center;
  transition: background var(--ease);
}
.service-icon-cell:hover { background: rgba(255,255,255,0.1); }
.service-icon-svg { color: rgba(255,255,255,0.55); }
.service-icon-label {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
}

/* Flow steps */
.service-flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 48px;
}
.service-flow-step {
  flex: 1;
  padding: 24px 16px;
  background: var(--off-white);
  text-align: center;
  position: relative;
}
.service-flow-step + .service-flow-step::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 14px solid var(--white);
}
.service-flow-num {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--blue-mid);
  display: block;
  margin-bottom: 8px;
}
.service-flow-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.service-flow-text { font-size: 12px; color: var(--text-sub); line-height: 1.7; }

/* Table – navy */
.service-table {
  width: 100%;
  border-collapse: collapse;
}
.service-table th,
.service-table td {
  padding: 16px 24px;
  font-size: 13px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.service-table th {
  width: 180px;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
  background: rgba(255,255,255,0.04);
  white-space: nowrap;
}
.service-table td { color: rgba(255,255,255,0.8); }
.service-table--light th {
  background: var(--off-white);
  color: var(--navy);
  border-bottom: 1px solid var(--light-grey);
}
.service-table--light td {
  color: var(--text);
  border-bottom: 1px solid var(--light-grey);
}

/* =============================================================
   Company Page
============================================================= */
.company-message-sec {
  padding: 100px 0;
  background: var(--white);
}
.company-message-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}
/* Infinity / logo mark area */
.company-logo-mark-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.company-logo-mark-svg {
  width: 160px;
  height: 160px;
}
.company-message-name-title { font-size: 12px; color: var(--mid-grey); }
.company-message-name { font-size: 16px; font-weight: 700; color: var(--navy); }
.company-message-body p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 2.1;
  margin-bottom: 18px;
}
.company-message-sig {
  font-size: 13px;
  color: var(--navy);
  font-weight: 500;
  margin-top: 32px !important;
}

/* Career / History */
.career-sec {
  padding: 80px 0;
  background: var(--off-white);
}
.career-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 800px;
  margin: 0 auto;
}
.career-table tr {
  border-bottom: 1px solid var(--light-grey);
}
.career-table tr:first-child { border-top: 2px solid var(--navy); }
.career-table th {
  padding: 18px 24px;
  width: 120px;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
  white-space: nowrap;
  vertical-align: top;
}
.career-table td {
  padding: 18px 24px;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.9;
}

/* Company Profile */
.profile-sec {
  padding: 80px 0;
  background: var(--white);
}
.profile-table {
  width: 100%;
  border-collapse: collapse;
}
.profile-table tr { border-bottom: 1px solid var(--light-grey); }
.profile-table tr:first-child { border-top: 2px solid var(--navy); }
.profile-table th {
  padding: 20px 28px;
  width: 200px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: var(--off-white);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}
.profile-table td {
  padding: 20px 28px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.9;
}

/* =============================================================
   News Archive
============================================================= */
.news-arc-sec {
  padding: 80px 0 100px;
  background: var(--white);
}
.news-arc-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  align-items: start;
}
.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.cat-tab {
  padding: 5px 18px;
  font-size: 12px;
  border: 1px solid var(--light-grey);
  color: var(--text-sub);
  border-radius: 2px;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.cat-tab:hover,
.cat-tab.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.news-arc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
/* Sidebar */
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); }
.sidebar-widget { margin-bottom: 28px; }
.sidebar-title {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--navy);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--navy);
  margin-bottom: 18px;
}
.sidebar-posts { display: flex; flex-direction: column; gap: 14px; }
.sidebar-post-item a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.sidebar-post-thumb {
  width: 64px;
  height: 48px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--light-grey);
}
.sidebar-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-post-date {
  font-size: 10px;
  color: var(--mid-grey);
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-en);
}
.sidebar-post-title {
  font-size: 12px;
  color: var(--text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-cats { display: flex; flex-direction: column; }
.sidebar-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid var(--light-grey);
  transition: color var(--ease);
}
.sidebar-cat-link:hover { color: var(--navy); }
.sidebar-cat-count { font-size: 11px; color: var(--mid-grey); }

/* Pagination */
.pagination {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  font-size: 13px;
  border: 1px solid var(--light-grey);
  color: var(--text);
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* =============================================================
   Single News
============================================================= */
.single-sec {
  padding: 80px 0 100px;
  background: var(--white);
}
.single-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  align-items: start;
}
.single-header { margin-bottom: 28px; }
.single-cat-badge {
  display: inline-block;
  padding: 3px 12px;
  background: var(--navy);
  color: var(--white);
  font-size: 11px;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.single-title {
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 10px;
}
.single-date {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--mid-grey);
}
.single-thumb { margin-bottom: 36px; overflow: hidden; }
.single-thumb img { width: 100%; }
.entry-content {
  font-size: 15px;
  line-height: 2;
  color: var(--text);
}
.entry-content h2 {
  font-size: 20px;
  color: var(--navy);
  margin: 36px 0 14px;
  padding-left: 14px;
  border-left: 3px solid var(--navy);
}
.entry-content h3 { font-size: 17px; color: var(--navy); margin: 28px 0 12px; }
.entry-content p { margin-bottom: 18px; }
.entry-content a { color: var(--blue-mid); text-decoration: underline; }
.single-share-row {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--light-grey);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.single-share-label { font-size: 12px; color: var(--mid-grey); }
.share-links { display: flex; gap: 8px; }
.share-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 500;
  color: var(--white);
  border-radius: 2px;
  transition: opacity var(--ease);
}
.share-link:hover { opacity: 0.85; }
.share-link--x   { background: #000; }
.share-link--fb  { background: #1877F2; }
.share-link--line { background: #06C755; }
.post-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--light-grey);
  align-items: center;
}
.post-nav-prev a, .post-nav-next a {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.post-nav-dir {
  font-size: 10px;
  color: var(--mid-grey);
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 4px;
}
.post-nav-title {
  font-size: 13px;
  color: var(--navy);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-nav-next a { align-items: flex-end; text-align: right; }
.post-nav-center { text-align: center; }

/* =============================================================
   Contact
============================================================= */
.contact-sec {
  padding: 80px 0 100px;
  background: var(--white);
}
.contact-intro {
  text-align: center;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 2;
  margin-bottom: 48px;
}
.contact-form { display: flex; flex-direction: column; gap: 22px; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-req {
  padding: 2px 7px;
  background: var(--navy);
  color: var(--white);
  font-size: 10px;
  letter-spacing: 0.04em;
}
.form-opt {
  padding: 2px 7px;
  background: var(--light-grey);
  color: var(--mid-grey);
  font-size: 10px;
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--font-jp);
  border: 1px solid var(--light-grey);
  background: var(--off-white);
  color: var(--text);
  border-radius: 2px;
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,45,91,0.09);
  background: var(--white);
}
.form-input.err, .form-textarea.err { border-color: #c0392b; }
.form-textarea { resize: vertical; min-height: 140px; line-height: 1.8; }
.form-err { font-size: 11px; color: #c0392b; min-height: 1em; }
.form-privacy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-sub);
}
.checkbox-label input { display: none; }
.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 2px solid var(--light-grey);
  border-radius: 2px;
  flex-shrink: 0;
  position: relative;
  transition: border-color var(--ease), background var(--ease);
}
.checkbox-label input:checked + .checkbox-custom {
  background: var(--navy);
  border-color: var(--navy);
}
.checkbox-label input:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  left: 3px; top: 0;
  width: 6px; height: 10px;
  border: 2px solid var(--white);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.checkbox-label a { color: var(--blue-mid); text-decoration: underline; }
.form-submit { text-align: center; margin-top: 8px; }
/* Loading state */
.btn-spinner { display: none; }
.btn.loading .btn-text { display: none; }
.btn.loading .btn-spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-result {
  display: none;
  padding: 14px 18px;
  border-radius: 2px;
  font-size: 13px;
  margin-bottom: 20px;
}
.form-result.ok  { display: block; background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.form-result.err { display: block; background: #fce4ec; color: #c62828; border: 1px solid #ef9a9a; }
.thanks-block {
  display: none;
  text-align: center;
  padding: 60px 24px;
}
.thanks-block h3 { font-size: 22px; color: var(--navy); margin-bottom: 14px; }
.thanks-block p { font-size: 14px; color: var(--text-sub); margin-bottom: 32px; line-height: 2; }

/* =============================================================
   Generic / 404
============================================================= */
.page-content { padding: 80px 0 100px; }
.error-wrap { text-align: center; padding: 120px 0; }
.error-num {
  font-family: var(--font-en);
  font-size: clamp(80px, 15vw, 140px);
  font-weight: 700;
  color: var(--light-grey);
  line-height: 1;
}
.error-title { font-size: 22px; color: var(--navy); margin: 10px 0 16px; }
.error-text { font-size: 14px; color: var(--text-sub); margin-bottom: 36px; }

/* =============================================================
   Scroll Animate
============================================================= */
.js-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js-fade.in {
  opacity: 1;
  transform: translateY(0);
}
.js-fade-d1 { transition-delay: 0.1s; }
.js-fade-d2 { transition-delay: 0.2s; }
.js-fade-d3 { transition-delay: 0.3s; }
.js-fade-d4 { transition-delay: 0.4s; }
.js-fade-d5 { transition-delay: 0.5s; }

/* =============================================================
   Responsive
============================================================= */
@media (max-width: 1200px) {
  .gnav-list { gap: 24px; }
  .gnav-list a { font-size: 16px; }
  .header-inner { padding: 0 40px; }
}

@media (max-width: 1024px) {
  :root { --gutter: 24px; --header-h: 100px; }
  .logo-mark { width: 60px; height: 46px; }
  .logo-name { font-size: 22px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { max-width: 480px; }
  .home-biz-grid { grid-template-columns: 1fr; gap: 40px; }
  .home-biz-photos { grid-template-rows: 160px 160px; }
  .why-item, .why-item--rev { grid-template-columns: 64px 1fr; grid-template-rows: auto auto; }
  .why-photo { grid-column: 1 / -1; }
  .why-item--rev .why-num { order: 0; }
  .why-item--rev .why-body { order: 1; }
  .why-item--rev .why-photo { order: 2; }
  .service-icon-grid { grid-template-columns: repeat(3, 1fr); }
  .company-message-grid { grid-template-columns: 1fr; }
  .news-arc-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .single-layout { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-panel { height: 280px; }
  .cta-panel-en { font-size: 36px; }
  .footer-main { flex-direction: column; align-items: center; text-align: center; padding: 32px 24px; }
  .footer-nav-list { justify-content: center; }
  .sec-title { font-size: clamp(40px, 5vw, 64px); }
}

@media (max-width: 768px) {
  :root { --header-h: 72px; --gutter: 20px; }
  .gnav-list { display: none; }
  .hamburger { display: flex; }
  .sp-menu { display: block; }
  .header-inner { padding: 0 20px; }
  .logo-mark { width: 48px; height: 37px; }
  .logo-name { font-size: 18px; }
  .page-hero { height: 240px; padding-bottom: 32px; }
  .page-hero-body { padding: 0 24px; }
  .hero-body { padding: 0 24px 0; width: 100%; padding-top: var(--header-h); }
  .hero-img-panel { display: none; }
  .hero-catch { font-size: 22px; }
  .news-cards { grid-template-columns: 1fr; }
  .news-arc-grid { grid-template-columns: 1fr; }
  .service-icon-grid { grid-template-columns: repeat(2, 1fr); }
  .service-flow { flex-direction: column; }
  .service-flow-step::before { display: none; }
  .about-sec, .home-biz-sec, .home-news-sec,
  .why-sec, .service-sec-navy, .service-sec-white,
  .company-message-sec, .career-sec, .profile-sec,
  .news-arc-sec, .single-sec, .contact-sec { padding: 60px 0; }
  .footer-main { padding: 28px 16px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-center { order: -1; }
  .profile-table th { width: 110px; padding: 14px 16px; }
  .sec-head-inner::before { width: 80px; }
  .sec-title { font-size: clamp(36px, 8vw, 56px); }
  .profile-table td { padding: 14px 16px; }
}

@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .hero-catch { font-size: 24px; }
  .home-biz-title { font-size: 28px; }
  .news-cards { gap: 16px; }
}
