/*
Theme Name: OSUPLUS Theme
Theme URI: https://osuplus.co.jp
Author: OSUPLUS Inc.
Author URI: https://osuplus.co.jp
Description: 株式会社OSUPLUS コーポレートサイト用オリジナルWordPressテーマ。淡いブルーを基調とした、親しみやすく清潔感のあるデザイン。
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: osuplus
*/

/* =========================================================
   0. Variables & Reset
========================================================= */
:root {
  --color-bg-light: #e8f4f8;
  --color-bg-lighter: #f0f7fa;
  --color-blue: #4a90e2;
  --color-blue-dark: #3576c4;
  --color-blue-darker: #2a5d9e;
  --color-white: #ffffff;
  --color-text: #2c3e50;
  --color-text-light: #5a7184;
  --color-border: #d7e9f2;
  --shadow-soft: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --shadow-soft-hover: 0 8px 30px rgba(74, 144, 226, 0.2);
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition-base: all 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg-lighter);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-blue-dark);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--color-blue-darker);
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  font-weight: 700;
  color: var(--color-text);
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* =========================================================
   1. Buttons
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: var(--color-white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.38);
  color: var(--color-white);
}

.btn-primary:active {
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  background: var(--color-blue);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(74, 144, 226, 0.3);
}

.btn-outline:active {
  transform: translateY(-1px);
}

.btn-large {
  padding: 18px 44px;
  font-size: 17px;
}

/* =========================================================
   2. Header
========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  transition: padding 0.3s ease;
}

/* スクロール時：少し透過しつつ、影を落として浮いた印象に */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.72);
  border-bottom-color: transparent;
  box-shadow: 0 10px 30px rgba(74, 144, 226, 0.16);
}

.site-header.is-scrolled .container {
  padding-top: 10px;
  padding-bottom: 10px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--color-blue-darker);
  letter-spacing: 0.02em;
}

.site-logo:hover {
  color: var(--color-blue);
}

.site-logo .logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-blue), var(--color-blue-dark));
  color: var(--color-white);
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}

.site-logo .logo-text small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
}

/* Nav toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--color-bg-light);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-blue-darker);
  transition: var(--transition-base);
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.main-navigation a {
  position: relative;
  display: inline-block;
  padding: 10px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text);
  transition: var(--transition-base);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  background: var(--color-bg-light);
  color: var(--color-blue-darker);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(74, 144, 226, 0.18);
}

/* =========================================================
   3. Hero Section（背景写真オーバーレイ構造）
   オフィス写真を画面幅いっぱいの背面レイヤー（.hero-bg）として敷き、
   その上にグラデーション＋ヴィネットのオーバーレイ、さらに前面レイヤー
   （.hero-content）としてキャッチコピー・本文・CTAを白文字で重ねる。
========================================================= */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90vh;
  padding: 140px 0 96px;
  overflow: hidden;
  /* 画像の読み込み前・失敗時のフォールバック背景 */
  background: linear-gradient(160deg, var(--color-bg-light) 0%, var(--color-bg-lighter) 60%, #ffffff 100%);
  /* iOSのSafariはbackground-attachment:fixedとposition:absoluteの組み合わせで
     背景が正しく描画されないことがあるため、明示的にscrollへ固定する */
  background-attachment: scroll;
  /* スムーススクロールでアンカー移動した際、スティッキーヘッダーに隠れないようにする */
  scroll-margin-top: 90px;
}

/* 背面レイヤー：オフィス写真を画面幅いっぱいに敷き詰める。
   一部のスマホ内蔵ブラウザ（LINE等のアプリ内WebViewを含む）ではinsetショート
   ハンドの解釈が不安定なことがあるため、top/right/bottom/leftを個別に指定する */
.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
}

/* パララックス（main.js／initHeroParallax）でスクロールに応じて上下に動かす
   ため、コンテナより一回り大きく確保しておく（余白がないと動かした際に
   下端・上端に隙間が見えてしまう）。.hero-bg 側のoverflow:hiddenで
   はみ出した分は自動的に切り取られる。 */
.hero-bg-img {
  display: block;
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center;
}

/* 写真の上にかける青みがかったグラデーション＋中心を落とすヴィネットで、
   前面の白文字がどの位置に重なってもコントラストを確保できるようにする */
