/*
 Theme Name: lightning-child
 Description: Lightningの子テーマ
 Author: yuki
 Template: lightning
 Version: 1.0.0
*/


/* ============================================================
   ■ 全ページ共通（フォント・基本レイアウト）
============================================================ */

/*全体のフォント*/
body {
  font-family: "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", "Hiragino Sans", "Noto Sans JP", sans-serif;
}

/*全体中央寄せ*/
.narrow-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}
/* 全ページのパンくずリストを非表示 */
.breadcrumb,
.p-breadcrumb,
.site-breadcrumb,
#breadcrumb {
    display: none !important;
}

/* パンくずを消した結果できる余白をつぶす */
.breadcrumb,
.p-breadcrumb,
.site-breadcrumb,
#breadcrumb {
    margin: 0 !important;
    padding: 0 !important;
}


/* ============================================================
   ■ TOPページ専用（home）
============================================================ */

/*TOPページH2だけ文字色変える*/
body.home h2 {
  color: #1D4687;
}

/*設備概要_デザインページのみ_twocol-mobile：モバイル時だけ2カラム*/
@media (max-width: 768px) {
  .twocol-mobile.wp-block-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .twocol-mobile .wp-block-column {
    flex: 0 0 45%;
    max-width: 45%;
  }
}

/*topページh2のフェードイン*/
.fadein {
  opacity: 0;
  transform: translateY(30px);
  transition-property: transform, opacity;
  transition-duration: 1.5s;
  transition-delay: 0s;
}
.fadein.is-active {
  opacity: 1;
  transform: translateY(0);
}

/*最新の投稿タイトルと日付を中央揃え*/
body.home ul.wp-block-latest-posts__list.is-grid li .wp-block-latest-posts__post-title,
body.home ul.wp-block-latest-posts__list.is-grid li time {
  text-align: center;
  display: block;
  width: 100%;
}

/*最新記事の余白調整*/
.wp-block-latest-posts.is-grid li {
  margin: 0;
}

/*3つの強み（スマホ時画像を縮小）*/
@media (max-width: 781px) {
  body.home .wp-block-column.is-layout-flow img {
    max-width: 70%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
}


/* ============================================================
   ■ 制作事例ページ専用（一覧）
============================================================ */

/*制作事例ページ用*/
.case-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}
.case-card {
  flex: 1 1 calc(33.3% - 16px);
  box-sizing: border-box;
}

/*制作事例一覧の「詳しく見る」ボタン*/
.btn-custom-detail {
  display: inline-block;
  color: #337ab7;
  border: 1px solid #337ab7;
  background-color: transparent;
  padding: 8px 16px;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 0;
}
.btn-custom-detail:hover {
  background-color: #337ab7;
  color: #fff;
  text-decoration: none;
}

/*制作事例セクション全体*/
.latest-case-section {
  padding: 40px 20px;
}

