/*
Theme Name: ATLAS工務店テーマ
Theme URI: https://example.com
Author: MJE INC.
Author URI: https://example.com
Description: 工務店・建築系コーポレートサイト用カスタムテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: atlas-theme
*/

/* ============================================================
   CSS カスタムプロパティ（変数）
   ============================================================ */
:root {
  --color-primary:    #5a6b5f;
  --color-primary-dark: #3d4f42;
  --color-accent:     #e8c840;
  --color-white:      #ffffff;
  --color-black:      #111111;
  --color-gray:       #f5f5f3;
  --color-text:       #333333;
  --color-text-light: #666666;
  --color-border:     #e0e0e0;
  --color-footer-bg:  #3d4f42;

  --font-en:   'Oswald', sans-serif;
  --font-ja:   'Noto Sans JP', sans-serif;

  --container-width: 1100px;
  --container-padding: 0 20px;

  --transition: 0.3s ease;
}

/* ============================================================
   リセット & ベース
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.8;
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition);
}

a:hover {
  opacity: 0.8;
}

ul, ol {
  list-style: none;
}

/* ============================================================
   コンテナ
   ============================================================ */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ============================================================
   ヘッダー
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

/* TOPページMV上は透過 */
.site-header--transparent {
  background: transparent;
}

/* スクロール後・下層ページ */
.site-header--scrolled,
.site-header--solid {
  background: var(--color-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 30px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ロゴ */
.site-header__logo a {
  display: flex;
  align-items: center;
}

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

.site-header__logo-text {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-primary);
}

.site-header--transparent .site-header__logo-text,
.site-header--transparent .site-header__logo img.logo--white {
  color: var(--color-white);
}

/* ロゴ切り替え */
.logo--default { display: block; }
.logo--white   { display: none; }
.site-header--transparent .logo--default { display: none; }
.site-header--transparent .logo--white   { display: block; }

/* ハンバーガー */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-primary);
  transition: all 0.35s ease;
  transform-origin: center;
}

.site-header--transparent .nav-toggle span {
  background: var(--color-white);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  background: var(--color-primary);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
  background: var(--color-primary);
}

/* ドロワーメニュー */
.drawer-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(380px, 100%);
  height: 100%;
  background: var(--color-footer-bg);
  z-index: 1050;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 50px;
}

.drawer-nav.is-open {
  right: 0;
}

.drawer-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.drawer-nav__list li {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.drawer-nav__list li:first-child {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.drawer-nav__list a {
  display: block;
  padding: 18px 0;
  color: var(--color-white);
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.drawer-nav__list a:hover {
  color: var(--color-accent);
  opacity: 1;
}

.drawer-nav__list a small {
  display: block;
  font-family: var(--font-ja);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
  text-transform: none;
}

/* オーバーレイ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.drawer-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

/* ============================================================
   ヒーローバナー（下層ページ共通）
   ============================================================ */
.page-hero {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-dark);
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.6);
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
}

.page-hero__en {
  font-family: var(--font-en);
  font-size: 52px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
}

.page-hero__ja {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2em;
  margin-top: 10px;
  opacity: 0.8;
}

/* ============================================================
   セクション共通
   ============================================================ */
.section {
  padding: 90px 0;
}

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

.section-label {
  margin-bottom: 50px;
  text-align: center;
}

.section-label__en {
  font-family: var(--font-en);
  font-size: 52px;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  line-height: 1;
}

.section-label__ja {
  font-size: 13px;
  color: var(--color-text-light);
  letter-spacing: 0.2em;
  margin-top: 8px;
}

/* ============================================================
   TOPページ：MV（メインビジュアル）
   ============================================================ */
.mv {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.mv__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.mv__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.2) 60%,
    transparent 100%
  );
}

.mv__inner {
  position: relative;
  z-index: 1;
  padding: 0 60px;
  color: var(--color-white);
}

.mv__copy {
  font-family: var(--font-ja);
  font-size: 52px;
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: 0.04em;
  white-space: pre-line;
}