.hero-bg-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background:
    radial-gradient(circle at center, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.25) 55%, rgba(15, 23, 42, 0) 85%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.3) 0%, rgba(255, 255, 255, 0) 100%);
}

/* 前面レイヤー：キャッチコピー・本文・CTAボタン */
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  margin-bottom: 24px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
}

.hero h1 {
  font-size: 44px;
  line-height: 1.5;
  margin-bottom: 24px;
  color: #fff;
  text-shadow: 0 4px 24px rgba(15, 23, 42, 0.35);
}

.hero-sub {
  font-size: 1.125rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
  max-width: 620px;
  margin: 0 auto 40px;
  text-shadow: 0 2px 12px rgba(15, 23, 42, 0.3);
}

/* .entry-content p の既定色より優先させ、ヒーロー本文の視認性を高める */
.hero-sub.entry-content p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* 写真の上でも視認できるよう、アウトラインボタンだけこの文脈専用に調整 */
.hero-cta .btn-outline {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
  backdrop-filter: blur(6px);
}

.hero-cta .btn-outline:hover {
  background: #fff;
  border-color: #fff;
  color: var(--color-blue-dark);
}

/* =========================================================
   3-2. Promo Carousel（トップページ：バナーが自動で切り替わるスライドショー）
========================================================= */
.promo-carousel {
  padding: 56px 0;
  background: var(--color-white);
}

.promo-carousel-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 851 / 315;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--color-bg-light);
}

.promo-slide {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.promo-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.promo-slide-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.promo-slide-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.promo-slide-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.62) 0%, rgba(15, 23, 42, 0.2) 55%, rgba(15, 23, 42, 0) 85%);
}

.promo-slide-text {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 5% 6%;
  max-width: 62%;
  color: #fff;
}

.promo-slide-badge {
  display: inline-block;
  width: fit-content;
  padding: 4px 14px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.promo-slide-text h3 {
  font-size: 22px;
  line-height: 1.4;
  color: #fff;
  margin-bottom: 0;
  text-shadow: 0 2px 10px rgba(15, 23, 42, 0.4);
}

.promo-slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}

.promo-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.promo-carousel-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-blue-dark);
  cursor: pointer;
  transition: var(--transition-base);
}

.promo-carousel-arrow:hover,
.promo-carousel-arrow:active {
  background: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
  transform: translateY(-2px);
}

.promo-carousel-arrow svg {
  width: 18px;
  height: 18px;
}

.promo-carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.promo-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: var(--transition-base);
}

.promo-dot.is-active {
  width: 24px;
  border-radius: 5px;
  background: var(--color-blue);
}

/* =========================================================
   4. Section common
========================================================= */
.section {
  padding: 96px 0;
  /* スムーススクロールでアンカー移動した際、スティッキーヘッダーに見出しが隠れないようにする */
  scroll-margin-top: 90px;
}

.section-bg-white {
  background: var(--color-white);
}

.section-bg-light {
  background: var(--color-bg-light);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-blue);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: 30px;
  color: var(--color-blue-darker);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* =========================================================
   5. Service Cards
========================================================= */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  transition: transform 0.4s cubic-bezier(0.16, 0.8, 0.24, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card:hover,
.service-card:active {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(74, 144, 226, 0.24);
  border-color: var(--color-blue);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-bg-light), var(--color-white));
  color: var(--color-blue-dark);
  margin-bottom: 24px;
  transition: transform 0.4s cubic-bezier(0.16, 0.8, 0.24, 1);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
}

.service-card:hover .service-icon,
.service-card:active .service-icon,
.link-banner-card:hover .service-icon,
.link-banner-card:active .service-icon {
  transform: scale(1.1) rotate(-4deg);
}

.service-card h3 {
  font-size: 20px;
  color: var(--color-blue-darker);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tags span {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 50px;
  background: var(--color-bg-light);
  color: var(--color-blue-dark);
  font-size: 13px;
  font-weight: 600;
}

/* =========================================================
   6. Company Table
========================================================= */
.company-table-wrap {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 22px 32px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: none;
}

.company-table th {
  width: 220px;
  background: var(--color-bg-light);
  color: var(--color-blue-darker);
  font-weight: 700;
}

.company-table td {
  color: var(--color-text);
  line-height: 1.9;
}

/* =========================================================
   7. Recruit Banner
========================================================= */
.recruit-banner {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-dark) 100%);
  color: var(--color-white);
  overflow: hidden;
  box-shadow: var(--shadow-soft-hover);
}

