/* ============================================
   株式会社GoEnインフィニティ 共通スタイル
   assets/css/common.css
============================================ */

/* Google Fonts loaded via wp_enqueue_style in functions.php */

/* ---------- CSS変数 ---------- */
:root {
  --navy:      #0d1f3c;
  --navy-mid:  #1a3460;
  --navy-light:#2a4a80;
  --silver:    #8fa3be;
  --silver-lt: #c8d6e8;
  --accent:    #e8f0fb;
  --gold:      #c9a84c;
  --white:     #ffffff;
  --off-white: #f4f7fb;
  --text-dark: #0d1f3c;
  --text-mid:  #4a6080;
  --text-light:#8fa3be;
  --border:    #dde6f0;
  --shadow:    rgba(13,31,60,0.12);
  /* base-theme compatibility */
  --primary: #0d1f3c;
  --primary-light: rgba(201,168,76,0.15);
  --primary-dark: #0d1f3c;
  --dark: #0d1f3c;
  --bg: #f4f7fb;
}

/* ---------- Base Resets ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px !important;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Noto Serif JP', serif;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.02em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
a:hover { opacity: 0.8; }
/* リンク先未設定のアイテムはhoverアクション無効 */
a[href="#"],
a[href=""],
a:not([href]) {
  cursor: default;
}
a[href="#"]:hover,
a[href=""]:hover,
a:not([href]):hover {
  opacity: 1;
  color: inherit !important;
  cursor: default;
}
ul, ol { list-style: none; }
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- Header ---------- */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
#site-header.scrolled {
  background: rgba(13,31,60,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.logo-mark {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--gold) 0%, #d4b65e 100%);
  color: var(--navy);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  letter-spacing: 0.02em;
}
.logo-text {
  line-height: 1.2;
}
.logo-text strong {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
}
.logo-text span {
  display: block;
  font-size: 0.6rem;
  color: var(--silver);
  letter-spacing: 0.1em;
  margin-top: 2px;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  padding: 8px 13px;
  letter-spacing: 0.04em;
  transition: color 0.25s;
  white-space: nowrap;
}
.header-nav a:hover,
.header-nav a.active {
  color: var(--gold);
  opacity: 1;
}
.header-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 9px 22px !important;
  border-radius: 4px;
  font-weight: 600 !important;
  margin-left: 8px;
}
.header-cta:hover {
  background: #d4b65e !important;
  opacity: 1 !important;
}

/* hamburger */
#hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
  z-index: 1100;
}
#hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
}

/* mobile menu */
#mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background: var(--navy);
  z-index: 1050;
  padding: 5rem 2rem 2rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
#mobile-menu.open {
  display: block;
  transform: translateX(0);
}
#mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
#mobile-menu a:hover { color: var(--gold); }
#mobile-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.5rem;
  color: rgba(255,255,255,0.6);
  background: none;
  border: none;
  cursor: pointer;
}

/* ---------- Page Hero ---------- */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 8rem 0 3.5rem;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://cdn.goen-infinity.fun/wp-content/uploads/2026/04/stock-540642826.webp') center/cover no-repeat;
  opacity: 0.12;
}
.page-hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: left;
}
.en-label {
  font-family: 'Barlow Condensed', sans-serif;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}
.page-hero h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  line-height: 1;
}
.breadcrumb a {
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: var(--gold);
  opacity: 1;
}
.breadcrumb span {
  color: rgba(255,255,255,0.45);
  line-height: 1;
}

/* ---------- Section Styles ---------- */
.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.3;
}
.section-title span { color: var(--gold); }
.section-title.white { color: var(--white); }
.section-subtitle {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 600px;
}
.section-subtitle.white { color: rgba(255,255,255,0.85); }
.section-divider {
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 1.5rem;
}
.section-divider.center { margin: 0 auto 1.5rem; }

