@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Zen+Old+Mincho:wght@400;500;700&display=swap");

:root {
  --primary-color: #3f524c;
  /* 深い緑がかったスレート色 - 信頼と自然 */
  --accent-color: #aa8c70;
  /* 木の色調 - 温かみ */
  --bg-color: #f5f3ef;
  /* 温かみのあるグレー - 和紙の質感 */
  --text-color: #333333;
  --light-gray: #f4f4f4;
  --white: #ffffff;
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* removed global box-sizing to restore company profile layout */
/* MOD Start 2026/04/09 */
body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.8;
  margin: 0;
  padding: 0;
  font-size: clamp(16px, 1.5vw + 10px, 20px);
  line-break: strict;
  /* word-break: auto-phrase; */
  overflow-wrap: break-word; 
  word-wrap: break-word;
  /* Fallback for older browsers */
}

/* MOD End 2026/04/09 */

/* MOD Start 2026/04/09 */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--primary-color);
}

h1 {
  font-size: clamp(28px, 4vw + 10px, 48px);
}

h2 {
  font-size: clamp(24px, 3.5vw + 8px, 36px);
}

h3 {
  font-size: clamp(20px, 3vw + 6px, 28px);
}

h4 {
  font-size: clamp(18px, 2.5vw + 4px, 24px);
}

h5 {
  font-size: clamp(16px, 2vw + 2px, 20px);
}

h6 {
  font-size: clamp(14px, 1.5vw, 18px);
}

p {
  font-size: clamp(16px, 1.5vw + 10px, 20px);
}

/* MOD End 2026/04/09 */

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* ADD Start 2026/04/09 */
/* 処理概要：改行位置の最適化用クラスの追加 */
/* 理由：モバイルでの自然な改行位置の担保のため */
.txt-no-break {
  display: inline-block;
}

/* ADD End 2026/04/09 */

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- ヘッダー & ナビゲーション --- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  box-sizing: border-box;
  animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.fig-logo {
  display: flex;
  align-items: center;
}

.fig-logo img {
  height: 50px;
  width: auto;
  filter: brightness(0.8) contrast(1.2) saturate(1.4);
  /* Vibrant Blue Look */
}

/* Make logo3.png (the text part) slightly darker as requested, but not too dark */
.fig-logo img[alt="Mizuho Name Logo"] {
  filter: brightness(0.75) contrast(1.2) saturate(1.3);
}

.nav-cmn-menu {
  display: flex;
  gap: 30px;
}

.nav-cmn-menu li a {
  font-size: 1.15rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
}

.nav-cmn-menu li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.nav-cmn-menu li a:hover::after,
.nav-cmn-menu li a.is-active::after {
  width: 100%;
}

.nav-cmn-menu li a.is-active {
  color: var(--accent-color);
}

/* Contact Button */
.nav-cmn-menu li a.btn-cmn-contact {
  background-color: var(--accent-color);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: bold;
  transition: all 0.3s ease;
}

/* Remove default nav link underline for button */
.nav-cmn-menu li a.btn-cmn-contact::after {
  display: none !important;
}

.nav-cmn-menu li a.btn-cmn-contact:hover {
  background-color: #8f755e;
  /* slightly darker than accent color #aa8c70 */
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(170, 140, 112, 0.3);
}

/* モバイルメニューボタン - 簡易実装 */
.btn-menu-toggle {
  display: none;
  /* トグルはJSで追加 */
}

/* スクロール時のヘッダーアクティブリンク修正 */
*/ */ */ .header-scrolled .nav-cmn-menu li a.is-active {
  /* MOD End 2026/03/24 */
  color: var(--accent-color) !important;
}

.header-scrolled .nav-cmn-menu li a.btn-cmn-contact.is-active {
  color: var(--white) !important;
}

*/ */ */ .header-scrolled .nav-cmn-menu li a.is-active::after {
  /* MOD End 2026/03/24 */
  background-color: var(--accent-color) !important;
}

/* --- ヒーローセクション --- */
.sec-hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.mod-hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.mod-hero-slideshow .mod-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  animation: hero-fade 18s linear infinite;
}

/* Ensure images fade in sequence (6s gap between each, infinite 18s loop) */
.mod-hero-slideshow .mod-slide:nth-child(1) {
  animation-delay: -2s;
}

.mod-hero-slideshow .mod-slide:nth-child(2) {
  animation-delay: -14s;
}

.mod-hero-slideshow .mod-slide:nth-child(3) {
  animation-delay: -8s;
}

@keyframes hero-fade {
  0% {
    opacity: 0;
    transform: scale(1);
  }

  11.11% {
    opacity: 1;
    transform: scale(1.02);
  }

  /* Fades in (2s) */
  33.33% {
    opacity: 1;
    transform: scale(1.06);
  }

  /* Stays visible (4s) */
  44.44% {
    opacity: 0;
    transform: scale(1.08);
  }

  /* Fades out (2s) */
  100% {
    opacity: 0;
    transform: scale(1.18);
  }

  /* Remains hidden the rest of the cycle */
}

/* --- グリッドスライドショー --- */
.grid-company-slideshow {
  display: grid;
  grid-template-areas: "inner";
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 8px;
}

.grid-company-slideshow img {
  grid-area: inner;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 常に埋めるようにフィット */
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.grid-company-slideshow img.is-active {
  opacity: 1;
  z-index: 1;
  position: relative;
  /* 必要ならフローを維持 */
}

.btn-c-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: white;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  font-size: 2rem;
  padding: 10px 15px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-c-nav:hover {
  background: rgba(0, 0, 0, 0.7);
}

.mod-c-prev {
  left: 0;
  border-radius: 0 5px 5px 0;
}

.mod-c-next {
  right: 0;
  border-radius: 5px 0 0 5px;
}

.sec-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
  pointer-events: none;
  /* allow hovering the columns through overlay */
}