.recruit-banner::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  top: -140px;
  right: -80px;
}

.recruit-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.recruit-banner h2 {
  color: var(--color-white);
  font-size: 26px;
  margin-bottom: 16px;
}

.recruit-banner p {
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 32px;
  font-size: 15px;
}

.recruit-banner .btn-outline {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-blue-dark);
}

.recruit-banner .btn-outline:hover {
  background: transparent;
  color: var(--color-white);
}

/* =========================================================
   8. News Section
========================================================= */
.news-list {
  display: grid;
  gap: 20px;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  transition: var(--transition-base);
}

.news-item:hover,
.news-item:active {
  box-shadow: var(--shadow-soft);
  border-color: var(--color-blue);
  transform: translateX(4px);
}

.news-date {
  flex-shrink: 0;
  width: 110px;
  color: var(--color-blue-dark);
  font-weight: 700;
  font-size: 14px;
}

.news-cat {
  flex-shrink: 0;
  display: inline-block;
  padding: 5px 14px;
  border-radius: 50px;
  background: var(--color-bg-light);
  color: var(--color-blue-darker);
  font-size: 12px;
  font-weight: 700;
}

.news-title {
  flex: 1;
  color: var(--color-text);
  font-weight: 600;
  font-size: 15px;
}

.news-title:hover {
  color: var(--color-blue-dark);
}

.news-empty {
  text-align: center;
  color: var(--color-text-light);
  padding: 40px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px dashed var(--color-border);
}

.news-more {
  text-align: center;
  margin-top: 40px;
}

/* =========================================================
   9. Contact CTA Section
========================================================= */
.contact-cta {
  text-align: center;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 72px 40px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
}

.contact-cta h2 {
  font-size: 28px;
  color: var(--color-blue-darker);
  margin-bottom: 16px;
}

.contact-cta p {
  color: var(--color-text-light);
  max-width: 560px;
  margin: 0 auto 32px;
}

/* =========================================================
   10. Recruit Page - Strengths
========================================================= */
.page-hero {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(160deg, var(--color-bg-light) 0%, var(--color-bg-lighter) 100%);
}

.page-hero h1 {
  font-size: 34px;
  color: var(--color-blue-darker);
  margin-bottom: 20px;
}

.page-hero p {
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 680px;
  margin: 0 auto;
}

.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.strength-card {
  position: relative;
  overflow: hidden;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  transition: var(--transition-base);
}

.strength-card:hover,
.strength-card:active {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft-hover);
}

/* カード背景に写真を主張弱めに差し込む（採用情報ページの3カードのみ）。
   写真素材側にあらかじめ白を重ねて薄く焼き込み済み（元画像は上下に白い
   余白を含むデザインのため、その余白を避けて中身だけを切り出している）。
   そのためCSS側でopacityを重ねる必要はなく、常にカード全面を隙間なく覆う。 */
.strength-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.strength-card > * {
  position: relative;
  z-index: 1;
}

.strength-card-01::before {
  background-image: url('images/recruit-card-01.jpg');
}

.strength-card-02::before {
  background-image: url('images/recruit-card-02.jpg');
}

.strength-card-03::before {
  background-image: url('images/recruit-card-03.jpg');
}

.strength-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-blue), var(--color-blue-dark));
  color: var(--color-white);
  font-weight: 800;
  font-size: 20px;
}

.strength-card h3 {
  font-size: 18px;
  color: var(--color-blue-darker);
  margin-bottom: 10px;
}

.strength-card p {
  color: var(--color-text-light);
  font-size: 14px;
  margin-bottom: 0;
}

/* 採用情報ページの3カードは背景に写真を敷いている分、文字を太く濃くして
   はっきり読めるようにする（事業内容ページ側の無地カードには影響しない） */
.strength-card-01 h3,
.strength-card-02 h3,
.strength-card-03 h3 {
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.7);
}

.strength-card-01 p,
.strength-card-02 p,
.strength-card-03 p {
  color: var(--color-text);
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.7);
}

