@charset "UTF-8";

/* ==========================================================
   OIC21 / 見やすさを重視したモダンデザイン
   ========================================================== */

:root {
  --navy: #18324a;
  --blue: #2f5876;
  --blue-light: #edf3f7;
  --gold: #ad8748;
  --gold-light: #d5bf96;
  --text: #30383e;
  --muted: #66727b;
  --bg: #f3f5f6;
  --white: #ffffff;
  --line: #d9e0e4;
  --container: 1120px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body.modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: .2s ease;
}

a:hover {
  opacity: .75;
}

.container {
  width: 92%;
  max-width: var(--container);
  margin: 0 auto;
}

/* ==========================================================
   ヘッダー
   ========================================================== */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 100;
}

.header-inner {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-img {
  max-width: 400px;
  max-height: 80px;
  width: auto;
  display: block;
}

.header-contact {
  text-align: right;
}

.tel-label {
  color: var(--muted);
  font-size: .90rem;
  margin-bottom: 2px;
}

.tel {
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: bold;
  white-space: nowrap;
}

.tel a {
  color: inherit;
}

.tel span {
  font-size: .90rem;
  font-weight: normal;
  color: var(--muted);
}

.tel-divider {
  color: #b8c0c5 !important;
  margin: 0 5px;
}

/* ハンバーガーボタン */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--navy);
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

.sp-tel-area {
  display: none;
}

/* ==========================================================
   ナビゲーション
   ========================================================== */

.main-nav {
  background: var(--navy);
}

.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav li {
  flex: 1 1 0;
  text-align: center;
}

.main-nav a {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  color: #fff;
  font-size: .94rem;
  font-weight: bold;
  letter-spacing: .05em;
  border-right: 1px solid rgba(255,255,255,.12);
  transition: background-color .2s ease;
}

.main-nav li:first-child a {
  border-left: 1px solid rgba(255,255,255,.12);
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--blue);
  opacity: 1;
}

/* お問い合わせメニューの個別色指定を統一 */
.main-nav a.contact-nav {
  background: transparent;
}

.main-nav a.contact-nav:hover {
  background: var(--blue);
}

/* ==========================================================
   トップビジュアル
   ========================================================== */

.hero-visual {
  position: relative;
  padding: 12px 0 15px; /* 上下のパディングを小さく変更 */
  background: linear-gradient(135deg, #dfe7ec 0%, #f3f5f6 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
}

.hero-image {
  height: 300px; /* 高さを 360px から 300px に短縮 */
  overflow: hidden;
  background: #d7dee3;
  box-shadow: 0 8px 25px rgba(24,50,74,.12);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================
   メイン・各セクション
   ========================================================== */

.main-content {
  padding: 40px 0 60px;
}

.services-section,
.gallery-section {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 3px 16px rgba(24,50,74,.06);
  margin-bottom: 30px;
  padding: 40px 38px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-label {
  display: block;
  color: var(--gold);
  font-size: .75rem;
  font-weight: bold;
  letter-spacing: .16em;
}

.section-heading h2 {
  color: var(--navy);
  font-size: 1.8rem;
  font-weight: bold;
}

.section-heading > p {
  color: var(--muted);
  margin-top: 6px;
  font-size: .92rem;
}

/* 業務内容 */
.service-block {
  background: #f8fafb;
  border: 1px solid var(--line);
  margin-top: 24px;
  padding: 28px;
}

.service-title {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--navy);
}

.service-number {
  flex: 0 0 45px;
  width: 45px;
  height: 45px;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: Georgia, serif;
  font-weight: bold;
}

.service-title h3 {
  color: var(--navy);
  font-size: 1.3rem;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
  list-style: none;
}

.service-list li {
  position: relative;
  background: var(--white);
  border: 1px solid #e1e6e9;
  padding: 10px 14px 10px 30px;
  font-size: .95rem;
}

.service-list li::before {
  content: "●";
  position: absolute;
  left: 12px;
  top: 10px;
  color: var(--gold);
  font-size: .55rem;
}

.service-list li a {
  color: var(--blue);
  font-weight: bold;
  text-decoration: underline;
}

/* リフォームメニュー */
.reform-menu-box {
  margin-top: 28px;
  padding: 25px;
  background: #eef3f6;
  border: 1px solid #d5dfe5;
}

.reform-heading {
  margin-bottom: 18px;
  text-align: center;
}

.reform-heading strong {
  display: block;
  color: var(--navy);
  font-size: 1.1rem;
}

.reform-heading span {
  color: var(--muted);
  font-size: .78rem;
}

.reform-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.reform-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px;
  background: #fff;
  border: 1px solid #ccd7de;
  color: var(--navy);
  font-size: .88rem;
  font-weight: bold;
}

/* 施工実績 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-item {
  border: 1px solid var(--line);
  background: #fff;
}

.img-wrapper {
  height: 180px;
  overflow: hidden;
  background: #dfe4e7;
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item span {
  display: block;
  padding: 10px;
  color: var(--navy);
  text-align: center;
  font-size: .95rem;
  font-weight: bold;
  border-top: 1px solid var(--line);
}

/* ==========================================================
   会社概要（gaiyo.html）専用スタイル
   ========================================================== */

.profile-table-wrapper {
  margin-top: 20px;
  overflow-x: auto;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
}

.profile-table th,
.profile-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  text-align: left;
}

