@charset "UTF-8";
/*
Theme Name: Michio Corporation Theme
Theme URI: https://example.com/
Author: Michio Corporation
Description: ミチオコーポレーション公式LPテーマ。1ページ完結型＋お知らせ機能、拡張性担保。
Version: 1.0.0

/* ==========================================================================
   Base Settings & Variables
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@500;700&display=swap');

:root {
  --primary-color: #8b0000; /* ミチオレッド（ロゴの赤色を想定） */
  --text-color: #111111;
  --bg-color: #ffffff;
}

body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  /* スムーススクロール用 */
  scroll-behavior: smooth; 
}

/* ==========================================================================
   Header Component
   ========================================================================== */
.header {
  width: 100%;
  /* アップグレード1：スクロール追従とすりガラス効果 */
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); /* Safari対応 */
  padding: 30px 0 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* うっすらとした境界線 */
  transition: padding 0.3s ease;
}

.header-inner {
  max-width: 1000px; /* メニューの広がりを制御 */
  margin: 0 auto;
  display: flex;
  flex-direction: column; /* ロゴとナビを縦並びに */
  align-items: center;
  padding: 0 20px;
}

/* --- Logo --- */
.logo-wrapper {
  margin-bottom: 25px; /* ロゴとメニューの余白 */
}

.logo-img {
  max-height: 100px; /* 実際の画像の比率に合わせて調整してください */
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

/* ロゴにホバーした時の微細なリアクション */
.logo-img:hover {
  transform: scale(1.02);
}

/* --- Navigation --- */
.global-nav {
  width: 100%;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between; /* 均等に配置 */
  width: 100%;
}

.nav-item a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
}

/* アップグレード2：ホバー時の下線アニメーション */
.nav-item a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.nav-item a:hover {
  color: var(--primary-color);
}

.nav-item a:hover::after {
  transform: scaleX(1);
}

/* PC時はハンバーガーボタンを非表示にする（メディアクエリの外に追記） */
.hamburger-btn {
  display: none;
}

/* ==========================================================================
   Responsive Settings (Mobile)
   ========================================================================== */
@media (max-width: 768px) {
  /* スマホ時はヘッダーをコンパクトにし、ナビゲーションは非表示（ハンバーガーメニュー用） */
  .header {
    padding: 10px 0;
  }
  .header-inner {
    flex-direction: row;
    justify-content: space-between;
  }
  .logo-wrapper {
    margin-bottom: 0;
  }
  .logo-img {
    max-height: 50px;
  }


  /* --- ハンバーガーボタン --- */
  .hamburger-btn {
    display: block;
    position: relative;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001; /* メニューより上に配置 */
  }

  .hamburger-btn span {
    position: absolute;
    left: 5px;
    width: 30px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
  }

  .hamburger-btn span:nth-child(1) { top: 10px; }
  .hamburger-btn span:nth-child(2) { top: 19px; }
  .hamburger-btn span:nth-child(3) { top: 28px; }

  /* is-activeクラス付与で「×」に変形 */
  .hamburger-btn.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .hamburger-btn.is-active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-btn.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* --- スマホ用ナビゲーションメニュー --- */
  .global-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
  }

  /* is-activeクラス付与でフワッと表示 */
  .global-nav.is-active {
    opacity: 1;
    visibility: visible;
  }

/* スマホ用ナビゲーションメニューのリスト */
  .nav-list {
    display: flex; /* none を削除し、flexを明記 */
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
}



/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  width: 100%;
  background-color: var(--bg-color); /* 背景は白（ヘッダーと統一） */
  padding: 60px 0;
  overflow: hidden;
}

.hero-inner {
  max-width: 1000px; /* ヘッダーの幅と合わせる */
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

/* --- Content (Left) --- */
.hero-content {
  flex: 0 1 50%;
  padding-right: 20px;
}

/* ゴールドテキストのCSSスタイリング */
.hero-title {
  margin: 0 0 25px 0;
  line-height: 1.4;
  letter-spacing: 0.05em;
}

.gold-text {
  display: inline-block;
  font-weight: 700;
  /* ゴールドのグラデーション */
  background: linear-gradient(180deg, #dfbc60 0%, #a27b20 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* 立体感を出すためのドロップシャドウ（background-clip使用時はfilterが有効） */
  filter: drop-shadow(2px 3px 2px rgba(0, 0, 0, 0.2));
  font-size: 38px;
}

.gold-text.large-text {
  font-size: 46px;
  margin-top: 10px;
}

.hero-subtitle {
  font-size: 16px;
  line-height: 1.8;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 40px;
}

/* --- Hero Button --- */
.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  padding: 15px 40px;
  position: relative;
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3); /* 画像にあるような影 */
  transition: all 0.3s ease;
}