.contents-hero {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 100%;
  /* 必要なら全幅許可 */
  width: auto;
  padding: 40px;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  border-radius: 50%;
}

.ttl-hero {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--white);
  text-shadow:
    0 4px 15px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(0, 0, 0, 0.6);
  border-bottom: 2px solid var(--white);
  display: inline-block;
  padding-bottom: 15px;
  white-space: nowrap;
  /* 強制的に1行にする */
}

.txt-hero-subtitle {
  font-size: 1.2rem;
  font-family: "Noto Sans JP", sans-serif;
  margin-bottom: 40px;
}

.btn-hero {
  display: inline-block;
  padding: 15px 40px;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--primary-color);
  border-radius: 30px;
  font-weight: bold;
  letter-spacing: 0.1em;
}

.btn-hero:hover {
  background-color: var(--accent-color);
  color: var(--white);
}

/* --- セクション共通 --- */
section {
  padding: 80px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.ttl-section {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.ttl-section h2 {
  font-size: 2.75rem;
  margin-bottom: 10px;
  font-family: "Noto Sans JP", sans-serif;
}

h3.ttl-section {
  font-size: 1.7rem;
  font-family: "Noto Sans JP", sans-serif;
}

.ttl-section span {
  display: block;
  font-size: 1.35rem;
  color: var(--accent-color);
  letter-spacing: 0.15em;
  font-family: "Noto Sans JP", sans-serif;
  text-transform: uppercase;
}

/* --- お知らせ --- */
.list-news {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 30px 40px;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.list-news-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.txt-news-date {
  /* MOD Start 2026/04/10 */
  /* 処理概要：フォント統一 */
  /* 理由：サイト全体のフォントをNoto Sans JPに統一するため */
  /*
  font-family: "Zen Old Mincho", serif;
*/
  font-family: "Noto Sans JP", sans-serif;
  /* MOD End 2026/04/10 */
  color: var(--accent-color);
  width: 120px;
  font-weight: bold;
}

.txt-news-content {
  flex: 1;
}

.mod-news-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 4px;
  margin-right: 15px;
  font-family: "Noto Sans JP", sans-serif;
  vertical-align: text-bottom;
  font-weight: bold;
}

.mod-news-tag.is-important {
  background-color: #c0392b;
  color: #fff;
}

/* --- ご挨拶 / 企業理念 --- */
.sec-greeting {
  background-color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border-radius: var(--border-radius);
  padding: 60px;
  margin-bottom: 80px;
}

.contents-greeting {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.txt-greeting-message {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 40px;
  line-height: 2;
}

.list-philosophy {
  text-align: left;
  background: var(--light-gray);
  padding: 40px;
  border-radius: var(--border-radius);
  margin-top: 50px;
}

.list-philosophy h3 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.5rem;
}

.list-philosophy ol {
  list-style-type: decimal;
  padding-left: 20px;
}

.list-philosophy li {
  margin-bottom: 15px;
  font-size: 1.25rem;
}

/* --- 会社概要 --- */
.area-company-table {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
}

.table-company {
  width: 100%;
  border-collapse: collapse;
}

.table-company th,
.table-company td {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  text-align: left;
  vertical-align: top;
}

.table-company th {
  width: 30%;
  background-color: #fafafa;
  color: var(--primary-color);
  font-weight: 500;
}

/* --- 施工事例 --- */
.grid-works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.mod-work-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  height: 100%;
}

.mod-work-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.area-work-img {
  height: 240px;
  overflow: hidden;
}

.area-work-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-card:hover .area-work-img img {
  /* MOD End 2026/03/24 */
  transform: scale(1.05);
}

.contents-work-info {
  padding: 20px;
  text-align: center;
  /* テキスト中央揃え */
  cursor: pointer;
  /* クリック可能 */
}

.ttl-work {
  font-size: 1.4rem;
  margin-bottom: 10px;
  font-weight: bold;
}

.txt-work-desc {
  font-size: 0.9rem;
  color: #666;
}

/* --- アクセス --- */
.area-access {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.area-map {
  flex: 1;
  min-width: 300px;
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.area-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contents-access-info {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* background: var(--primary-color); */
  background: #fafafaf4;
  /* color: var(--white); */
  color: var(--text-color);
  padding: 40px;
  border-radius: var(--border-radius);
}

.contents-access-info h3 {
  /* color: var(--white); */
  color: var(--text-color);
  margin-bottom: 20px;
}

.list-contact-details p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --- フッター --- */
footer {
  /* MOD Start 2026/03/25 */
  /*
  background-color: var(--primary-color);
  color: var(--white);
*/
  background-color: #ffffff;
  color: #333333;
  /* MOD End 2026/03/25 */
  padding: 50px 0 20px;
  text-align: center;
  /* MOD Start 2026/03/25 */
  /*
  border-top: 1px solid rgba(255, 255, 255, 0.1);
*/
  border-top: 1px solid #e5e5e5;
  /* MOD End 2026/03/25 */
}

.contents-footer {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 0 10%;
  /* match header padding */
}

.grid-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  width: 100%;
  padding-bottom: 30px;
  /* MOD Start 2026/03/25 */
  /*
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
*/
  border-bottom: 1px solid #e5e5e5;
  /* MOD End 2026/03/25 */
  margin: 0 auto;
}

.fig-footer-logo {
  display: flex;
  align-items: center;
  /* keep it centered or changed to flex-end if text is smaller */
  gap: 12px;
}

.fig-footer-logo img {
  height: 36px;
  opacity: 1;
}

.txt-footer-catchphrase {
  margin-bottom: 10px;
  font-size: 0.95rem;
  /* MOD Start 2026/03/25 */
  /*
  color: var(--white);
*/
  color: #333333;
  /* MOD End 2026/03/25 */
  white-space: nowrap;
}

.txt-footer-logo {
  /* MOD Start 2026/04/10 */
  /* 処理概要：フォント統一 */
  /* 理由：サイト全体のフォントをNoto Sans JPに統一するため */
  /*
  font-family: "Zen Old Mincho", serif;
*/
  font-family: "Noto Sans JP", sans-serif;
  /* MOD End 2026/04/10 */
  font-size: 1.5rem;
  font-weight: bold;
  /* MOD Start 2026/03/25 */
  /*
  color: var(--white);
*/
  color: #333333;
  /* MOD End 2026/03/25 */
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
  /* Match the vertical alignment nicely */
}

.list-footer-links {
  display: flex;
  gap: 35px;
  align-items: flex-start;
}

.mod-footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.list-footer-links a {
  font-size: 0.9rem;
  /* MOD Start 2026/03/25 */
  /*
  color: rgba(255, 255, 255, 0.9);
*/
  color: #333333;
  /* MOD End 2026/03/25 */
}

.ttl-footer-col {
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 6px;
  /* color: var(--white); */
  /* MOD Start 2026/03/25 */
  /*
  color: var(--text-color);
*/
  color: #333333;
  /* MOD End 2026/03/25 */
  font-size: 0.95rem;
  opacity: 0.8;
}

.list-footer-links a:hover {
  color: var(--accent-color);
}

.txt-copyright {
  margin-top: 20px;
  font-size: 0.8rem;
  /* MOD Start 2026/03/25 */
  /*
  color: rgba(255, 255, 255, 0.6);
*/
  color: #333333;
  /* MOD End 2026/03/25 */
}

/* --- 事業内容 --- */
.grid-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 20px;
}

.mod-service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  /* Lighter default shadow */
  text-align: center;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  /* Smoother, premium cubic-bezier easing */
  border-top: 4px solid transparent;
  will-change: transform, box-shadow;
  display: flex;
  flex-direction: column;
}

