/* ===== Log House Theme — Wood & Cabin ===== */

/* Theme Variables */
.page-loghouse {
  --wood-dark: #3E2723;
  --wood-mid: #5D4037;
  --wood-light: #8D6E63;
  --wood-pale: #D7CCC8;
  --wood-cream: #EFEBE9;
  --bark: #4E342E;
  --forest: #2E7D32;
  --forest-dark: #1B5E20;
  --amber: #F9A825;
  --amber-glow: rgba(249,168,37,.15);
  font-family: "Noto Serif JP", "游明朝", "Yu Mincho", serif;
}
.page-loghouse .header-logo-main,
.page-loghouse .gnav-list a,
.page-loghouse .gnav-sub a,
.page-loghouse .gnav-en,
.page-loghouse .breadcrumb {
  font-family: "Noto Sans JP", sans-serif;
}

/* Wood Grain Pattern (repeating) */
.lh-wood-bg {
  background-color: var(--wood-dark);
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(255,255,255,.03) 2px,
      rgba(255,255,255,.03) 4px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 40px,
      rgba(0,0,0,.08) 40px,
      rgba(0,0,0,.08) 41px
    ),
    linear-gradient(180deg, rgba(0,0,0,.1) 0%, transparent 30%, transparent 70%, rgba(0,0,0,.15) 100%);
}

/* Plank Pattern */
.lh-plank-bg {
  background-color: var(--wood-cream);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 79px,
      var(--wood-pale) 79px,
      var(--wood-pale) 80px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 3px,
      rgba(93,64,55,.03) 3px,
      rgba(93,64,55,.03) 5px
    );
}

/* Hero */
.lh-hero {
  background-color: var(--wood-dark);
  background-image: url('../img/loghouse-texture-log-wall.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative;
}
.lh-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(62,39,35,.75) 0%, rgba(78,52,46,.85) 100%);
  pointer-events: none;
}
.lh-hero-inner {
  display: flex;
  align-items: stretch;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.lh-hero-photo {
  flex: 0 0 50%;
  position: relative;
  overflow: hidden;
}
.lh-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset -20px 0 40px rgba(62,39,35,.4);
  pointer-events: none;
}
.lh-hero-photo img,
.lh-hero-photo .gallery-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}
.lh-hero-content {
  flex: 1;
  padding: 56px 48px;
  color: var(--wood-cream) !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.lh-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--forest);
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 24px;
  width: fit-content;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.lh-hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  background-color: var(--amber);
  border-radius: 50%;
}
.lh-hero-content h2 {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--wood-cream) !important;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.lh-hero-lead {
  font-size: 15px;
  line-height: 2;
  opacity: .8;
  color: var(--wood-cream) !important;
  border-left: 3px solid var(--amber);
  padding-left: 16px;
}

/* Use Cases — dark theme */
.lh-section-dark {
  background-color: #1a1a1a;
  background-image:
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,.01) 2px, rgba(255,255,255,.01) 4px);
}
.page-loghouse .lh-section-dark .section-head .en {
  color: var(--wood-light);
}
.page-loghouse .lh-section-dark .section-head h2 {
  color: var(--wood-cream);
  border-bottom-color: var(--amber);
}
.lh-usecases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.lh-usecase {
  background-color: rgba(255,255,255,.05);
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.08);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.lh-usecase:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
  border-color: rgba(249,168,37,.3);
}
.lh-usecase-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.lh-usecase-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.lh-usecase:hover .lh-usecase-img img {
  transform: scale(1.06);
}
.lh-usecase-body {
  padding: 20px 16px 24px;
}
.lh-usecase h3 {
  font-size: 16px;
  font-weight: 900;
  color: var(--wood-cream);
  margin-bottom: 8px;
}
.lh-usecase p {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
}

/* Gallery */
.lh-gallery-wrap {
  position: relative;
  padding: 40px;
  background-color: var(--wood-dark);
  background-image:
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,.015) 2px, rgba(255,255,255,.015) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(0,0,0,.05) 80px, rgba(0,0,0,.05) 81px);
  border-radius: 16px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,.3), 0 4px 20px rgba(62,39,35,.15);
}
.lh-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
}
.lh-gallery-large {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}
.lh-gallery-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
  transition: transform var(--transition);
}
.lh-gallery-item:hover {
  transform: scale(1.02);
}
.lh-gallery-item img,
.lh-gallery-item .gallery-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 180px;
}
.lh-gallery-large img,
.lh-gallery-large .gallery-placeholder {
  min-height: 376px;
}