/* 3件横並び */
.latest-case-section .case-items {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* 制作事例カード */
.latest-case-section article.case {
  background: #fff;
  border: 1px solid #f3f3f3;
  border-radius: 8px;
  padding: 0;
  width: calc(33.333% - 13.333px);
  box-sizing: border-box;
  transition: box-shadow 0.3s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.latest-case-section article.case:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* サムネイル */
.case-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

/* タイトル */
.case-title {
  padding: 15px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  margin: 0;
  border-top: 1px solid #eee;
}
.case-title a {
  color: #333;
  text-decoration: none;
  display: inline-block;
}
.case-title a:hover {
  text-decoration: underline;
}

/*スマホ時：1カラム*/
@media (max-width: 768px) {
  .latest-case-section article.case {
    width: 100%;
  }
}


/* ============================================================
   ■ 問い合わせフォーム（Contact Form 7）
============================================================ */

.wpcf7 {
  max-width: 100%;
  margin: 0 auto;
}
form label {
  display: block !important;
  margin-bottom: 0.5rem;
}
.wpcf7 form {
  max-width: 600px;
  margin: 0 auto;
}


/* ============================================================
   ■ 動画ブロック（共通）
============================================================ */

.small-video video {
  max-height: 350px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
}


/* ============================================================
   ■ 全ページ共通（siteContent = ヘッダー直下）
============================================================ */

.siteContent {
  padding: 0;
}


/* ============================================================
   ■ ブログ投稿ページ専用（single-post）
============================================================ */

/*背景をグレーに*/
body.single-post {
  background-color: #f0f0f0;
}

/*白背景ボックス*/
body.single-post #main,
body.single-post .l-mainContents,
body.single-post .col,
body.single-post .subSection,
body.single-post .sideSection,
body.single-post .sideSection-col-two,
body.single-post .baseSection {
  background-color: #ffffff;
  padding: 30px;
  max-width: 960px;
  margin: 0 auto;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}

/* siteContent の左右余白 */
body.single-post section.siteContent {
  padding-right: 1rem;
  padding-left: 1rem;
}


/* ============================================================
   ■ TOPページ専用（余白調整）
============================================================ */

@media (min-width: 768px) {
  body.home .siteContent {
    padding: 0 0 2rem;
  }
}


/* ============================================================
   ■ その他（Q&A、共通パーツ）
============================================================ */

/*Q&Aアコーディオン*/
.accordion-title {
  pointer-events: all;
  cursor: pointer;
  position: relative;
}
.accordion-content {
  visibility: hidden;
  opacity: 0;
  height: 0;
  transition: all .3s ease;
  margin-block-start: 0;
}
.accordion-title::before {
  display: block;
  font-family: "Font Awesome 6 Free";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  content: "\2b";
  font-size: 1.5rem;
}
.accordion-title.accordion-open + .accordion-content {
  visibility: visible;
  opacity: 1;
  height: auto;
  padding: 2rem 1rem;
  border-top: 1px gray dotted;
}
.accordion-title.accordion-open::before {
  content: "\2212";
}



/*ご注文の流れ（flow）_緑系*/
.flow ul {
  padding: 0;
}
.flow li {
  list-style-type: none;
}
.flow dd {
  margin-left: 0;
}
.flow {
  padding-left: 120px;
  position: relative;
}
.flow::before {
  content: "";
  width: 15px;
  height: 100%;
  background: #eee;
  margin-left: -8px;
  display: block;
  position: absolute;
  top: 0;
  left: 120px;
}
.flow > li {
  position: relative;
}
.flow > li:not(:last-child) {
  margin-bottom: 8vh;
}
.flow > li .icon {
  font-size: 12px;
  color: #fff;
  background: rgb(76, 175, 122);
  background: -moz-linear-gradient(left, rgba(76, 175, 122, 1) 0%, rgba(158, 229, 182, 1) 100%);
  background: -webkit-linear-gradient(left, rgba(76, 175, 122, 1) 0%, rgba(158, 229, 182, 1) 100%);
  background: linear-gradient(to right, rgba(76, 175, 122, 1) 0%, rgba(158, 229, 182, 1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#4caf7a', endColorstr='#9ee5b6', GradientType=1);
  padding: 8px 20px;
  display: block;
  position: absolute;
  top: 0;
  left: -120px;
  z-index: 100;
}
.flow > li .icon::after {
  content: "";
  border-style: solid;
  border-width: 5px 0 5px 10px;
  border-color: transparent transparent transparent #9ee5b6;
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
}
.flow > li dl {
  padding-left: 70px;
  position: relative;
}
.flow > li dl::before,
.flow > li dl::after {
  content: "";
  display: block;
  position: absolute;
  top: 15px;
}
.flow > li dl::before {
  width: 7px;
  height: 7px;
  margin-top: -3px;
  background: #3e8f66; /* 青 → 緑 */
  border-radius: 50%;
  left: -4px;
}
.flow > li dl::after {
  width: 50px;
  border-bottom: 1px dashed #999;
  position: absolute;
  left: 5px;
}
.flow > li dl dt {
  font-size: 20px;
  font-weight: 600;
  color: #3e8f66; /* 青 → 緑 */
  margin-bottom: 1vh;
}
.flow dt {
  border-left-color: #3e8f66;
}



/* ============================================================
   ■ 全ページ共通（その他微調整）
============================================================ */

.page-header,
.page-header .section-header {
  display: none;
}

.mainSection {
  margin-bottom: 0px;
}





/* ============================================================
   ■ 名刺LP（page-id-8829）
   Columns：PC 4 → Tablet 2 → Mobile 1
   Gridで完全制御（782px問題回避）
============================================================ */

/* ===== デフォルト（PC：4カラム） ===== */
.page-id-8829 .lp-columns-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ===== Tablet：2カラム（1024px〜601px） ===== */
@media (max-width: 1024px) and (min-width: 601px) {
  .page-id-8829 .lp-columns-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* ===== Mobile：1カラム（600px以下） ===== */
@media (max-width: 600px) {
  .page-id-8829 .lp-columns-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