/* Recruit table */
.recruit-table-wrap {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.recruit-table {
  width: 100%;
  border-collapse: collapse;
}

.recruit-table th,
.recruit-table td {
  padding: 22px 32px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
  vertical-align: top;
}

.recruit-table tr:last-child th,
.recruit-table tr:last-child td {
  border-bottom: none;
}

.recruit-table th {
  width: 200px;
  background: var(--color-bg-light);
  color: var(--color-blue-darker);
  font-weight: 700;
}

.recruit-table td {
  color: var(--color-text);
  line-height: 1.9;
}

/* =========================================================
   11. Footer
========================================================= */
.site-footer {
  background: linear-gradient(160deg, var(--color-blue-darker), var(--color-blue-dark));
  color: rgba(255, 255, 255, 0.85);
  padding-top: 64px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-brand .site-logo {
  color: var(--color-white);
  margin-bottom: 16px;
}

.footer-brand .site-logo .logo-text small {
  color: rgba(255, 255, 255, 0.7);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  max-width: 320px;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 15px;
  margin-bottom: 18px;
  letter-spacing: 0.03em;
}

.footer-nav ul li {
  margin-bottom: 12px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

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

.footer-info li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 10px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0;
  margin-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.65);
}

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

/* =========================================================
   12. Scroll Fade-up Animation (IntersectionObserver連携)
========================================================= */
.fade-up-el {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s cubic-bezier(0.16, 0.8, 0.24, 1), transform 0.8s cubic-bezier(0.16, 0.8, 0.24, 1);
  transition-delay: var(--fade-delay, 0s);
  will-change: opacity, transform;
}

.fade-up-el.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-up-el {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* グリッド内カードの時間差ずらし */
.service-grid .fade-up-el:nth-child(2),
.strength-grid .fade-up-el:nth-child(2),
.link-banner-grid .fade-up-el:nth-child(2),
.news-list .fade-up-el:nth-child(2) {
  --fade-delay: 0.12s;
}

.strength-grid .fade-up-el:nth-child(3),
.link-banner-grid .fade-up-el:nth-child(3),
.news-list .fade-up-el:nth-child(3) {
  --fade-delay: 0.24s;
}

.news-list .fade-up-el:nth-child(4) {
  --fade-delay: 0.36s;
}

.news-list .fade-up-el:nth-child(5) {
  --fade-delay: 0.48s;
}

/* =========================================================
   13. Link Banner Cards（トップページの各ページ誘導カード）
========================================================= */
.link-banner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.link-banner-grid.is-two-col {
  grid-template-columns: repeat(2, 1fr);
}

.link-banner-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  transition: transform 0.4s cubic-bezier(0.16, 0.8, 0.24, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  height: 100%;
}

.link-banner-card:hover,
.link-banner-card:active {
  transform: translateY(-8px);
  box-shadow: 0 18px 36px rgba(74, 144, 226, 0.22);
  border-color: var(--color-blue);
}

.link-banner-card .service-icon {
  margin-bottom: 20px;
}

.link-banner-card h3 {
  font-size: 18px;
  color: var(--color-blue-darker);
  margin-bottom: 10px;
}

.link-banner-card p {
  color: var(--color-text-light);
  font-size: 14px;
  flex-grow: 1;
}

.link-banner-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 700;
  font-size: 14px;
  color: var(--color-blue-dark);
  transition: var(--transition-base);
}

.link-banner-card:hover .link-banner-more,
.link-banner-card:active .link-banner-more {
  gap: 10px;
  color: var(--color-blue-darker);
}

.section-more {
  text-align: center;
  margin-top: 40px;
}

/* =========================================================
   13-2. Overview Card（トップページの会社概要サマリー等）
========================================================= */
.overview-card {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
}

.overview-card-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-bg-light), var(--color-white));
  color: var(--color-blue-dark);
}

.overview-card-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
}

.overview-card-body h3 {
  font-size: 20px;
  color: var(--color-blue-darker);
  margin-bottom: 10px;
}

.overview-card-body p {
  color: var(--color-text-light);
  margin-bottom: 18px;
}

.overview-mini-list {
  display: grid;
  gap: 8px;
}

.overview-mini-list li {
  font-size: 14px;
  color: var(--color-text);
}

.overview-mini-list li strong {
  display: inline-block;
  min-width: 76px;
  color: var(--color-blue-dark);
  font-weight: 700;
}

/* =========================================================
   14. Detail Blocks（事業内容ページ用の詳細セクション）
========================================================= */
.detail-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
}

.detail-block + .detail-block {
  border-top: 1px solid var(--color-border);
}

