/* =========================================
   タケシ工務店 スタイルシート
   配色：白・ベージュ・薄いブラウン・薄いグリーン系
   方針：スマホ最優先、文字大きめ、余白広め
   ========================================= */

:root {
  --bg: #fbf8f2;          /* やわらかいベージュ白 */
  --bg-card: #ffffff;
  --bg-soft: #f3ede0;     /* 薄ベージュ */
  --bg-green: #eef2e6;    /* 薄グリーン */
  --text: #3a3128;        /* 落ち着いたブラウン */
  --text-soft: #6a5d4f;
  --accent: #7a5a3a;      /* 濃いブラウン */
  --accent-soft: #a98a64; /* 薄ブラウン */
  --green: #6b8e5a;       /* 落ち着いたグリーン */
  --line: #e3d9c6;
  --shadow: 0 4px 16px rgba(60, 45, 30, 0.08);
  --shadow-lg: 0 8px 28px rgba(60, 45, 30, 0.12);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3",
    "Yu Gothic", "游ゴシック", "Noto Sans JP", "メイリオ", Meiryo, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  padding-bottom: 88px; /* 下部固定電話ボタンの余白 */
}

a {
  color: var(--accent);
  text-decoration: none;
}

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

/* =========================================
   ファーストビュー
   ========================================= */
.hero {
  padding: 28px 18px 24px;
  background:
    radial-gradient(circle at 80% 0%, #eef2e6 0%, transparent 55%),
    radial-gradient(circle at 0% 100%, #f3ede0 0%, transparent 55%),
    var(--bg);
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: 520px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 22px 26px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.logo-wrap {
  display: flex;
  justify-content: center;
  margin: -8px 0 14px;
}

.logo {
  width: 160px;
  height: auto;
  max-width: 60vw;
  filter: drop-shadow(0 4px 10px rgba(180, 60, 40, 0.18));
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 18px;
}

.badge {
  font-size: 12px;
  background: var(--bg-soft);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  letter-spacing: 0.04em;
}

.brand {
  font-size: 32px;
  margin: 6px 0 14px;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
}

.lead {
  font-size: 18px;
  color: var(--green);
  margin: 0 0 10px;
  font-weight: 700;
}

.sub {
  font-size: 16px;
  color: var(--text-soft);
  margin: 0 0 22px;
  line-height: 1.7;
}

/* =========================================
   電話ボックス
   ========================================= */
.tel-box {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 18px 14px 16px;
  margin-top: 10px;
}

.tel-label {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--text-soft);
  letter-spacing: 0.08em;
}

.tel-number {
  display: block;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin: 4px 0 14px;
  text-decoration: none;
}

.btn-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  padding: 16px 18px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.05s ease, box-shadow 0.2s ease;
  min-height: 56px;
}

.btn-call:hover {
  box-shadow: var(--shadow-lg);
}

.btn-call:active {
  transform: translateY(1px);
}

.btn-icon {
  font-size: 20px;
}

/* =========================================
   メールボックス
   ========================================= */
.mail-box {
  background: var(--bg-green);
  border-radius: var(--radius);
  padding: 18px 14px 16px;
  margin-top: 14px;
  text-align: center;
  border: 1px solid #dde4d0;
}

.mail-label {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--text-soft);
  letter-spacing: 0.08em;
}

.mail-address {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  margin: 4px 0 14px;
  text-decoration: none;
  word-break: break-all;
  line-height: 1.5;
}

.btn-mail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent-soft);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 14px 18px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.05s ease, box-shadow 0.2s ease;
  min-height: 52px;
}

.btn-mail:hover {
  box-shadow: var(--shadow-lg);
}

.btn-mail:active {
  transform: translateY(1px);
}

/* ファーストビュー用：メールをより目立たせる */
.mail-box--hero {
  background: var(--bg-soft);
  border-color: var(--line);
}

.btn-mail--hero {
  background: var(--green);
  font-size: 19px;
  min-height: 56px;
}

/* お問い合わせの控えめ電話表示 */
.tel-mini {
  text-align: center;
  margin: 14px auto 0;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
}

.tel-mini-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.tel-mini-link {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  padding: 4px 10px;
  border-bottom: 1px dashed var(--accent-soft);
}

/* =========================================
   セクション共通
   ========================================= */
.section {
  padding: 44px 20px;
  max-width: 720px;
  margin: 0 auto;
}

.section-title {
  font-size: 22px;
  text-align: center;
  margin: 0 0 26px;
  color: var(--accent);
  letter-spacing: 0.1em;
  position: relative;
  padding-bottom: 12px;
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--accent-soft);
  margin: 10px auto 0;
}