/* ---------- Scroll Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible,
.visible .fade-up {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }
.delay-4 { transition-delay: 0.48s; }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-primary:hover {
  background: #d4b65e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.35);
  opacity: 1;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--off-white);
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-secondary:hover {
  background: #e8eef5;
  transform: translateY(-2px);
  opacity: 1;
}

/* ヒーローボタン: 縦並び時に幅を揃える */
@media (max-width: 639px) {
  .hero-btns {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-btns .btn-primary,
  .hero-btns .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ヒーローセクション内の電話ボタン: ホワイトアウトライン */
.hero-btns .btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.7);
}
.hero-btns .btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
}
.btn-outline-navy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  border: 2px solid var(--navy);
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
  opacity: 1;
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
  transition: all 0.35s ease;
}
a.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(13,31,60,0.18);
}

/* ---------- Text Clamp ---------- */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Footer ---------- */
#site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  font-size: 0.9375rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
}
.footer-logo-mark {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gold) 0%, #d4b65e 100%);
  color: var(--navy);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.footer-company-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
}
.footer-company-jp {
  font-size: 0.72rem;
  color: var(--silver);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.footer-info {
  font-size: 0.875rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.6);
}
.footer-info a {
  color: rgba(255,255,255,0.7);
}
.footer-info a:hover {
  color: var(--gold);
  opacity: 1;
}
.footer-nav-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}
.footer-nav-list {
  list-style: none;
}
.footer-nav-list li {
  margin-bottom: 1rem;
}
.footer-nav-list a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-nav-list a:hover {
  color: var(--gold);
  opacity: 1;
}
.footer-bottom {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: 1.5rem;
}
.form-label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.required {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--white);
  background: #e53e3e;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(42,74,128,0.1);
}
.form-textarea {
  resize: vertical;
  min-height: 140px;
}
.form-select {
  appearance: none;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path d="M1 1l5 5 5-5" stroke="%234a6080" stroke-width="2" fill="none"/></svg>');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 3rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.form-submit:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
}
.thanks-message {
  text-align: center;
  padding: 3rem 1.5rem;
}
.thanks-message h2 {
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 1rem;
}
.thanks-message p {
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.9;
}

/* ---------- Table ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
}
.info-table th,
.info-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  text-align: left;
  vertical-align: top;
}
.info-table th {
  width: 180px;
  color: var(--navy);
  font-weight: 700;
  background: var(--off-white);
  white-space: nowrap;
}
.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}
.badge-navy {
  background: var(--navy);
  color: var(--white);
}
.badge-gold {
  background: var(--gold);
  color: var(--navy);
}
.badge-silver {
  background: var(--silver-lt);
  color: var(--navy);
}

/* ---------- FAQ Accordion ---------- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.faq-item:hover {
  box-shadow: 0 4px 16px var(--shadow);
}
.faq-question {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
  transition: background 0.2s;
}
.faq-question:hover {
  background: var(--off-white);
}
.faq-q-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--navy);
  color: var(--gold);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.faq-icon {
  margin-left: auto;
  font-size: 1.2rem;
  color: var(--silver);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-icon {
  transform: rotate(180deg);
}
.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem 4.5rem;
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.9;
}
.faq-item.open .faq-answer {
  display: block;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .header-nav { display: none; }
  #hamburger { display: flex; }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .page-hero { padding: 6.5rem 0 2.5rem; }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .info-table th,
  .info-table td {
    padding: 0.75rem 0.75rem;
    font-size: 0.9rem;
  }
  .info-table th {
    width: 6.5rem;
    min-width: 6.5rem;
    white-space: normal;
    word-break: keep-all;
    line-height: 1.5;
  }
}


/* ============================================
   PART 2: Tailwind Replacement Utilities
============================================ */

/* ---------- Layout ---------- */
.max-w-6xl { max-width: 72rem; margin-left: auto; margin-right: auto; }
.max-w-5xl { max-width: 64rem; margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 56rem; margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; margin-left: auto; margin-right: auto; }
.max-w-xl  { max-width: 36rem; margin-left: auto; margin-right: auto; }
.max-w-lg  { max-width: 32rem; margin-left: auto; margin-right: auto; }

