/* ================= Reset ================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Yu Gothic", "YuGothic",
    "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  line-height: 1.8;
  color: #2b1b1b;
  background-color: #f5f0e6; /* 木目ベース */
}

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

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

a:hover {
  text-decoration: none;
}

/* ================= Colors & Theme ================= */
:root {
  --main-enji: #8b1a1a;        /* えんじ */
  --main-enji-dark: #701212;   /* 濃いえんじ */

  --wood-base: #f5f0e6;        /* 明るい木目ベース */
  --wood-alt: #e8dfd2;         /* 少し濃い木目カラー */
  --wood-line: #d9cdbd;        /* 線・影用 */

  --text-main: #2b1b1b;
  --text-sub: #6e5f55;
}

/* ================= Layout ================= */
.container {
  width: min(1120px, 100% - 40px);
  margin: 0 auto;
}

/* ================= Header ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(245, 240, 230, 0.95);
  border-bottom: 1px solid rgba(217, 205, 189, 0.8);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-logo a {
  display: inline-flex;
  align-items: center;
}

.site-logo img {
  height: 36px;
  width: auto;
}

/* グローバルナビ */
.global-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
}

.global-nav a {
  font-size: 13px;
  letter-spacing: 0.14em;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  color: var(--text-main);
}

.global-nav a:hover {
  border-color: var(--main-enji);
  color: var(--main-enji);
}

/* ================= Hero ================= */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
/*  background-color: var(--main-enji-dark);*/ /* 画像がなくても成立する背景 */
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero-bg.jpg"); /* あれば使う */
  background-size: cover;
  background-position: center;
  filter: brightness(0.55);
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
/*
  background: radial-gradient(
      circle at 0% 0%,
      rgba(245, 240, 230, 0.22) 0%,
      rgba(245, 240, 230, 0) 40%
    ),
    linear-gradient(
      120deg,
      rgba(139, 26, 26, 0.9) 0%,
      rgba(139, 26, 26, 0.6) 40%,
      rgba(139, 26, 26, 0.3) 100%
    );
*/
  z-index: -1;
}

.hero-inner {
  padding: 96px 0 72px;
}

.hero-content {
  max-width: 640px;
}

.hero-label {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin: 0 0 12px;
  opacity: 0.85;
  color: #ffe6ce;
}

.hero-title {
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.6;
  margin: 0 0 16px;
  letter-spacing: 0.16em;
}

.hero-text {
  font-size: 14px;
  margin: 0 0 24px;
  color: #fdf5ea;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ================= Buttons ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.16em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-main {
  background-color: #fdf5ea;
  color: var(--main-enji-dark);
  border-color: #fdf5ea;
  font-weight: 600;
}

.btn-main:hover {
  background-color: #f6e4cf;
  border-color: #f6e4cf;
}

.btn-outline {
  background-color: transparent;
  color: #ffe6ce;
  border-color: #ffe6ce;
}

.btn-outline:hover {
  background-color: rgba(255, 230, 206, 0.12);
}

/* ================= Sections ================= */
.section {
  padding: 72px 0;
  background-color: var(--wood-base);
}

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

.section-accent {
  background-color: var(--main-enji);
  color: #f5f0e6;
}

.section-header {
  margin-bottom: 32px;
}

.section-header-center {
  text-align: center;
}

/* ラベルと見出しを木目 × えんじに */
.section-label {
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--main-enji);
  margin: 0 0 8px;
}

.section-label-light {
  color: #ffe6ce;
}

.section-title {
  font-size: 24px;
  letter-spacing: 0.16em;
  margin: 0;
  padding-left: 10px;
  border-left: 4px solid var(--main-enji);
  color: var(--text-main);
}

.section-header-center .section-title {
  border-left: none;
  padding-left: 0;
}

.section-title-light {
  color: #fdf5ea;
}

.section-lead {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--text-sub);
}

.section-lead-light {
  color: #ffe6ce;
}

.section-body {
  font-size: 14px;
}