.list-service-links {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-service-detail {
  color: var(--accent-color);
  font-weight: bold;
  text-decoration: none;
}

.btn-service-voice {
  color: #27ae60;
  font-weight: bold;
  text-decoration: none;
}

.mod-service-card:hover {
  transform: translateY(-8px);
  /* Subtle lift instead of large jump */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  /* Soft, wide diffuse shadow */
  border-top: 4px solid var(--accent-color);
}

.ico-service {
  font-size: 3rem;
  color: var(--primary-color);
  /* margin-bottom: 20px; */
}

*/ */ */ .service-card:hover .ico-service {
  /* MOD End 2026/03/24 */
  color: var(--accent-color);
}

.ttl-service {
  font-size: 1.25rem;
  margin-bottom: 15px;
  font-weight: bold;
  color: var(--primary-color);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.txt-service-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
  word-break: keep-all;
  overflow-wrap: anywhere;
  /* DEL Start 2026/04/07 */
  /*
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  overflow: hidden;
  */
  /* DEL End 2026/04/07 */
}

/* --- レスポンシブ --- */
/* --- レスポンシブスタイルはresponsive.cssに移動済み --- */
.area-comparison {
  display: flex;
  height: 250px;
  width: 100%;
}

.mod-comparison-half {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-right: 1px solid #fff;
}

.mod-comparison-half:last-child {
  border-right: none;
}

.mod-comparison-half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mod-work-card:hover .mod-comparison-half img {
  transform: scale(1.05);
}

.txt-comparison-label {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(63, 82, 76, 0.85);
  color: #fff;
  padding: 5px 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: bold;
  -webkit-backdrop-filter: blur(2px); /* Added for Safari/iOS support */
  backdrop-filter: blur(2px); /* Standard property */
}

/* --- ライトボックスモーダル --- */
.mod-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(229, 228, 228, 1);
}

.contents-modal {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 900px;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  animation: zoomIn 0.3s;
}

.txt-modal-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #000000;
  padding: 10px 0;
  height: 150px;
  font-family: "Noto Sans JP", sans-serif;
}