/* ---------- Grid ---------- */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.gap-1  { gap: 0.25rem; }
.gap-2  { gap: 0.5rem; }
.gap-3  { gap: 0.75rem; }
.gap-4  { gap: 1rem; }
.gap-5  { gap: 1.25rem; }
.gap-6  { gap: 1.5rem; }
.gap-7  { gap: 1.75rem; }
.gap-8  { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-14 { gap: 3.5rem; }

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .md\:grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
  .md\:col-span-2 { grid-column: span 2; }
  .md\:col-span-3 { grid-column: span 3; }
  .md\:order-1 { order: 1; }
  .md\:order-2 { order: 2; }
}

/* ---------- Flex ---------- */
.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.flex-1       { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.items-end    { align-items: flex-end; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.inline-flex  { display: inline-flex; }

@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
}
@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
  .md\:items-center { align-items: center; }
  .md\:flex { display: flex; }
}

/* ---------- Spacing ---------- */
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-0  { padding-top: 0; padding-bottom: 0; }
.py-4  { padding-top: 1rem; padding-bottom: 1rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }
.p-4  { padding: 1rem; }
.p-5  { padding: 1.25rem; }
.p-6  { padding: 1.5rem; }
.p-7  { padding: 1.75rem; }
.p-8  { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.pt-1 { padding-top: 0.25rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pb-2 { padding-bottom: 0.5rem; }
.mb-1  { margin-bottom: 0.25rem; }
.mb-2  { margin-bottom: 0.5rem; }
.mb-3  { margin-bottom: 0.75rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-5  { margin-bottom: 1.25rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1  { margin-top: 0.25rem; }
.mt-2  { margin-top: 0.5rem; }
.mt-3  { margin-top: 0.75rem; }
.mt-4  { margin-top: 1rem; }
.mt-5  { margin-top: 1.25rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-14 { margin-top: 3.5rem; }
.ml-1  { margin-left: 0.25rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:w-auto { width: auto; }
}
@media (min-width: 768px) {
  .md\:p-10 { padding: 2.5rem; }
  .md\:p-14 { padding: 3.5rem; }
}

/* ---------- Typography ---------- */
.text-xs   { font-size: 0.75rem; }
.text-sm   { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg   { font-size: 1.125rem; }
.text-xl   { font-size: 1.25rem; }
.text-2xl  { font-size: 1.5rem; }
.text-3xl  { font-size: 1.875rem; }
.text-4xl  { font-size: 2.25rem; }
.font-bold { font-weight: 700; }
.font-cond { font-family: 'Barlow Condensed', sans-serif; }
.font-serif { font-family: 'Noto Serif JP', serif; }
.font-display { font-family: 'Bebas Neue', sans-serif; }
.leading-tight   { line-height: 1.25; }
.leading-snug    { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }
.tracking-widest { letter-spacing: 0.2em; }
.uppercase { text-transform: uppercase; }
.whitespace-nowrap { white-space: nowrap; }

@media (min-width: 768px) {
  .md\:text-3xl { font-size: 1.875rem; }
  .md\:text-4xl { font-size: 2.25rem; }
}

/* ---------- Colors ---------- */
.text-white   { color: var(--white); }
.text-gold    { color: var(--gold) !important; }
.text-primary { color: var(--navy); }
.text-primary-light { color: var(--navy-light); }
.text-navy    { color: var(--navy); }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.bg-white     { background-color: var(--white); }
.bg-off-white { background-color: var(--off-white); }
.bg-primary   { background-color: var(--navy); }

/* Tailwind opacity syntax */
.text-white\/80  { color: rgba(255,255,255,0.8); }
.text-white\/75  { color: rgba(255,255,255,0.75); }
.text-white\/70  { color: rgba(255,255,255,0.7); }
.text-white\/65  { color: rgba(255,255,255,0.65); }
.text-white\/60  { color: rgba(255,255,255,0.6); }
.text-white\/50  { color: rgba(255,255,255,0.5); }
.text-white\/40  { color: rgba(255,255,255,0.4); }
.bg-white\/8     { background-color: rgba(255,255,255,0.08); }
.bg-white\/50    { background-color: rgba(255,255,255,0.5); }
.border-white\/15 { border-color: rgba(255,255,255,0.15); }
.border-white\/10 { border-color: rgba(255,255,255,0.1); }

/* ---------- Positioning ---------- */
.relative  { position: relative; }
.absolute  { position: absolute; }
.fixed     { position: fixed; }
.inset-0   { inset: 0; }
.top-0     { top: 0; }
.right-0   { right: 0; }
.bottom-0  { bottom: 0; }
.left-0    { left: 0; }
.z-10      { z-index: 10; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.left-1\/2 { left: 50%; }

/* ---------- Sizing ---------- */
.w-full  { width: 100%; }
.w-px    { width: 1px; }
.w-0\.5  { width: 0.125rem; }
.w-1     { width: 0.25rem; }
.w-2     { width: 0.5rem; }
.w-4     { width: 1rem; }
.w-5     { width: 1.25rem; }
.w-6     { width: 1.5rem; }
.w-7     { width: 1.75rem; }
.w-8     { width: 2rem; }
.w-10    { width: 2.5rem; }
.w-11    { width: 2.75rem; }
.w-12    { width: 3rem; }
.w-14    { width: 3.5rem; }
.w-16    { width: 4rem; }
.w-20    { width: 5rem; }
.w-24    { width: 6rem; }
.w-28    { width: 7rem; }
.w-1\/2  { width: 50%; }
.min-w-10 { min-width: 2.5rem; }
.min-w-11 { min-width: 2.75rem; }
.h-1     { height: 0.25rem; }
.h-3     { height: 0.75rem; }
.h-4     { height: 1rem; }
.h-5     { height: 1.25rem; }
.h-6     { height: 1.5rem; }
.h-7     { height: 1.75rem; }
.h-8     { height: 2rem; }
.h-10    { height: 2.5rem; }
.h-11    { height: 2.75rem; }
.h-12    { height: 3rem; }
.h-14    { height: 3.5rem; }
.h-16    { height: 4rem; }
.h-20    { height: 5rem; }
.h-24    { height: 6rem; }
.h-full  { height: 100%; }
.min-h-screen { min-height: 100vh; }
.aspect-video { aspect-ratio: 16 / 9; }

/* ---------- Display / Misc ---------- */
.block   { display: block; }
.hidden  { display: none; }
/* モバイルのみ改行 */
.sp-br   { display: none; }
@media (max-width: 640px) { .sp-br { display: inline; } }
.overflow-hidden { overflow: hidden; }
.pointer-events-none { pointer-events: none; }
.object-cover { object-fit: cover; }
.rounded-lg  { border-radius: 0.5rem; }
.rounded-xl  { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.border { border: 1px solid var(--border); }
.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.border-gray-100 { border-color: #f3f4f6; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }
.text-center { text-align: center; }
.text-left   { text-align: left; }
.opacity-10  { opacity: 0.1; }
.opacity-50  { opacity: 0.5; }
.opacity-75  { opacity: 0.75; }
.group { /* group hover parent marker */ }

/* hover/transition utilities */
.transition-all     { transition: all 0.3s ease; }
.transition-colors  { transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease; }
.transition-transform { transition: transform 0.3s ease; }
.duration-300 { transition-duration: 0.3s; }
.hover\:opacity-80:hover  { opacity: 0.8; }
.hover\:shadow-lg:hover   { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }
.hover\:-translate-y-1:hover { transform: translateY(-4px); }
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }

@media (min-width: 768px) {
  .md\:block  { display: block; }
  .md\:hidden { display: none; }
}


/* ============================================
   PART 3: Contact Page Styles
============================================ */
.contact-direct {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 680px;
  margin: 0 auto 3rem;
}
.direct-card {
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.direct-card:first-child {
  background: var(--navy);
  color: var(--white);
}
.direct-card:last-child {
  background: var(--off-white);
  border: 1px solid var(--border);
}
.dc-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--gold);
  margin-bottom: 0.25rem;
}
.dc-icon svg { width: 100%; height: 100%; }
.dc-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.5;
}
.dc-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.dc-note {
  font-size: 0.75rem;
  opacity: 0.5;
}
.dc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.6rem 1.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.form-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-required {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--white);
  background: #e53e3e;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 0.4rem;
  vertical-align: middle;
}
.form-optional {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-mid);
  background: var(--off-white);
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 0.4rem;
  vertical-align: middle;
}
.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(42,74,128,0.1);
  background: var(--white);
}
.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 320px;
  margin: 2rem auto 0;
  padding: 1rem 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.submit-btn:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
}
.privacy-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  font-size: 0.82rem;
  color: var(--text-mid);
  margin-top: 1.5rem;
}
.privacy-check input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--navy);
}
.privacy-check a {
  color: var(--navy-light);
  text-decoration: underline;
}

