/* ==============================
   group-tookaitechno.css — 株式会社トーカイテクノ 専用スタイル
   本社（custom.css）・他のグループ会社（group.css）とは区別し、
   このファイルにまとめる（functions.php で tookaitechno のページのみ読み込み）。

   本社サイトはB to B（施主・企業向け）のデザインだが、
   トーカイテクノはB to C（一般のお客様向けのリフォーム事業）のため、
   親しみやすく柔らかいトーンのデザインにしている。
   ============================== */

.tookaitechno-reform {
  --tookaitechno-accent: #d92626;
  max-width: 900px;
  margin: 0 auto 80px;
}

/* スマホ下部固定の電話番号CTA（#fix_bottom_menu、PCでは表示しない） */
#fix_bottom_menu.tookaitechno-fixedTel {
  display: none;
}
@media not all and (min-width: 768px) {
  #fix_bottom_menu.tookaitechno-fixedTel {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background: var(--ark-color--main);
    text-align: center;
  }
  .tookaitechno-fixedTel__link {
    display: block;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    color: #fff;
    text-decoration: none;
  }
  .tookaitechno-fixedTel__lead {
    display: block;
    font-size: 13px;
    font-weight: 700;
  }
  .tookaitechno-fixedTel__note {
    display: block;
    font-size: 11px;
    opacity: .9;
  }
  .tookaitechno-fixedTel__num {
    display: block;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
  }
  .tookaitechno-fixedTel__icon {
    height: 22px;
    width: auto;
    margin-right: 6px;
    vertical-align: middle;
  }
}

/* ヒーロー画像
   ※ arkhe本体のCSSに :is(...)>:not(:first-child){margin-bottom:0} という
   　 グループブロック内の余白を強制するルールがあり、通常のmarginでは負けるため
   　 margin-bottomのみ!importantで上書きする */
.tookaitechno-reform__hero {
  margin-top: 0;
  margin-bottom: 40px !important;
}
.tookaitechno-reform__hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* キャッチコピー（サイト標準の Noto Sans JP を使用） */
.tookaitechno-reform__catch {
  text-align: center;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.6;
  color: var(--tookaitechno-accent);
  margin-top: 0;
  margin-bottom: 32px !important;
}