/* Features */
.lh-features {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.lh-feature {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background-color: var(--white);
  border-radius: 12px;
  padding: 28px 32px;
  border: 1px solid var(--wood-pale);
  border-left: 4px solid var(--wood-mid);
  transition: transform var(--transition), box-shadow var(--transition);
}
.lh-feature:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(62,39,35,.1);
}
.lh-feature-num {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--forest), var(--forest-dark));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 3px 10px rgba(46,125,50,.3);
}
.lh-feature-body h3 {
  font-size: 18px;
  font-weight: 900;
  color: var(--wood-dark);
  margin-bottom: 6px;
}
.lh-feature-body p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}

/* Partner */
/* Partner Card */
.lh-partner-card {
  max-width: 720px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(62,39,35,.15);
  background-color: var(--white);
  transition: transform .3s ease, box-shadow .3s ease;
}
.lh-partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(62,39,35,.2);
}
.lh-partner-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.lh-partner-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 1;
}
.lh-partner-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.lh-partner-card:hover .lh-partner-img img {
  transform: scale(1.04);
}
.lh-partner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(62,39,35,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
}
.lh-partner-card:hover .lh-partner-overlay {
  opacity: 1;
}
.lh-partner-visit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 12px 28px;
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 50px;
  backdrop-filter: blur(4px);
}
.lh-partner-body {
  padding: 28px 32px;
  text-align: center;
  border-top: 4px solid var(--amber);
}
.lh-partner-body h3 {
  font-size: 22px;
  font-weight: 900;
  color: var(--wood-dark);
  margin-bottom: 8px;
}
.lh-partner-body p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
}

/* Loghouse KV */
.page-loghouse .lh-kv {
  background-color: var(--wood-dark);
  background-image: url('../img/loghouse-texture-log-wall.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 80px 0;
}
.page-loghouse .lh-kv::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(30,18,12,.85) 0%, rgba(62,39,35,.7) 50%, rgba(30,18,12,.85) 100%);
  animation: none;
  opacity: 1;
  pointer-events: none;
}
.page-loghouse .lh-kv::after {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  animation: none;
  opacity: 0;
  pointer-events: none;
}
.lh-kv-inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.lh-kv-deco-top,
.lh-kv-deco-bottom {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  margin: 0 60px;
}
.lh-kv-deco-top { margin-bottom: 32px; }
.lh-kv-deco-bottom { margin-top: 32px; }
.lh-kv-content {
  padding: 0 20px;
}
.lh-kv-en {
  display: inline-block;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
  border: 1px solid rgba(249,168,37,.3);
  padding: 6px 24px;
  border-radius: 2px;
  margin-bottom: 20px;
}
.lh-kv-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 4px;
  line-height: 1.3;
  text-shadow: 0 2px 16px rgba(0,0,0,.3);
}
.lh-kv-sub {
  font-size: 15px;
  color: rgba(255,255,255,.6);
  margin-top: 16px;
  letter-spacing: 1px;
  line-height: 1.8;
}
.page-loghouse .lh-kv {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
.page-loghouse .breadcrumb {
  background-color: var(--wood-dark) !important;
  background-image: url('../img/loghouse-texture-log-wall.jpg') !important;
  background-size: cover !important;
  background-position: center bottom !important;
  padding: 16px 0 !important;
  margin: 0 !important;
  position: relative;
  border: none !important;
}
.page-loghouse .breadcrumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(30,18,12,.85) 0%, rgba(62,39,35,.7) 50%, rgba(30,18,12,.85) 100%);
  pointer-events: none;
}
.page-loghouse .breadcrumb .container {
  position: relative;
  z-index: 1;
}
.page-loghouse .breadcrumb a,
.page-loghouse .breadcrumb span {
  color: rgba(255,255,255,.5) !important;
}
.page-loghouse .breadcrumb a:hover {
  color: rgba(255,255,255,.8) !important;
}
.page-loghouse .breadcrumb .breadcrumb-sep {
  color: rgba(255,255,255,.3) !important;
}
.page-loghouse .section-gray {
  background-color: var(--wood-cream);
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(93,64,55,.04) 79px, rgba(93,64,55,.04) 80px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(93,64,55,.02) 3px, rgba(93,64,55,.02) 5px);
}
.page-loghouse .section-head .en {
  color: var(--wood-light);
}
.page-loghouse .section-head h2 {
  color: var(--wood-dark);
  border-bottom-color: var(--wood-mid);
}