.profile-table th {
  width: 28%;
  background: #f8fafb;
  color: var(--navy);
  font-weight: bold;
  white-space: nowrap;
  border-right: 1px solid var(--line);
}

.profile-table td {
  color: var(--text);
  line-height: 1.8;
}

.contact-cta-box {
  margin-top: 35px;
  padding: 30px 20px;
  background: var(--blue-light);
  border: 1px solid #d5dfe5;
  text-align: center;
}

.contact-cta-box p {
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 15px;
  font-weight: bold;
}

.contact-cta-btn {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  padding: 12px 30px;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  text-decoration: none;
}

.contact-cta-btn:hover {
  background: #947238;
  opacity: 1;
}

/* ==========================================================
   業務内容詳細（information.html）専用スタイル
   ========================================================== */

.info-card-section {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 3px 16px rgba(24,50,74,.06);
  margin-bottom: 30px;
  overflow: hidden;
}

.info-card-header {
  background: var(--navy);
  color: #fff;
  padding: 16px 28px;
}

.info-card-header h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin: 0;
}

.info-card-header.alert-header {
  background: #8b2626;
}

.card-content {
  padding: 30px 28px;
}

.sub-block {
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 1px dashed var(--line);
}

.sub-block:last-of-type {
  border-bottom: none;
  margin-bottom: 10px;
  padding-bottom: 0;
}

.sub-block h4 {
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 4px solid var(--gold);
}

.check-list {
  list-style: none;
  margin: 15px 0;
  padding-left: 10px;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
}

.check-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #d9534f;
  font-weight: bold;
}

.highlight-text {
  background: #fff8e6;
  border: 1px solid #f2e2b8;
  padding: 12px 16px;
  font-weight: bold;
  color: #8a6d3b;
  margin-top: 15px;
  border-radius: 4px;
}

.image-center-group {
  text-align: center;
  margin: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.flex-media-block {
  display: flex;
  gap: 20px;
  align-items: center;
}

.flex-media-block .text-area {
  flex: 1;
}

.flex-media-block .img-area {
  flex: 0 0 280px;
  text-align: center;
}

.red-text {
  color: #d9534f;
}

.case-study {
  font-weight: bold;
  color: var(--navy);
  margin-top: 8px;
}

.back-to-top {
  text-align: right;
  margin-top: 20px;
}

.btn-top {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--muted);
  background: #f0f3f5;
  padding: 6px 14px;
  border-radius: 3px;
  border: 1px solid var(--line);
}

.btn-top:hover {
  background: #e2e8ec;
  color: var(--navy);
}