.faq-banner {
  max-width: 720px;
  margin: 3rem auto 0;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}
.faq-banner p {
  font-size: 0.88rem;
  color: var(--text-mid);
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .contact-direct {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-section {
    padding: 1.5rem;
  }
}


/* ============================================
   PART 4: @keyframes scrollLine
============================================ */
@keyframes scrollLine {
  0%   { transform: translateY(-100%); opacity: 0; }
  30%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}


/* ============================================
   PART 5: MW WP Form Styling
============================================ */
.mw_wp_form dl {
  width: 100%;
}
.mw_wp_form dt {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  padding: 1rem 0 0.4rem;
}
.mw_wp_form dd {
  padding: 0 0 0.75rem;
}
.mw_wp_form input[type="text"],
.mw_wp_form input[type="email"],
.mw_wp_form input[type="tel"],
.mw_wp_form textarea,
.mw_wp_form select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.mw_wp_form input[type="text"]:focus,
.mw_wp_form input[type="email"]:focus,
.mw_wp_form input[type="tel"]:focus,
.mw_wp_form textarea:focus,
.mw_wp_form select:focus {
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(42,74,128,0.1);
  background: var(--white);
}
.mw_wp_form textarea {
  resize: vertical;
  min-height: 140px;
}
.mw_wp_form select {
  appearance: none;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path d="M1 1l5 5 5-5" stroke="%234a6080" stroke-width="2" fill="none"/></svg>');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.mw_wp_form input[type="submit"],
.mw_wp_form button[type="submit"] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 320px;
  margin: 1.5rem auto 0;
  padding: 1rem 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--white);
  background: var(--navy);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.mw_wp_form input[type="submit"]:hover,
.mw_wp_form button[type="submit"]:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
}
.mw_wp_form input[type="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--navy);
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.75rem;
}
.mw_wp_form input[type="button"]:hover {
  background: #e8eef5;
}
.mw_wp_form input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--navy);
  vertical-align: middle;
  margin-right: 0.4rem;
}
.mw_wp_form .error {
  color: #e53e3e;
  font-size: 0.78rem;
  font-weight: 500;
  margin-top: 0.35rem;
  display: block;
}


