/*
Theme Name: Lightning Child Sample
Theme URI: 
Template: lightning
Description: 
Author: 
Tags: 
Version: 0.6.0
*/

/* PC：ロゴ左 / TEL右端 */
@media (min-width: 992px) {

  .siteHeaderContainer {
      display: flex !important;
      align-items: center;
      width: 100%;
  }

  .siteHeader_logo {
      margin-right: auto;
  }

  .header-tel {
      margin-left: auto !important;
      font-size: 20px;
      font-weight: 700;
      white-space: nowrap;
      text-align: right;
  }

  .header-tel a {
      color: #000;
      text-decoration: none;
  }

  .siteHeader_logo img {
      max-height: 80px;
      height: auto;
      width: auto;
  }
}

/* SP：電話番号非表示 */
@media (max-width: 991.98px) {

  .header-tel {
    display: none !important;
  }
}




/* ===============================
   TOP：ABOUT セクション
   =============================== */
.top-about {
  padding: 80px 20px;
  background-color: #ffffff;
}

.top-about__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
}

/* 左カラム */
.top-about__left {
  flex: 0 0 60%;
  display: flex;
}

/* 縦の ABOUT ラベル */
.top-about__label {
  background-color: #0B5A3A;   /* 左のグリーン帯 */
  color: #f9bf2c;              /* ABOUT の黄色 */
  padding: 40px 12px;
  margin-right: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-about__label span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-weight: 900;
  letter-spacing: 0.1em;
  font-size: 25px;
}

/* ABOUTセクション内の h2 装飾を消す */
.top-about h2.top-about__title {
    border: none !important;
    padding: 0 !important;
    margin-bottom: 16px;
}

.top-about h2.top-about__title::before,
.top-about h2.top-about__title::after {
    display: none !important;
}


/* テキスト部分 */
.top-about__text {
  flex: 1;
}

.top-about__title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
}

.top-about__text p {
  line-height: 1.9;
  font-size: 14px;
  margin-bottom: 12px;
}

/* 右カラム（画像） */
.top-about__right {
  flex: 0 0 40%;
  display: flex;
  align-items: center;
}

.top-about__image-wrapper {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
}

.top-about__image-wrapper img {
  width: 100%;
  display: block;
  object-fit: cover;
}


/* ▼レスポンシブ（SP） */
@media (max-width: 991.98px) {
  .top-about {
    padding: 48px 16px;
  }

  .top-about__inner {
    flex-direction: column;
  }

  .top-about__left,
  .top-about__right {
    flex: 1 1 auto;
  }

  .top-about__left {
    margin-bottom: 24px;
  }

  .top-about__label {
    padding: 12px 6px;
    margin-right: 16px;
  }

  .top-about__title {
    font-size: 20px;
  }

  .top-about__text p {
    font-size: 13px;
  }

  .top-about__image-wrapper {
    border-radius: 18px;
  }
}


/* ===============================
   TOP：経営理念（IDEAL）セクション
   =============================== */
.top-ideal {
  padding: 80px 20px;
  background-color: #ffffff;
}

.top-ideal__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
}

/* 左の縦帯 */
.top-ideal__label {
  background-color: #0B5A3A;   /* 左のグリーン帯 */
  padding: 40px 16px;       /* 帯の太さ */
  margin-right: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-ideal__label span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #f9bf2c;         /* 黄色 */
}

/* 右側コンテンツ */
.top-ideal__content {
  flex: 1;
}

/* セクション内の h2 装飾を消す */
.top-ideal h2.top-ideal__title {
    border: none !important;
    padding: 0 !important;
    margin-bottom: 16px;
}

.top-ideal h2.top-ideal__title::before,
.top-ideal h2.top-ideal__title::after {
    display: none !important;
}

/* 理念リスト */
.top-ideal__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 各項目のカード */
.ideal-item {
  background-color: #f5f5f5;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.ideal-item__icon {
  flex: 0 0 120px;
}

.ideal-item__icon img {
  max-width: 120px;
  width: 100%;
  height: auto;
  display: block;
}

.ideal-item__body {
  flex: 1;
}

.ideal-item__heading {
  font-size: 22px;
  font-weight: 700;
  color: #0B5A3A;
  margin: 0 0 8px;
}

.ideal-item__body p {
  margin: 0;
  line-height: 1.8;
  font-size: 14px;
}

/* ▼SP：IDEALもABOUTと同じレイアウトにする */
@media (max-width: 991.98px) {

  .top-ideal {
    padding: 48px 16px;
  }

  /* PCと同じく「左 帯／右 コンテンツ」の横並びに戻す */
  .top-ideal__inner {
    display: flex;
    align-items: stretch;
  }

  /* 左の縦帯（幅ちょい細め） */
  .top-ideal__label {
    width: 60px;
    padding: 32px 8px;
    margin-right: 16px;
  }

  .top-ideal__label span {
    font-size: 18px;
  }

  /* 右側の「経営理念＋各理念」 */
  .top-ideal__content {
    flex: 1;
  }

  .top-ideal__title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  /* 理念カードは縦に並べるだけ（今のままでOKだけど少しコンパクトに） */
  .top-ideal__list {
    gap: 12px;
  }

  .ideal-item {
    padding: 16px 14px;
    gap: 12px;
  }

  .ideal-item__icon {
    flex: 0 0 80px;
  }

  .ideal-item__icon img {
    max-width: 80px;
  }

  .ideal-item__heading {
    font-size: 16px;
  }

  .ideal-item__body p {
    font-size: 13px;
    line-height: 1.7;
  }
}





/* ===============================
   TOP：事業内容（BUSINESS）セクション
   =============================== */