/* 右側の再生マークアイコン（CSSで作成） */
.icon-play {
  display: inline-block;
  width: 18px;
  height: 18px;
  background-color: #ffffff;
  border-radius: 50%;
  margin-left: 15px;
  position: relative;
}

.icon-play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  /* 三角形を作るCSS */
  border-left: 6px solid var(--primary-color);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

/* ボタンのホバーエフェクト（浮き上がって影が広がる） */
.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 5px 5px 12px rgba(0, 0, 0, 0.4);
}

/* --- Image (Right) --- */
.hero-image {
  flex: 0 1 50%;
  text-align: right;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  /* 画像が少しフワフワ浮くようなアニメーションを付けるとモダンになります（任意） */
  animation: float 6s ease-in-out infinite;
}

/* 画像浮遊アニメーション */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* ==========================================================================
   Responsive Settings (Mobile)
   ========================================================================== */
@media (max-width: 768px) {
  .hero {
    padding: 30px 0;
  }
  .hero-inner {
    flex-direction:row;
    text-align: center;
  }
  .hero-content {
    flex: 1 1 100%;
    padding-right: 0;
    margin-bottom: 30px;
  }
  .gold-text {
    font-size: 28px;
  }
  .gold-text.large-text {
    font-size: 32px;
  }
  .hero-image {
    flex: 1 1 100%;
    text-align: center;
  }
}

/* ==========================================================================
   About Us Section
   ========================================================================== */
.about {
  width: 100%;
  padding: 80px 0;
  background-color: var(--bg-color);
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 20px;
}