/* ==========================================================
   アクセス（map.html）専用スタイル
   ========================================================== */

.access-container {
  max-width: 900px;
  margin: 20px auto 10px;
}

.map-embed-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 50%;
  background: #eee;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 25px;
}

.map-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.location-box {
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.location-header {
  background: var(--navy);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: bold;
  padding: 12px 20px;
  margin: 0;
}

.location-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.location-table th,
.location-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  vertical-align: middle;
}

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

.location-table th {
  width: 140px;
  background: #f4f7fa;
  color: var(--navy);
  font-weight: bold;
  text-align: left;
  white-space: nowrap;
  border-right: 1px solid var(--line);
}

.location-table td {
  color: var(--text);
  font-weight: 500;
}

.location-table td a {
  color: var(--blue);
  font-weight: bold;
  text-decoration: underline;
}

.tel-row th {
  background: #edf3f7;
  color: var(--navy);
}

.tel-row td {
  background: #fffdf8;
}

.tel-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 25px;
  align-items: center;
}

.tel-item {
  font-size: 1.05rem;
  font-weight: bold;
  color: var(--navy);
}

.tel-item a {
  color: var(--navy);
  text-decoration: underline;
}

.tel-item-label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: normal;
}

/* ==========================================================
   お問い合わせ（mail.html）専用スタイル
   ========================================================== */

.form-container {
  max-width: 800px;
  margin: 20px auto 35px;
}

.form-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
}

.form-table th,
.form-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  vertical-align: middle;
}

.form-table th {
  width: 220px;
  background: #f4f7fa;
  color: var(--navy);
  font-weight: bold;
  text-align: left;
  border-right: 1px solid var(--line);
}

.required-badge {
  display: inline-block;
  background: #d9534f;
  color: #fff;
  font-size: 0.72rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: #fafafa;
  border: 1px solid #ccd7de;
  border-radius: 4px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47,88,118,0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-submit-area {
  text-align: center;
  margin-top: 30px;
}

.submit-btn {
  display: inline-block;
  min-width: 220px;
  padding: 14px 40px;
  background: var(--gold);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.submit-btn:hover {
  background: #947238;
  transform: translateY(-1px);
}

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

.contact-direct-box {
  max-width: 800px;
  margin: 0 auto;
  padding: 25px;
  background: var(--blue-light);
  border: 1px solid #d5dfe5;
  border-radius: 6px;
}

.contact-direct-box h3 {
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 6px;
  display: inline-block;
}

.direct-info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
}

.direct-info-grid p {
  font-size: 0.95rem;
  color: var(--text);
}

.direct-info-grid a {
  color: var(--navy);
  font-weight: bold;
  text-decoration: underline;
}

/* ==========================================================
   PHP確認画面（confirm.php）専用スタイル
   ========================================================== */

.confirm-val {
  padding: 8px 12px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.95rem;
  color: var(--text);
  word-break: break-all;
}

.confirm-textarea {
  min-height: 120px;
  line-height: 1.7;
}

.confirm-btn-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
}

