/* レイアウト：ヘッダー・フッター・ヒーロー・レスポンシブ・アニメーション */
/*
Theme Name: 出口建装
Theme URI: https://deguchikensou.site
Author: 出口 杏奈
Author URI: https://deguchikensou.site
Description: 京都府亀岡市の軽天工事・内装工事 出口建装のオリジナルテーマ
Version: 1.0
Requires at least: 5.0
Tested up to: 6.7
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: deguchi-kensou
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

:root {
  --g1: #0d3528;
  --g2: #1B5C4E;
  --g3: #2e7d5e;
  --g4: #4a9e7a;
  --cream: #F2EAD8;
  --cream2: #E8DDC8;
  --cream3: #F7F3EC;
  --text: #1a1a1a;
  --muted: #666;
  --line: #06C755;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--cream3);
  overflow-x: hidden;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--g1);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  border-bottom: 1px solid rgba(242,234,216,.08);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.header-logo-sub {
  font-family: 'Oswald', sans-serif;
  font-size: .6rem;
  color: var(--cream);
  opacity: .45;
  letter-spacing: .2em;
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav-link {
  font-size: .8rem;
  color: var(--cream);
  opacity: .7;
  letter-spacing: .1em;
  transition: opacity .2s;
}

.header-nav-link:hover { opacity: 1; }

.header-cta {
  background: var(--line);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 999px;
  letter-spacing: .06em;
  transition: opacity .2s;
}

.header-cta:hover { opacity: .85; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: all .3s;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: var(--g1);
  z-index: 99;
  padding: 24px 5%;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(242,234,216,.08);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: var(--cream);
  font-size: .9rem;
  letter-spacing: .1em;
  padding: 16px 0;
  border-bottom: 1px solid rgba(242,234,216,.08);
  opacity: .8;
}

.mobile-menu a:last-child { border-bottom: none; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: var(--g1);
  display: flex;
  align-items: center;
  padding: 120px 5% 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  background: var(--g2);
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
  opacity: .3;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-eyebrow-line {
  width: 40px;
  height: 1px;
  background: var(--g4);
}

.hero-eyebrow-text {
  font-family: 'Oswald', sans-serif;
  font-size: .72rem;
  color: var(--g4);
  letter-spacing: .2em;
}

.hero-label {
  font-size: .82rem;
  color: rgba(242,234,216,.5);
  letter-spacing: .2em;
  margin-bottom: 16px;
}

/* ===== スライダー ===== */
.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 420px;
}

.hero-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .6s ease, transform .6s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
  pointer-events: auto;
}

.hero-slide.exit {
  opacity: 0;
  transform: translateX(-40px);
  position: absolute;
}

/* タグライン */
.hero-tagline-main {
  font-size: .82rem;
  color: rgba(122,184,122,.9);
  letter-spacing: .1em;
  font-weight: 700;
  border-left: 3px solid rgba(122,184,122,.8);
  padding-left: 12px;
  margin-bottom: 8px;
  line-height: 2;
}

.hero-tagline-sub {
  font-size: .75rem;
  color: rgba(242,234,216,.45);
  letter-spacing: .1em;
  padding-left: 15px;
  margin-bottom: 20px;
  line-height: 1.8;
}

/* 価値スライド */
.value-slide-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  display: block;
  filter: drop-shadow(0 0 16px rgba(122,184,122,.5));
}

.value-slide-en {
  font-family: 'Oswald', sans-serif;
  font-size: .72rem;
  color: var(--accent, #7ab87a);
  letter-spacing: .3em;
  margin-bottom: 10px;
}

.value-slide-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 900;
  color: var(--cream);
  line-height: 1.3;
  letter-spacing: .04em;
  margin-bottom: 20px;
}

.value-slide-desc {
  font-size: .85rem;
  color: rgba(242,234,216,.55);
  line-height: 2;
  margin-bottom: 32px;
}

.value-slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(122,184,122,.4);
  background: rgba(122,184,122,.08);
  color: var(--accent, #7ab87a);
  font-size: .75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 2px;
  letter-spacing: .06em;
}

/* インジケーター */
.hero-indicators {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-indicator {
  width: 24px;
  height: 3px;
  background: rgba(242,234,216,.2);
  border-radius: 2px;
  cursor: pointer;
  transition: background .3s, width .3s;
}

.hero-indicator.active {
  background: var(--accent, #7ab87a);
  width: 40px;
}

.hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 900;
  color: var(--cream);
  line-height: 1.3;
  letter-spacing: .04em;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: .88rem;
  color: rgba(242,234,216,.6);
  line-height: 2;
  margin-bottom: 40px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--cream);
  color: var(--g1);
  font-weight: 700;
  font-size: .88rem;
  padding: 14px 32px;
  letter-spacing: .08em;
  border-radius: 2px;
  transition: background .2s;
}

.btn-primary:hover { background: var(--cream2); }

.btn-line {
  background: var(--line);
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  padding: 14px 32px;
  letter-spacing: .08em;
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity .2s;
}

.btn-line:hover { opacity: .85; }

.hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo img {
  width: 100%;
  max-width: 420px;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* ===== SECTION COMMON ===== */
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-eyebrow-line {
  width: 32px;
  height: 1px;
  background: var(--g3);
}

.section-eyebrow-text {
  font-family: 'Oswald', sans-serif;
  font-size: .72rem;
  color: var(--g3);
  letter-spacing: .2em;
}

.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  letter-spacing: .04em;
  margin-bottom: 48px;
}

/* ===== FOOTER ===== */
.footer {
  background: #060f0c;
  padding: 80px 5% 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 80px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(242,234,216,.06);
  margin-bottom: 32px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.footer-tagline {
  font-size: .78rem;
  color: rgba(242,234,216,.4);
  letter-spacing: .1em;
  margin-bottom: 20px;
}

.footer-info p {
  font-size: .78rem;
  color: rgba(242,234,216,.35);
  line-height: 1.8;
}

.footer-col-title {
  font-family: 'Oswald', sans-serif;
  font-size: .68rem;
  color: rgba(242,234,216,.3);
  letter-spacing: .2em;
  margin-bottom: 16px;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-link {
  font-size: .8rem;
  color: rgba(242,234,216,.5);
  letter-spacing: .06em;
  transition: color .2s;
}

.footer-col-link:hover { color: var(--cream); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: .72rem;
  color: rgba(242,234,216,.2);
  letter-spacing: .08em;
}

.footer-policy {
  font-size: .72rem;
  color: rgba(242,234,216,.2);
  letter-spacing: .08em;
  transition: color .2s;
}

.footer-policy:hover { color: rgba(242,234,216,.5); }

/* ===== STICKY CTA ===== */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  z-index: 100;
}

.sticky-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 10px;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .06em;
  transition: filter .2s;
  text-decoration: none;
}

.sticky-cta-btn:hover { filter: brightness(1.1); }
.sticky-cta-btn.line { background: #05b34a; color: #fff; }
.sticky-cta-btn.tel  { background: var(--g2); color: #fff; }

.sticky-cta-btn-icon { font-size: 1.3rem; flex-shrink: 0; }
.sticky-cta-btn-body { display: flex; flex-direction: column; gap: 2px; }
.sticky-cta-btn-label { font-size: .62rem; opacity: 1; color: rgba(255,255,255,.85); letter-spacing: .08em; font-weight: 400; }
.sticky-cta-btn-text  { font-size: .88rem; font-weight: 700; color: #fff; letter-spacing: .04em; }

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }

/* ===== RESPONSIVE ===== */

/* ===== PAGE HERO ===== */
.page-hero {
  background: var(--g1);
  padding: 140px 5% 80px;
  position: relative;
  overflow: hidden;
}

.page-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative; z-index: 1;
}

.page-hero-cat {
  display: inline-block;
  background: var(--g3);
  color: var(--cream);
  font-size: .68rem;
  letter-spacing: .12em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.page-hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.5;
  letter-spacing: .04em;
  margin-bottom: 20px;
}

.page-hero-desc {
  font-size: .88rem;
  color: rgba(242,234,216,.5);
  letter-spacing: .1em;
}

.page-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: .75rem;
  color: rgba(242,234,216,.4);
  letter-spacing: .1em;
}

/* ===== RESPONSIVE (追加) ===== */


/* 固定ページ内テーブル汎用スタイル */
.privacy-inner table,
.privacy-inner .dg-table table,
.privacy-inner .dg-table--stripe table,
.privacy-inner .dg-table--borderless table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: .88rem;
}

/* クラスなし（デフォルト）＆パターン1：通常罫線 */
.privacy-inner table th,
.privacy-inner .dg-table table th,
.privacy-inner .dg-table--stripe table th,
.privacy-inner .dg-table--borderless table th {
  background: #1b5c4d;
  color: #fff5e3;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .05em;
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border: 1px solid #e7dcc6;
}
.privacy-inner table td,
.privacy-inner .dg-table table td {
  background: #fff;
  color: var(--muted);
  font-size: .88rem;
  padding: 12px 16px;
  vertical-align: top;
  line-height: 1.8;
  border: 1px solid #e7dcc6;
}

/* パターン2：縞模様 */
.privacy-inner .dg-table--stripe table td {
  background: #fff;
  color: var(--muted);
  font-size: .88rem;
  padding: 12px 16px;
  vertical-align: top;
  line-height: 1.8;
  border: 1px solid #e7dcc6;
}
.privacy-inner .dg-table--stripe table tbody tr:nth-child(even) td {
  background: #f7f2eb;
}

/* パターン3：枠線なし */
.privacy-inner .dg-table--borderless table td {
  background: #fff;
  color: var(--muted);
  font-size: .88rem;
  padding: 12px 16px;
  vertical-align: top;
  line-height: 1.8;
  border: none;
  border-bottom: 1px solid #e7dcc6;
}
.privacy-inner .dg-table--borderless table th {
  border: none;
}
.privacy-inner .dg-table--borderless table tr:last-child td {
  border-bottom: none;
}