/* ============================================
   PART 6: Blog Styles
============================================ */
.blog-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}
.blog-sidebar {
  position: sticky;
  top: 6rem;
}
.blog-sidebar .widget {
  margin-bottom: 2rem;
}
.blog-sidebar .widget-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 0.75rem;
}
.blog-sidebar ul {
  list-style: none;
}
.blog-sidebar li {
  margin-bottom: 0.4rem;
}
.blog-sidebar li a {
  font-size: 0.82rem;
  color: var(--text-mid);
  display: block;
  padding: 0.4rem 0;
  transition: color 0.2s;
}
.blog-sidebar li a:hover {
  color: var(--navy);
  opacity: 1;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 3rem;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.pagination a {
  color: var(--text-mid);
  border: 1px solid var(--border);
}
.pagination a:hover {
  background: var(--off-white);
  color: var(--navy);
  opacity: 1;
}
.pagination .current {
  background: var(--navy);
  color: var(--white);
  border: 1px solid var(--navy);
}


/* ============================================
   PART 7: Base-Theme Compatibility Classes
============================================ */

/* base-theme compatibility */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.sec { padding: 5rem 0; }
.sec-sm { padding: 2.5rem 0; }
.sec-bg { background: var(--off-white); }
.page-hero-en {
  font-family: 'Barlow Condensed', sans-serif;
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}
.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sep { opacity: 0.4; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
}
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-dark {
  background: var(--off-white);
  color: var(--navy);
  border: 1px solid var(--border);
}
.btn-dark:hover { background: #e8eef5; }
.clamp2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.clamp3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.d1 { transition-delay: 0.12s; }
.d2 { transition-delay: 0.24s; }
.d3 { transition-delay: 0.36s; }

/* Contact page base-theme classes */
.contact-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 420px;
  margin: 0 auto;
}
.contact-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  opacity: 0.35;
}
.contact-step.active { opacity: 1; }
.contact-step.error .contact-step-num { background: #e53e3e; }
.contact-step-num {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.contact-step-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-mid);
}
.contact-step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  min-width: 40px;
}
.contact-step-line.active { background: var(--navy); }

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 680px;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .contact-cards { grid-template-columns: 1fr; }
}
.contact-card {
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.contact-card--dark {
  background: var(--navy);
  color: #fff;
}
.contact-card--light {
  background: var(--off-white);
  border: 1px solid var(--border);
}
.contact-card svg {
  width: 2rem;
  height: 2rem;
  color: var(--gold);
}
.contact-card-en {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.5;
}
.contact-card-title {
  font-size: 0.95rem;
  font-weight: 700;
}
.contact-card-phone {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.contact-card-note {
  font-size: 0.75rem;
  opacity: 0.5;
}

.contact-complete-box {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 560px;
  margin: 0 auto;
}
.contact-complete-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: #48bb78;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
}
.contact-complete-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 1rem;
}
.contact-complete-text {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 2;
}

