/* ======================================================
   遠藤木工所 メインCSS
   カラーパレット：ベージュ / ダークブラウン / ウォームオレンジ
   ====================================================== */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@300;400;500;700&family=Noto+Sans+JP:wght@300;400;500&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

/* ---- CSS変数 ---- */
:root {
  --color-bg: #ffffff;
  --color-bg-dark: #ede6dc;
  --color-brown: #3a2e1e;
  --color-brown-mid: #5c4a30;
  --color-beige: #c8b89a;
  --color-accent: #c8831a;
  --color-white: #ffffff;
  --color-text: #2c2418;
  --color-text-mid: #6b5a42;
  --color-gray: #9e8e7a;

  --font-serif: 'Noto Serif JP', 'Cormorant Garamond', serif;
  --font-sans: 'Noto Sans JP', sans-serif;
  --font-en: 'Cormorant Garamond', serif;

  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --max-width: 1200px;
  --section-pad: 100px 40px;
}

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

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

body {
  font-family: "游明朝", YuMincho, "Hiragino Mincho ProN W3", "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
  background-color: var(--color-bg);
  color: #000;
  line-height: 1.8;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* ======================================================
   ユーティリティ
   ====================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: var(--section-pad);
}

.section-title {
  font-family: var(--font-en);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  color: #000;
  text-align: center;
  margin-bottom: 60px;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--color-accent);
  margin: 16px auto 0;
}

.btn-primary {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 1rem;
  letter-spacing: 0.2em;
  padding: 14px 40px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary:hover {
  background: var(--color-brown);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-block;
  border: 1px solid var(--color-brown);
  color: #000;
  font-size: 1rem;
  letter-spacing: 0.2em;
  padding: 12px 36px;
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--color-brown);
  color: var(--color-white);
}

/* フェードインアニメーション */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ======================================================
   ヘッダー / ナビゲーション
   ====================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(245, 240, 235, 0.95);
  backdrop-filter: blur(10px);
  padding: 14px 40px;
  box-shadow: 0 2px 20px rgba(58, 46, 30, 0.08);
}

.site-logo img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: var(--transition);
}

.site-header.scrolled .site-logo img {
  filter: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.site-nav a {
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--color-white);
  transition: var(--transition);
  position: relative;
}

.site-header.scrolled .site-nav a {
  color: #000;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.site-nav a:hover::after {
  width: 100%;
}

.nav-contact {
  border: 1px solid var(--color-white);
  padding: 8px 20px;
  font-size: 1rem !important;
  letter-spacing: 0.12em !important;
}

.site-header.scrolled .nav-contact {
  border-color: #000;
}

.nav-contact:hover {
  background: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
  color: var(--color-white) !important;
}

.nav-contact::after {
  display: none !important;
}

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 1px;
  background: var(--color-white);
  transition: var(--transition);
}

.site-header.scrolled .hamburger span {
  background: var(--color-brown);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--color-brown);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--color-brown);
}

/* モバイルメニュー */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100svh;
  background: var(--color-bg);
  z-index: 1050;
  padding: 100px 40px 40px;
  flex-direction: column;
  gap: 32px;
  transition: right 0.4s ease;
  box-shadow: -4px 0 30px rgba(58, 46, 30, 0.12);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav a {
  font-family: var(--font-en);
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  color: #000;
  border-bottom: 1px solid var(--color-bg-dark);
  padding-bottom: 16px;
}

/* ======================================================
   TOPページ：ヒーローセクション（2分割 + 中央scroll down）
   ====================================================== */
.hero {
  height: var(--real-vh, 100svh);
  min-height: 560px;
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  position: relative;
  background: var(--color-white);
  overflow: hidden;
}

/* 左パネル */
.hero-left {
  position: relative;
  overflow: hidden;
}

.hero-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 8s ease;
}

.hero-left:hover img {
  transform: none;
}

/* 左：縦書きテキストオーバーレイ（中央） */
.hero-title-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.hero-title-jp {
  writing-mode: vertical-rl;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 400;
  color: var(--color-white);
  letter-spacing: 0.6em;
  line-height: 1.6;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* 中央：scroll down インジケーター */
.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
  z-index: 20;
  background: var(--color-white);
}