/* リード文 */
.tookaitechno-reform__lead {
  text-align: center;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 2;
  color: var(--corp-color-text, #373a3d);
  margin-top: 0;
  margin-bottom: 40px !important;
}
.tookaitechno-reform__lead mark {
  background: none;
  color: var(--tookaitechno-accent);
  font-weight: 700;
  text-decoration: underline;
}
@media not all and (min-width: 768px) {
  .tookaitechno-reform__catch {
    font-size: 20px;
    text-align: left;
  }
  .tookaitechno-reform__lead {
    text-align: left;
  }
}


/* リフォームの流れ バナー
   ※ .tookaitechno-categories と同様に、サイト共通CSSのmax-width/marginに
   　 上書きされないよう、このコンポーネント独自の値を!importantで固定する */
.tookaitechno-reform__banner {
  display: block;
  max-width: 460px !important;
  margin: 0 auto;
  text-align: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.tookaitechno-reform__banner:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}
.tookaitechno-reform__banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* リフォームの流れ バナーのラッパー
   ※ .tookaitechno-reform__banner と同様に、サイト共通CSSのmax-width/marginに
   　 上書きされないよう、このコンポーネント独自の値を!importantで固定する */
.tookaitechno-reform__banner_wrap {
  margin: auto;
  margin-bottom: 0 !important;
}

/* セクション見出しは新デザインの .low-x-title（会社概要などと同じ見出し）をそのまま使う */
.tookaitechno-reform .low-x-title {
  margin-top: 0;
  margin-bottom: 32px !important;
}
.tookaitechno-reform .low-m-title {
  margin-top: 0;
  margin-bottom: 24px !important;
}

/* サービス一覧（トイレ・キッチン・浴室…）｜ネイティブのギャラリーブロック（columns:4, リンクあり）
   ※ include-group_tookaitechno_construction-nav.php はブロックとしてレンダリングされず
   　 WordPress側の自動生成グリッドCSSが効かないため、display/grid-template-columnsを明示指定する */
.tookaitechno-reform__icons {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px;
  margin-top: 0;
  margin-bottom: 56px !important;
}
.tookaitechno-reform__icons .wp-block-image {
  margin: 0;
  border: 1px solid #57c4e1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tookaitechno-reform__icons .wp-block-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}
.tookaitechno-reform__icons .wp-block-image > a {
  display: flex;
}
.tookaitechno-reform__icons img {
  display: block;
  width: 100%;
  height: auto;
}
@media not all and (min-width: 768px) {
  .tookaitechno-reform__icons {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px;
  }
}

/* お知らせ（キャンペーンバナー）｜ネイティブのギャラリーブロック（columns:2, リンクなし） */
.tookaitechno-reform__news {
/*  gap: 20px;*/
}
.tookaitechno-reform__news .wp-block-image {
  margin: 0;
}
.tookaitechno-reform__news img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
@media not all and (min-width: 768px) {
  /* 実際の出力は is-layout-flex（display:flex）のため、grid-template-columns ではなく
     flex-direction:column + 各画像の flex-basis:100% で1カラム・幅いっぱいにする */
  .tookaitechno-reform__news {
    flex-direction: column !important;
  }
  .tookaitechno-reform__news .wp-block-image {
    flex-basis: 100% !important;
    width: 100% !important;
  }
}

/* お知らせ 履歴一覧（ネイティブのテーブルブロック。管理画面の表編集UIでそのまま追記・編集可能） */
.tookaitechno-news-table table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  line-height: 1.8;
  margin: 40px 0 0;
}
.tookaitechno-news-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: top;
  color: var(--corp-color-text, #373a3d);
}
.tookaitechno-news-table td:first-child {
  width: 8em;
  white-space: nowrap;
  color: #888;
}
.tookaitechno-news-table td:last-child a {
  color: var(--tookaitechno-accent);
  text-decoration: underline;
}
.tookaitechno-news-table td:last-child a:hover {
  text-decoration: none;
}
@media not all and (min-width: 768px) {
  .tookaitechno-news-table table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tookaitechno-news-table td {
    white-space: nowrap;
  }
}

/* リード（センター寄せの説明文） */
.tookaitechno-reform__intro {
  text-align: center;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 2;
  color: var(--corp-color-text, #373a3d);
  margin: 0 0 40px;
}

/* 事業内容：カテゴリ別リスト（水廻り／玄関・廊下…）｜ネイティブのカラムブロック＋リストブロック
   ※ custom.css の .page_group .page .wp-block-columns（max-width:840px; margin-left:auto;）を
   　 このページの見た目に合わせて打ち消す（他のグループ会社ページには影響しない） */
.tookaitechno-categories.wp-block-columns {
  max-width: none !important;
  margin-top: 0;
  margin-left: 0 !important;
  margin-bottom: 32px !important;
}
.tookaitechno-categories .wp-block-column {
  margin: 0;
  background-color: #e4e2dd;
  padding: 20px;
  border-radius: 10px;
}
.tookaitechno-categories h3 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--tookaitechno-accent);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--tookaitechno-accent);
}
.tookaitechno-categories ul.wp-block-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.tookaitechno-categories ul.wp-block-list li {
  font-size: 14px;
  color: var(--corp-color-text, #373a3d);
  padding: 4px 0 4px 1.2em;
  position: relative;
}
.tookaitechno-categories ul.wp-block-list li::before {
  content: '▼';
  position: absolute;
  left: 0;
  color: #6aa84f;
  font-size: 10px;
  top: 8px;
}

/* 汎用フォトギャラリー（2〜3枚組の写真並び）｜ネイティブのギャラリーブロック */
.tookaitechno-gallery.wp-block-gallery {
  margin-top: 16px;
  margin-bottom: 60px;
}
.tookaitechno-gallery .wp-block-image {
  margin: 0;
}
.tookaitechno-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
@media not all and (min-width: 768px) {
  .tookaitechno-gallery.wp-block-gallery {
    grid-template-columns: 1fr !important;
  }
}

/* お客様の声（番号付きリスト）｜ネイティブのリストブロック */
.tookaitechno-voice.wp-block-list {
  counter-reset: tookaitechno-voice;
  max-width: 640px;
  margin: 0 auto !important;
  padding: 0;
  list-style: none;
}
.tookaitechno-voice li {
  counter-increment: tookaitechno-voice;
  position: relative;
  padding: 14px 0 14px 2.4em;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  border-bottom: 1px dashed #ddd;
}
.tookaitechno-voice li::before {
  content: counter(tookaitechno-voice);
  position: absolute;
  left: 0;
  top: 10px;
  width: 1.8em;
  height: 1.8em;
  border-radius: 50%;
  background: var(--tookaitechno-accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 気になること（2カラムの箇条書き）｜ネイティブのリストブロック */
.tookaitechno-worries.wp-block-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 40px;
  margin-top: 0;
  margin-bottom: 32px !important;
  padding: 40px 20px;
  background-color: #e4e2dd;
  list-style: none;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  color: var(--corp-color-text, #373a3d);
}
.tookaitechno-worries li {
  margin: 0;
}
@media not all and (min-width: 768px) {
  .tookaitechno-worries.wp-block-list {
    grid-template-columns: 1fr;
  }
}

/* リフォームの流れ：STEP｜ネイティブのグループブロック＋メディア&テキストブロック */
.tookaitechno-steps.wp-block-group {
  margin-top: 0;
  margin-bottom: 0 !important;
  counter-reset: tookaitechno-step;
}
.tookaitechno-steps .tookaitechno-step {
  counter-increment: tookaitechno-step;
}
.tookaitechno-step.wp-block-media-text {
  align-items: center;
  gap: 32px;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.tookaitechno-step .wp-block-media-text__media img {
  display: block;
  width: 100%;
  height: auto;
}
.tookaitechno-step__label {
  display: inline-block;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--corp-color-blue, #006da8);
  border-radius: 20px;
  padding: 4px 16px;
  margin-top: 0;
  margin-bottom: 8px !important;
  min-height: 1px;
}
.tookaitechno-step__label::before {
  content: 'STEP ' counter(tookaitechno-step, decimal-leading-zero) ' ';
}
.tookaitechno-step__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--corp-color-dark, #202020);
  margin-top: 0;
  margin-bottom: 8px !important;
}
.tookaitechno-step__text {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  line-height: 1.9;
  color: var(--corp-color-text, #373a3d);
  margin-top: 0;
  margin-bottom: 0 !important;
}
.tookaitechno-step-arrow {
  text-align: center;
  color: var(--corp-color-blue, #006da8);
  font-size: 20px;
  line-height: 1;
  margin-top: 0 !important;
  margin-bottom: 20px !important;
}
@media not all and (min-width: 768px) {
  .tookaitechno-step.wp-block-media-text {
    text-align: center;
  }
  .tookaitechno-step .wp-block-media-text__media {
    width: 60% !important;
    margin: 0 auto;
  }
  .tookaitechno-step__text {
    text-align: left;
  }
}

/* 施工実績：受賞・トピックス｜各トピックはグループブロック（.tookaitechno-topic-entry） */
.tookaitechno-topic__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--tookaitechno-accent);
  margin-top: 20px !important;
  margin-bottom: 8px !important;
}
.tookaitechno-topic__text {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  line-height: 1.9;
  color: var(--corp-color-text, #373a3d);
  margin-top: 0;
  margin-bottom: 8px !important;
}
.tookaitechno-topic__link {
  margin-top: 0;
  margin-bottom: 8px !important;
}
.tookaitechno-topic__link a {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--corp-color-blue, #006da8);
  text-decoration: underline;
}
/* トピック先頭の単体画像（アキレス様勉強会など） */
.tookaitechno-topic-entry > .wp-block-image {
  margin-top: 0;
  margin-bottom: 16px !important;
}
.tookaitechno-topic-entry > .wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
/* 写真点数が複数枚あるトピック（賞の受賞報告・お知らせなど）用の区切りブロック */
.tookaitechno-topic-entry.wp-block-group {
  padding: 32px 0;
  border-bottom: 1px solid #ccc;
  margin-top: 0;
  margin-bottom: 0 !important;
}
.tookaitechno-topic-entry:last-child {
  border-bottom: none;
}

/* ===== 施工実績カテゴリ詳細ページ（トイレ・キッチン…）共通コンポーネント ===== */

/* カテゴリ内の小項目イントロ（工事名＋写真）｜ネイティブのメディア&テキストブロック
   左：白背景に工事名の見出し／右：写真を帯の高さいっぱいに敷き詰める（フルブリード） */
.tookaitechno-intro.wp-block-media-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0;
  min-height: 220px;
  background: #e4e2dd;
  margin-top: 24px !important;
  margin-bottom: 24px !important;
}
.tookaitechno-intro .wp-block-media-text__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 48px;
}
.tookaitechno-intro .wp-block-media-text__media {
  margin: 0;
  height: 100%;
  overflow: hidden;
}
.tookaitechno-intro .wp-block-media-text__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tookaitechno-intro__label {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.5;
  color: var(--corp-color-dark, #202020);
  margin-top: 0;
  margin-bottom: 0 !important;
}
/* 工事名の下に説明文が続く場合（見出しクラスの付かない通常の段落） */
.tookaitechno-intro .wp-block-media-text__content > p:not(.tookaitechno-intro__label) {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: var(--corp-color-text, #373a3d);
  margin-top: 12px;
  margin-bottom: 0 !important;
}
@media not all and (min-width: 768px) {
  .tookaitechno-intro.wp-block-media-text {
    display: block;
    min-height: 0;
  }
  .tookaitechno-intro .wp-block-media-text__media {
    height: 200px;
  }
  .tookaitechno-intro .wp-block-media-text__content {
    padding: 24px;
  }
  .tookaitechno-intro__label {
    font-size: 22px;
  }
}

/* 施工事例（お客様の声＋ビフォーアフター写真）｜グループブロック＋ギャラリーブロック */
.tookaitechno-case.wp-block-group {
  padding-bottom: 32px;
  margin-top: 0 !important;
  margin-bottom: 32px !important;
  border-bottom: 1px dashed #ddd;
}
.tookaitechno-case:last-child {
  border-bottom: none;
}
.tookaitechno-case__lead {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.8;
  color: var(--corp-color-blue, #006da8);
  margin-top: 0;
  margin-bottom: 16px !important;
}
.tookaitechno-case .wp-block-gallery {
  margin-top: 0;
  margin-bottom: 0 !important;
}
.tookaitechno-case .wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.tookaitechno-case .wp-block-image figcaption {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  color: #666;
  text-align: center;
  margin-top: 6px;
}