.contact-error-alert {
  display: flex;
  align-items: start;
  gap: 1rem;
  background: #fff5f5;
  border: 1px solid #feb2b2;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 2rem;
}
.contact-error-icon {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  border-radius: 50%;
  background: #e53e3e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.contact-error-title {
  font-weight: 700;
  color: #c53030;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
.contact-error-text {
  font-size: 0.8rem;
  color: #c53030;
}

.contact-confirm-wrap table { width: 100%; }
.contact-confirm-wrap th {
  text-align: left;
  padding: 0.75rem 0;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
  width: 35%;
  border-bottom: 1px solid var(--border);
}
.contact-confirm-wrap td {
  padding: 0.75rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.sec-head { text-align: center; margin-bottom: 3rem; }
.sec-en {
  font-family: 'Barlow Condensed', sans-serif;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}
.sec-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--navy);
  line-height: 1.35;
}
.sec-title span { color: var(--gold); }
.sec-sub {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-top: 0.75rem;
}

/* Single post layout */
.single-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) {
  .single-grid { grid-template-columns: 1fr; }
}

.author-box {
  display: flex;
  gap: 1.25rem;
  padding: 2rem;
  margin-top: 3rem;
  background: var(--off-white);
  border-radius: 8px;
}
.author-box-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-box-company {
  font-size: 0.7rem;
  color: var(--text-light);
}
.author-box-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}
.author-box-bio {
  font-size: 0.8rem;
  color: var(--text-mid);
  margin-top: 0.25rem;
  line-height: 1.7;
}
.author-box-link {
  font-size: 0.8rem;
  color: var(--navy-light);
  margin-top: 0.5rem;
  display: inline-block;
}