.detail-block.is-reverse .detail-visual {
  order: 2;
}

.detail-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-bg-light), var(--color-white));
  border: 1px solid var(--color-border);
  font-size: 88px;
  box-shadow: var(--shadow-soft);
}

.detail-body .section-eyebrow {
  margin-bottom: 10px;
}

.detail-block .detail-body h2 {
  font-size: 26px;
  color: var(--color-blue-darker);
  margin-bottom: 16px;
}

.detail-block .detail-body p {
  color: var(--color-text-light);
}

/* SERVICE 01 / SERVICE 02 カード（通信・インフラ販売 業務委託／コンビニ陳列・
   店舗作業請負）：左の小さなアイコンをやめ、カード全体を背景写真＋白半透明
   オーバーレイの構成にする。背景画像はstyle.css基準の相対パスで解決される。 */
.service-01-card,
.service-02-card {
  position: relative;
  display: block;
  grid-template-columns: 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 64px 56px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  /* モバイルSafari等でbackground-attachment:fixedが原因の表示崩れを起こさないよう
     常にscroll（既定）を明示しておく */
  background-attachment: scroll;
  box-shadow: var(--shadow-soft);
}

.service-01-card {
  background-image: url('images/service-01-telecom-bg.jpg');
}

.service-02-card {
  background-image: url('images/service-02-convenience-bg.jpg');
}

/* 背景写真の上・テキストの下に重ねる白オーバーレイ。
   文字が乗る左側はほぼ不透明、写真が見える右側は透過を残したグラデーション。 */
.service-01-card::before,
.service-02-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 60%, rgba(255, 255, 255, 0.4) 100%);
  z-index: 0;
}

.service-01-card .detail-visual,
.service-02-card .detail-visual {
  display: none;
}

/* デスクトップ／タブレットでは背景写真オーバーレイ方式を使うため、
   カード内蔵のimg要素（スマホ専用の縦並びレイアウト用）は非表示にしておく */
.service-mobile-img {
  display: none;
}

.service-01-card .detail-body,
.service-02-card .detail-body {
  position: relative;
  z-index: 1;
  max-width: 560px;
  padding: 8px 12px 8px 4px;
}

.service-01-card .detail-body h2,
.service-02-card .detail-body h2 {
  color: #0f172a;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.service-01-card .detail-body p,
.service-02-card .detail-body p {
  color: #1e293b;
  font-size: 16px;
  line-height: 1.8;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.service-01-card .detail-body .check-list li,
.service-01-card .detail-body li,
.service-02-card .detail-body .check-list li,
.service-02-card .detail-body li {
  color: #1e293b;
  font-size: 15px;
  line-height: 1.8;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e2e8f0;
}

/* =========================================================
   15. Company Page - Access / Philosophy / CEO Message
========================================================= */
.company-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.info-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
}

.info-card h3 {
  font-size: 18px;
  color: var(--color-blue-darker);
  margin-bottom: 16px;
}

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  background: repeating-linear-gradient(
      45deg,
      var(--color-bg-light),
      var(--color-bg-light) 10px,
      var(--color-bg-lighter) 10px,
      var(--color-bg-lighter) 20px
    );
  border: 1px dashed var(--color-blue);
  color: var(--color-blue-dark);
  font-weight: 700;
  margin-bottom: 18px;
  text-align: center;
  padding: 20px;
}

.map-placeholder small {
  font-weight: 500;
  color: var(--color-text-light);
}

.map-embed {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-light);
}

.map-embed iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.access-list li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 10px;
  line-height: 1.7;
}

.access-list li strong {
  flex-shrink: 0;
  color: var(--color-blue-dark);
}

.philosophy-block {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-bg-light), var(--color-white));
  border: 1px solid var(--color-border);
}

.philosophy-block .section-eyebrow {
  margin-bottom: 10px;
}

.philosophy-block h2 {
  font-size: 24px;
  color: var(--color-blue-darker);
  margin-bottom: 16px;
}

.ceo-message {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
}

.ceo-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-blue), var(--color-blue-dark));
  color: var(--color-white);
  font-size: 40px;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.ceo-name {
  margin-top: 16px;
  text-align: center;
  font-weight: 700;
  color: var(--color-blue-darker);
}

.ceo-name span {
  display: block;
  font-weight: 500;
  font-size: 12px;
  color: var(--color-text-light);
  margin-top: 4px;
}