.mv__sub {
  font-size: 14px;
  font-weight: 400;
  margin-top: 20px;
  opacity: 0.85;
  line-height: 1.9;
  max-width: 420px;
}

.mv__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-white);
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: scrollBounce 2s infinite;
}

.mv__scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.6);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   TOPページ：NEWS セクション
   ============================================================ */
.top-news {
  padding: 70px 0;
}

.top-news__inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  align-items: start;
}

.top-news__head {}

.top-news__head .section-label {
  text-align: left;
  margin-bottom: 20px;
}

.top-news__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-top: 20px;
}

.top-news__more::after {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--color-primary);
}

.top-news__list {
  list-style: none;
}

.top-news__item {
  border-bottom: 1px solid var(--color-border);
}

.top-news__item:first-child {
  border-top: 1px solid var(--color-border);
}

.top-news__item a {
  display: grid;
  grid-template-columns: 120px auto 1fr 24px;
  align-items: center;
  gap: 15px;
  padding: 18px 0;
  transition: color var(--transition);
}

.top-news__item a:hover {
  color: var(--color-primary);
  opacity: 1;
}

.top-news__date {
  font-size: 13px;
  color: var(--color-text-light);
  white-space: nowrap;
}

.top-news__cat {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 11px;
  padding: 3px 10px;
  white-space: nowrap;
}

.top-news__title {
  font-size: 14px;
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-news__arrow {
  color: var(--color-primary);
  font-size: 16px;
}

/* ============================================================
   TOPページ：画像＋テキスト セクション（About/Service/Recruit）
   ============================================================ */
.top-split {
  padding: 0;
}

.top-split__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.top-split--reverse .top-split__inner {
  direction: rtl;
}

.top-split--reverse .top-split__content {
  direction: ltr;
}

.top-split__image {
  overflow: hidden;
}

.top-split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.top-split__inner:hover .top-split__image img {
  transform: scale(1.04);
}

.top-split__content {
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px 60px;
}

.top-split--gray .top-split__content {
  background: var(--color-gray);
}

.top-split__label-en {
  font-family: var(--font-en);
  font-size: 48px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  text-transform: uppercase;
  line-height: 1;
}

.top-split__label-ja {
  font-size: 12px;
  color: var(--color-text-light);
  letter-spacing: 0.2em;
  margin-top: 6px;
}

.top-split__heading {
  font-family: var(--font-ja);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.6;
  margin-top: 28px;
  white-space: pre-line;
}

.top-split__desc {
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text-light);
  margin-top: 16px;
}

.top-split__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-primary);
  padding-bottom: 4px;
  transition: all var(--transition);
}

.top-split__btn:hover {
  color: var(--color-primary-dark);
  opacity: 1;
  padding-right: 8px;
}

/* ============================================================
   TOPページ：WORKS（実績）
   ============================================================ */
/* （必要に応じて追加） */

/* ============================================================
   TOPページ：COMPANY（会社案内スニペット）
   ============================================================ */
/* ============================================================
   CONTACTバナー（フッター上部）
   ============================================================ */
.contact-banner {
  position: relative;
  padding: 80px 0;
  background: var(--color-primary-dark);
  overflow: hidden;
}

.contact-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.4);
}

.contact-banner__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
}

.contact-banner__en {
  font-family: var(--font-en);
  font-size: 52px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-banner__ja {
  font-size: 13px;
  letter-spacing: 0.2em;
  opacity: 0.7;
  margin-top: 6px;
}

.contact-banner__tel {
  font-family: var(--font-en);
  font-size: 36px;
  font-weight: 300;
  margin-top: 30px;
  letter-spacing: 0.05em;
}

.contact-banner__tel a {
  color: var(--color-white);
}

.contact-banner__info {
  font-size: 13px;
  opacity: 0.7;
  margin-top: 8px;
  letter-spacing: 0.05em;
}

.contact-banner__btn {
  display: inline-block;
  margin-top: 30px;
  padding: 16px 50px;
  background: var(--color-white);
  color: var(--color-primary-dark);
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition);
}