/* --- Image Area (Left) --- */
.about-image {
  flex: 0 0 45%;
  position: relative;
  z-index: 2; /* 背景パネルの上に重ねる */
  /* 右側に少し食い込ませるためのネガティブマージン */
  margin-right: -5%; 
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Content Area (Right) --- */
.about-content {
  flex: 0 0 60%;
  background-color: #f4f4f4; /* デザイン通りの薄いグレー */
  padding: 60px 40px 60px 80px; /* 左側のパディングを大きめに取って画像の食い込みスペースを確保 */
  z-index: 1;
}

.about-text-inner {
  max-width: 500px;
}

/* タイトルとゴールドの装飾 */
.about-title {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 30px 0;
  position: relative;
  display: inline-block;
  z-index: 1;
}

/* 文字の後ろに敷くゴールドのライン（アップグレードポイント） */
.about-title::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: -5%;
  width: 110%;
  height: 14px;
  background: linear-gradient(90deg, #b8860b 0%, #ffd700 50%, #daa520 100%);
  z-index: -1;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.about-desc {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 40px;
  text-align: justify;
}

/* ミッションボックス */
.mission-box {
  margin-bottom: 40px;
}

.mission-heading {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 10px 0;
}

.mission-text {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  margin: 0;
}

/* --- Red Button (Reuse/Adapt) --- */
.btn-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2em; /* 文字間隔を広げて「会 社 情 報」を再現 */
  padding: 15px 50px;
  border-radius: 5px;
  position: relative;
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.btn-red:hover {
  transform: translateY(-3px);
  box-shadow: 5px 5px 12px rgba(0, 0, 0, 0.4);
}

/* Play Icon (Inherited from hero if same, redefined here for safety) */
.btn-red .icon-play {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  border-radius: 50%;
  margin-left: 15px;
  position: relative;
}

.btn-red .icon-play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  border-left: 7px solid var(--primary-color);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* ==========================================================================
   Responsive Settings (Mobile)
   ========================================================================== */
@media (max-width: 768px) {
  .about-inner {
    flex-direction: row; /* スマホでは縦積みに変更 */
  }
  
  .about-image {
    width: 90%;
    margin: 0 50px -10px -70px; /* 下の要素に少し被せる */
  }

  .about-image img{
    width: 130%;
  }
  
  .about-content {
    width: 100%;
    padding: 50px 20px 40px; /* パディングをスマホ用に調整 */
    box-sizing: border-box;
  }
  
  .about-title {
    font-size: 28px;
  }
  
  .mission-heading {
    font-size: 20px;
  }
  
  .mission-text {
    font-size: 16px;
  }
}

/* ==========================================================================
   Services Section (事業内容：画像全体を配置)
   ========================================================================== */
.services {
  width: 100%;
  padding: 80px 0;
  background-color: #ffffff;
}

.services-inner {
  max-width: 1100px; /* 画像の枠に合わせて調整 */
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Section Header (汎用見出しスタイル) --- */
.section-header.center {
  text-align: center;
  margin-bottom: 50px;
}

.section-title-gold {
  font-size: 42px;
  font-weight: 700;
  display: inline-block;
  position: relative;
  margin: 0 0 10px 0;
  z-index: 1;
}

.section-title-gold::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: -5%;
  width: 110%;
  height: 20px;
  background: linear-gradient(90deg, #b8860b 0%, #ffd700 50%, #daa520 100%);
  z-index: -1;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.section-subtitle {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.1em;
}

/* --- Services Grid Layout --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* PC時は3列配置 */
  gap: 30px; /* カード画像間の余白 */
}

/* --- Service Card Link (リンクカード全体) --- */
.service-card-link {
  display: block; /* カード全体をリンクにする */
  text-decoration: none;
  background-color: transparent; /* 背景は透過 */
  border: none; /* 枠線は画像に含まれるため不要 */
  transition: all 0.3s ease; /* アニメーション設定 */
}

/* ホバー時の浮き上がりエフェクト */
/* .service-card-link:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
} */

/* --- Service Card Image (画像全体) --- */
.service-card-link img {
  width: 100%;
  height: auto;
  display: block;
  /* 画像が<a>タグの枠内に綺麗に収まるように設定 */
  max-width: 100%;
  border-radius: 12px; /* 画像に含まれる角丸に合わせる（必須ではないが、念のため） */
  box-sizing: border-box;
}

/* ==========================================================================
   Responsive Settings (Mobile & Tablet)
   ========================================================================== */
@media (max-width: 992px) {
  /* タブレットサイズでは2列にする */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* スマホサイズでは1列にする */
  .section-title-gold {
    font-size: 32px;
  }
  .section-title-gold::after {
    height: 14px;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

.service-card-link img {
    width: 69%;
    margin: auto;
}

  .service-card-link:hover {
    /* スマホではホバー効果を無効化（または微細なものに） */
    transform: none;
    box-shadow: none;
  }
}

/* ==========================================================================
   Works Section (施工事例)
   ========================================================================== */
.works {
  width: 100%;
  padding: 80px 0;
  background-color: #ffffff; /* 前後のセクションに合わせて背景色は白 */
}

.works-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Works Grid --- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* PC時は2列に配置 */
  gap: 40px; /* カード間の余白 */
}

/* --- Works Card --- */
.works-card {
  display: flex; /* 画像とテキストを並べる */
  text-decoration: none;
  color: var(--text-color);
  background-color: #fcfcfc;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

/* ホバー時にフワッと浮き上がるアニメーション */
.works-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* サムネイル画像エリア */
.works-thumb {
  flex: 0 0 40%; /* 画像の幅をカード全体の40%に固定 */
  aspect-ratio: 4 / 3; /* 画像の縦横比を固定 */
  overflow: hidden;
}

.works-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画像を歪ませずに枠いっぱいに表示 */
  transition: transform 0.3s ease;
}

/* ホバー時に画像が少しズームする */
/* .works-card:hover .works-thumb img {
  transform: scale(1.05);
} */

/* テキストエリア */
.works-content {
  flex: 1; /* 残りの幅をすべてテキストエリアに */
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.works-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 10px 0;
  color: #111111;
}

.works-text {
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 15px 0;
  color: #444444;
  text-align: justify; /* 両端揃えで読みやすく */
}

/* 「詳細を見る」リンク風のテキスト */
/* .works-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
  display: inline-block;
} */

.works-link::after {
  content: ' >'; /* シンプルな矢印をCSSで追加 */
}

/* ==========================================================================
   Responsive Settings (Works)
   ========================================================================== */
@media (max-width: 768px) {
  .works {
    padding: 60px 0;
  }

  .works-grid {
    grid-template-columns: 1fr; /* スマホ時は1列に */
    gap: 30px;
  }
  
  .works-card {
    flex-direction: column; /* スマホ時は画像とテキストを縦並びに変更 */
  }
  
  .works-thumb {
    flex: none;
    width: 100%; /* 画像の幅を100%に */
    aspect-ratio: 16 / 9; /* スマホ時は少し横長にして見やすく */
  }
}

/* ==========================================================================
   Strengths Section (当社の強み)
   ========================================================================== */
.strengths {
  width: 100%;
  padding: 80px 0;
  /* 前のセクション（白）との区切りを明確にするため、ほんのりグレーを敷くアップグレード */
  background-color: #fafafa; 
}

.strengths-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Image Wrap --- */
.strengths-image-wrap {
  margin: 0 auto 50px;
  text-align: center;
}

.strengths-image-wrap img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* --- Description Text --- */
.strengths-desc {
  font-size: 18px;
  line-height: 1.8;
  font-weight: 700;
  text-align: center;
  color: #333333;
  margin: 0;
}

/* ==========================================================================
   Responsive Settings (Mobile)
   ========================================================================== */
@media (max-width: 768px) {
  .strengths {
    padding: 60px 0;
  }
  
  .strengths-desc {
    font-size: 15px;
    text-align: justify; /* スマホでは両端揃えが見やすい */
    padding: 0 10px;
  }
  
  /* スマホ閲覧時はデザイン上の改行を無効化し、画面幅に合わせて自然に折り返す */
  .pc-only {
    display: none;
  }
}

/* ==========================================================================
   FAQ Section (よくある質問 / アコーディオン)
   ========================================================================== */
.faq {
  width: 100%;
  padding: 80px 0;
  background-color: #ffffff;
}

.faq-inner {
  max-width: 800px; /* 読みやすさを考慮し、少し幅を狭める */
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Accordion Item --- */
.faq-item {
  border-bottom: 1px solid #dddddd;
  /* detailsタグ特有のアウトラインを消す */
  outline: none;
}

/* 最初のアイテムの上にも線を引く */
.faq-item:first-child {
  border-top: 1px solid #dddddd;
}

/* --- Question (Summary) --- */
.faq-q {
  display: flex;
  align-items: center;
  padding: 25px 20px 25px 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  position: relative;
  /* デフォルトの三角形アイコンを消す（Safari/Chrome） */
  list-style: none;
  transition: background-color 0.3s ease;
}

.faq-q::-webkit-details-marker {
  display: none; /* デフォルトの三角形アイコンを消す（旧仕様対応） */
}

.faq-q:hover {
  background-color: #fcfcfc;
}

/* Qマークの装飾 */
.q-mark {
  color: var(--primary-color);
  font-size: 24px;
  font-family: 'Arial', sans-serif; /* 英語フォントでカチッと見せる */
  margin-right: 15px;
}

.q-text {
  flex: 1; /* テキスト部分を残りの幅いっぱいに */
  line-height: 1.5;
}

/* 開閉アイコン（＋と－）をCSSで作成 */
.faq-icon {
  position: relative;
  width: 20px;
  height: 20px;
  margin-left: 15px;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: #333333;
  transition: transform 0.3s ease;
}

/* 縦線 */
.faq-icon::before {
  top: 0;
  left: 9px;
  width: 2px;
  height: 100%;
}

/* 横線 */
.faq-icon::after {
  top: 9px;
  left: 0;
  width: 100%;
  height: 2px;
}

/* アコーディオンが開いた状態（details[open]）のアイコン変化（＋が－になる） */
details[open] .faq-icon::before {
  transform: rotate(90deg);
  opacity: 0;
}

details[open] .faq-icon::after {
  transform: rotate(180deg);
}

/* --- Answer --- */
.faq-a {
  padding: 0 20px 30px 45px; /* Qマークの幅だけ左を空ける */
  color: #444444;
  line-height: 1.8;
}

.faq-a p {
  margin: 0;
  display: flex;
  background-color: #f4f4f4; /* 回答部分に薄いグレーを敷いて視認性を高める */
  padding: 20px;
  border-radius: 8px;
}

/* Aマークの装飾 */
.a-mark {
  color: #b8860b; /* ゴールド系 */
  font-size: 20px;
  font-weight: 700;
  font-family: 'Arial', sans-serif;
  margin-right: 15px;
  line-height: 1.2;
}

/* ==========================================================================
   Responsive Settings (Mobile)
   ========================================================================== */
@media (max-width: 768px) {
  .faq {
    padding: 60px 0;
  }
  
  .faq-q {
    font-size: 16px;
    padding: 20px 10px 20px 0;
  }
  
  .q-mark {
    font-size: 20px;
    margin-right: 10px;
  }
  
  .faq-a {
    padding: 0 10px 25px 35px;
    font-size: 14px;
  }
  
  .faq-a p {
    padding: 15px;
  }
}

/* ==========================================================================
   News & Columns Section (お知らせ・コラム)
   ========================================================================== */
.news {
  width: 100%;
  padding: 80px 0;
  /* 背景色はデザインに合わせて白（または薄いグレー） */
  background-color: #ffffff;
}

.news-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- News Grid --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

/* --- News Card --- */
.news-card {
  display: block;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-card:hover .news-thumb img {
  /* ホバー時に画像を少しズームさせる演出（コンバージョン率UPの鉄板です） */
  transform: scale(1.05);
}

/* サムネイル画像エリア */
.news-thumb {
  width: 100%;
  aspect-ratio: 4 / 3; /* 画像の縦横比を固定（WP化の際にレイアウト崩れを防ぎます） */
  background-color: #e0e0e0; /* プレースホルダー用のグレー */
  overflow: hidden;
  margin-bottom: 15px;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画像を枠いっぱいにトリミングして表示 */
  transition: transform 0.3s ease;
}

/* テキストエリア */
.news-content {
  position: relative;
  padding-bottom: 15px;
}

.news-title {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  font-weight: 700;
  color: #333333;
}

/* 右下の赤い小さな装飾アイコン（CSSで作成） */
.news-corner-icon {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border: 1px solid #ffcccc; /* 薄い赤の枠線 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-corner-icon::after {
  content: '';
  width: 4px;
  height: 4px;
  background-color: #ffcccc;
  border-radius: 50%;
}

/* --- Pill Shaped Button (詳しく見る) --- */
.news-btn-wrap {
  text-align: center;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  padding: 15px 50px;
  /* ここで完全な角丸（ピル形状）にします */
  border-radius: 50px; 
  transition: all 0.3s ease;
  box-shadow: 2px 4px 8px rgba(0,0,0,0.2);
}

.btn-pill:hover {
  background-color: #a30000; /* ホバー時は少し暗い赤に */
  transform: translateY(-2px);
  box-shadow: 2px 6px 12px rgba(0,0,0,0.3);
}

/* ボタン内の丸い矢印アイコン */
.icon-play-circle {
  display: inline-block;
  width: 22px;
  height: 22px;
  background-color: #ffffff;
  border-radius: 50%;
  margin-left: 15px;
  position: relative;
}

.icon-play-circle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  border-left: 6px solid var(--primary-color);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

/* お知らせのPC設定に追加（既存の .news-title の上あたりに追記） */
.news-date {
  display: none; /* PC版では元のデザイン通り日付を隠す */
}

/* ==========================================================================
   Responsive Settings (Mobile & Tablet)
   ========================================================================== */
@media (max-width: 992px) {
  .news-grid {
    /* タブレットは2列 */
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
 /* --- お知らせ・コラム（スマホ版：リスト型レイアウト） --- */
  .news {
    padding: 60px 0;
  }
  
  .news-grid {
    display: block; /* 縦横のグリッドを解除 */
    margin-bottom: 40px;
  }
  
  .news-card {
    display: flex; /* 横並びにする（日付とタイトル） */
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid #dce2e6; /* 画像にある薄いブルーグレーの線 */
  }

  /* 1番目の記事だけ上にも線を引く */
  .news-card:first-child {
    border-top: 1px solid #dce2e6;
  }
  
  .news-card:hover {
    transform: none; /* スマホでは浮き上がりアニメーションをオフ */
    background-color: #fcfcfc; /* タップしたのが分かるように微細な背景色変化のみ */
  }

  /* スマホではサムネイル画像と右下の赤い装飾アイコンを非表示にする */
  .news-card .news-thumb,
  .news-card .news-corner-icon {
    display: none;
  }

  .news-content {
    display: flex;
    width: 100%;
    padding: 0;
  }
  
  /* スマホ版の日付表示設定 */
  .news-date {
    display: block;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Arial', sans-serif; /* 数字をカチッと見せる */
    color: #111111;
    width: 100px; /* 日付エリアの幅を固定 */
    flex-shrink: 0; /* 日付エリアが潰れないようにする */
    margin-top: 2px; /* タイトルとの高さの微調整 */
  }

  .news-title {
    font-size: 13px;
    line-height: 1.6;
    flex: 1; /* タイトルが残りの幅をすべて埋める */
  }
}

/* ==========================================================================
   Contact Section (お問い合わせ)
   ========================================================================== */
.contact {
  width: 100%;
  padding: 80px 0;
  background-color: #f4f4f4; /* 画像通りの薄いグレー背景 */
}

.contact-inner {
  max-width: 800px; /* フォームが広がりすぎないように制限 */
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Form Layout --- */
.form-wrap {
  margin-top: 40px;
}

.form-row {
  display: flex;
  align-items: center; /* 縦の中央揃え */
  margin-bottom: 25px;
}

.form-row.align-top {
  align-items: flex-start; /* テキストエリア用の上揃え */
}

/* 画像にある「氏名」と「電話番号」の間の広めの余白 */
.form-row.mt-large {
  margin-top: 50px;
}

/* --- Form Label (左側) --- */
.form-label {
  flex: 0 0 200px; /* ラベルの幅を固定 */
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 16px;
}

.form-label label {
  cursor: pointer;
}

.required {
  background-color: transparent;
  color: #cc0000; /* 濃い赤 */
  font-size: 11px;
  font-weight: 700;
  margin-left: 15px;
}

/* --- Form Input (右側) --- */
.form-input {
  flex: 1; /* 残りの幅をすべて使う */
}

/* 共通の入力欄スタイル */
.form-input input[type="text"],
.form-input input[type="tel"],
.form-input input[type="email"],
.form-input select,
.form-input textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cccccc;
  background-color: #ffffff;
  font-size: 15px;
  font-family: inherit;
  color: #333333;
  box-sizing: border-box; /* paddingを含めて幅100%にする */
  transition: border-color 0.3s ease;
}

/* フォーカス時の色変更（ユーザビリティ向上） */
.form-input input:focus,
.form-input select:focus,
.form-input textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-input textarea {
  resize: vertical; /* 縦方向のみリサイズ可能に */
}

/* セレクトボックスの独自矢印装飾 */
.select-wrap {
  position: relative;
  width: 200px; /* 見積りのセレクトボックスの幅を調整 */
}

.select-wrap::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #666666;
  pointer-events: none; /* 矢印をクリックしてもセレクトボックスが反応するように */
}

.form-input select {
  appearance: none; /* デフォルトの矢印を消す */
  -webkit-appearance: none;
  padding-right: 30px;
}

/* --- Submit Button --- */
.form-submit {
  text-align: center;
  margin-top: 50px;
}

.btn-submit {
  display: block;
  width: 100%;
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 20px 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2em; /* 文字間隔を広げる */
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-submit:hover {
  background-color: #a30000;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* ==========================================================================
   Responsive Settings (Mobile)
   ========================================================================== */
@media (max-width: 768px) {
  .contact {
    padding: 60px 0;
  }
  
  .form-row,
  .form-row.align-top {
    flex-direction: column; /* スマホでは縦積みに */
    align-items: flex-start;
  }
  
  .form-label {
    flex: none;
    width: 100%;
    margin-bottom: 10px;
  }
  
  .select-wrap {
    width: 100%; /* スマホではセレクトボックスも幅100%に */
  }
  
  .form-row.mt-large {
    margin-top: 25px; /* スマホでは余白を詰める */
  }
  
  .btn-submit {
    font-size: 16px;
    padding: 15px 0;
  }
}

/* ==========================================================================
   Footer Section (フッター)
   ========================================================================== */
.footer {
  width: 100%;
  background-color: #333333; /* 背景色をダークグレーに変更 */
  padding: 60px 0 20px;
  color: #ffffff; /* ベースの文字色を白に変更 */
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* --- 1. Logo Area --- */
.footer-logo-area {
  flex: 0 0 300px;
}

.footer-logo {
  max-width: 100%;
  height: auto;
  display: block;
  /* もしロゴの文字が黒で見えにくい場合は、画像自体を白抜きバージョン（別ファイル）に変更することをおすすめします */
}

/* --- 2. Company Info --- */
.footer-info {
  flex: 1;
  margin-left: 40px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.8;
}

.footer-info p {
  margin: 0 0 20px 0;
}

/* --- 3. Sitemap (Nav) --- */
.footer-nav {
  display: flex;
  gap: 40px;
}

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

.footer-nav-list li {
  margin-bottom: 15px;
}

.footer-nav-list a {
  text-decoration: none;
  color: #ffffff; /* リンク文字を白に変更 */
  font-weight: 700;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-nav-list a:hover {
  color: var(--primary-color);
}

/* --- 4. Page Top Button --- */
.page-top-wrap {
  margin-left: 60px;
  display: flex;
  align-items: flex-start;
}

.page-top-btn {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #ffffff; /* PAGE TOPの文字を白に変更 */
  font-weight: 700;
  font-size: 15px;
  writing-mode: vertical-rl;
  letter-spacing: 0.1em;
  transition: opacity 0.3s ease;
}

.page-top-btn:hover {
  opacity: 0.6;
}

/* 上向きの長い矢印 */
.arrow-up {
  display: inline-block;
  width: 1px;
  height: 60px;
  background-color: #ffffff; /* 線の色を白に変更 */
  margin-top: 15px;
  position: relative;
}

.arrow-up::before {
  content: '';
  position: absolute;
  top: 0;
  left: -4px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #ffffff; /* 矢印の先端を白に変更 */
  border-left: 2px solid #ffffff; /* 矢印の先端を白に変更 */
  transform: rotate(45deg);
}

/* --- Copyright --- */
.copyright {
  text-align: center;
  margin-top: 60px;
  font-size: 12px;
  font-weight: 500;
  color: #aaaaaa; /* 真っ白だと目立ちすぎるため、薄いグレーに変更 */
}

/* ==========================================================================
   Responsive Settings (Mobile) - 変更なしですが念のため記載
   ========================================================================== */
@media (max-width: 992px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-logo-area,
  .footer-info,
  .page-top-wrap {
    margin: 0 0 40px 0;
  }
  
  .footer-nav {
    flex-direction: column;
    gap: 0;
    margin-bottom: 40px;
  }
  
  .footer-nav-list li {
    margin-bottom: 20px;
  }
  
  .page-top-btn {
    writing-mode: horizontal-tb;
    flex-direction: column-reverse;
    gap: 15px;
  }
  
  .arrow-up {
    height: 40px;
    margin-top: 0;
  }
}

/* ==========================================================================
   Scroll Animation (フワッと表示)
   ========================================================================== */
/* 初期状態（透明＆少し下に配置） */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* 画面に入った時の状態（表示＆元の位置へ） */
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- オプション：時間差で表示させるためのディレイ（事業内容のカードなどに使用） --- */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }


/* ==========================================================================
   Modal (ポップアップ)
   ========================================================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 9999; /* 最前面に表示 */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* JSで is-active クラスが付与されたらフワッと表示 */
.modal.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 650px;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 50px 40px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  /* 下から少し浮き上がるアニメーション */
  transform: translateY(20px);
  transition: transform 0.3s ease;
  z-index: 1;
  max-height: 90vh;
  overflow-y: auto; /* 画面の縦幅が狭い場合はスクロール可能に */
}

.modal.is-active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 32px;
  color: #999999;
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
}

.modal-close:hover {
  color: var(--primary-color);
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 30px 0;
  color: #111111;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.modal-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

/* 会社情報テーブルの装飾 */
.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 18px 15px;
  border-bottom: 1px solid #eeeeee;
  font-size: 15px;
  line-height: 1.6;
}

.company-table th {
  width: 30%;
  text-align: left;
  background-color: #fcfcfc;
  font-weight: 700;
  color: #333333;
}

.company-table td {
  width: 70%;
  color: #444444;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: none; /* 一番下の線を消す */
}

/* --- レスポンシブ（スマホ用） --- */
@media (max-width: 768px) {
  .modal-content {
    padding: 40px 20px;
  }
  
  /* スマホでは表を縦積みにする */
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }
  
  .company-table th {
    border-bottom: none;
    padding-bottom: 5px;
  }
  
  .company-table td {
    padding-top: 0;
    padding-bottom: 15px;
    border-bottom: 1px dashed #dddddd; /* スマホ時の区切り線 */
  }
  
  .company-table tr:last-child td {
    border-bottom: none;
  }
}