.hero-center-line {
  width: 2px;
  flex: 1;
  background: var(--color-brown);
  opacity: 0.5;
}

.hero-scroll-text {
  writing-mode: vertical-rl;
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: #000;
  opacity: 0.85;
  margin: 22px 0;
  text-transform: lowercase;
}

.hero-scroll-arrow {
  font-size: 1.4rem;
  font-weight: 700;
  color: #000;
  opacity: 0.75;
  animation: bounce-arrow 2s ease-in-out infinite;
  margin-bottom: 16px;
  line-height: 1;
}

@keyframes bounce-arrow {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

/* モバイル用hero-right画像（デフォルト非表示） */
.hero-right-mobile-wrap {
  display: none;
}

.hero-right-mobile-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-right-mobile-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-white);
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  line-height: 1.8;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

/* 右パネル */
.hero-right {
  position: relative;
  overflow: hidden;
}

.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 8s ease;
}

.hero-right:hover img {
  transform: none;
}

/* 右：kinari wood work テキストオーバーレイ（中央） */
.hero-right-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  color: var(--color-white);
  font-family: var(--font-en);
  font-size: clamp(1.2rem, 2.2vw, 1.9rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  line-height: 1.7;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  text-align: left;
  white-space: nowrap;
}

/* ======================================================
   MOVIEセクション
   ====================================================== */
.movie-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
}

.movie-section video,
.movie-section .movie-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.movie-label {
  position: relative;
  z-index: 2;
  font-family: var(--font-en);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--color-white);
  letter-spacing: 0.5em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* ======================================================
   会社紹介テキストセクション
   ====================================================== */
.intro-section {
  padding: 40px 50px 40px 0;
  display: flex;
  justify-content: flex-end;
}

.intro-section .intro-catch {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 300;
  line-height: 1.6;
  color: #000;
  margin-bottom: 40px;
  letter-spacing: 0.05em;
  text-align: left;
}

.intro-section .intro-body {
  font-size: 1rem;
  line-height: 1;
  color: #000;
  text-align: left;
}

/* ======================================================
   WORKSセクション（左写真3fr / 右ベージュ赃景2fr）
   ====================================================== */
.works-section {
  display: grid;
  grid-template-columns: 3fr 2fr;
  min-height: 480px;
  background: var(--color-bg-dark);
}

.works-left {
  position: relative;
  overflow: hidden;
}

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

/* works-right: 下paddingなしで直線をギリギリまで伸ばす */
.works-right {
  padding: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-dark);
  position: relative;
  overflow: visible;
}

/* WORKSタイトル */
.works-title {
  font-family: var(--font-en);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 300;
  letter-spacing: 0.5em;
  color: #000;
  margin-bottom: 50px;
  width: 100%;
  text-align: center;
}

/* 丸ボタンと直線のコンテナ */
.works-circle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* 建具のおはなし 画像ボタン */
.works-circle-btn {
  display: block;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.works-circle-btn img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  display: block;
}

.works-circle-btn:hover img {
  opacity: 0.85;
}

/* 丸ボタン下の直線 — services-list（グレー）の中まで延伸 */
.works-circle-btn::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  width: 1.5px;
  height: 400px;
  background: var(--color-brown-mid);
  opacity: 0.65;
  clip-path: inset(0 0 100% 0);
  animation: lineSlide 2.4s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes lineSlide {
  0% {
    clip-path: inset(0 0 100% 0);
  }

  45% {
    clip-path: inset(0 0 0% 0);
  }

  90% {
    clip-path: inset(100% 0 0 0);
  }

  100% {
    clip-path: inset(100% 0 0 0);
  }
}

@keyframes lineSlideUp {
  0% {
    clip-path: inset(100% 0 0 0);
  }

  45% {
    clip-path: inset(0 0 0% 0);
  }

  90% {
    clip-path: inset(0 0 100% 0);
  }

  100% {
    clip-path: inset(0 0 100% 0);
  }
}