.ceo-text h3 {
  font-size: 18px;
  color: var(--color-blue-darker);
  margin-bottom: 12px;
}

/* =========================================================
   15-2. Entry Content（ブロックエディター本文の共通スタイル）
   the_content() / apply_filters('the_content', ...) の出力先
   （企業理念・代表メッセージ・サービス紹介本文・記事本文 等）に
   共通で付与し、太字・箇条書き・見出し・リンク・文字色などの
   ブロックエディターの装飾がサイトのデザインに馴染むようにする。
========================================================= */
.entry-content {
  color: var(--color-text-light);
  font-size: 16px;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content p {
  margin-bottom: 1em;
  line-height: 1.9;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--color-blue-darker);
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  line-height: 1.5;
}

.entry-content h2 {
  font-size: 22px;
}

.entry-content h3 {
  font-size: 18px;
}

.entry-content h4 {
  font-size: 16px;
}

.entry-content strong,
.entry-content b {
  font-weight: 700;
  color: var(--color-text);
}

.entry-content a {
  color: var(--color-blue-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.entry-content ul,
.entry-content ol {
  display: grid;
  gap: 10px;
  margin: 0 0 1em;
  padding-left: 0;
  list-style: none;
}

.entry-content ol {
  counter-reset: osuplus-entry-ol;
}

.entry-content li {
  position: relative;
  padding: 12px 16px 12px 42px;
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.7;
}

.entry-content ul li::before,
.entry-content ol li::before {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-blue);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.entry-content ul li::before {
  content: "✓";
}

.entry-content ol li {
  counter-increment: osuplus-entry-ol;
}

.entry-content ol li::before {
  content: counter(osuplus-entry-ol);
}

.entry-content li > ul,
.entry-content li > ol {
  margin-top: 10px;
  margin-bottom: 0;
  padding-left: 0;
}

.entry-content blockquote {
  margin: 1em 0;
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--color-blue);
  color: var(--color-text-light);
  font-style: italic;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 1em 0;
}

.entry-content figure {
  margin: 1em 0;
}

.entry-content figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--color-text-light);
  text-align: center;
}

.entry-content hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2em 0;
}

/* =========================================================
   16. Contact Form
========================================================= */
.contact-layout {
  display: flex;
  justify-content: center;
}

.contact-form-wrap {
  width: 100%;
  max-width: 720px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text);
}

.form-group .required {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 50px;
  background: #ffe3e3;
  color: #d9534f;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

.form-group .optional {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 50px;
  background: var(--color-bg-light);
  color: var(--color-text-light);
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-row-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg-lighter);
  font-size: 15px;
  font-family: inherit;
  color: var(--color-text);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-blue);
  background: var(--color-white);
  box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.15);
}

textarea.form-control {
  min-height: 160px;
  resize: vertical;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a90e2' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  padding-right: 44px;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit {
  text-align: center;
  margin-top: 8px;
}

.form-submit .btn {
  width: 100%;
  max-width: 320px;
}

.form-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--color-text-light);
  text-align: center;
}

.form-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  margin-bottom: 32px;
  font-weight: 600;
  font-size: 14px;
}

.form-alert-success {
  background: #e6f7ee;
  color: #1e7e4e;
  border: 1px solid #b7e4cb;
}

.form-alert-error {
  background: #fdecec;
  color: #c0392b;
  border: 1px solid #f5c6c2;
}

/* =========================================================
   17. News Page Pagination
========================================================= */
.osuplus-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
}

.osuplus-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 50px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-blue-dark);
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition-base);
}

.osuplus-pagination .page-numbers:hover,
.osuplus-pagination .page-numbers:active {
  background: var(--color-bg-light);
  transform: translateY(-2px);
}

.osuplus-pagination .page-numbers.current {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: var(--color-white);
}

.osuplus-pagination .page-numbers.dots {
  border: none;
  background: transparent;
}

/* =========================================================
   17-2. Single Article（お知らせ記事詳細ページ）
========================================================= */
.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.article-title {
  margin-bottom: 0;
}

.article-featured-image {
  max-width: 900px;
  margin: 0 auto 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.article-featured-image img {
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 0;
}

.article-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
}

.article-nav {
  max-width: 820px;
  margin: 40px auto 0;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
}

.article-nav-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 22px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: var(--transition-base);
}