.contact-banner__btn:hover {
  background: var(--color-accent);
  color: var(--color-black);
  opacity: 1;
}

/* ============================================================
   フッター
   ============================================================ */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-white);
}

.site-footer__main {
  padding: 60px 0 40px;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: start;
}

.site-footer__logo img {
  height: 50px;
  width: auto;
  margin-bottom: 16px;
}

.site-footer__logo-text {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.site-footer__address {
  font-size: 13px;
  line-height: 1.8;
  opacity: 0.75;
}

.site-footer__nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__nav a {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  letter-spacing: 0.05em;
  transition: color var(--transition);
}

.site-footer__nav a:hover {
  color: var(--color-white);
  opacity: 1;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
  text-align: center;
}

.site-footer__copy {
  font-size: 12px;
  opacity: 0.5;
  letter-spacing: 0.05em;
}

/* ============================================================
   新着情報一覧（home.php）
   ============================================================ */
.news-list {
  padding: 70px 0 90px;
}

.news-list__items {
  list-style: none;
}

.news-list__item {
  border-bottom: 1px solid var(--color-border);
}

.news-list__item:first-child {
  border-top: 1px solid var(--color-border);
}

.news-list__item a {
  display: grid;
  grid-template-columns: 110px auto 1fr 20px;
  align-items: center;
  gap: 18px;
  padding: 22px 10px;
  transition: color var(--transition);
}

.news-list__item a:hover {
  color: var(--color-primary);
  opacity: 1;
}

.news-list__date {
  font-size: 13px;
  color: var(--color-text-light);
}

.news-list__cat {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 11px;
  padding: 4px 12px;
  white-space: nowrap;
  min-width: 80px;
  text-align: center;
}

.news-list__title {
  font-size: 15px;
  line-height: 1.6;
}

.news-list__arrow {
  text-align: right;
  color: var(--color-primary);
}

/* ページネーション */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 50px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  font-size: 14px;
  transition: all var(--transition);
}

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

.pagination .page-numbers:hover:not(.current) {
  border-color: var(--color-primary);
  color: var(--color-primary);
  opacity: 1;
}

.pagination .prev.page-numbers,
.pagination .next.page-numbers {
  width: auto;
  padding: 0 14px;
  font-size: 12px;
}

/* ページネーション総数表示 */
.pagination-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pagination-total {
  font-size: 13px;
  color: var(--color-text-light);
}

/* ============================================================
   新着情報詳細（single.php）
   ============================================================ */
.single-news {
  padding: 70px 0 90px;
}

.single-news__meta {
  text-align: right;
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 30px;
}

.single-news__title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 30px;
}

.single-news__thumbnail {
  margin-bottom: 30px;
  border-radius: 2px;
  overflow: hidden;
}

.single-news__thumbnail img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
}

.single-news__body {
  font-size: 15px;
  line-height: 2;
}

.single-news__body p { margin-bottom: 1.5em; }
.single-news__body h2 { font-size: 22px; font-weight: 700; margin: 2em 0 0.8em; }
.single-news__body h3 { font-size: 18px; font-weight: 700; margin: 1.5em 0 0.6em; }
.single-news__body ul, .single-news__body ol { margin: 1em 0 1.5em 1.5em; }
.single-news__body ul li { list-style: disc; }
.single-news__body ol li { list-style: decimal; }
.single-news__body img { margin: 1.5em 0; }

.single-news__back {
  margin-top: 60px;
  text-align: center;
}

.btn-back {
  display: inline-block;
  padding: 16px 50px;
  background: var(--color-primary-dark);
  color: var(--color-white);
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.15em;
  transition: background var(--transition);
}

.btn-back:hover {
  background: var(--color-primary);
  opacity: 1;
}

/* ============================================================
   お問い合わせフォーム（CF7）
   ============================================================ */
.contact-page {
  padding: 70px 0 90px;
}

.contact-page__lead {
  text-align: center;
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 60px;
  color: var(--color-text-light);
}

/* CF7スタイリング */
.wpcf7 {
  max-width: 760px;
  margin: 0 auto;
}