/* CTA section (base-theme) */
.cta-sec {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 4rem 0;
}
.cta-sec-inner { text-align: center; }
.cta-label {
  font-family: 'Barlow Condensed', sans-serif;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}
.cta-title {
  font-family: 'Noto Serif JP', serif;
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}
.cta-desc {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.cta-tel {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.cta-tel svg { width: 1.5rem; height: 1.5rem; }
.cta-tel-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.5rem;
}
/* ================================================
   ブログ記事本文スタイル (.entry-content)
   ================================================ */
.entry-content {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-dark);
  word-break: break-word;
  overflow-wrap: break-word;
}

/* 見出し：共通 */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 2.75rem;
  margin-bottom: 0.85rem;
  color: var(--navy);
}

/* h2: ゴールドアクセント＋背景 */
.entry-content h2 {
  font-size: 1.35rem;
  padding: 0.65rem 1rem 0.65rem 1.1rem;
  background: var(--off-white);
  border-left: 4px solid var(--gold);
  border-radius: 0 4px 4px 0;
}

/* h3: ゴールド下線 */
.entry-content h3 {
  font-size: 1.15rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.entry-content h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1em;
  background: var(--navy);
  border-radius: 2px;
  flex-shrink: 0;
}

/* h4: ネイビー左バー */
.entry-content h4 {
  font-size: 1.05rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--navy-mid);
}

/* h5 / h6 */
.entry-content h5 { font-size: 1rem; font-weight: 700; }
.entry-content h6 { font-size: 0.95rem; color: var(--text-mid); }

/* 段落・テキスト */
.entry-content p { margin-bottom: 1.5rem; }
.entry-content strong { font-weight: 700; }
.entry-content em { font-style: italic; color: var(--text-mid); }
.entry-content a { color: var(--navy-light); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--gold); opacity: 1; }

/* リスト */
.entry-content ul,
.entry-content ol {
  margin: 0 0 1.5rem 0;
  padding-left: 1.75rem;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.5rem; line-height: 1.75; }
.entry-content li::marker { color: var(--gold); }
.entry-content ul ul,
.entry-content ol ol { margin-top: 0.4rem; margin-bottom: 0.25rem; }

/* 引用 */
.entry-content blockquote {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--gold);
  background: var(--off-white);
  border-radius: 0 8px 8px 0;
  color: var(--text-mid);
  font-size: 0.95rem;
  font-style: italic;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }

/* テーブル：スクロール対応ラッパーを自動付与 */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  min-width: 480px; /* 横スクロール発動の基準 */
}
.entry-content .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
}
.entry-content .table-wrap table { margin-bottom: 0; }
.entry-content th {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  padding: 0.65rem 1rem;
  text-align: left;
  border: 1px solid var(--navy-mid);
  white-space: nowrap;
}
.entry-content td {
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.7;
}
.entry-content tr:nth-child(even) td { background: var(--off-white); }

/* 画像 */
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0.5rem 0 1.75rem;
  display: block;
}
.entry-content figure { margin: 0 0 1.75rem; }
.entry-content figcaption,
.entry-content .wp-caption-text {
  font-size: 0.8rem;
  color: var(--text-mid);
  text-align: center;
  margin-top: 0.4rem;
}

/* 区切り線 */
.entry-content hr {
  border: none;
  border-top: 2px dashed var(--border);
  margin: 2.5rem 0;
}

/* コード */
.entry-content code {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  background: #f0f4f8;
  padding: 0.15em 0.45em;
  border-radius: 3px;
  color: var(--navy);
  border: 1px solid var(--border);
}
.entry-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}
.entry-content pre code {
  background: none;
  color: inherit;
  padding: 0;
  border: none;
  font-size: inherit;
}

/* レスポンシブ */
@media (max-width: 640px) {
  .entry-content h2 { font-size: 1.15rem; }
  .entry-content h3 { font-size: 1.05rem; }
  .entry-content h4 { font-size: 1rem; }
  .entry-content table { min-width: 360px; }
  .entry-content { overflow-x: hidden; }
}

