/*
Theme Name: original2
Theme URI:
Author: 西日本建設株式会社
Description: 西日本建設株式会社 コーポレートサイト リニューアルテーマ
Version: 1.0
*/

/* ===========================
   1. CSS Variables / Tokens
   =========================== */
:root {
  --color-primary: #7e4043;
  --color-primary-light: #9f5e61;
  --color-primary-gradient: linear-gradient(110.49deg, #7e4043 0.68%, #9f5e61 99.32%);
  --color-text: #2d2d2d;
  --color-text-mid: #3d3d3d;
  --color-text-light: #666666;
  --color-bg-gray: #f2f2f2;
  --color-white: #ffffff;
  --color-dark: #1e1e1e;
  --font-serif: 'Noto Serif JP', serif;
  --font-sans: 'Noto Sans JP', sans-serif;
  --shadow: 0px 7px 22px rgba(45, 45, 45, 0.08);
  --container-width: 1300px;
  --header-height: 99px;
  --section-padding: 160px 0;
  --section-padding-sp: 60px 0;
  --radius-btn: 40px;
  --radius-card: 8px;
}

/* ===========================
   2. Reset & Base
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Font utility */
.font-serif { font-family: var(--font-serif); }

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

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.75;
}

ul, ol {
  list-style: none;
}

/* ===========================
   3. Utilities
   =========================== */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.section-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 0;
}

.section-accent-line {
  width: 20px;
  height: 4px;
  background: var(--color-primary);
  margin: 10px 0 18px;
}

.section-accent-line-white {
  width: 20px;
  height: 4px;
  background: var(--color-white);
  margin: 10px 0 18px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
  margin-bottom: 0;
}

/* ===========================
   4. Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary-gradient);
  color: var(--color-white);
}

.btn-primary:hover {
  opacity: 0.85;
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

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

.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid var(--color-white);
}

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

.btn-arrow::after {
  content: '→';
  font-size: 16px;
}

/* ===========================
   5. Layout / Container
   =========================== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}

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

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

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

/* ===========================
   6. Header & Navigation
   → Tailwind CSS で管理（header.php 参照）
   =========================== */

/* ===========================
   7. Hero Section
   → Tailwind CSS で管理（index.php 参照）
   スクロールアニメーションのみ CSS で定義
   =========================== */

/* スクロールインジケーター（アニメーション付き） Figma node: 546:2561 */
.hero-scroll-line {
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, #ffffff 50%, #7e4043 50%);
}

@keyframes scrollDown {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* TOPページ: ヘッダー初期非表示 → 会社案内セクションでスライドイン */
#site-header.is-hidden-initially {
  transform: translateY(-100%);
  transition: transform 0.5s ease;
}
#site-header.is-revealed {
  transform: translateY(0);
  transition: transform 0.5s ease;
}

/* ===========================
   8. About Section (会社案内)
   =========================== */
/* #about {
  padding: var(--section-padding);
  background: var(--color-white);
} */

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

.about-images {
  position: relative;
  height: 460px;
}

.about-img-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 80%;
  height: 88%;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

.about-img-sub {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 55%;
  height: 52%;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  border: 6px solid var(--color-white);
}

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

.about-content .section-title {
  font-size: 34px;
  margin-bottom: 24px;
}

.about-lead {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 20px;
}

.about-text {
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text-mid);
  margin-bottom: 36px;
}

/* ===========================
   9. Business Section (事業紹介)
   → Tailwind CSS で管理（index.php 参照）
   =========================== */

/* ===========================
   10. Partners Section
   → Tailwind CSS で管理（index.php 参照）
   =========================== */

/* ===========================
   11. Works Section (施工実績)
   → Tailwind CSS で管理（index.php 参照）
   =========================== */

/* ===========================
   12. News Section (お知らせ)
   → Tailwind CSS で管理（index.php 参照）
   =========================== */

/* ===========================
   13. Footer
   → Tailwind CSS で管理（footer.php 参照）
   =========================== */

/* ===========================
   14. Responsive
   =========================== */
@media (max-width: 1024px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-images {
    height: 340px;
  }

}

@media (max-width: 767px) {
  :root {
    --header-height: 64px;
    --section-padding: var(--section-padding-sp); /* 160px 0 → 60px 0 */
  }

  /* header は Tailwind で管理 */

  .container {
    padding: 0 20px;
  }

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

  .section-title {
    font-size: 28px;
  }

  /* About */
  .about-images {
    height: 280px;
  }

  .about-content .section-title {
    font-size: 26px;
  }

  .about-lead {
    font-size: 16px;
  }

}


/* ===========================
   single-information.php
   記事本文エディタスタイル
   =========================== */
.info-content {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  color: #2d2d2d;
  line-height: 2;
}
.info-content p {
  margin-bottom: 1.5em;
}
.info-content a {
  color: #7e4043;
  text-decoration: underline;
  text-decoration-skip-ink: none;
}
.info-content h1 {
  font-size: 24px;
  font-weight: 700;
  color: #7e4043;
  border-left: 6px solid #7e4043;
  padding-left: 18px;
  line-height: 1.6;
  margin-bottom: 1.25em;
}
.info-content h2 {
  font-size: 24px;
  font-weight: 500;
  color: #2d2d2d;
  line-height: 1.6;
  margin-bottom: 1.25em;
}
.info-content h2::after {
  content: '';
  display: block;
  width: 36px;
  height: 4px;
  background: #7e4043;
  margin-top: 10px;
}
.info-content h3 {
  font-size: 22px;
  font-weight: 500;
  color: #2d2d2d;
  line-height: 1.6;
  margin-bottom: 1.25em;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.info-content h3::before {
  content: '';
  display: block;
  width: 22px;
  height: 22px;
  background: #7e4043;
  flex-shrink: 0;
  margin-top: 4px;
}
.info-content h4 {
  font-size: 20px;
  font-weight: 500;
  color: #2d2d2d;
  line-height: 1.6;
  border-bottom: 1px solid #7e4043;
  padding-bottom: 10px;
  margin-bottom: 1.25em;
}
.info-content h5 {
  font-size: 16px;
  font-weight: 500;
  color: #2d2d2d;
  background: #f2f2f2;
  padding: 8px;
  margin-bottom: 1.25em;
}
.info-content h6 {
  font-size: 16px;
  font-weight: 500;
  color: #7e4043;
  margin-bottom: 1.25em;
}
.info-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 1.5em;
}
.info-content ol {
  list-style: decimal;
  padding-left: 24px;
  margin-bottom: 1.5em;
}
.info-content li {
  line-height: 1.6;
  letter-spacing: 0.1em;
  margin-bottom: 0.5em;
}
.info-content blockquote {
  background: #f2f2f2;
  padding: 24px;
  margin-bottom: 1.5em;
  line-height: 1.6;
}
.info-content img {
  width: 100%;
  height: auto;
  margin-bottom: 1.5em;
}
@media (min-width: 768px) {
  .info-content h1 {
    font-size: 28px;
  }
  .info-content blockquote {
    padding: 36px;
  }
}