.works-circle-line {
  display: none;
}

/* サービス3つ（丸アイコン）- グレー背景 */
.services-grid {
  padding: 100px 40px 0;
  background: var(--color-bg);
  text-align: left;
  position: relative;
}

.services-grid .section-title {
  margin-bottom: 60px;
  text-align: left;
}

.services-grid .section-title::after {
  margin-left: 0;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1300px;
  margin: 0 auto 0;
  background: #d1d1d1;
  position: relative;
  z-index: 2;
}

.service-item {
  text-align: center;
  padding: 56px 40px 48px;
}

.service-img-wrap {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 32px;
}

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

.service-img-wrap:hover img {
  transform: none;
}

.service-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: #000;
  margin-bottom: 20px;
  letter-spacing: 0.08em;
}

.service-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #000;
  text-align: left;
  max-width: 260px;
  margin: 0 auto;
}

/* ボタン + 上下縦線ラッパー */
.services-cta-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 80px 0;
  z-index: 0;
}

/* ボタン自体は線より上に */
.services-cta-wrap .btn-primary {
  position: relative;
  z-index: 1;
}

/* 上向き線（services-listの下に潜る） */
.services-cta-wrap::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5px;
  background: var(--color-brown-mid);
  opacity: 0.65;
  bottom: 50%;
  height: 280px;
  z-index: 0;
  clip-path: inset(0 0 100% 0);
  animation: lineSlide 2.4s ease-in-out infinite;
}

/* 下向き線（gallery-section-titleで終端） */
.services-cta-wrap::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5px;
  background: var(--color-brown-mid);
  opacity: 0.65;
  top: 50%;
  height: 135px;
  z-index: 0;
  clip-path: inset(0 0 100% 0);
  animation: lineSlide 2.4s ease-in-out 1.08s infinite;
}

/* ======================================================
   施工例ギャラリー（Slick スライダー）
   ====================================================== */
.gallery-section {
  padding: 0;
  background: none;
  overflow: hidden;
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

.gallery-section-title {
  font-family: var(--font-en);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 300;
  letter-spacing: 0.4em;
  color: #000;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
  background: var(--color-bg);
}


.gallery-slick {
  width: 100%;
}

.gallery-item {
  width: 360px;
  position: relative;
  overflow: visible;
  padding: 0 20px;
}

.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

#gallery-slick-2 {
  margin: 80px 0;
}

#gallery-slick-2 .gallery-item img {
  object-position: bottom;
}

.gallery-item:hover img {
  transform: none;
}

.gallery-caption {
  padding: 16px 0 0;
  background: transparent;
  text-align: center;
}

.caption-place {
  font-size: 1rem;
  color: #000;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.caption-client {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: #000;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.caption-genre {
  font-size: 1rem;
  color: #000;
  letter-spacing: 0.08em;
}

/* ======================================================
   オーダーメイドCTAバナー
   ====================================================== */
.cta-banner {
  background: var(--color-brown);
  padding: 25px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/DSC05583.jpeg') center/cover no-repeat;
  opacity: 0.15;
}

.cta-banner-title {
  position: relative;
  z-index: 2;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--color-white);
  letter-spacing: 0.3em;
  margin-bottom: 20px;
  font-weight: 400;
}

.cta-banner-text {
  position: relative;
  z-index: 2;
  font-size: 1rem;
  color: #fff;
  line-height: 2;
  margin-bottom: 36px;
  max-width: 770px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-primary {
  position: relative;
  z-index: 2;
}

/* ======================================================
   FLOW（お問い合わせフロー）
   ====================================================== */
.flow-section {
  padding: 0px 40px;
  background: var(--color-bg);
  position: relative;
}

.flow-inner {
  max-width: 1300px;
  margin: 0 auto;
  background: #d1d1d1;
  padding: 60px;
}

.flow-section .section-title {
  text-align: left;
  margin-bottom: 50px;
  font-weight: bold;
}

.flow-section .section-title::after {
  display: none;
}

.flow-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin: 0 0 40px;
  flex-wrap: nowrap;
}

