@charset "utf-8";

/* ==========================================================
   ヨシオカ建築
   目次
   1. 変数・リセット
   2. 共通
   3. ヘッダー
   4. メインビジュアル
   5. 会社概要
   6. フッター
   ========================================================== */

/* ==========================================================
   1. 変数・リセット
   ========================================================== */
:root {
  --ink: #26302e; /* 本文 */
  --ink-soft: #5f6a67; /* 補足テキスト */
  --navy: #1e3a68; /* ロゴの紺 */
  --teal: #2f6e6a; /* 写真の破風・軒の色 */
  --line: #d3dcd9; /* 罫線 */
  --bg: #fff;
  --content: 960px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body,
div,
h1,
h2,
p,
a,
img,
small,
table,
tbody,
tr,
th,
td,
header,
main,
section,
footer {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  color: inherit;
}
header,
main,
section,
footer {
  display: block;
}
html {
  font-size: 62.5%; /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
}
body {
  font-family:
    "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic",
    "Meiryo", "Noto Sans CJK JP", sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "palt"; /* 約物を詰める */
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ==========================================================
   2. 共通
   ========================================================== */
.wrapper {
  width: 90%;
  max-width: var(--content);
  margin: 0 auto;
}
/* レスポンシブ時は左右の余白を広めに */
@media (max-width: 769px) {
  .wrapper,
  .header_inner,
  .footer_inner,
  .footer_copy {
    width: 86%;
  }
}
.section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--navy);
  margin-bottom: 36px;
}
.section-title::before {
  content: "";
  width: 36px;
  height: 2px;
  background: currentColor; /* 見出しと同じ色 */
}
@media (max-width: 769px) {
  .section-title {
    font-size: 2.2rem; /* ヘッダーのサイト名(2.4rem)より少し小さく */
    margin-bottom: 28px;
  }
  .section-title::before {
    width: 28px;
  }
}
@media (max-width: 480px) {
  .section-title {
    font-size: 1.9rem; /* ヘッダーのサイト名(2rem)より少し小さく */
  }
}

/* ==========================================================
   3. ヘッダー
   ========================================================== */
.header {
  border-top: 4px solid var(--navy); /* フッターと同じ紺 */
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.header_inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: var(--content);
  min-height: 92px;
  margin: 0 auto;
}
.site-name {
  font-size: 3.4rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink); /* 本文と同じ色 */
  line-height: 1.2;
}
.header_sub {
  text-align: right;
  line-height: 1.5;
}
.header_area {
  display: block;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.header_tel {
  display: block;
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--navy);
}
@media (max-width: 480px) {
  .header_inner {
    min-height: 72px;
  }
  .site-name {
    font-size: 2rem;
  }
  .header_area {
    font-size: 1.1rem;
  }
  .header_tel {
    font-size: 1.5rem;
  }
}

/* ==========================================================
   4. メインビジュアル（コンテンツ幅）
   ========================================================== */
.hero {
  padding-top: 40px;
}
.hero_img {
  width: 100%;
  border-radius: 2px;
}
@media (max-width: 480px) {
  .hero {
    padding-top: 24px;
  }
}

/* ==========================================================
   5. 会社概要（左：情報 / 右：写真）
   ========================================================== */
.company {
  padding: 88px 0 104px;
}
.company_inner {
  display: flex;
  align-items: center;
  gap: 8%;
}
.company_table {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.5rem;
  line-height: 1.8;
  border-top: 1px solid var(--line);
}
.company_table th,
.company_table td {
  padding: 18px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}
.company_table th {
  width: 7.5em;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.company_table td {
  font-weight: 500;
}
.company_photos {
  flex: 0 0 38%;
  padding: 28px; /* 写真ボックスの内側余白 */
}
/* 施工実績の写真：白フチ＋影を付けて重ねる */
.company_photos img {
  border: 5px solid #fff;
  border-radius: 2px;
  box-shadow: 0 10px 26px rgba(38, 48, 46, 0.16);
}
.company_photos img:first-of-type {
  width: 92%; /* 家（外観）：大きく上に */
}
.company_photos img:last-of-type {
  position: relative;
  width: 58%; /* 内装：小さめ */
  margin-left: auto; /* 右寄せ */
  margin-top: -16%; /* 家の写真の右下に重ねる */
}
.company_photos_note {
  margin-top: 10px;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-align: right; /* 写真の右下に添える */
  line-height: 1.5;
}
@media (max-width: 769px) {
  .company {
    padding: 64px 0 80px;
  }
  .company_inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .company_photos {
    /* タブレット以下では会社概要の内容が上、写真が下。約80%に縮小 */
    margin-top: 48px;
    width: 80%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
  }
  .company_photos_note {
    font-size: 1.3rem; /* 縮小しても読める大きさを維持 */
  }
}
@media (max-width: 480px) {
  .company_table th,
  .company_table td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
  }
  .company_table th {
    padding-top: 14px;
    font-size: 1.3rem;
  }
  .company_table td {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
  }
}

/* ==========================================================
   6. フッター
   ========================================================== */
.footer {
  /* 紺案：見出し・ロゴと同じ紺に白文字 */
  background: var(--navy);
  color: #fff;
  padding: 56px 0 28px;
}
.footer_inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 56px;
  width: 90%;
  max-width: var(--content);
  margin: 0 auto 40px;
}
.footer_company {
  flex: none;
  font-size: 1.3rem;
  line-height: 1.9;
  letter-spacing: 0.08em;
}
.footer_name {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}
.footer_address {
  margin-bottom: 8px;
}
.footer_text {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 560px;
  font-size: 1.3rem;
  line-height: 2.1;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.88);
  text-align: justify;
}
.footer_copy {
  width: 90%;
  max-width: var(--content);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.72);
}
@media (max-width: 769px) {
  .footer_inner {
    flex-direction: column;
    gap: 28px;
  }
  .footer_text {
    max-width: none;
  }
}