.article-nav-link:hover,
.article-nav-link:active {
  border-color: var(--color-blue);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.article-nav-link.is-next {
  text-align: right;
  align-items: flex-end;
}

.article-nav-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-blue);
}

.article-nav-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.article-back {
  text-align: center;
  margin-top: 40px;
}

/* =========================================================
   18. Responsive
========================================================= */
@media (max-width: 960px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .strength-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .service-01-card,
  .service-02-card {
    padding: 40px 28px;
  }

  .link-banner-grid,
  .link-banner-grid.is-two-col {
    grid-template-columns: 1fr;
  }

  .detail-block,
  .detail-block.is-reverse .detail-visual {
    grid-template-columns: 1fr;
    order: initial;
  }

  .detail-block {
    gap: 32px;
  }

  .detail-visual {
    order: -1;
    max-width: 420px;
    margin: 0 auto;
  }

  .company-columns {
    grid-template-columns: 1fr;
  }

  .overview-card {
    flex-direction: column;
    padding: 28px;
  }

  .ceo-message {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .article-card {
    padding: 32px 24px;
  }
}

@media (max-width: 768px) {
  .article-nav {
    flex-direction: column;
  }

  .article-nav-link.is-next {
    text-align: left;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-navigation {
    display: none;
    width: 100%;
    order: 3;
  }

  .main-navigation.is-open {
    display: block;
  }

  .site-header .container {
    flex-wrap: wrap;
  }

  .main-navigation ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 0 8px;
  }

  .main-navigation a {
    text-align: center;
  }

  .hero {
    min-height: 80vh !important;
    padding: 96px 0 64px;
  }

  /* ヒーローの背景写真はCSS background-imageではなく<img>（.hero-bg-img）を
     使っているため、スマホでも確実に表示されるよう明示的に強制しておく。
     この写真は横長バナー用の構図（人物が両端、中央は無地の白壁）のため、
     object-position: center のまま縦長スマホ画面でcoverすると、中央の
     無地の白壁部分だけが切り出されて「写真が消えたように白く見える」。
     左側の人物クラスターが写るよう起点を左寄りにする。 */
  .hero-bg-img {
    display: block !important;
    position: absolute !important;
    top: -10% !important;
    left: 0 !important;
    width: 100% !important;
    height: 120% !important;
    object-fit: cover !important;
    object-position: left center !important;
  }

  /* 写真の余白が狭くなるスマホでは、文字が中央にバランスよく収まるよう
     ヴィネットを少し強めて可読性を優先する */
  .hero-bg-overlay {
    background:
      radial-gradient(circle at center, rgba(15, 23, 42, 0.62) 0%, rgba(15, 23, 42, 0.32) 55%, rgba(15, 23, 42, 0.05) 85%),
      linear-gradient(135deg, rgba(37, 99, 235, 0.34) 0%, rgba(255, 255, 255, 0.02) 100%);
  }

  .hero-content {
    padding: 0 20px;
  }

  .hero-badge {
    margin-bottom: 18px;
  }

  .hero h1 {
    font-size: 28px;
    margin-bottom: 18px;
  }

  .hero-sub {
    font-size: 1rem;
    margin-bottom: 32px;
  }

  /* おすすめ情報カルーセル：短冊状のバナーなのでスマホでは文字を控えめに */
  .promo-carousel {
    padding: 40px 0;
  }

  .promo-slide-text {
    max-width: 72%;
    padding: 4% 5%;
    gap: 6px;
  }

  .promo-slide-badge {
    padding: 3px 10px;
    font-size: 10px;
  }

  .promo-slide-text h3 {
    font-size: 14px;
    line-height: 1.4;
  }

  .promo-slide-cta {
    font-size: 12px;
  }

  .promo-carousel-arrow {
    width: 34px;
    height: 34px;
  }

  .promo-carousel-arrow svg {
    width: 15px;
    height: 15px;
  }

  /* SERVICE 01 / SERVICE 02 カード：スマホでは背景写真オーバーレイ方式をやめ、
     「タイトル→画像→本文」を素直に縦並びにするレイアウトへ切り替える */
  .service-01-card,
  .service-02-card {
    background-image: none !important;
    padding: 0;
  }

  .service-01-card::before,
  .service-02-card::before {
    display: none;
  }

  .service-01-card .detail-body,
  .service-02-card .detail-body {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    padding: 32px 24px;
  }

  /* 背景写真が無くなるため、通常のカードと同じ文字色・シャドウなしに戻す */
  .service-01-card .detail-body h2,
  .service-02-card .detail-body h2 {
    color: var(--color-blue-darker);
    text-shadow: none;
  }

  .service-01-card .detail-body p,
  .service-02-card .detail-body p {
    color: var(--color-text-light);
    text-shadow: none;
  }

  .service-01-card .detail-body .check-list li,
  .service-01-card .detail-body li,
  .service-02-card .detail-body .check-list li,
  .service-02-card .detail-body li {
    color: var(--color-text);
    background: var(--color-bg-light);
    border: none;
  }

  /* カード内蔵のオフィス／店舗写真を「タイトルの直後・本文の前」に表示する */
  .service-mobile-img {
    display: block !important;
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 15px 0;
  }

  .section {
    padding: 64px 0;
  }

  .company-table th,
  .company-table td,
  .recruit-table th,
  .recruit-table td {
    display: block;
    width: 100%;
    padding: 14px 20px;
  }

  .company-table th,
  .recruit-table th {
    padding-bottom: 4px;
    border-bottom: none;
  }

  .company-table tr,
  .recruit-table tr {
    display: block;
    border-bottom: 1px solid var(--color-border);
    padding: 12px 0;
  }

  .news-item {
    flex-wrap: wrap;
    gap: 10px;
  }

  .recruit-banner {
    padding: 48px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap {
    padding: 28px 22px;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .btn {
    padding: 14px 28px;
  }
}

/* =========================================================
   19. Page Hero Override（事業内容・会社概要・採用情報の3ページ限定）

   body.page-hero-custom は、page-services.php / page-company.php /
   page-recruit.php の3テンプレートが選択された固定ページにのみ
   functions.php（osuplus_body_classes）から付与される目印クラスです。
   他のページ（トップページ・お知らせ・お問い合わせ等）には付与されないため、
   このセクションの指定は当該3ページ以外に一切影響しません。
========================================================= */
body.page-hero-custom .page-hero {
  background: #ffffff;
  padding: 48px 0;
  overflow: hidden;
}

body.page-hero-custom .page-hero h1 {
  color: #0a2540;
  text-align: center;
  opacity: 0;
  animation: osuplus-hero-title-in 0.9s ease-out both;
}

/* タイトル下のブランドカラー・アクセントライン */
body.page-hero-custom .page-hero h1::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, var(--color-blue), var(--color-blue-dark));
  border-radius: 2px;
  transform-origin: left center;
  opacity: 0;
  animation: osuplus-hero-line-in 0.6s ease-out 0.3s both;
}

body.page-hero-custom .page-hero p {
  color: #5a6a85;
  text-align: center;
  opacity: 0;
  animation: osuplus-hero-text-in 0.6s ease-out 0.5s both;
}

/* タイトル：letter-spacingが狭い状態からじわっと広がりながら浮き出る */
@keyframes osuplus-hero-title-in {
  0% {
    opacity: 0;
    letter-spacing: -0.05em;
  }
  100% {
    opacity: 1;
    letter-spacing: 0.08em;
  }
}

/* アクセントライン：左端を起点に右へスッと伸びる */
@keyframes osuplus-hero-line-in {
  0% {
    opacity: 1;
    transform: scaleX(0);
  }
  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* リード文：タイトルの動きを邪魔しないシンプルなフェードインのみ */
@keyframes osuplus-hero-text-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-hero-custom .page-hero h1,
  body.page-hero-custom .page-hero h1::after,
  body.page-hero-custom .page-hero p {
    animation: none;
    opacity: 1;
    letter-spacing: normal;
    transform: none;
  }
}

@media (max-width: 768px) {
  body.page-hero-custom .page-hero {
    padding: 36px 0;
  }

  body.page-hero-custom .page-hero h1 {
    font-size: 28px;
  }

  body.page-hero-custom .page-hero p {
    font-size: 0.95rem;
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  body.page-hero-custom .page-hero {
    padding: 32px 0;
  }

  body.page-hero-custom .page-hero h1 {
    font-size: 24px;
    margin-bottom: 14px;
  }

  body.page-hero-custom .page-hero p {
    font-size: 0.9rem;
    line-height: 1.7;
  }
}