.flow-step {
  text-align: left;
  flex: 1;
}

.flow-step-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 80px;
  margin-bottom: 20px;
}

.flow-arrow {
  font-size: 3.5rem;
  color: #000;
  line-height: 1;
  flex-shrink: 0;
}

.flow-icon {
  width: 67px;
  height: 80px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
}

.flow-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(2.5);
}


.flow-step-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: #000;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.flow-step-desc {
  font-size: 1rem;
  color: #000;
  line-height: 1.9;
}

.flow-section .btn-wrap {
  text-align: right;
  margin-top: 10px;
}

.flow-cta-line-wrap {
  display: inline-block;
  position: relative;
}

.flow-cta-line-wrap::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  width: 1.5px;
  height: 190px;
  background: var(--color-brown-mid);
  opacity: 0.65;
  z-index: 4;
  clip-path: inset(0 0 100% 0);
  animation: lineSlide 2.4s ease-in-out infinite;
}

/* ======================================================
   SHOP LIST
   ====================================================== */
.shoplist-section {
  padding: var(--section-pad);
  background: var(--color-bg);
  position: relative;
}

.shoplist-header {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 40px;
  margin-bottom: 60px;
  position: relative;
  z-index: 5;
  background: var(--color-bg);
}

.shoplist-header-line {
  flex: 1;
  height: 6px;
  background: var(--color-brown-mid);
  opacity: 0.7;
}

.shoplist-header .section-title {
  white-space: nowrap;
  margin-bottom: 0;
  font-weight: bold;
}

.shoplist-header .section-title::after {
  display: none;
}

.shoplist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 60px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
}

.shoplist-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.shoplist-img {
  width: 140px;
  height: 200px;
  flex-shrink: 0;
  overflow: hidden;
}

.shoplist-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shoplist-info {
  flex: 1;
  min-width: 0;
}

.shoplist-info .shop-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: #000;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.shoplist-info .shop-sub {
  font-size: 0.9rem;
  color: #000;
  margin-bottom: 4px;
}

.shoplist-info .shop-address {
  font-size: 0.9rem;
  color: #000;
  line-height: 1.8;
  margin-bottom: 6px;
}

.shoplist-info .shop-link {
  font-size: 0.9rem;
  color: #000;
  word-break: break-all;
  text-decoration: none;
}

.shoplist-info .shop-link:hover {
  color: #000;
}

/* VIEW MORE ボタンエリア */
.viewmore-wrap {
  text-align: center;
  padding: 60px 40px 0;
}

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

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 70px 40px 50px;
}

.footer-logo img {
  height: 50px;
  width: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(0.8) sepia(1) hue-rotate(10deg) saturate(0.4);
}

.footer-company-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-white);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.footer-info {
  font-size: 1rem;
  line-height: 2.2;
  color: #fff;
}

.footer-nav-title {
  font-family: var(--font-en);
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--color-white);
  margin-bottom: 20px;
}

.footer-nav-list li {
  margin-bottom: 10px;
}

.footer-nav-list a {
  font-size: 1rem;
  color: #fff;
  transition: color 0.3s;
  letter-spacing: 0.05em;
}

.footer-nav-list a:hover {
  color: #000;
}

.footer-sns {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.footer-sns a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(200, 184, 154, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  transition: var(--transition);
  text-decoration: none;
}

.footer-sns a:hover {
  background: var(--color-accent);
  border-color: #000;
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(200, 184, 154, 0.15);
  text-align: center;
  padding: 24px 40px;
  font-size: 1rem;
  color: rgba(200, 184, 154, 0.5);
  letter-spacing: 0.05em;
}

.footer-bottom-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 12px;
}

.footer-bottom-nav a {
  color: rgba(200, 184, 154, 0.6);
  font-size: 1rem;
  transition: color 0.3s;
}

.footer-bottom-nav a:hover {
  color: #000;
}

/* ======================================================
   VIEW MOREページ（施工例一覧）
   ====================================================== */