.top-business {
  position: relative;
  padding: 80px 0 80px;
  background-color: #ffffff;
}

.top-business__inner {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px 0 140px; /* 左に帯の余白を確保 */
}

/* 左の縦帯 BUSINESS */
.top-business__label {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: -40px; 
  background-color: #0B5A3A;   /* 左のグリーン帯 */
  padding: 40px 16px;       /* 帯の太さ */
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-business__label span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #f9bf2c;
}

/* セクション内の h2 装飾を消す */
.top-business h2.top-business__title {
    border: none !important;
    padding: 0 !important;
    margin-bottom: 16px;
}

.top-business h2.top-business__title::before,
.top-business h2.top-business__title::after {
    display: none !important;
}


/* タイトル */
.top-business__title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 24px;
  color: #333;
}


/* カード3列 */
.top-business__cards {
  display: flex;
  gap: 24px;
}

/* 各カード */
.business-card {
  flex: 1 1 0;
}

.business-card__image {
  position: relative;
  overflow: hidden;
}

/* 画像 */
.business-card__image img {
  display: block;
}

/* カード画像の高さを統一（PC） */
.business-card__image {
  position: relative;
  overflow: hidden;
  height: 440px;        /* 今の左カードの高さに合わせて。長さはお好みで調整OK */
}

/* 画像をトリミングしてフィットさせる */
.business-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* 黄色ラベル（画像下） */
.business-card__label {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background-color: #f9bf2c;
  padding: 8px 24px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
  white-space: nowrap;
}

/* ホバー時の概要（今のカバーと同じような挙動） */
.business-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  color: #ffffff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 32px 24px 88px;  
  opacity: 0;
  transition: opacity 0.3s ease;
}

.business-card__overlay h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.business-card__overlay p {
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.business-card__button {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid #ffffff;
  font-size: 12px;
}

/* PCホバーで表示 */
.business-card:hover .business-card__overlay {
  opacity: 1;
}

/* ==== 詳しく見るボタン ==== */
.business-card__button {
  display: inline-block;
  color: #ffffff;
  border: 2px solid #ffffff;
  padding: 6px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 2px;
  margin-top: 12px;
  transition: 0.3s ease;
  text-decoration: none;
}

/* ==== ホバー時：白抜き反転ボタン ==== */
.business-card__button:hover {
  background-color: #ffffff;
  color: #0B5A3A;   /* グリーン（ブランドカラー）に反転 */
  border-color: #ffffff;
}


/* ===============================
   SP：BUSINESS セクションのレイアウト調整
   IDEAL と同じ配置にする
   =============================== */
@media (max-width: 768px) {

  /* 全体を 2カラムにする（左：縦帯 / 右：内容） */
  .top-business__inner {
    display: grid;
    grid-template-columns: 80px 1fr; /* 左帯 80px / 右コンテンツ */
    column-gap: 16px;
    align-items: flex-start;
  }

  /* 縦帯は絶対配置をやめて、左カラムに固定 */
  .top-business__label {
    position: relative;
    left: 0;
    top: 0;
    bottom: auto;
    height: 100%;
    padding: 40px 12px; /* ここは好みで微調整OK */
  }

  .top-business__label span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
  }

  /* タイトル「事業内容」を右カラムの一番上に */
  .top-business__title {
    grid-column: 2 / 3;
    margin-top: 0;
    margin-bottom: 16px;
  }

  /* 説明テキストがあれば同じく右カラム側に */
  .top-business__lead {
    grid-column: 2 / 3;
    margin-bottom: 24px;
  }

  /* カード一覧も右カラムにまとめて配置 */
  .top-business__cards,
  .business-card-row,
  .business-cards {
    /* 実際に使っているクラス名に合わせてどれか当ててね */
    grid-column: 2 / 3;
  }
}

/* ===============================
   SP：BUSINESS セクション調整（縦帯＋縦積み）
   =============================== */
@media (max-width: 768px) {

  /* 全体は1カラム＋左に余白をとる */
  .top-business__inner {
    position: relative;
    display: block;
    padding: 0 20px 40px 120px;  /* 左に帯ぶんの余白 + 右左右の余白 */
  }

  /* 縦帯は左側に絶対配置して、全体の高さに合わせる */
  .top-business__label {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;               /* セクション全体の高さ分の帯にする */
    height: auto;
    padding: 40px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .top-business__label span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
  }

  /* タイトル「事業内容」 */
  .top-business__title {
    margin-top: 0;
    margin-bottom: 16px;
  }

  /* 説明テキストがあればこのクラス名に合わせて */
  .top-business__lead {
    margin-bottom: 24px;
  }

  /* カードたちは全部縦積みでOK */
  .top-business__cards,
  .business-card-row {
    display: block;
  }

  .business-card {
    width: 100%;
    max-width: 100%;
    margin: 0 0 24px;
  }
}



/* ===== フッター ロゴ＋メニュー（サイズ調整） ===== */
.rs-footer {
  background-color: #0B5A3A;
  padding: 48px 0; /* ← 縦幅を広げる（デフォルト24px → 48px） */
}

.rs-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* ロゴを大きく */
.rs-footer__logo img {
  max-height: 150px; /* ← ここでロゴの大きさを調整（60px → 90px） */
  width: auto;
}

/* メニュー */
.rs-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.rs-footer-menu a {
  color: #ffffff;
  text-decoration: none;
  font-size: 15px; /* 少し大きめに */
}

.rs-footer-menu a:hover {
  opacity: 0.7;
}

/* スマホ対応：縦積み＋中央 */
@media (max-width: 767.98px) {
  .rs-footer__inner {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .rs-footer-menu {
    justify-content: center;
  }
}