.wpcf7 .form-group {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.wpcf7 label {
  font-size: 14px;
  font-weight: 700;
}

.wpcf7 .req {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 10px;
  padding: 2px 6px;
  margin-left: 6px;
  vertical-align: middle;
}

.wpcf7 .opt {
  display: inline-block;
  background: var(--color-border);
  color: var(--color-text-light);
  font-size: 10px;
  padding: 2px 6px;
  margin-left: 6px;
  vertical-align: middle;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 0;
  font-family: var(--font-ja);
  font-size: 15px;
  background: var(--color-white);
  transition: border-color var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.wpcf7 textarea {
  height: 180px;
  resize: vertical;
}

.wpcf7 .wpcf7-radio,
.wpcf7 .wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.wpcf7 .wpcf7-list-item {
  margin: 0;
}

.wpcf7 input[type="submit"] {
  display: block;
  width: 100%;
  max-width: 380px;
  margin: 40px auto 0;
  padding: 18px;
  background: var(--color-primary-dark);
  color: var(--color-white);
  border: none;
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
}

.wpcf7 input[type="submit"]:hover {
  background: var(--color-primary);
}

.wpcf7-response-output {
  margin-top: 20px;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  font-size: 14px;
}

/* ============================================================
   お問い合わせ完了
   ============================================================ */
.contact-thanks {
  padding: 100px 0;
  text-align: center;
}

.contact-thanks__icon {
  font-size: 50px;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.contact-thanks__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.contact-thanks__text {
  font-size: 15px;
  line-height: 2;
  color: var(--color-text-light);
  margin-bottom: 40px;
}

.btn-top {
  display: inline-block;
  padding: 16px 50px;
  background: var(--color-primary-dark);
  color: var(--color-white);
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background var(--transition);
}

.btn-top:hover {
  background: var(--color-primary);
  opacity: 1;
}

/* ============================================================
   プライバシーポリシー
   ============================================================ */
.privacy-page {
  padding: 70px 0 90px;
}

.privacy-page .entry-content {
  max-width: 820px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 2;
}

.privacy-page .entry-content h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 2.5em 0 0.8em;
  padding-left: 12px;
  border-left: 3px solid var(--color-primary);
}

.privacy-page .entry-content p { margin-bottom: 1.4em; }
.privacy-page .entry-content ul { margin: 1em 0 1.5em 1.5em; }
.privacy-page .entry-content ul li { list-style: disc; }

/* ============================================================
   アニメーション（スクロール フェードイン）
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 1024px) {
  .top-split__content {
    padding: 50px 40px;
  }

  .top-news__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .top-news__head .section-label {
    text-align: center;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 0 20px;
  }

  .section {
    padding: 60px 0;
  }

  /* MV */
  .mv__inner {
    padding: 0 24px;
  }

  .mv__copy {
    font-size: 32px;
    line-height: 1.25;
  }

  /* ヒーロー */
  .page-hero {
    height: 200px;
  }

  .page-hero__en {
    font-size: 36px;
  }

  /* top-split: スタック */
  .top-split__inner {
    grid-template-columns: 1fr;
    direction: ltr !important;
  }

  .top-split--reverse .top-split__inner {
    direction: ltr;
  }

  .top-split__image {
    height: 260px;
  }

  .top-split__content {
    padding: 44px 24px;
  }

  .top-split__label-en {
    font-size: 36px;
  }

  .top-split__heading {
    font-size: 20px;
  }

  /* section-label */
  .section-label__en {
    font-size: 38px;
  }

  /* news list */
  .news-list__item a,
  .top-news__item a {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 8px;
    padding: 16px 6px;
  }

  .top-news__date,
  .news-list__date {
    grid-column: 1;
    grid-row: 1;
  }

  .top-news__cat,
  .news-list__cat {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
  }

  .top-news__title,
  .news-list__title {
    grid-column: 1 / -1;
    grid-row: 2;
    white-space: normal;
  }

  .top-news__arrow,
  .news-list__arrow {
    display: none;
  }

  /* contact form */
  .wpcf7 .form-group {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* footer */
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* single */
  .single-news__title {
    font-size: 20px;
  }

  /* contact banner */
  .contact-banner__tel {
    font-size: 26px;
  }

  .contact-banner__en {
    font-size: 36px;
  }

  .contact-banner__btn {
    padding: 14px 30px;
  }
}

@media (max-width: 480px) {
  .mv__copy {
    font-size: 22px;
  }

  .site-header__inner {
    padding: 0 20px;
  }
}

/* ============================================================
   TOPページ：ABOUT US（左テキスト・右画像）
   ============================================================ */
.top-about {
  background: var(--color-white);
}

.top-about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.top-about__content {
  padding: 20px 0;
}

.top-about__content .section-label__en {
  text-align: left;
  line-height: 1;
}

.top-about__content .section-label__ja {
  text-align: left;
  margin-bottom: 24px;
}

.top-about__heading {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.6;
  margin-top: 24px;
  color: var(--color-text);
}

.top-about__desc {
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text-light);
  margin-top: 18px;
}

.top-about__image {
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 4/3;
}

.top-about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.top-about__image:hover img {
  transform: scale(1.03);
}

.top-about__image--placeholder {
  width: 100%;
  height: 100%;
  background: #c8d1cb;
  min-height: 380px;
}

/* ============================================================
   TOPページ：SERVICE（事業案内 3カラムカード）
   ============================================================ */
.section--green {
  background: var(--color-primary);
}

.section--green .section-label__en {
  color: var(--color-white);
}

.section--green .section-label__ja {
  color: rgba(255,255,255,0.65);
}

.top-service__grid {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.top-service__card {
  background: var(--color-white);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* 偶数カード：画像を右に */
.top-service__card:nth-child(even) {
  direction: rtl;
}
.top-service__card:nth-child(even) .top-service__card-body {
  direction: ltr;
}

.top-service__card-img {
  aspect-ratio: auto;
  overflow: hidden;
  min-height: 320px;
}

.top-service__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* ホバーエフェクトなし */

.top-service__card-img--placeholder {
  width: 100%;
  height: 100%;
  background: #b8c2bc;
  min-height: 320px;
}

.top-service__card-body {
  padding: 50px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  direction: ltr;
}

.top-service__card-sub {
  font-size: 11px;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.top-service__card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: 12px;
}

.top-service__card-text {
  font-size: 13px;
  line-height: 1.85;
  color: var(--color-text-light);
}

/* ============================================================
   TOPページ：WORKS（スライダー）
   ============================================================ */
.top-works {
  overflow: hidden;
  position: relative;
}

.top-works__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.top-works .container,
.top-works__slider-wrap {
  position: relative;
  z-index: 1;
}

.top-works .container {
  margin-bottom: 40px;
}

.top-works__slider-wrap {
  position: relative;
  overflow: hidden;
  padding: 0 60px 50px;
}

.top-works__slider {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}

.top-works__slide {
  flex: 0 0 calc(25% - 15px);
  margin-right: 20px;
  cursor: pointer;
}

.top-works__slide-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #e0e0e0;
}

.top-works__slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.top-works__slide:hover .top-works__slide-img img {
  transform: scale(1.06);
}

.top-works__slide-img--placeholder {
  width: 100%;
  height: 100%;
  background: #c8d1cb;
  min-height: 200px;
}

.top-works__slide-caption {
  padding: 12px 4px 0;
}

.top-works__slide-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.top-works__slide-text {
  font-size: 12px;
  color: var(--color-text-light);
}

/* スライダーボタン */
.works-slider-btn {
  position: absolute;
  top: calc(50% - 50px);
  transform: translateY(-50%);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  width: 44px;
  height: 44px;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  transition: background var(--transition), color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.works-slider-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.works-slider-btn--prev { left: 16px; }
.works-slider-btn--next { right: 16px; }

/* スライダードット */
.works-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
}

.works-slider-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.works-slider-dots .dot.is-active {
  background: var(--color-primary);
  transform: scale(1.3);
}

/* ============================================================
   TOPページ：COMPANY（会社概要）
   ============================================================ */
.section--dark {
  background: var(--color-footer-bg);
  position: relative;
}

.section--dark__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.section--dark__bg + .container {
  position: relative;
  z-index: 1;
}

/* bg画像があるときコンテナも前面に */
.top-company--hasbg .container {
  position: relative;
  z-index: 1;
}

.section--dark .section-label__en {
  color: var(--color-white);
}

.section--dark .section-label__ja {
  color: rgba(255,255,255,0.55);
}

.top-company__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.top-company__table {
  display: flex;
  flex-direction: column;
}

.top-company__row {
  display: grid;
  grid-template-columns: 130px 1fr;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 14px 0;
}

.top-company__row:first-child {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.top-company__row dt {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  padding-right: 16px;
}

.top-company__row dd {
  font-size: 14px;
  color: var(--color-white);
  line-height: 1.7;
}

.top-company__map {
  height: 360px;
  overflow: hidden;
  background: #555;
}

.top-company__map iframe {
  display: block;
}

/* ============================================================
   TOPページ：CONTACT（フォーム直接表示）
   ============================================================ */
.top-contact {
  background: var(--color-white);
}

/* 電話ボックス：左ラベル ｜ 右TEL */
.top-contact__tel-box {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border: 1px solid #b8cdd4;
  max-width: 780px;
  margin: 0 auto 40px;
}

.top-contact__tel-left {
  padding: 24px 32px;
  font-size: 14px;
  color: #5a8fa0;
  letter-spacing: 0.08em;
  border-right: 1px solid #b8cdd4;
}

.top-contact__tel-right {
  padding: 20px 40px;
  text-align: center;
}

.top-contact__tel {
  display: block;
  font-family: var(--font-en);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-text);
  transition: color var(--transition);
  line-height: 1;
}

.top-contact__tel:hover {
  color: var(--color-primary);
  opacity: 1;
}

.top-contact__tel-note {
  font-size: 12px;
  color: #5a8fa0;
  margin-top: 6px;
  letter-spacing: 0.04em;
  text-align: center;
}

/* リードテキスト */
.top-contact__lead {
  text-align: center;
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text-light);
  margin-bottom: 40px;
}

.top-contact__form {
  max-width: 780px;
  margin: 0 auto;
}

/* ============================================================
   レスポンシブ追加分
   ============================================================ */
@media (max-width: 1024px) {
  .top-service__card {
    grid-template-columns: 1fr 1fr;
  }

  .top-service__card-body {
    padding: 36px 36px;
  }

  .top-works__slide {
    flex: 0 0 calc(33.333% - 14px);
  }
}

@media (max-width: 768px) {
  /* ABOUT */
  .top-about__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .top-about__image {
    order: -1; /* SP時は画像を上に */
    aspect-ratio: 16/9;
  }

  /* SERVICE */
  .top-service__card {
    grid-template-columns: 1fr;
    direction: ltr !important;
  }

  .top-service__card-img {
    min-height: 220px;
  }

  .top-service__card-img--placeholder {
    min-height: 220px;
  }

  .top-service__card-body {
    padding: 28px 24px;
  }

  /* WORKS */
  .top-works__slide {
    flex: 0 0 calc(80% - 10px);
  }

  .works-slider-btn--prev { left: 6px; }
  .works-slider-btn--next { right: 6px; }

  /* COMPANY */
  .top-company__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .top-company__map {
    height: 250px;
  }

  /* CONTACT */
  .top-contact__tel-box {
    grid-template-columns: 1fr;
  }

  .top-contact__tel-left {
    border-right: none;
    border-bottom: 1px solid #b8cdd4;
    padding: 16px 20px;
    text-align: center;
  }

  .top-contact__tel-right {
    padding: 18px 20px;
  }

  .top-contact__tel {
    font-size: 28px;
  }
}

/* ============================================================
   WORKS / COMPANY 背景画像オーバーレイ
   ============================================================ */
.top-works__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.75);
}

.section--dark__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(40,55,44,0.78);
}