.text {
  font-size: 16px;
  line-height: 1.9;
  margin: 0 0 14px;
}

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

/* =========================================
   ごあいさつ
   ========================================= */
.greeting {
  background: var(--bg-card);
}

/* =========================================
   対応できること
   ========================================= */
.services {
  background: var(--bg-soft);
  max-width: none;
  padding-left: 20px;
  padding-right: 20px;
}

.services .section-title {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
}

.service-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
}

.service-icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.service-item h3 {
  font-size: 17px;
  margin: 6px 0 6px;
  color: var(--accent);
}

.service-item p {
  font-size: 15px;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

/* =========================================
   特徴
   ========================================= */
.features {
  background: var(--bg);
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.feature-item {
  background: var(--bg-green);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  position: relative;
  border: 1px solid #dde4d0;
}

.feature-num {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--green);
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.feature-item h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--accent);
  line-height: 1.5;
}

.feature-item p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}

/* =========================================
   施工例
   ========================================= */
.works {
  background: var(--bg-card);
}

.work-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 22px 20px;
  border: 1px solid var(--line);
}

.work-title {
  font-size: 18px;
  margin: 0 0 12px;
  color: var(--accent);
  border-left: 4px solid var(--green);
  padding-left: 10px;
}

.work-subtitle {
  font-size: 15px;
  color: var(--accent);
  margin: 18px 0 8px;
}

.work-list {
  margin: 0;
  padding-left: 22px;
}

.work-list li {
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 4px;
}

.work-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 16px;
}

.work-photos img {
  border-radius: 8px;
  border: 1px solid var(--line);
}

/* =========================================
   お問い合わせ
   ========================================= */
.contact {
  background: var(--bg-soft);
  max-width: none;
  padding-left: 20px;
  padding-right: 20px;
}

.contact .section-title,
.contact .text,
.contact .tel-box,
.contact .mail-box,
.contact .info {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.info {
  margin: 24px auto 0;
  padding: 0;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
}

.info dt {
  font-size: 13px;
  color: var(--text-soft);
  background: var(--bg-green);
  padding: 8px 16px;
  letter-spacing: 0.08em;
}

.info dd {
  margin: 0;
  padding: 12px 16px 14px;
  font-size: 16px;
  line-height: 1.7;
  border-bottom: 1px solid var(--line);
}

.info dd:last-child {
  border-bottom: none;
}

/* =========================================
   フッター
   ========================================= */
.footer {
  background: var(--accent);
  color: #fbf8f2;
  text-align: center;
  padding: 28px 20px 24px;
}

.footer-logo {
  width: 72px;
  height: auto;
  margin: 0 auto 10px;
  display: block;
  background: #fff;
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-brand {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: 0.08em;
}

.footer-line {
  margin: 4px 0;
  font-size: 15px;
  color: #f1e6d2;
}

.footer-line a {
  color: #fff;
  text-decoration: underline;
}

.footer-mail a {
  font-size: 16px;
  font-weight: 700;
}

.footer-tel {
  font-size: 13px;
  opacity: 0.85;
}

.footer-tel a {
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
}

.copyright {
  margin: 14px 0 0;
  font-size: 12px;
  color: #d6c6a8;
  letter-spacing: 0.05em;
}

/* =========================================
   下部固定バー（スマホ用：メール中心、電話は小さく）
   ========================================= */
.fixed-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
  z-index: 50;
}

.fixed-mail {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  padding: 14px 18px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(60, 45, 30, 0.25);
  min-height: 54px;
}

.fixed-tel {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--accent);
  font-size: 22px;
  border-radius: 50%;
  text-decoration: none;
  border: 2px solid var(--accent-soft);
  box-shadow: 0 4px 14px rgba(60, 45, 30, 0.18);
}

.fixed-mail:active,
.fixed-tel:active {
  transform: translateY(1px);
}

/* =========================================
   タブレット・PC対応
   ========================================= */
@media (min-width: 600px) {
  body {
    font-size: 18px;
    padding-bottom: 0;
  }

  .brand {
    font-size: 38px;
  }

  .logo {
    width: 200px;
  }

  .footer-logo {
    width: 84px;
  }

  .tel-number {
    font-size: 36px;
  }

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

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

  .feature-list {
    grid-template-columns: 1fr 1fr 1fr;
  }

  /* PCでは下部固定ボタンを非表示 */
  .fixed-bar {
    display: none;
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 60px 24px;
  }

  .card {
    padding: 40px 36px 36px;
    max-width: 620px;
  }
}