.btn-close-modal {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #353535;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.btn-close-modal:hover,
.btn-close-modal:focus {
  color: #000000;
  text-decoration: none;
  cursor: pointer;
}

@keyframes zoomIn {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

.mod-comparison-half img {
  cursor: pointer;
  /* クリック可能を示す */
}

/* --- モーダルナビゲーション --- */
.btn-prev,
.btn-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 20px;
  margin-top: -50px;
  color: white;
  background-color: rgba(0, 0, 0, 0.4);
  /* 常に表示される背景 */
  font-weight: bold;
  font-size: 3rem;
  /* ずっと大きく */
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  -webkit-user-select: none;
  user-select: none;

  z-index: 2001;
  /* 最前面に */
}

.btn-next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.btn-prev {
  left: 0;
  border-radius: 3px 0 0 3px;
}

.btn-prev:hover,
.btn-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* --- スムーズスクロールアニメーション --- */
.fade-up,
.fade-in-section {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.fade-up.is-visible,
.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Staggered Delay Classes --- */
.fade-delay-1 {
  transition-delay: 0.1s;
}

.fade-delay-2 {
  transition-delay: 0.2s;
}

.fade-delay-3 {
  transition-delay: 0.3s;
}

.fade-delay-4 {
  transition-delay: 0.4s;
}

.fade-delay-5 {
  transition-delay: 0.5s;
}

.fade-delay-6 {
  transition-delay: 0.6s;
}

/* --- スライドショーのドットとキャプション --- */
.mod-c-slider-info {
  text-align: center;
  padding-top: 15px;
}

.list-c-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.mod-c-dot {
  height: 12px;
  width: 12px;
  background-color: #ddd;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s;
}

.mod-c-dot.is-active {
  background-color: var(--accent-color);
}

.txt-c-caption {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.95rem;
  color: #555;
  min-height: 1.5em;
  /* 空の場合のジャンプ防止 */
}

/* 複数アイテムの時差遅延 */
.fade-delay-1 {
  transition-delay: 0.1s;
}

.fade-delay-2 {
  transition-delay: 0.2s;
}

.fade-delay-3 {
  transition-delay: 0.3s;
}

/* --- アニメーション --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- トップへ戻るボタン --- */

@media (max-width: 768px) {
  .area-access {
    height: auto;
    display: flex;
    flex-direction: column;
  }

  .area-map {
    height: 300px;
    order: 2;
    /* モバイルでは地図を情報の下に、またはトップにするならorder削除 */
  }

  .contents-access-info {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    order: 1;
    /* モバイルでは情報を地図の上に */
    /* MOD Start 2026/04/09 */
    /* 処理概要：モバイル表示時の背景色とテキスト色をデスクトップ版と合わせる。 */
    /* 理由：背景色が暗くテキストが読みづらくなる問題を解消するためである。 */
    /* background: var(--primary-color); */
    background: #fafafaf4;
    color: var(--text-color);
    /* MOD End 2026/04/09 */
  }

  /* フッターレスポンシブ */
  /* MOD Start 2026/04/09 */
  /* 処理概要：タブレット画面でのフッター縦並び設定を解除。 */
  /* 理由：モバイル表示のブレイクポイントを500pxに引き下げるため、ここではスタックさせない。 */
  /*
  .contents-footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .list-footer-links {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .mod-footer-col {
    align-items: center;
    text-align: center;
  }
  */
  /* MOD End 2026/04/09 */
}

/* =========================================
   index.htmlから移動 (インラインスタイル)
   ========================================= */

/* Swiper上書き */
/* MOD Start 2026/04/09 */
/* 処理概要：Swiperコンテナからのはみ出しを完全に防ぐ */
/* 理由：タブレットでの2枚表示時に前後のスライドがはみ出して表示される問題の解決のため */
/*
.swiper-container {
  width: 100%;
  padding-top: 20px;
  padding-bottom: 50px;
}
*/
.swiper-container {
  width: 100%;
  padding-top: 20px;
  padding-bottom: 50px;
  overflow: hidden !important;
}

/* MOD End 2026/04/09 */

.swiper-slide {
  background-position: center;
  background-size: cover;
  height: auto;
  /* 固定幅削除 */
}

.swiper-pagination-bullet-active {
  background-color: var(--accent-color) !important;
}

/* 会社紹介スタイル */
.area-company-intro {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 50px;
  align-items: center;
}

.img-company-intro {
  flex: 1;
  min-width: 300px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* =========================================
   詳細ページから移動 (例: interior-reform.html)
   ========================================= */

.sec-detail-hero {
  height: 50vh;
  min-height: 400px;
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.area-content {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 5%;
}

.area-section-header {
  margin-bottom: 50px;
}

.area-section-header h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.area-section-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
}

.txt-main {
  font-size: 1.1rem;
  line-height: 2;
  color: #444;
  margin-bottom: 40px;
}

.grid-service {
  display: grid;
  gap: 40px;
  margin-bottom: 60px;
  grid-template-columns: repeat(2, 1fr);
  /* default to 2 columns for 4 items */
}

.grid-service.grid-3-cols {
  grid-template-columns: repeat(3, 1fr);
  /* specific layout for 3 items */
}

.mod-feature-card {
  background: #fff;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  /* MOD Start 2026/04/21 */
  /* 処理概要：カードデザインの統一（左ボーダーの追加） */
  /* 理由：3カードレイアウト（mod-diagnosis-card）のデザインと統一するため */
  border-left: 4px solid var(--accent-color);
  /* MOD End 2026/04/21 */
}

.mod-feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* MOD Start 2026/04/21 */
/* 処理概要：特徴カードの見出しの中央揃えとアイコン位置の固定 */
/* 理由：見出しテキストをカード中央に配置しつつ、アイコンを左側に固定するため */
/* 
.mod-feature-card i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 25px;
}

.mod-feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}
*/
/* MOD Start 2026/04/21 */
/* 処理概要：アイコンセレクタの修正 */
/* 理由：h3要素内のフレックスフローからアイコンを確実に外し、左端に固定するため */
/* 
.mod-feature-card i {
  font-size: 2.5rem;
  color: var(--accent-color);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
*/
.mod-feature-card h3 i {
  font-size: 2.5rem;
  color: var(--accent-color);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* MOD End 2026/04/21 */

/* MOD Start 2026/04/21 */
/* 処理概要：見出しテキストの配置余白追加 */
/* 理由：左固定のアイコンと中央揃えのテキストが重なるのを防ぐため、左右に等しい余白を設ける */
/*
.mod-feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--primary-color);
  position: relative;
  text-align: center;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
*/
.mod-feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--primary-color);
  position: relative;
  text-align: center;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 45px;
  padding-right: 45px;
}

/* MOD End 2026/04/21 */
/* MOD End 2026/04/21 */

.mod-feature-card p {
  color: #666;
  line-height: 1.7;
}

.info-box {
  background: #f8fbf9;
  padding: 50px;
  border-radius: 20px;
  margin: 80px 0;
}

.info-box h3 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.steps {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.step-item {
  flex: 1;
  min-width: 250px;
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 20px;
}

.cta-section {
  text-align: center;
  background: var(--primary-color);
  color: white;
  padding: 80px 20px;
  border-radius: 20px;
}

.cta-section h2 {
  margin-bottom: 20px;
}

.cta-btn {
  display: inline-block;
  padding: 18px 40px;
  background: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background: #c0392b;
  transform: scale(1.05);
}

/* =========================================
   注文新築工事 固有
   ========================================= */
.box-important-note {
  background: #fff5f0;
  border-left: 5px solid #e67e22;
  padding: 30px;
  border-radius: 10px;
  margin: 40px 0;
}

.box-important-note h3 {
  margin-top: 0;
  color: #e67e22;
}

/* =========================================
   水廻りリフォーム 固有
   ========================================= */
.brand-section {
  background: #f0f4f2;
  padding: 60px 40px;
  border-radius: 20px;
  margin: 80px 0;
  text-align: center;
}

.brand-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  font-weight: bold;
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-top: 30px;
}

/* =========================================
   住宅診断・相談ページ 固有
   ========================================= */
.sec-intro {
  margin-bottom: 30px;
}

.sec-intro h2 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.sec-intro p {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
}

.ttl-section {
  /* 競合回避のためリネーム */
  text-align: center;
  font-size: 1.6rem;
  color: var(--primary-color);
  margin: 25px 0 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0e0e0;
}

.grid-diagnosis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.mod-diagnosis-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  /* MOD Start 2026/04/21 */
  /* 処理概要：カードデザインの統一 */
  /* 理由：緑色ではなく他ページと同じテーマカラーを使用するため */
  border-left: 4px solid var(--accent-color);
  /* MOD End 2026/04/21 */
}

.mod-diagnosis-card h4 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.mod-diagnosis-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

/* ADD Start 2026/04/21 */
/* 処理概要：診断カード（mod-diagnosis-card）内のリスト要素のスタイル追加 */
/* 理由：段落（p）だけでなく箇条書き（ul, li）も同じデザインベースで表示可能にするため */
.mod-diagnosis-card ul {
  list-style-type: disc;
  padding-left: 1.5em;
  margin-top: 5px;
}

.mod-diagnosis-card li {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 5px;
}

.mod-diagnosis-card li:last-child {
  margin-bottom: 0;
}

/* ADD End 2026/04/21 */

/* DEL Start 2026/04/21 */
/* 理由：設定をグローバルに変更したため不要化 */
/* .theme-exterior .mod-diagnosis-card {
  border-left-color: var(--accent-color);
}
.theme-exterior .mod-diagnosis-card h4 i {
  color: var(--accent-color);
} */
/* DEL End 2026/04/21 */

.sec-flow {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 12px;
  margin: 25px 0;
}

.mod-flow-item {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.mod-flow-item:last-child {
  margin-bottom: 0;
}

.txt-flow-num {
  min-width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.contents-flow h4 {
  font-size: 1.1rem;
  margin-top: 6px;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.contents-flow p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

.sec-faq {
  margin: 25px 0;
}

.mod-faq-item {
  background: #f5f5f5;
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
}

.txt-faq-question {
  padding: 15px 20px;
  background: #e8e8e8;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.txt-faq-answer {
  padding: 15px 20px;
  line-height: 1.6;
  color: #555;
  font-size: 0.9rem;
  display: none;
}

.area-cta-banner {
  background: var(--primary-color);
  color: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  margin-top: 30px;
}

.area-cta-banner h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.area-cta-banner p {
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .grid-diagnosis {
    grid-template-columns: 1fr;
  }

  .mod-flow-item {
    flex-direction: column;
    gap: 10px;
  }
}

/* =========================================
   お客様の声ページ 固有
   ========================================= */
.page-hero {
  height: 40vh;
  min-height: 300px;
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.voices-container {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 5%;
}

.voice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.voice-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.voice-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.voice-img {
  height: 220px;
  overflow: hidden;
}

.voice-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.voice-card:hover .voice-img img {
  transform: scale(1.05);
}

.voice-body {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.voice-cat {
  display: inline-block;
  padding: 5px 12px;
  background: #e8f5e9;
  color: var(--accent-color);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  margin-bottom: 15px;
  align-self: flex-start;
}

.voice-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
  line-height: 1.4;
}

.voice-excerpt {
  color: #777;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* =========================================
   お客様の声 各種詳細ページ 固有
   ========================================= */

.voice-header {
  text-align: center;
  margin-bottom: 60px;
}

.voice-header h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.voice-meta {
  color: #666;
  font-size: 0.95rem;
}

.voice-section {
  background: #fff;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 50px;
}

.voice-section h3 {
  font-size: 1.5rem;
  color: var(--accent-color);
  border-bottom: 2px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 30px;
}

.interview-item {
  margin-bottom: 30px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.interview-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.icon-user {
  background: #e8f5e9;
  color: #2e7d32;
}

.icon-staff {
  background: #e3f2fd;
  color: #1565c0;
}

.interview-content h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #333;
}

.interview-content p {
  line-height: 1.8;
  color: #555;
}

.before-after-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}

.ba-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.ba-label {
  text-align: center;
  margin-top: 10px;
  font-weight: bold;
  color: var(--primary-color);
  display: block;
  background: #eee;
  padding: 5px;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .before-after-grid {
    grid-template-columns: 1fr;
  }

  .interview-item {
    flex-direction: column;
    gap: 10px;
  }

  .interview-icon {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}

/* Read More Button */
.btn-read-more {
  display: inline-block;
  padding: 12px 40px;
  background-color: var(--accent-color, #c89e6e);
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: 30px;
}

.btn-read-more:hover {
  background-color: var(--text-color, #333);
  color: #fff;
  transform: translateY(-2px);
}

.text-center {
  text-align: center;
}

/* --- MODERN 4-COLUMN FOOTER --- */
.footer-site {
  /* 
  background-color: #3c504a;*/
  /* dark slate green */
  background-color: #d5d0c5;
  color: var(--white);
  padding: 60px 5% 0;
  font-family: "Noto Sans JP", sans-serif;
}

.grid-footer {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 0.8fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.mod-footer-col-brand .fig-footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.mod-footer-col-brand .fig-footer-logo .ico-footer-icon {
  height: 60px;
}

.mod-footer-col-brand .fig-footer-logo .txt-footer-name {
  height: 48px;
  /* filter: brightness(0) invert(1); */
}

.mod-footer-col-brand .txt-footer-address p {
  margin: 0;
  font-size: 0.9rem;
  /* color: rgba(255, 255, 255, 0.8); */
  color: rgba(0, 0, 0, 0.8);
  line-height: 1.6;
}

.ttl-footer-col {
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.1rem;
  /* color: var(--white); */
  color: var(--text-color);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 10px;
  display: inline-block;
}

.nav-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-footer li a {
  font-size: 0.95rem;
  /* color: rgba(255, 255, 255, 0.85); */
  color: rgba(0, 0, 0, 0.85);
  position: relative;
  transition: color 0.3s;
  display: inline-block;
}

.nav-footer li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-footer li a:hover {
  /* color: var(--white); */
  color: var(--text-color);
}

.nav-footer li a:hover::after {
  width: 100%;
}

.footer-col-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.btn-footer-contact {
  display: inline-block;
  background-color: var(--accent-color);
  /* warm earthy brown/gold */
  color: var(--white);
  padding: 15px 35px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-footer-contact:hover {
  background-color: #8f755e;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.list-footer-socials {
  display: flex;
  gap: 15px;
}

.ico-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.ico-social:hover {
  background-color: var(--accent-color);
  color: var(--white);
  transform: translateY(-3px);
}

.area-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
  /* border-top: 1px solid rgba(255, 255, 255, 0.1); */
  border-top: 1px solid rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.txt-copyright {
  font-size: 0.85rem;
  /* color: rgba(255, 255, 255, 0.6); */
  color: rgba(0, 0, 0, 0.6);
  text-align: center;
  flex: 1;
  /* allow it to center naturally between edges */
}

.btn-page-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 65px;
  height: 65px;
  background-color: var(--accent-color);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 1.2rem;
  z-index: 1000;
  cursor: pointer;
  transition:
    opacity 0.3s,
    transform 0.3s,
    background-color 0.3s;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-page-top.is-show {
  opacity: 1;
  visibility: visible;
}

.btn-page-top:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

.btn-page-top i {
  font-size: 1.2rem;
  margin-bottom: 2px;
}

.btn-page-top span {
  font-size: 0.6rem;
  font-weight: bold;
  line-height: 1;
}

/* Hide original page-top floating button and old footer styles */
/* Not modifying existing ones directly, just ensuring new classes take priority */

/* --- お客様の声 / 施工事例詳細 (Customer Voices) --- */
.voices-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.voice-header {
  text-align: center;
  margin-bottom: 50px;
}

.voice-header h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--primary-color);
  line-height: 1.4;
}

.voice-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  color: #888;
  font-size: 1rem;
}

.voice-meta i {
  color: var(--accent-color);
  margin-right: 5px;
}

.voice-section {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
}

.voice-section h3 {
  font-size: 1.4rem;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--accent-color);
  color: var(--primary-color);
}

.voice-section p {
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* インタビュー (Interview) */
.interview-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.interview-item:last-child {
  margin-bottom: 0;
}

.interview-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.icon-staff {
  background-color: #e6f2ff;
  color: #0066cc;
}

.icon-user {
  background-color: #e6ffe6;
  color: #009900;
}

.interview-content {
  background: #f9f9f9;
  padding: 20px 25px;
  border-radius: 12px;
  position: relative;
  flex: 1;
}

.interview-content::before {
  content: "";
  position: absolute;
  top: 20px;
  left: -10px;
  border-width: 10px 10px 10px 0;
  border-style: solid;
  border-color: transparent #f9f9f9 transparent transparent;
  display: block;
  width: 0;
}

.interview-content h4 {
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 1rem;
  color: var(--primary-color);
}

.interview-content p {
  margin: 0;
  color: var(--text-color);
}

/* ビフォーアフター (Before After) */
.before-after-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.ba-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.ba-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.ba-label {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(63, 82, 76, 0.85);
  /* primary-color #3f524c */
  color: #fff;
  padding: 8px 0;
  text-align: center;
  font-weight: bold;
  letter-spacing: 0.1em;
  -webkit-backdrop-filter: blur(2px); /* Added for Safari/iOS support */
  backdrop-filter: blur(2px); /* Standard property */
}

/* ============================================================ */
/* --- お客様の声ページ (voices/index.html) --- */
/* ADD Start 2026/03/24 */
/* 処理概要：お客様の声ページ用スタイルを新命名規則で追加。 */
/* 理由：リファクタリングによりクラス名が変更されたため。 */
/* ============================================================ */

/* ページヒーロー（お客様の声ページ固有のヒーロー） */
.sec-page-hero {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 120px 5% 60px;
  box-sizing: border-box;
  margin: 0;
  max-width: 100%;
}

/* ページヒーロー内フェードアップ */
.sec-page-hero .fade-up {
  opacity: 1;
  transform: none;
}

/* ページヒーロー タイトル */
.sec-page-hero .ttl-hero {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--white);
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
  border-bottom: 2px solid var(--white);
  display: inline-block;
  padding-bottom: 10px;
  white-space: nowrap;
}

/* ページヒーロー サブタイトル */
.sec-page-hero .txt-hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

/* お客様の声 外側コンテナ */
.area-voices {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 5%;
  box-sizing: border-box;
}

/* セクションヘッダー（タイトル・説明文エリア） */
.header-section {
  text-align: center;
  margin-bottom: 50px;
}

.header-section h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.header-section p {
  color: #666;
  font-size: 1rem;
  line-height: 1.8;
}

/* グリッドコンテナ（2カラム） */
.grid-voice {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* お客様の声カード */
.mod-voice-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.mod-voice-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* カード内の画像ラッパー */
.img-voice {
  height: 240px;
  overflow: hidden;
}

.img-voice img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.mod-voice-card:hover .img-voice img {
  transform: scale(1.05);
}

/* カード内のテキストボディ */
.contents-voice {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* カテゴリラベル */
.txt-voice-cat {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: bold;
  color: var(--white);
  background-color: var(--primary-color);
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

/* カードタイトル */
.ttl-voice {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
  line-height: 1.5;
}

/* カード本文（ excerpt） */
.txt-voice-excerpt {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 15px;
}

/* 詳しく見るリンク */
.btn-voice-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--accent-color);
  margin-top: auto;
  transition: var(--transition);
}

.mod-voice-card:hover .btn-voice-link {
  color: var(--primary-color);
  letter-spacing: 0.05em;
}

/* レスポンシブ：タブレット以下で1カラム */
@media (max-width: 768px) {
  .grid-voice {
    grid-template-columns: 1fr;
  }

  .sec-page-hero .ttl-hero {
    font-size: 1.8rem;
    white-space: normal;
  }
}

/* --- お客様の声 詳細ページ --- */
/* ADD Start 2026/03/24 */
/* 処理概要：お客様の声詳細ページ用のCSSルールを追加する。 */
/* 理由：クラス名変更後に詳細ページのCSS定義が不足していたため追加する。 */

/* ヒーローセクション */
.sec-page-hero {
  height: 50vh;
  min-height: 350px;
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.ttl-hero {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--white);
  margin-bottom: 10px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.txt-hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* コンテンツエリア */
.area-voices {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 5%;
}

/* インタビューダイアログボックス */
.contents-interview {
  background-color: #f5f5f5;
  padding: 20px 25px;
  border-radius: 12px;
  flex: 1;
}

.contents-interview h4 {
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.contents-interview p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #444;
  margin: 0;
}

/* CTAボタン */
.hero-btn {
  display: inline-block;
  padding: 18px 50px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  opacity: 0.9;
}

/* ADD End 2026/03/24 */

/* ADD Start 2026/04/07 */
/* 処理概要：お問い合わせフォームのスタイル配置 */
/* 理由：contact.html から移行し、一元管理するため */
/* Contact Form Styles */
.area-contact-container {
  max-width: 500px;
  margin: 60px auto;
  padding: 30px;
  /*border: 2px solid #8f755e;*/
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ttl-contact-page {
  text-align: center;
  margin-bottom: 30px;
  font-size: 24px;
  color: #333;
}

.box-contact-group {
  margin-bottom: 20px;
}

.txt-contact-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

.form-contact-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.form-contact-input:focus {
  outline: none;
  border-color: #8f755e;
}

textarea.form-contact-input {
  resize: vertical;
}

.btn-contact-submit {
  width: 100%;
  padding: 15px;
  background-color: #8f755e;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-contact-submit:hover {
  background-color: #8f755e;
}

.area-form-actions {
  display: flex;
}

.btn-secondary {
  background-color: #fff;
  color: #333;
  border: 1px solid #ccc;
}

.btn-secondary:hover {
  background-color: #f5f5f5;
}

.txt-contact-confirm {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  color: #333;
}

/* ADD Start 2026/04/07 */
/* 処理概要：お問い合わせフォームのカスタムエラー用スタイルを追加 */
/* 理由：エラー時の視覚的フィードバックのため */
.is-error {
  border: 2px solid #b71c1c !important;
}

.txt-error-message {
  color: #b71c1c;
  font-size: 0.85rem;
  margin-top: 6px;
  display: block;
}

/* ADD End 2026/04/07 */

/* ADD End 2026/04/07 */

/* ADD Start 2026/04/07 */
/* 処理概要：contact.htmlのインラインスタイル一元化 */
/* 理由：スタイルの保守性向上およびCSSファイルへの統合のためである。 */
.contact-wrapper {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  padding: 24px 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.info-box {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 30px;
  border-left: 5px solid #b08d75;
}

.form-contact-input {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  margin-top: 8px;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.form-contact-input:focus {
  border-color: #b08d75;
  outline: none;
}

.required-tag {
  background: #e74c3c;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}

.review-box {
  background: #fef9f3;
  padding: 16px;
  border-radius: 8px;
  margin-top: 8px;
  color: #333;
}

.btn-quick-link {
  background: #f0f0f0;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #555;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn-quick-link:hover {
  background: #e0e0e0;
}

.box-contact-group {
  margin-bottom: 24px;
}

.txt-contact-label {
  font-weight: bold;
  color: #333;
  display: block;
}

@media (max-width: 767px) {
  .btn-contact-submit {
    width: 100% !important;
    box-sizing: border-box;
  }

  .contact-wrapper {
    padding: 24px;
  }
}

/* ADD End 2026/04/07 */

/* ADD Start 2026/04/10 */
/* 処理概要：インラインスタイルの移行（ユーティリティ及び専用クラス枠） */
/* 理由：保守性向上のため */
.mod-logo-link {
  display: flex;
  gap: 10px;
  align-items: center;
}

.bg-slide-01 {
  background-image: url("../img/works/main/I邸リビング.jpg");
}

.bg-slide-02 {
  background-image: url("../img/works/Y邸内部工事/K邸ﾘﾌｫｰﾑ後１.jpg");
}

.bg-slide-03 {
  background-image: url("../img/works/N邸外部塗装工事/I邸完成全景(改).JPG");
}

.txt-inline-block {
  display: inline-block;
}

.txt-greeting-sign {
  margin-top: 30px;
  font-weight: bold;
  text-align: right;
}

.btn-map-link {
  margin-left: 10px;
  color: var(--accent-color);
  font-size: 0.9em;
}

/* .list-cmn-details {
  margin: 0;
  padding-left: 20px;
} */

.ttl-contact-sub {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 500;
}

.txt-contact-link {
  color: inherit;
  text-decoration: none;
}

.btn-contact-sns {
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

/* ADD End 2026/04/10 */

/* ADD Start 2026/04/10 */
/* 処理概要：追加のインラインスタイル移行用クラス群（下層ページ用） */
/* 理由：保守性向上のため */
.bg-hero-consulting {
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../img/works/住宅診断・相談/本社1F打ち合わせ室.JPG") center/cover;
}

.bg-hero-interior {
  background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("../img/works/内装リフォーム/K邸ﾘﾌｫｰﾑ後２.jpg") center/cover;
}

.bg-hero-exterior {
  background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("../img/works/注文新築工事/K邸全景(改).png") center/cover;
}

.bg-hero-plumbing {
  background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("../img/works/水廻りリフォーム/K邸ﾘﾌｫｰﾑ後１.jpg") center/cover;
}

.area-breadcrumb {
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #666;
}

.txt-breadcrumb-link {
  color: var(--primary-color);
  text-decoration: none;
}

.txt-breadcrumb-link-sub {
  color: #666;
  text-decoration: none;
}

.txt-breadcrumb-separator {
  margin: 0 8px;
}

.ico-cmn-check {
  /* MOD Start 2026/04/21 */
  /* 処理概要：アイコンのカラー変更 */
  /* 理由：緑色から他ページと共通のテーマカラーに変更するため */
  color: var(--accent-color);
  /* MOD End 2026/04/21 */
  margin-right: 8px;
}

.area-cta-banner {
  margin-top: 60px;
  text-align: center;
  padding: 40px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.ttl-cta-banner {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--text-color);
}

.txt-cta-banner {
  margin-bottom: 25px;
  color: #555;
}

.list-cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-cta-primary {
  display: inline-block;
  margin: 0;
  padding: 10px 20px;
  background-color: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.btn-cta-primary:hover {
  background-color: #90765c;
}

.btn-cta-secondary {
  display: inline-block;
  margin: 0;
  padding: 10px 20px;
  background-color: white;
  border: 2px solid #27ae60;
  color: #27ae60;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s;
}

.btn-cta-secondary:hover {
  background-color: #27ae60;
  color: white;
}

/* ADD End 2026/04/10 */

/* ADD Start 2026/04/10 */
/* 処理概要：追加のインラインスタイル移行用クラス群（お問い合わせページ用） */
/* 理由：保守性向上のため */
.sec-contact-content {
  padding-top: 120px;
  padding-bottom: 60px;
}

.box-contact-intro {
  margin-bottom: 40px;
  line-height: 1.8;
  color: #333;
  /* MOD Start 2026/04/10 */
  /* 処理概要：フォント統一 */
  /* 理由：サイト全体のフォントをNoto Sans JPに統一するため */
  /*
  font-family: sans-serif;
*/
  font-family: "Noto Sans JP", sans-serif;
  /* MOD End 2026/04/10 */
}

.txt-contact-intro-sub {
  margin-bottom: 16px;
  font-weight: bold;
}

.list-contact-notes {
  list-style: none;
  padding: 0;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 32px;
}

.ttl-contact-form-notice {
  margin: 0 0 16px 0;
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
}

.txt-contact-form-notice {
  margin-bottom: 16px;
}

.list-contact-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mod-contact-group-last {
  margin-bottom: 30px;
}

.txt-char-counter {
  text-align: right;
  font-size: 0.85rem;
  color: #666;
  margin-top: 5px;
}

.is-hidden {
  display: none;
}

.txt-contact-confirm-message {
  white-space: pre-wrap;
  padding: 10px;
  background: #fef9f3;
}

.list-form-actions-submit {
  gap: 10px;
}

/* ADD End 2026/04/10 */

/* ADD Start 2026/04/10 */
/* 処理概要：追加のインラインスタイル移行用クラス群（Voicesページ群用） */
/* 理由：保守性向上のため */
.bg-hero-voice-plumbing {
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../img/works/Y邸内部工事/K邸ﾘﾌｫｰﾑ後１.jpg") center/cover;
}

.bg-hero-voice-interior {
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../img/works/N邸キッチン改修工事/K邸ﾘﾌｫｰﾑ後２.jpg") center/cover;
}

.bg-hero-voice-exterior {
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../img/works/N邸外部塗装工事/I邸完成全景(改).JPG") center/cover;
}

.bg-hero-voice-consulting {
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../img/works/2023年02月撮影の古河邸/完成全景2.jpg") center/cover;
}

.bg-hero-voice-index {
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../img/works/voices/日野町空撮.JPG") center/cover;
}

.area-voice-breadcrumb {
  margin-bottom: 40px;
  color: #888;
}

.item-voice-meta-location {
  margin-right: 20px;
}

.table-voice-details {
  width: 100%;
  text-align: left;
}

.table-voice-details th {
  padding: 15px;
  background: #f9f9f9;
}

.table-voice-details th.th-voice-label {
  width: 30%;
}

.table-voice-details td {
  padding: 15px;
}

.area-voice-cta {
  text-align: center;
  margin-top: 50px;
}

.btn-primary-filled {
  background: var(--accent-color);
  color: white;
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

/* ADD End 2026/04/10 */