.page-hero {
  height: 50svh;
  min-height: 300px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(40, 30, 15, 0.5);
}

.page-hero-title {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
}

.page-hero-title h1 {
  font-family: var(--font-en);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.4em;
  margin-bottom: 12px;
}

.page-hero-title .hero-sub {
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.7);
}

/* 施工例グリッド */
.works-archive {
  padding: var(--section-pad);
  background: var(--color-bg);
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 10px 28px;
  border: 1px solid var(--color-beige);
  font-size: 1rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
  color: #000;
  font-family: var(--font-sans);
}

.filter-tab.active,
.filter-tab:hover {
  background: var(--color-brown);
  color: var(--color-white);
  border-color: #000;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.work-card {
  position: relative;
  overflow: hidden;
  background: var(--color-white);
  transition: var(--transition);
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(58, 46, 30, 0.14);
}

.work-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.work-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.work-card:hover .work-card-img img {
  transform: scale(1.08);
}

.work-card-body {
  padding: 20px 24px 24px;
}

.work-card-cat {
  display: inline-block;
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: #000;
  border: 1px solid var(--color-accent);
  padding: 3px 10px;
  margin-bottom: 10px;
}

.work-card-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: #000;
  line-height: 1.6;
}

/* ======================================================
   CONTACTページ
   ====================================================== */
.contact-section {
  padding: 100px 40px;
  max-width: 760px;
  margin: 0 auto;
}

.contact-intro {
  text-align: center;
  margin-bottom: 60px;
}

.contact-intro p {
  font-size: 1rem;
  line-height: 2.2;
  color: #000;
}

/* CF7スタイル上書き */
.wpcf7-form {
  display: grid;
  gap: 24px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-label {
  font-size: 1rem;
  font-weight: 500;
  color: #000;
  letter-spacing: 0.05em;
}

.form-label .required {
  color: #000;
  margin-left: 4px;
  font-size: 1rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-beige);
  background: var(--color-white);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: #000;
  transition: border-color 0.3s;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: #000;
}

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

.wpcf7-form .wpcf7-submit {
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  padding: 18px 60px;
  font-size: 1rem;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
  display: block;
  margin: 20px auto 0;
}

.wpcf7-form .wpcf7-submit:hover {
  background: var(--color-brown);
  transform: translateY(-2px);
}

/* 会社情報 */
.company-info {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid var(--color-beige);
}

.company-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.company-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.company-info-table th,
.company-info-table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-bg-dark);
  text-align: left;
  vertical-align: top;
}