/* ================================================
   サイドバー（ブログ詳細）
   ================================================ */
.single-sidebar {
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* CTAウィジェット */
.sidebar-cta {
  background: var(--navy);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  text-align: center;
}
.sidebar-cta-en {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.sidebar-cta-heading {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.7;
  margin-bottom: 1.1rem;
}
.sidebar-cta-tel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: opacity 0.2s;
  margin-bottom: 0.2rem;
}
.sidebar-cta-tel:hover { opacity: 0.8; }
.sidebar-cta-tel svg { width: 1.1rem; height: 1.1rem; flex-shrink: 0; }
.sidebar-cta-hours {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.25rem;
}
.sidebar-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}
.sidebar-cta-btn:hover { background: #d4b65e; opacity: 1; }
.sidebar-cta-btn svg { width: 1rem; height: 1rem; }

/* 関連記事ウィジェット */
.sidebar-related {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}
.sidebar-widget-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-related-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.sidebar-related-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  text-decoration: none;
  color: var(--text-dark);
  transition: opacity 0.2s;
}
.sidebar-related-item:hover { opacity: 0.7; }
.sidebar-related-thumb {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--off-white);
  display: block;
}
.sidebar-related-noimg {
  width: 72px;
  height: 52px;
  background: var(--off-white);
  border-radius: 4px;
  flex-shrink: 0;
}
.sidebar-related-title {
  font-size: 0.82rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-related-date {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-bottom: 0.2rem;
  display: block;
}

.cta-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
@media (max-width: 480px) {
  .cta-btns {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-btns .btn-primary,
  .cta-btns .btn-secondary {
    justify-content: center;
    width: 100%;
  }
}


/* ============================================
   PART 9: Works / Company Page Responsive
============================================ */

/* works-grid: 3col → 2col(768px) → 1col(480px) */
@media (max-width: 768px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 480px) {
  .works-grid {
    grid-template-columns: 1fr !important;
  }
}

/* blog-grid: 2col → 1col(640px) */
@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ブログカード横並びレイアウト: スマホで縦積み */
.blog-list-card {
  display: grid;
  grid-template-columns: 180px 1fr;
}
@media (max-width: 640px) {
  .blog-list-card {
    grid-template-columns: 1fr !important;
  }
  .blog-list-card .blog-list-thumb {
    width: 100% !important;
    height: 160px !important;
  }
}

/* works FAQ: スマホで左padding縮小 */
@media (max-width: 480px) {
  .faq-answer {
    padding: 0 1rem 1.25rem 1rem;
  }
}

/* company: 採用カードヘッダー スマホでボタン幅100% */
@media (max-width: 640px) {
  .recruit-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .recruit-card-header .btn-primary {
    width: 100%;
    justify-content: center;
  }
}


/* CTA_BUTTON_EQUAL_WIDTH */
.btn-primary,
.btn-secondary,
.btn-outline-navy {
  min-width: 260px;
  text-align: center;
  justify-content: center;
  align-items: center;
}
/* Pair: equalize side-by-side button siblings in a flex row */
@media (min-width: 641px) {
  .flex:has(> .btn-primary):has(> .btn-secondary) > .btn-primary,
  .flex:has(> .btn-primary):has(> .btn-secondary) > .btn-secondary,
  .flex:has(> .btn-primary):has(> .btn-outline-navy) > .btn-primary,
  .flex:has(> .btn-primary):has(> .btn-outline-navy) > .btn-outline-navy,
  .flex:has(> .btn-secondary):has(> .btn-outline-navy) > .btn-secondary,
  .flex:has(> .btn-secondary):has(> .btn-outline-navy) > .btn-outline-navy {
    flex: 1 1 0;
    max-width: 320px;
  }
}
@media (max-width: 640px) {
  .btn-primary,
  .btn-secondary,
  .btn-outline-navy {
    min-width: 0;
    width: 100%;
  }
}