.btn-back {
  display: inline-block;
  min-width: 160px;
  padding: 14px 28px;
  background: #e2e8ec;
  color: var(--navy);
  font-size: 1rem;
  font-weight: bold;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-back:hover {
  background: #cbd6de;
}

/* ==========================================================
   モーダル
   ========================================================== */

.modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(14,27,38,.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-content-wrapper {
  max-width: 900px;
  max-height: 90vh;
}

.modal-content {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
}

#modalCaption {
  margin-top: 10px;
  color: #fff;
  font-size: 1rem;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

/* ==========================================================
   フッター
   ========================================================== */

.site-footer {
  background: #102335;
  color: #fff;
  padding: 30px 0;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  gap: 10px 0;
  margin-bottom: 18px;
}

.footer-nav li + li {
  border-left: 1px solid rgba(255,255,255,.2);
}

.footer-nav a {
  padding: 0 14px;
  color: rgba(255,255,255,.8);
  font-size: .82rem;
}

.copyright {
  color: rgba(255,255,255,.4);
  font-size: .75rem;
}

/* ==========================================================
   レスポンシブ：タブレット (768px〜992px)
   ========================================================== */

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
  .reform-menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================
   レスポンシブ：スマートフォン (767px以下)
   ========================================================== */

@media (max-width: 767px) {
  .header-inner {
    min-height: 70px;
  }

  .logo-img {
    max-width: 240px;
  }

  .header-contact {
    display: none;
  }

  /* ハンバーガー表示 */
  .menu-toggle {
    display: flex;
  }

  /* ドロワーメニュー */
  .main-nav {
    position: fixed;
    top: 71px;
    left: 0;
    width: 100%;
    height: calc(100vh - 71px);
    background: var(--navy);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .main-nav ul {
    flex-direction: column;
  }

  .main-nav li {
    width: 100%;
  }

  .main-nav a {
    min-height: 50px;
    justify-content: flex-start;
    padding: 12px 20px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.1);
    font-size: 1rem;
  }

  .main-nav li:first-child a {
    border-left: none;
  }

  /* メニュー内の電話番号ボタン */
  .sp-tel-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: rgba(0,0,0,.15);
  }

  .sp-tel-btn {
    display: block;
    background: var(--gold);
    color: #fff;
    text-align: center;
    padding: 12px;
    font-weight: bold;
    border-radius: 4px;
    font-size: .95rem;
  }

  /* メインビジュアル */
  .hero-visual {
    padding: 5px 0 10px; /* 上下のパディングを短縮 */
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-image {
    height: 160px; /* スマホ時の高さを 220px から 160px に短縮 */
  }

  .hero-image:nth-child(2) {
    display: none;
  }

  /* コンテンツ */
  .services-section,
  .gallery-section {
    padding: 25px 15px;
  }

  .service-block {
    padding: 18px 12px;
  }

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

  .reform-menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .reform-menu {
    min-height: 44px;
    font-size: .8rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .img-wrapper {
    height: 130px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 8px;
  }

  .footer-nav li + li {
    border-left: none;
  }

  /* スマホ表示時のテーブル縦並び調整 */
  .profile-table,
  .profile-table tbody,
  .profile-table tr,
  .profile-table th,
  .profile-table td {
    display: block;
    width: 100%;
  }

  .profile-table tr {
    border-bottom: 1px solid var(--line);
  }

  .profile-table th {
    width: 100%;
    background: #edf3f7;
    border-right: none;
    border-bottom: none;
    padding: 10px 15px 4px;
  }

  .profile-table td {
    padding: 4px 15px 14px;
    border-bottom: none;
  }

  /* 業務内容スマホ表示調整 */
  .flex-media-block {
    flex-direction: column;
  }

  .flex-media-block .img-area {
    flex: 1 1 100%;
    margin-top: 15px;
  }

  .card-content {
    padding: 20px 16px;
  }

  /* アクセスページスマホ表示調整 */
  .map-embed-container {
    padding-bottom: 70%;
  }

  .location-table th,
  .location-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .location-table th {
    border-right: none;
    border-bottom: none;
    background: #edf3f7;
    padding: 10px 15px 4px;
  }

  .location-table td {
    padding: 4px 15px 14px;
  }

  /* お問い合わせフォームスマホ表示調整 */
  .form-table,
  .form-table tbody,
  .form-table tr,
  .form-table th,
  .form-table td {
    display: block;
    width: 100%;
  }

  .form-table th {
    background: #edf3f7;
    border-right: none;
    border-bottom: none;
    padding: 10px 15px 4px;
  }

  .form-table td {
    padding: 8px 15px 16px;
  }

  .submit-btn {
    width: 100%;
  }

  .direct-info-grid {
    flex-direction: column;
    gap: 8px;
  }

  /* PHP確認画面スマホ表示調整 */
  .confirm-btn-group {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .btn-back,
  .confirm-btn-group .submit-btn {
    width: 100%;
  }
}