.company-info-table th {
  color: #000;
  width: 100px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.company-info-table td {
  color: #000;
}

/* ======================================================
   レスポンシブ
   ====================================================== */
@media (max-width: 1024px) {
  :root {
    --section-pad: 70px 24px;
  }

  .btn-primary {
    padding: 14px 20px;
  }

  .container {
    padding: 0 24px;
  }

  .site-header {
    padding: 18px 24px;
  }

  .site-header.scrolled {
    padding: 14px 24px;
  }

  .site-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    height: var(--real-vh, 100svh);
    min-height: 480px;
  }

  .hero-center,
  .hero-right {
    display: none;
  }

  .hero-left {
    height: 100%;
  }

  .hero-title-wrap {
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* hero-right.jpg をkinari2上に表示 */
  .hero-right-mobile-wrap {
    display: block;
    position: relative;
    width: 100%;
    height: 60vw;
    flex-shrink: 0;
    margin-bottom: 50px;
  }

  #movie-second {
    flex-direction: column;
    align-items: stretch;
  }

  /* Movie */
  .movie-section {
    padding: 50px 0 0 0 !important;
  }

  .movie-section video {
    height: 56vw !important;
  }

  /* intro-section */
  .intro-section {
    display: block;
    padding: 60px 24px;
  }

  .intro-section .intro-body {
    line-height: 1.5;
  }

  .intro-section > div {
    max-width: 100% !important;
  }

  /* WORKS */
  .works-section {
    grid-template-columns: 1fr;
  }

  .works-left {
    height: 60vw;
  }

  .works-right {
    padding: 50px 24px;
  }

  /* works-circle-btn の線 */
  .works-circle-btn::after {
    height: 200px;
  }

  /* Services */
  .services-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .service-item {
    padding: 40px 24px;
  }

  .service-img-wrap {
    width: 160px;
    height: 160px;
  }

  /* Section 8 会社紹介テキスト2 */
  .sec-about2 {
    padding: 60px 24px !important;
  }

  .sec-about2-inner {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  /* Gallery */
  .shoplist-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .shoplist-item {
    flex-direction: column;
  }

  .shoplist-header-line {
    display: none;
  }

  .shoplist-section {
    padding: 0 20px;
    margin-top: 30px;
  }

  .sec-company-inner > div:nth-child(2) > h2 {
    font-size: 1.2rem !important;
  }

  .sec-company-inner > div:nth-child(2) > p {
    font-size: 1.4rem !important;
  }

  .shoplist-info .shop-address {
    font-size: 1rem;
  }

  .shoplist-header {
    justify-content: center;
    padding: 0 40px;
    margin-bottom: 60px;
  }

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

  /* FLOW */
  .flow-section .section-title {
    text-align: center;
  }

  .flow-steps {
    flex-direction: column;
    align-items: flex-start;
  }

  .flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    margin-bottom: 0;
  }

  .flow-step-top {
    order: 0;
    justify-content: center;
    gap: 0;
    margin-bottom: 16px;
  }

  .flow-icon {
    justify-content: center;
  }

  .flow-step-name {
    order: 1;
    font-size: 1.1rem;
    font-weight: bold;
  }

  .flow-step-desc {
    order: 2;
    margin-bottom: 0;
    font-size: 1rem;
  }

  /* ⟶ 矢印は非表示 */
  .flow-arrow {
    display: none;
  }

  /* ↓ 太く長い矢印（CSS描画） */
  .flow-step:not(:last-child)::after {
    content: '';
    order: 3;
    position: static;
    display: block;
    width: 16px;
    height: 80px;
    background: #000;
    opacity: 0.7;
    margin: 24px auto 8px;
    transform: none;
    left: auto;
    bottom: auto;
    clip-path: polygon(35% 0%, 65% 0%, 65% 60%, 100% 60%, 50% 100%, 0% 60%, 35% 60%);
  }

  .flow-step:last-child {
    margin-bottom: 40px;
  }

  .flow-cta-line-wrap::after {
    height: 50px;
  }

  .flow-section .btn-wrap {
    text-align: center;
  }

  /* Section 13 会社概要 */
  .sec-company {
    padding: 60px 24px !important;
  }

  .sec-company-inner {
    display: grid !important;
    grid-template-columns: 1fr !important;
    left: 0 !important;
    transform: none !important;
    gap: 40px !important;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 50px 24px 40px;
  }

  .footer-company-name { font-size: 0.85rem; }
  .footer-info { font-size: 0.78rem; }
  .footer-nav-title { font-size: 0.9rem; }
  .footer-nav-list a { font-size: 0.8rem; }
  .footer-sns a { font-size: 0.9rem; }
  .footer-bottom { font-size: 0.72rem; }
  .footer-bottom-nav a { font-size: 0.72rem; }

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

@media (max-width: 480px) {
  .shoplist-grid {
    grid-template-columns: 1fr;
  }

  .shoplist-item + .shoplist-item {
    border-top: 1px solid var(--color-beige);
    padding-top: 24px;
  }

  .hero-right {
    flex-direction: column;
    height: auto;
  }

  .hero-right-top {
    min-height: 160px;
  }

  .hero-right-bottom {
    min-height: 200px;
  }

  .movie-section video {
    height: 70vw !important;
  }

  .cta-banner {
    padding: 50px 24px;
  }

  .cta-banner-title {
    font-size: 1.4rem;
  }

  .flow-inner {
    padding: 24px 24px;
  }
}

@media (min-width: 1400px) {
  .intro-section .intro-body {
    font-size: 1.2rem;
  }
}