.section-two-column {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.3fr);
  gap: 40px;
  align-items: flex-start;
}

.section-text p {
  margin: 0 0 1em;
  color: var(--text-main);
}

/* ================= Side block & list ================= */
.section-side {
  font-size: 13px;
}

.side-heading {
  font-size: 14px;
  letter-spacing: 0.18em;
  margin: 0 0 10px;
  color: var(--main-enji-dark);
}

.side-text {
  margin: 0 0 16px;
  color: var(--text-sub);
}

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

.check-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  line-height: 1.6;
  color: var(--text-main);
}

.check-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 9px;
  color: var(--main-enji);
}

/* ================= Cards (Service, etc.) ================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card {
  background-color: #fcf9f4;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--wood-line);
  box-shadow: 0 8px 18px rgba(140, 110, 90, 0.08);
}

.card-title {
  font-size: 16px;
  margin: 0 0 8px;
  letter-spacing: 0.14em;
  color: var(--main-enji-dark);
}

.card-text {
  font-size: 13px;
  margin: 0;
  color: var(--text-sub);
}

/* ================= Works ================= */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.work-item {
  background-color: #fcf9f4;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--wood-line);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 10px 24px rgba(140, 110, 90, 0.08);
}

.work-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.work-body {
  padding: 14px 16px 16px;
}

.work-title {
  font-size: 14px;
  margin: 0 0 4px;
  letter-spacing: 0.12em;
  color: var(--main-enji-dark);
}

.work-text {
  font-size: 13px;
  margin: 0;
  color: var(--text-sub);
}

/* ================= Strength ================= */
.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.strength-item {
  background-color: #fcf9f4;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--wood-line);
  box-shadow: 0 10px 24px rgba(140, 110, 90, 0.08);
}

.strength-number {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--main-enji);
  margin-bottom: 4px;
}

.strength-title {
  font-size: 15px;
  margin: 0 0 8px;
  color: var(--text-main);
}

.strength-text {
  font-size: 13px;
  margin: 0;
  color: var(--text-sub);
}

/* ================= Company ================= */
.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background-color: #fcf9f4;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(140, 110, 90, 0.08);
}

.company-table th,
.company-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(217, 205, 189, 0.9);
  vertical-align: top;
}

.company-table th {
  width: 26%;
  background-color: #e8dfd2;
  font-weight: 600;
  color: var(--main-enji-dark);
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: none;
}

.map-placeholder {
  margin-top: 16px;
  border-radius: 16px;
  border: 1px dashed rgba(139, 26, 26, 0.5);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-sub);
  background-color: #fcf9f4;
}

/* ================= Contact ================= */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
  background-color: rgba(112, 18, 18, 0.15);
  padding: 24px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 228, 204, 0.7);
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  color: #ffe6ce;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255, 230, 206, 0.85);
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  background-color: #fdf5ea;
  color: #2b1b1b;
}

.form-row textarea {
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #f6e4cf;
  box-shadow: 0 0 0 2px rgba(246, 228, 207, 0.7);
}

.form-action {
  text-align: center;
  margin-top: 8px;
}

/* ================= Footer ================= */
.site-footer {
  padding: 20px 0 30px;
  background-color: var(--main-enji-dark);
  color: #f5f0e6;
  border-top: none;
}

.footer-inner {
  text-align: center;
}

.footer-copy {
  font-size: 11px;
  margin: 0;
}

/* ================= Responsive ================= */
@media (max-width: 960px) {
  .global-nav {
    display: none; /* 必要ならハンバーガーメニューを追加 */
  }

  .hero-inner {
    padding-top: 88px;
    padding-bottom: 56px;
  }

  .section-two-column {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .works-grid,
  .strength-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 100%);
  }

  .hero {
    min-height: 60vh;
  }

  .hero-title {
    font-size: 22px;
  }

  .section {
    padding: 56px 0;
  }

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

  .contact-form {
    padding: 20px 16px;
  }
}