/* Wave Dividers */
.lh-wave {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.lh-wave svg {
  display: block;
  width: 100%;
  height: 60px;
}
.lh-wave-cream svg { fill: var(--wood-cream); }
.lh-wave-white svg { fill: var(--white); }
.lh-wave-dark svg { fill: var(--wood-dark); }
.lh-wave-black svg { fill: #1a1a1a; }
.lh-wave-on-black { background-color: #1a1a1a; }
.lh-wave-on-dark {
  background-color: var(--wood-dark);
  background-image: url('../img/loghouse-texture-log-wall.jpg');
  background-size: cover;
  background-position: center;
}
.lh-wave-on-dark svg { position: relative; z-index: 1; }
.lh-wave-on-cream { background-color: var(--wood-cream); }
.lh-wave-on-white { background-color: var(--white); }

/* Sections with wave flow */
.page-loghouse .section { position: relative; }
.lh-section-white { background-color: var(--white); }
.lh-section-cream {
  background-color: var(--wood-cream);
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(93,64,55,.04) 79px, rgba(93,64,55,.04) 80px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(93,64,55,.02) 3px, rgba(93,64,55,.02) 5px);
}

/* Feature section — wood texture bg */
.lh-section-wood {
  background-color: var(--wood-cream);
  background-image: url('../img/loghouse-texture-wood-grain.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}
.lh-section-wood::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255,255,255,.88);
  pointer-events: none;
}
.lh-section-wood > * { position: relative; z-index: 1; }

/* Partner section — log texture bg */
.lh-section-log {
  background-color: var(--wood-dark);
  background-image: url('../img/loghouse-texture-log-wall.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}
.lh-section-log::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(239,235,233,.85);
  pointer-events: none;
}
.lh-section-log > * { position: relative; z-index: 1; }

/* CTA — log texture */
.page-loghouse .cta-section {
  background-color: var(--wood-dark);
  background-image: url('../img/loghouse-texture-log-wall.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}
.page-loghouse .cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(62,39,35,.85);
  pointer-events: none;
}
.page-loghouse .cta-section > * { position: relative; z-index: 1; }
.page-loghouse .cta-step {
  background-color: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.08);
}
.page-loghouse .cta-step-highlight {
  border-left-color: var(--amber);
}
.page-loghouse .cta-tel {
  color: var(--amber);
}
.page-loghouse .btn-white {
  background-color: var(--wood-cream);
  color: var(--wood-dark);
  border-color: var(--wood-cream);
}
.page-loghouse .btn-white:hover {
  background-color: var(--white);
  color: var(--wood-dark);
}

/* SP */
@media (max-width: 768px) {
  .lh-hero-inner { flex-direction: column; }
  .lh-hero-photo { flex: none; }
  .lh-hero-photo img,
  .lh-hero-photo .gallery-placeholder { min-height: 240px; }
  .lh-hero-content { padding: 32px 20px; }
  .lh-hero-content h2 { font-size: 22px; }
  .lh-hero-lead { font-size: 14px; }
  .lh-usecases { grid-template-columns: repeat(2, 1fr); }
  .lh-usecase-img { height: 150px; }
  .lh-wave svg { height: 40px; }
  .lh-gallery-wrap { padding: 20px; }
  .lh-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .lh-gallery-large {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .lh-gallery-large img,
  .lh-gallery-large .gallery-placeholder { min-height: 220px; }
  .lh-feature { padding: 20px; gap: 16px; border-left-width: 3px; }
  .lh-feature-num { width: 44px; height: 44px; font-size: 18px; }
  .lh-partner-body { padding: 20px 16px; }
  .lh-partner-body h3 { font-size: 18px; }
  .lh-partner-overlay { opacity: 1; background: rgba(62,39,35,.4); }
  .page-loghouse .lh-kv { padding: 56px 0; }
  .lh-kv-title { font-size: 26px; letter-spacing: 2px; }
  .lh-kv-sub { font-size: 13px; }
  .lh-kv-deco-top, .lh-kv-deco-bottom { margin-left: 20px; margin-right: 20px; }
}
