@charset "utf-8";
/*
Theme Name: ShirotoriTheme
Theme URI:https://tcd-theme.com/tcd074/
Description:株式会社城取建築設計事務所WordPressテーマ（「FAKE」子テーマ）
Template:fake_tcd074
Author:YMK
Author URI:
Version:1.6-global-nav
*/

/*
  ここから下にCSSを追記してください。
*/
/* ヘッダー（共通）：ロゴは親テーマ側のPC/SP切替に従う。幅は末尾の画面幅別指定で調整。 */
#header_logo .mobile_logo_image {
  width: 80vw;
  height: auto;
}
/* フッター（共通） */
#footer_logo .mobile_logo_image {
  width: 80vw;
  height: auto;
}

/* トップページ */
#index_header_content {
  height: 85vh;
}
#index_header_content .slick-list, #index_header_content .slick-list .slick-track {
  height: 100%;
}
@media screen and (max-width:1050px) {
  @media screen and (max-width:650px) {
    #index_header_content {
      height: 70vh !important;
    }
  }
}

/* 実績詳細ページ */
.work_content.designer a {
  display: block;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  margin: 0 auto;
  overflow: hidden;
}
.work_content.designer a img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .5s ease;
}
.work_content.designer a:hover img {
  transform: scale(1.1);
}

/* ----------------------------------------------------------------------
 トップページ：経営者の方から、よくいただくご相談
---------------------------------------------------------------------- */
.factory-problem-cards {
  width: min(1100px, calc(100% - 60px));
  margin: 0 auto;
  padding: 0 0 100px;
}

.factory-problem-cards__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.factory-problem-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 178px;
  padding: 26px 30px 22px;
  border: 1px solid #dedede;
  background: #fff;
  color: #333;
  box-sizing: border-box;
  text-decoration: none;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.factory-problem-card:hover,
.factory-problem-card:focus-visible {
  border-color: #b34700;
  color: #333;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  transform: translateY(-3px);
}

.factory-problem-card:focus-visible {
  outline: 2px solid #b34700;
  outline-offset: 3px;
}

.factory-problem-card__title {
  display: block;
  margin: 0 0 18px;
  color: #3e3e3e;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.65;
}

.factory-problem-card__text {
  display: block;
  color: #333;
  font-size: 15px;
  line-height: 1.9;
}

.factory-problem-card__arrow {
  display: block;
  margin-top: auto;
  padding-top: 22px;
  color: #b34700;
  font-size: 24px;
  line-height: 1;
  text-align: right;
}

.factory-problem-cards__operation {
  margin: 44px 0 0;
  color: #333;
  font-size: 16px;
  line-height: 2;
  text-align: center;
}

.factory-problem-cards__contact {
  margin-top: 22px;
  text-align: center;
}

.factory-problem-cards__contact p {
  margin: 0 0 22px;
  color: #333;
  font-size: 15px;
  line-height: 1.8;
}

.factory-problem-cards__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 250px;
  min-height: 60px;
  padding: 14px 28px;
  background: #b34700;
  color: #fff !important;
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color .25s ease;
}

.factory-problem-cards__button:hover,
.factory-problem-cards__button:focus-visible {
  background: #8f3900;
  color: #fff !important;
}

.factory-problem-cards__button:focus-visible {
  outline: 2px solid #8f3900;
  outline-offset: 3px;
}

@media screen and (max-width: 850px) {
  .factory-problem-cards {
    width: min(720px, calc(100% - 40px));
    padding-bottom: 70px;
  }

  .factory-problem-cards__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .factory-problem-card {
    min-height: 0;
    padding: 26px 24px 22px;
  }

  .factory-problem-card__arrow {
    padding-top: 16px;
  }

  .factory-problem-cards__operation {
    margin-top: 32px;
    font-size: 15px;
    text-align: left;
  }
}

@media screen and (max-width: 650px) {
  .factory-problem-cards {
    width: calc(100% - 40px);
    padding-bottom: 50px;
  }

  .factory-problem-card__title {
    margin-bottom: 12px;
    font-size: 18px;
  }

  .factory-problem-card__text,
  .factory-problem-cards__contact p {
    font-size: 14px;
  }

  .factory-problem-cards__button {
    width: 100%;
    min-width: 0;
    min-height: 56px;
  }
}


/* ----------------------------------------------------------------------
 トップページ 実績一覧：課題の1行
---------------------------------------------------------------------- */
.index_work_list .work_list .work_top_issue {
  margin: 7px 4px 0;
  color: #666;
  font-size: 13px;
  line-height: 1.65;
  text-align: center;
}

.index_work_list .work_list .link:hover .work_top_issue {
  color: #666;
}

@media screen and (max-width: 650px) {
  .index_work_list .work_list .work_top_issue {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.55;
  }
}

/* ----------------------------------------------------------------------
 トップページ：共通CTA（実績直後の薄型／ページ下部のメイン）
---------------------------------------------------------------------- */
.factory-cta {
  box-sizing: border-box;
  width: 100%;
}

.factory-cta__inner {
  box-sizing: border-box;
  width: min(1100px, calc(100% - 60px));
  margin: 0 auto;
}

/* 実績一覧直後の薄型CTA */
.factory-cta--slim {
  padding: 34px 0;
  background: #f5f5f5;
}

.factory-cta--slim .factory-cta__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.factory-cta__slim-text {
  margin: 0;
  color: #333;
  font-size: 16px;
  line-height: 1.8;
}

/* メインCTA */
.factory-cta--main {
  padding: 72px 0;
  background: #f5f5f5;
}

.factory-cta--main .factory-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 60px;
  align-items: center;
}

.factory-cta__title {
  margin: 0 0 20px;
  color: #3e3e3e;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.5;
}

.factory-cta__lead,
.factory-cta__text {
  margin: 0;
  color: #333;
  font-size: 15px;
  line-height: 1.9;
}

.factory-cta__lead {
  margin-bottom: 8px;
  font-weight: 600;
}

.factory-cta__reasons {
  margin: 22px 0 0 !important;
  padding: 0;
  list-style: none !important;
}

.factory-cta__reasons li {
  position: relative;
  margin: 8px 0 0;
  padding-left: 1.35em;
  color: #333;
  font-size: 14px;
  line-height: 1.7;
}

.factory-cta__reasons li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: #b34700;
  content: "・";
}

.factory-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.factory-cta__phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  padding: 10px 18px;
  border: 1px solid #b34700;
  background: #fff;
  box-sizing: border-box;
  color: #b34700 !important;
  text-decoration: none;
  transition: border-color .25s ease, background-color .25s ease, color .25s ease;
}

.factory-cta__phone:hover,
.factory-cta__phone:focus-visible {
  border-color: #8f3900;
  background: #fff8f4;
  color: #8f3900 !important;
}

.factory-cta__phone-number {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .02em;
}

.factory-cta__phone-hours {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.4;
}

.factory-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 14px 28px;
  background: #b34700;
  box-sizing: border-box;
  color: #fff !important;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  transition: background-color .25s ease;
}

.factory-cta__button:hover,
.factory-cta__button:focus-visible {
  background: #8f3900;
  color: #fff !important;
}

.factory-cta__button--slim {
  min-width: 170px;
  min-height: 52px;
}

.factory-cta__button:focus-visible,
.factory-cta__phone:focus-visible {
  outline: 2px solid #8f3900;
  outline-offset: 3px;
}

@media screen and (max-width: 850px) {
  .factory-cta__inner {
    width: min(720px, calc(100% - 40px));
  }

  .factory-cta--main {
    padding: 56px 0;
  }

  .factory-cta--main .factory-cta__inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .factory-cta__actions {
    width: min(100%, 420px);
  }
}

@media screen and (max-width: 650px) {
  .factory-cta__inner {
    width: calc(100% - 40px);
  }

  .factory-cta--slim {
    padding: 28px 0;
  }

  .factory-cta--slim .factory-cta__inner {
    display: block;
  }

  .factory-cta__slim-text {
    margin-bottom: 18px;
    font-size: 14px;
    text-align: left;
  }

  .factory-cta__button--slim {
    width: 100%;
  }

  .factory-cta--main {
    padding: 46px 0;
  }

  .factory-cta__title {
    margin-bottom: 16px;
    font-size: 24px;
  }

  .factory-cta__lead,
  .factory-cta__text {
    font-size: 14px;
  }

  .factory-cta__actions {
    width: 100%;
  }

  .factory-cta__phone {
    min-height: 68px;
  }

  .factory-cta__phone-number {
    font-size: 22px;
  }

  .factory-cta__button {
    width: 100%;
    min-height: 56px;
  }
}



/* 酒井さんの言葉の直前に入れる補足（キャッチコピー本文は変更しない） */
#designer-sakai.index_content1 > .catch > .designer-sakai__context {
  display: block;
  margin: 0 0 10px;
  color: #777;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  text-align: left;
}

/* ----------------------------------------------------------------------
 トップページ：TYPE1 設計士2名（⑤ 酒井様／⑥ 馬場様）

 コンテンツビルダーの「コンテンツ1」に以下のコンテンツIDを設定して使用。
 ⑤ 酒井様：designer-sakai（写真左・テキスト右）
 ⑥ 馬場様：designer-baba （テキスト左・写真右）

 FAKE標準TYPE1のHTMLをそのまま利用し、PCのみ2カラム化する。
 SPはテーマ標準に近い1カラムへ戻す。
---------------------------------------------------------------------- */
@media screen and (min-width: 851px) {
  #designer-sakai.index_content1,
  #designer-baba.index_content1 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 64px;
    align-items: center;
    width: min(1100px, calc(100% - 60px));
    padding: 90px 0;
  }

  #designer-sakai.index_content1 > .catch,
  #designer-sakai.index_content1 > .desc,
  #designer-sakai.index_content1 > .designer-continuity,
  #designer-sakai.index_content1 > .link_button {
    grid-column: 2;
  }

  #designer-sakai.index_content1 > .image_list {
    grid-column: 1;
    grid-row: 1 / span 6;
  }

  #designer-baba.index_content1 > .catch,
  #designer-baba.index_content1 > .desc,
  #designer-baba.index_content1 > .designer-continuity,
  #designer-baba.index_content1 > .link_button {
    grid-column: 1;
  }

  #designer-baba.index_content1 > .image_list {
    grid-column: 2;
    grid-row: 1 / span 6;
  }

  #designer-sakai.index_content1 > .catch,
  #designer-baba.index_content1 > .catch {
    margin: 0 0 20px;
    text-align: left;
    font-size: 30px;
    line-height: 1.55;
  }

  #designer-sakai.index_content1 > .desc,
  #designer-baba.index_content1 > .desc {
    margin: 0 0 22px;
    font-size: 16px;
    line-height: 2;
  }

  #designer-sakai.index_content1 > .image_list,
  #designer-baba.index_content1 > .image_list {
    margin: 0;
  }

  #designer-sakai.index_content1 > .image_list img,
  #designer-baba.index_content1 > .image_list img {
    float: none;
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
  }

  #designer-sakai.index_content1 > .link_button,
  #designer-baba.index_content1 > .link_button {
    margin-top: 8px;
    text-align: left;
  }

  #designer-sakai.index_content1 > .link_button a,
  #designer-baba.index_content1 > .link_button a {
    text-align: center;
  }
}

@media screen and (max-width: 850px) {
  #designer-sakai.index_content1,
  #designer-baba.index_content1 {
    width: auto;
  }

  #designer-sakai.index_content1 .catch,
  #designer-baba.index_content1 .catch {
    text-align: left;
  }

  #designer-sakai.index_content1 .image_list img,
  #designer-baba.index_content1 .image_list img {
    float: none;
    width: 100%;
  }
}


#designer-sakai.index_content1 > .designer-continuity,
#designer-baba.index_content1 > .designer-continuity {
  margin: -10px 0 22px;
  color: #555;
  font-size: 14px;
  line-height: 1.8;
}

/* フリースペースは .post_content 内に入るため、TCD汎用見出しよりCTAを優先 */
.post_content .factory-cta__title {
  margin: 0 0 20px;
  padding: 0;
  color: #3e3e3e;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.5;
}

@media screen and (max-width: 650px) {
  .post_content .factory-cta__title {
    margin-bottom: 16px;
    font-size: 24px;
  }
}

#stage.index_content1.cb_contents .image_list img {
  width: 100%;
}

/* ----------------------------------------------------------------------
 トップページ：⑧ 補助金／会社概要・アクセス（TYPE2）

 support-access のみ左右を独立したカラムにする。
 会社概要側は写真の上に文字を重ねず、写真 → 見出し → 説明 → ボタンの順。
---------------------------------------------------------------------- */
#support-access.index_content2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  width: min(1100px, calc(100% - 60px));
  padding: 95px 0 100px;
}

#support-access .support-access__column {
  min-width: 0;
}

#support-access .support-access__column > .catch {
  margin: 0 0 22px;
  text-align: left;
}

#support-access .support-access__column > .desc {
  margin: 0 0 24px;
}

#support-access .support-access__column > .link_button {
  margin: 0;
  text-align: left;
}

#support-access .support-access__column > .link_button a {
  text-align: center;
}

/* 左：補助金。見出し～ボタンを詰めて一続きに見せる */
#support-access .support-access__column--subsidy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#support-access .support-access__column--subsidy > .desc {
  margin-bottom: 24px;
}

/* 右：会社概要・アクセス。写真内には文字・ボタンを置かない */
#support-access .support-access__column--company > .image_content {
  width: 100%;
  height: 300px;
  min-height: 0;
  margin: 0 0 28px;
  position: relative;
}

#support-access .support-access__column--company > .image_content .overlay {
  display: none;
}

#support-access .support-access__column--company > .catch {
  margin-bottom: 18px;
}

#support-access .support-access__column--company > .desc {
  margin-bottom: 24px;
}

@media screen and (max-width: 850px) {
  #support-access.index_content2 {
    grid-template-columns: 1fr;
    gap: 48px;
    width: min(720px, calc(100% - 40px));
    padding: 70px 0;
  }

  #support-access .support-access__column--company > .image_content {
    height: 280px;
  }
}

@media screen and (max-width: 650px) {
  #support-access.index_content2 {
    width: calc(100% - 40px);
    gap: 42px;
    padding: 50px 0;
  }

  #support-access .support-access__column > .catch {
    margin-bottom: 16px;
    font-size: 24px;
  }

  #support-access .support-access__column > .desc {
    margin-bottom: 20px;
  }

  #support-access .support-access__column--company > .image_content {
    height: 220px;
    margin-bottom: 22px;
  }

  #support-access .support-access__column > .link_button,
  #support-access .support-access__column > .link_button a {
    width: 100%;
  }
}

/* ----------------------------------------------------------------------
 コラム一覧：PC 2カラム／SP 1カラム
 指示書に合わせ、サムネイルの下に日付・タイトルを表示し、抜粋は表示しない。
---------------------------------------------------------------------- */
body.post-type-archive-column #archive_blog {
  width: min(1100px, calc(100% - 60px));
  padding: 100px 0 150px;
}

body.post-type-archive-column #blog_list.column_archive_list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px 40px;
  margin: 0;
}

body.post-type-archive-column #blog_list.column_archive_list .item,
body.post-type-archive-column #blog_list.column_archive_list .item:last-of-type {
  margin: 0;
}

body.post-type-archive-column #blog_list.column_archive_list .link {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  color: #333;
  text-decoration: none;
}

body.post-type-archive-column #blog_list.column_archive_list .image {
  position: relative;
  width: 100%;
  height: auto !important;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

body.post-type-archive-column #blog_list.column_archive_list .title_area {
  position: static;
  padding: 18px 0 0;
  color: #333;
}

body.post-type-archive-column #blog_list.column_archive_list .date {
  margin: 0 0 10px;
  color: #777;
  font-size: 13px;
}

body.post-type-archive-column #blog_list.column_archive_list .title {
  max-height: none;
  margin: 0;
  color: #3e3e3e;
  font-size: 20px;
  line-height: 1.65;
}

body.post-type-archive-column #blog_list.column_archive_list .title span {
  display: block;
  -webkit-line-clamp: unset;
}

body.post-type-archive-column #blog_list.column_archive_list .link:hover .title,
body.post-type-archive-column #blog_list.column_archive_list .link:focus-visible .title {
  color: #b34700;
}

@media screen and (max-width: 850px) {
  body.post-type-archive-column #archive_blog {
    width: min(720px, calc(100% - 40px));
    padding: 70px 0 100px;
  }

  body.post-type-archive-column #blog_list.column_archive_list {
    grid-template-columns: 1fr;
    gap: 46px;
  }
}

@media screen and (max-width: 650px) {
  body.post-type-archive-column #archive_blog {
    width: calc(100% - 40px);
    padding: 50px 0 70px;
  }

  body.post-type-archive-column #blog_list.column_archive_list .title_area {
    padding-top: 14px;
  }

  body.post-type-archive-column #blog_list.column_archive_list .title {
    font-size: 18px;
  }
}

/* ----------------------------------------------------------------------
 設計士一覧・詳細／実績詳細の担当設計士
---------------------------------------------------------------------- */
.designer-archive,
.designer-single {
  width: min(1100px, calc(100% - 60px));
  margin: 0 auto;
  padding: 90px 0 120px;
  box-sizing: border-box;
}

.designer-archive__header {
  margin-bottom: 52px;
  text-align: center;
}

.designer-archive__title,
.designer-section-title {
  color: #3e3e3e;
  font-weight: 500;
}

.designer-archive__title {
  margin: 0;
  font-size: 36px;
}

.designer-archive__lead {
  margin: 18px 0 0;
  color: #555;
  font-size: 16px;
  line-height: 1.8;
}

.designer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 50px 40px;
}

.designer-card {
  margin: 0;
}

.designer-card__link {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  height: 100%;
  padding: 30px;
  border: 1px solid #e5e5e5;
  background: #fff;
  box-sizing: border-box;
  color: #333;
  text-decoration: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.designer-card__link:hover,
.designer-card__link:focus-visible {
  border-color: #b34700;
  box-shadow: 0 8px 24px rgba(0,0,0,.07);
  color: #333;
}

.designer-card__image-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 50%;
  background: #f5f5f5;
}

.designer-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.designer-card__image--empty,
.designer-profile__image--empty {
  background: #f5f5f5;
}

.designer-card__name {
  margin: 0;
  color: #3e3e3e;
  font-size: 26px;
  line-height: 1.4;
}

.designer-card__name-en {
  margin: 5px 0 0;
  color: #999;
  font-size: 12px;
  letter-spacing: .08em;
}

.designer-card__meta,
.designer-card__comment,
.designer-card__works {
  margin: 14px 0 0;
  line-height: 1.8;
}

.designer-card__meta {
  font-size: 14px;
}

.designer-card__comment {
  color: #555;
  font-size: 14px;
}

.designer-card__works {
  color: #777;
  font-size: 13px;
}

.designer-card__more {
  display: inline-block;
  margin-top: 18px;
  color: #b34700;
  font-size: 14px;
}

.designer-profile {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 70px;
  align-items: center;
  margin-bottom: 90px;
}

.designer-profile__image-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 50%;
  background: #f5f5f5;
}

.designer-profile__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.designer-profile__label {
  margin: 0 0 12px;
  color: #b34700;
  font-size: 12px;
  letter-spacing: .16em;
}

.designer-profile__name {
  margin: 0;
  color: #3e3e3e;
  font-size: 42px;
  line-height: 1.35;
}

.designer-profile__name-en {
  margin: 7px 0 0;
  color: #999;
  font-size: 13px;
  letter-spacing: .08em;
}

.designer-profile__position {
  margin: 24px 0 0;
  font-size: 17px;
}

.designer-profile__licenses {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.designer-profile__licenses li {
  margin: 0 !important;
  padding: 6px 11px !important;
  background: #f5f5f5;
  font-size: 13px;
  line-height: 1.4;
}

.designer-profile__comment {
  margin: 28px 0 0;
  font-size: 16px;
  line-height: 2;
}

.designer-detail,
.designer-works,
.designer-interview {
  margin-top: 90px;
}

.designer-section-title {
  margin: 0 0 34px;
  padding: 0 0 14px;
  border-bottom: 1px solid #dedede;
  font-size: 28px;
  line-height: 1.5;
}

.designer-detail__list {
  margin: 0;
  border-top: 1px solid #e5e5e5;
}

.designer-detail__list > div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  border-bottom: 1px solid #e5e5e5;
}

.designer-detail__list dt,
.designer-detail__list dd {
  margin: 0;
  padding: 18px 20px;
  line-height: 1.8;
}

.designer-detail__list dt {
  background: #f5f5f5;
  font-weight: 600;
}

.designer-works__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 24px;
}

.designer-work-card a {
  display: block;
  color: #333;
  text-decoration: none;
}

.designer-work-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.designer-work-card h3 {
  margin: 16px 0 0;
  color: #3e3e3e;
  font-size: 18px;
  line-height: 1.6;
}

.designer-work-card p {
  margin: 8px 0 0;
  color: #666;
  font-size: 13px;
  line-height: 1.7;
}

.designer-interview__body {
  width: 100%;
}

/* 実績詳細：担当設計士を小型の帯に変更 */
.work_content.designer.work-designer a {
  width: auto;
  height: auto;
  margin: 0;
  border-radius: 0;
  overflow: visible;
}

.work-designer__band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  background: #f5f5f5;
}

.work-designer__profile {
  display: flex !important;
  align-items: center;
  gap: 18px;
  min-width: 0;
  color: #333;
  text-decoration: none;
}

.work_content.designer .work-designer__image {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
  transition: transform .3s ease;
}

.work-designer__profile:hover .work-designer__image {
  transform: scale(1.04);
}

.work-designer__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.work-designer__name {
  color: #3e3e3e;
  font-size: 18px;
  line-height: 1.4;
}

.work-designer__meta {
  color: #666;
  font-size: 13px;
  line-height: 1.5;
}

.work-designer__button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 52px;
  padding: 10px 22px;
  background: #b34700;
  color: #fff !important;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.work-designer__button:hover,
.work-designer__button:focus-visible {
  background: #8f3900;
  color: #fff !important;
}

/* 実績詳細：担当者が複数名の場合も既存の帯スタイルを維持 */
.work-designer__band {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.work-designer__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.work-designer__item + .work-designer__item {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #ddd;
}
.shirotori-work-data dd a {
  color: #b34700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.shirotori-work-data dd a:hover,
.shirotori-work-data dd a:focus-visible {
  color: #8f3900;
}

@media screen and (max-width: 850px) {
  .designer-archive,
  .designer-single {
    width: min(720px, calc(100% - 40px));
    padding: 70px 0 90px;
  }

  .designer-list {
    grid-template-columns: 1fr;
  }

  .designer-profile {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 40px;
  }

  .designer-works__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 650px) {
  .designer-archive,
  .designer-single {
    width: calc(100% - 40px);
    padding: 50px 0 70px;
  }

  .designer-archive__header {
    margin-bottom: 32px;
  }

  .designer-archive__title {
    font-size: 28px;
  }

  .designer-card__link {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 20px;
    padding: 20px;
  }

  .designer-card__name {
    font-size: 21px;
  }

  .designer-card__comment {
    display: none;
  }

  .designer-profile {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 60px;
  }

  .designer-profile__image-wrap {
    width: min(100%, 280px);
    margin: 0 auto;
  }

  .designer-profile__name {
    font-size: 32px;
  }

  .designer-detail,
  .designer-works,
  .designer-interview {
    margin-top: 60px;
  }

  .designer-section-title {
    margin-bottom: 24px;
    font-size: 23px;
  }

  .designer-detail__list > div {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .designer-detail__list dt,
  .designer-detail__list dd {
    padding: 14px 12px;
    font-size: 14px;
  }

  .designer-works__grid {
    grid-template-columns: 1fr;
  }

  .work-designer__band {
    display: block;
    padding: 18px;
  }

  .work_content.designer .work-designer__image {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
  }

  .work-designer__item {
    display: block;
  }

  .work-designer__button {
    width: 100% !important;
    margin-top: 16px !important;
    box-sizing: border-box;
  }
}


/* 設計チーム一覧：原稿②に合わせた導入・構造・設計思想 */
.designer-archive__intro-title {
  margin: 28px 0 0;
  font-size: 24px;
  line-height: 1.5;
  font-weight: 500;
  color: #3e3e3e;
}
.designer-archive__lead {
  max-width: 800px;
  margin: 18px auto 0;
  text-align: left;
}
.designer-archive__structure {
  margin-bottom: 64px;
}
.designer-archive__structure p,
.designer-archive__philosophy p {
  color: #555;
  font-size: 16px;
  line-height: 2;
}
.designer-archive__philosophy {
  margin-top: 90px;
}
.designer-archive__philosophy p + p {
  margin-top: 18px;
}
.designer-card--structure .designer-card__link {
  border: 2px solid #b34700;
  background: #fffaf6;
}
.designer-card__specialty {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.4;
  color: #fff;
  background: #b34700;
}
@media screen and (max-width: 650px) {
  .designer-archive__intro-title { font-size: 21px; }
  .designer-archive__structure { margin-bottom: 44px; }
  .designer-archive__structure p,
  .designer-archive__philosophy p { font-size: 14px; }
  .designer-archive__philosophy { margin-top: 60px; }
}

/* ----------------------------------------------------------------------
 フッター：地図／プライバシーポリシー／本体サイト
---------------------------------------------------------------------- */
.factory-footer-access {
  width: min(760px, calc(100% - 60px));
  margin: 42px auto 0;
}

.factory-footer-access__map {
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: #f5f5f5;
}

.factory-footer-access__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.factory-footer-access__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 22px;
  font-size: 13px;
  line-height: 1.7;
}

.factory-footer-access__links a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.factory-footer-access__links a:hover,
.factory-footer-access__links a:focus-visible {
  color: #b34700;
}

@media screen and (max-width: 850px) {
  .factory-footer-access {
    width: min(720px, calc(100% - 40px));
    margin-top: 34px;
  }

  .factory-footer-access__map {
    height: 260px;
  }
}

@media screen and (max-width: 650px) {
  .factory-footer-access {
    width: calc(100% - 40px);
    margin-top: 28px;
  }

  .factory-footer-access__map {
    height: 220px;
  }

  .factory-footer-access__links {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    text-align: center;
  }
}

/* ----------------------------------------------------------------------
 スマホ画面下固定バー：電話／相談する（FAKE標準フッターバーを利用）
---------------------------------------------------------------------- */
@media screen and (max-width: 1050px) {
  body.show_footer_bar {
    padding-bottom: 56px;
  }

  #dp-footer-bar .dp-footer-bar {
    height: 56px;
    flex-wrap: nowrap;
    border-top: 0;
    background: #fff;
  }

  #dp-footer-bar .dp-footer-bar-item {
    width: 50%;
    height: 56px;
    flex: 0 0 50%;
    border: 0;
  }

  #dp-footer-bar .dp-footer-bar-item + .dp-footer-bar-item {
    border-left: 0;
  }

  #dp-footer-bar .dp-footer-bar-item > a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 56px;
    padding: 0 12px;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
  }

  #dp-footer-bar .dp-footer-bar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  #dp-footer-bar .dp-footer-bar-icon::before {
    margin: 0;
    font-size: 18px;
  }

  #dp-footer-bar .dp-footer-bar-label {
    display: inline-block;
  }

  /* 左：電話 */
  #dp-footer-bar .dp-footer-bar-item:first-child > a {
    border-top: 1px solid #b34700;
    background: #fff;
    color: #b34700 !important;
  }

  /* 右：相談する */
  #dp-footer-bar .dp-footer-bar-item:last-child > a {
    border-top: 1px solid #b34700;
    background: #b34700;
    color: #fff !important;
  }

  #dp-footer-bar .dp-footer-bar-item:last-child .dp-footer-bar-icon,
  #dp-footer-bar .dp-footer-bar-item:last-child .dp-footer-bar-label {
    color: #fff !important;
  }

  body.show_footer_bar #return_top.active,
  body.show_footer_bar #footer_button.active {
    transform: translate3d(0, -56px, 0);
  }
}

/* ----------------------------------------------------------------------
 下層ページ：大型ファーストビューをコンパクトなページタイトル領域へ変更

 方針：
 - #header の position は一切変更しない（FAKE標準の absolute / fixed 制御を維持）
 - 背景画像・オーバーレイ・パララックスだけを無効化
 - 通常の #page_header はタイトル／説明文／実績タブを残してコンパクト化
 - .small はPCで100pxのヘッダー背面スペースとして残す
 - SPでは親テーマ標準どおり .small を非表示のままにする
---------------------------------------------------------------------- */

/* 下層ページのFV装飾を無効化 */
body:not(.home):not(.error404) #page_header {
  background: #fff !important;
}

body:not(.home):not(.error404) #page_header > .overlay,
body:not(.home):not(.error404) #page_header > .bg_image,
body:not(.home):not(.error404) #page_header #blur_bg {
  display: none !important;
}

/* 大型ページヘッダーだけを通常フローのコンパクトなタイトル領域へ */
body:not(.home):not(.error404) #page_header:not(.small) {
  height: auto !important;
  min-height: 0;
  overflow: visible;
  box-sizing: border-box;
}

body:not(.home):not(.error404) #page_header:not(.small) #page_header_inner {
  height: auto !important;
}

body:not(.home):not(.error404) #page_header:not(.small) #page_header_catch {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  width: min(1100px, calc(100% - 60px));
  margin: 0 auto;
  padding: 48px 0 42px;
  box-sizing: border-box;
  color: #333 !important;
  text-align: center;
  -webkit-transform: none;
  transform: none;
}

body:not(.home):not(.error404) #page_header:not(.small) #page_header_catch .catch {
  color: #3e3e3e !important;
  font-size: 34px !important;
  line-height: 1.5;
  text-shadow: none !important;
}

body:not(.home):not(.error404) #page_header:not(.small) #page_header_catch .desc {
  max-width: 760px;
  margin: 12px auto 0;
  color: #666 !important;
  font-size: 14px !important;
  line-height: 1.9;
  text-shadow: none !important;
}

/* 実績一覧等のタブは消さず、ページタイトルの直下へ通常フローで配置 */
body:not(.home):not(.error404) #page_header:not(.small) #tab_button_list {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  height: 60px;
  margin: 0 auto;
  overflow: visible;
  -ms-transform: none;
  -webkit-transform: none;
  transform: none;
}

body:not(.home):not(.error404) #page_header:not(.small) #tab_button_list_inner {
  height: 60px;
}

/* PC：ヘッダーはFAKE標準の位置制御を維持したまま、白背景用の配色にする */
@media screen and (min-width: 1051px) {
  body:not(.home):not(.error404) #page_header:not(.small) {
    padding-top: 100px; /* absoluteヘッダーの高さ分だけタイトルを下げる */
  }

  /* .small は記事詳細等の100pxスペーサーとして維持。positionには触れない */
  body:not(.home):not(.error404) #page_header.small {
    height: 100px !important;
    background: #fff !important;
  }

  body:not(.home):not(.error404) #header {
    background: #fff !important;
    color: #000 !important;
    border-bottom: 1px solid #eee;
  }

  body:not(.home):not(.error404) #global_menu > ul > li > a {
    color: #000 !important;
    text-shadow: none !important;
  }

  body:not(.home):not(.error404) #global_menu > ul > li > a:hover {
    color: #777 !important;
  }

  body:not(.home):not(.error404) #header_logo .pc_logo_image.type1 {
    display: none;
  }

  body:not(.home):not(.error404) #header_logo .pc_logo_image.type2 {
    display: block;
  }
}

/* タブの見た目をFV依存から通常UIへ */
body:not(.home):not(.error404) #page_header:not(.small) #tab_button_list {
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  background: #f7f7f7;
}

body:not(.home):not(.error404) #page_header:not(.small) #tab_button_list li a,
body:not(.home):not(.error404) #page_header:not(.small) #tab_button_list li span {
  background: transparent;
  color: #333;
}

body:not(.home):not(.error404) #page_header:not(.small) #tab_button_list li a:hover,
body:not(.home):not(.error404) #page_header:not(.small) #tab_button_list li a.active {
  background: #b34700;
  color: #fff;
}

/* Tablet / SP：ヘッダー自体が通常フローに入るため上部100pxは不要 */
@media screen and (max-width: 1050px) {
  body:not(.home):not(.error404) #page_header:not(.small) {
    padding-top: 0;
  }

  body:not(.home):not(.error404) #page_header:not(.small) #page_header_catch {
    width: min(720px, calc(100% - 40px));
    padding: 42px 0 36px;
  }
}

@media screen and (max-width: 650px) {
  body:not(.home):not(.error404) #page_header:not(.small) #page_header_catch {
    width: calc(100% - 40px);
    padding: 32px 0 28px;
  }

  body:not(.home):not(.error404) #page_header:not(.small) #page_header_catch .catch {
    font-size: 26px !important;
  }

  body:not(.home):not(.error404) #page_header:not(.small) #page_header_catch .desc {
    margin-top: 8px;
    font-size: 13px !important;
    line-height: 1.8;
  }

  body:not(.home):not(.error404) #page_header:not(.small) #tab_button_list,
  body:not(.home):not(.error404) #page_header:not(.small) #tab_button_list_inner {
    height: 45px;
  }

  body:not(.home):not(.error404) #page_header:not(.small) #tab_button_list li a,
  body:not(.home):not(.error404) #page_header:not(.small) #tab_button_list li span {
    height: 45px;
    line-height: 45px;
  }
}

/* ----------------------------------------------------------------------
   TOP FV：PC時のコピー位置を左寄せ
   FAKE管理画面の配置指定が direction_type2（中央）のまま出力されるため、
   トップページのPC表示のみ子テーマ側で左配置へ上書きする。
---------------------------------------------------------------------- */
@media screen and (min-width: 1051px) {
  #index_slider .caption {
    right: auto;
    left: 50%;
    width: min(1100px, calc(100% - 80px));
    margin: 0;
    text-align: left;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
  }

  #index_slider .caption .caption_inner,
  #index_slider .caption.direction_type2 .caption_inner {
    width: min(650px, 100%);
    text-align: left !important;
  }
}

/* =========================================================
   グローバルナビ最終調整
   - PC：「相談する」をヘッダーボタン化
   - SP：「悩みから探す」の階層を廃止し、子3項目をフラット表示
   ========================================================= */
@media screen and (min-width: 1201px) {
  .pc #global_menu > ul > li > a[href$="/contact"],
  .pc #global_menu > ul > li > a[href$="/contact/"] {
    height: 48px;
    line-height: 48px;
    margin-top: 26px;
    padding: 0 20px;
    color: #fff !important;
    background: #b34700;
  }

  .pc #global_menu > ul > li > a[href$="/contact"]:hover,
  .pc #global_menu > ul > li > a[href$="/contact/"]:hover {
    color: #fff !important;
    background: #8f3900;
  }
}

@media screen and (max-width: 1200px) {
  /* SPドロワーでは階層操作を使わず、子メニューを常時展開する */
  #mobile_menu .child_menu_button {
    display: none !important;
  }

  #mobile_menu li > ul {
    display: block !important;
  }

  /* 「悩みから探す」親項目はSPでは表示せず、課題別3項目を直接並べる */
  #mobile_menu > li > a[href$="#problems"] {
    display: none !important;
  }

  #mobile_menu ul ul a,
  #mobile_menu ul ul ul a,
  #mobile_menu ul ul ul ul a {
    padding-left: 20px;
  }

  #mobile_menu a {
    min-height: 48px;
    box-sizing: border-box;
  }
}

/* =========================================================
   お問い合わせ：フォーム直前の個人情報案内
   ========================================================= */
.contact-privacy-note {
  margin: 0 0 24px;
  color: #333;
  font-size: 14px;
  line-height: 1.9;
}

.contact-privacy-note a {
  margin-left: .5em;
  color: #b34700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-privacy-note a:hover {
  color: #8f3900;
}

@media screen and (max-width: 650px) {
  .contact-privacy-note {
    margin-bottom: 20px;
    font-size: 13px;
  }
}

/* ======================================================================
 * 2026-10-05 / QA No.5
 * トップ「コラム4件」：日付・タイトルを画像下へ移動し、一覧ボタンを指定色へ
 * サムネイルは主要画像の3:2比率に合わせ、上下のトリミングを防ぐ
 * ====================================================================== */
.index_blog_list .blog_list_front .blog_item {
  height: auto;
  overflow: visible;
}

.index_blog_list .blog_list_front .link {
  display: block;
  color: #333333;
  text-decoration: none;
}

.index_blog_list .blog_list_front .blog_item .image {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.index_blog_list .blog_list_front .title_area {
  position: static;
  padding: 18px 0 0;
  color: #333333;
}

.index_blog_list .blog_list_front .date {
  margin: 0 0 10px;
  color: #777777;
  font-size: 13px;
  line-height: 1.5;
}

.index_blog_list .blog_list_front .title {
  max-height: none;
  margin: 0;
  overflow: visible;
  color: #3e3e3e;
  font-size: 18px;
  line-height: 1.65;
}

.index_blog_list .blog_list_front .overlay {
  display: none;
}

.index_blog_list .blog_list_front .link:hover .title_area,
.index_blog_list .blog_list_front .link:focus-visible .title_area {
  opacity: 1;
}

.index_blog_list .blog_list_front .link:hover .title,
.index_blog_list .blog_list_front .link:focus-visible .title {
  color: #b34700;
}

.index_blog_list > .link_button a {
  background: #b34700;
  color: #ffffff;
}

.index_blog_list > .link_button a:hover,
.index_blog_list > .link_button a:focus-visible {
  background: #8f3900;
  color: #ffffff;
}

@media screen and (max-width: 650px) {
  .index_blog_list .blog_list_front .title_area {
    padding-top: 14px;
  }

  .index_blog_list .blog_list_front .title {
    font-size: 18px;
  }
}

/* ----------------------------------------------------------------------
   TOP お知らせティッカー
   - 旧news→columnのスタブはPHP側で除外
   - SPではFVの下に80px分の領域を確保し、次ブロックへ重ねない
---------------------------------------------------------------------- */
@media screen and (max-width: 650px) {
  #index_header_content.has-index-news {
    height: calc(70vh + 80px) !important;
  }

  #index_header_content.has-index-news #index_slider_wrap {
    height: 70vh;
  }

  #index_header_content.has-index-news #index_news {
    bottom: 0;
  }
}


/* ----------------------------------------------------------------------
 2026-10-05 校正対応 No.7：悩みの3カード（PC）
 - 親ブロック幅に制限されず、PCでは3カードの横幅を十分に確保
 - 見出しの不自然な途中改行を抑える
 - カード群と「造りながら〜」の補足文の間隔を広げる
---------------------------------------------------------------------- */
@media screen and (min-width: 851px) {
  .factory-problem-cards {
    width: min(1240px, calc(100vw - 60px));
    max-width: none;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }

  .factory-problem-cards__grid {
    gap: 20px;
  }

  .factory-problem-card {
    padding-left: 26px;
    padding-right: 26px;
  }

  .factory-problem-card__title {
    font-size: 19px;
    line-height: 1.6;
    word-break: auto-phrase;
  }

  .factory-problem-cards__operation {
    margin-top: 64px;
  }
}

/* ======================================================================
 * 2026-10-05 / QA No.9
 * SPのタップ領域を48px以上に統一
 * ====================================================================== */
@media screen and (max-width: 650px) {
  /* FAKE標準の45pxボタンを48px以上へ */
  .cb_contents .link_button a,
  .work_data_list .link_button a,
  .dc_data_list .link_button a,
  #access_data .link_button a,
  #index_slider .button,
  .p-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 48px !important;
    height: auto !important;
    line-height: 1.4 !important;
    padding: 8px 20px !important;
    box-sizing: border-box;
    text-align: center;
  }

  /* 下層ページのタブも45px → 48px */
  body:not(.home):not(.error404) #page_header:not(.small) #tab_button_list,
  body:not(.home):not(.error404) #page_header:not(.small) #tab_button_list_inner {
    height: 48px;
  }

  body:not(.home):not(.error404) #page_header:not(.small) #tab_button_list li a,
  body:not(.home):not(.error404) #page_header:not(.small) #tab_button_list li span {
    height: 48px;
    line-height: 48px;
  }

  /* フッターメニュー */
  #footer_menu ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    box-sizing: border-box;
  }

  /* 地図下の補助リンク */
  .factory-footer-access__links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 8px 12px;
    box-sizing: border-box;
  }

  /* フッターSNSアイコンもタップ領域を48px確保 */
  #footer_social_link li {
    margin: 0 2px;
  }

  #footer_social_link li a,
  #drawer_menu #footer_social_link li a {
    width: 48px;
    height: 48px;
    line-height: 48px;
  }

  #footer_social_link li a::before,
  #drawer_menu #footer_social_link li a::before {
    top: 50%;
    transform: translateY(-50%);
  }
}

/* =========================================================
   下層ページ：グローバルナビ「相談する」文字色補正
   下層用ナビ配色（黒文字）の指定より優先し、CTAは常に白文字にする。
   ========================================================= */
@media screen and (min-width: 1201px) {
  body:not(.home):not(.error404) #global_menu > ul > li > a[href*="/contact"],
  body:not(.home):not(.error404) #global_menu > ul > li > a[href*="/contact"] span {
    color: #fff !important;
  }

  body:not(.home):not(.error404) #global_menu > ul > li > a[href*="/contact"]:hover,
  body:not(.home):not(.error404) #global_menu > ul > li > a[href*="/contact"]:hover span {
    color: #fff !important;
  }
}

/* ----------------------------------------------------------------------
 問い合わせページと reCAPTCHA / SP固定バー
 - reCAPTCHA v3 のバッジは問い合わせページだけ表示
 - 問い合わせページではSP固定バーを出さない
---------------------------------------------------------------------- */
/* reCAPTCHA自体はPHP側で問い合わせページのみに読み込む。
   キャッシュ等で他ページに残った場合だけ保険として非表示にする。 */
body:not(.is-contact-page) .grecaptcha-badge {
  visibility: hidden !important;
}

@media screen and (max-width: 1050px) {
  body.is-contact-page.show_footer_bar {
    padding-bottom: 0 !important;
  }
}


/* ----------------------------------------------------------------------
 FV見出し：SP専用改行
 「工場・倉庫・社屋を、」の直後で改行し、「考える」の途中折返しを防ぐ。
---------------------------------------------------------------------- */
.fv-catch-break-sp {
  display: none;
}

@media screen and (max-width: 650px) {
  .fv-catch-break-sp {
    display: block;
  }
}

/* ----------------------------------------------------------------------
 問い合わせページ：reCAPTCHA v3 バッジ位置調整
 #return_top（右下固定）との重なりを避けるため、バッジを上へ移動。
---------------------------------------------------------------------- */
body.is-contact-page .grecaptcha-badge {
  bottom: 70px !important;
}

/* ----------------------------------------------------------------------
 問い合わせページ：SP時のreCAPTCHA v3バッジ位置をさらに上へ
 #return_top とバッジが横方向にも重ならない高さまで退避する。
---------------------------------------------------------------------- */
@media screen and (max-width: 650px) {
  body.is-contact-page .grecaptcha-badge {
    bottom: 170px !important;
  }
}

/* 2026-10 共通修正：本体サイトへの導線 */
.factory-footer-access__corporate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 26px;
  padding: 20px 24px;
  background: #b34700;
  color: #fff !important;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s ease;
}
.factory-footer-access__corporate:hover,
.factory-footer-access__corporate:focus-visible {
  background: #8f3900;
  color: #fff !important;
}
@media screen and (max-width: 650px) {
  .factory-footer-access__corporate { font-size: 15px; padding: 18px 14px; }
}


/* 2026-10 第9回補正：設計チーム一覧へのリンク
   ボタン本体には既存「ご相談の入口を見る」と同じ
   .factory-problem-cards__button を使用し、ここでは配置余白のみ指定。 */
.designer-team-archive-cta {
  max-width: 1100px;
  margin: -24px auto 76px;
  padding: 0 30px;
  text-align: center;
}
@media screen and (max-width: 650px) {
  .designer-team-archive-cta {
    margin: 0 auto 56px;
    padding: 0 20px;
  }
}

/* ----------------------------------------------------------------------
 課題別固定ページ（2026.10）：原稿②の新規ページ用
 WordPressの本文に .factory-issue-page を置いたページにのみ適用する。
 共通CTA [factory_cta] は既存スタイルを使用する。
---------------------------------------------------------------------- */
.factory-issue-page {
  width: min(1100px, 100%);
  margin: 0 auto;
  color: #333;
  font-size: 16px;
  line-height: 1.95;
  box-sizing: border-box;
}
.factory-issue-page *,
.factory-issue-page *::before,
.factory-issue-page *::after { box-sizing: border-box; }
.factory-issue-page p { margin: 0 0 1.5em; }
.factory-issue-page a { color: #b34700; text-underline-offset: 3px; }
.factory-issue-page a:hover,
.factory-issue-page a:focus-visible { color: #8f3900; }
.factory-issue-page__lead {
  border-left: 4px solid #b34700;
  padding: 10px 0 10px 26px;
  margin: 0 0 65px;
}
.factory-issue-page__lead p:last-child { margin-bottom: 0; }
.factory-issue-section {
  margin: 0 0 72px;
  scroll-margin-top: 110px;
}
.factory-issue-page .factory-issue-section > h2,
.factory-issue-page .factory-issue-related > h2 {
  margin: 0 0 26px;
  padding: 0 0 14px;
  border-bottom: 2px solid #b34700;
  font-size: clamp(22px, 2.25vw, 30px);
  font-weight: 700;
  line-height: 1.55;
  text-align: left;
}
.factory-issue-page .factory-issue-case h3 {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
}
.factory-issue-table-scroll { width: 100%; overflow-x: auto; margin: 24px 0 30px; -webkit-overflow-scrolling: touch; }
.factory-issue-page .factory-issue-table {
  width: 100%;
  min-width: 640px;
  border: 1px solid #dcdcdc;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.75;
}
.factory-issue-page .factory-issue-table th,
.factory-issue-page .factory-issue-table td {
  border: 1px solid #dcdcdc;
  padding: 16px 18px;
  vertical-align: top;
  text-align: left;
}
.factory-issue-page .factory-issue-table thead th {
  background: #f4f2ee;
  font-weight: 700;
}
.factory-issue-page .factory-issue-table tbody th {
  width: 20%;
  background: #faf9f7;
  font-weight: 700;
  white-space: nowrap;
}
.factory-issue-cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 25px 0 0;
}
.factory-issue-case {
  min-width: 0;
  padding: 24px;
  background: #faf9f7;
  border: 1px solid #e2ded7;
}
.factory-issue-case p:last-child { margin-bottom: 0; }
.factory-issue-page .factory-issue-list {
  padding-left: 1.65em;
  margin: 20px 0 26px;
  list-style: decimal outside;
}
.factory-issue-page .factory-issue-list > li {
  display: list-item;
  list-style: decimal outside;
  padding: 0 0 6px 0;
}
.factory-issue-related { margin: 0 0 66px; }
.factory-issue-page .factory-issue-related ul {
  padding: 0;
  margin: 0;
  list-style: none;
}
.factory-issue-page .factory-issue-related li {
  list-style: none;
  border-bottom: 1px solid #e5e5e5;
  margin: 0;
}
.factory-issue-page .factory-issue-related li a {
  display: block;
  padding: 16px 8px;
  text-decoration: none;
}
.factory-issue-page .factory-issue-related li a::after {
  content: "→";
  float: right;
}
@media screen and (max-width: 850px) {
  .factory-issue-cases { grid-template-columns: 1fr; }
  .factory-issue-section { margin-bottom: 55px; scroll-margin-top: 85px; }
}
@media screen and (max-width: 650px) {
  .factory-issue-page { font-size: 15px; line-height: 1.85; }
  .factory-issue-page__lead { padding-left: 17px; margin-bottom: 45px; }
  .factory-issue-page .factory-issue-section > h2,
  .factory-issue-page .factory-issue-related > h2 { font-size: 22px; margin-bottom: 20px; }
  .factory-issue-page .factory-issue-case h3 { font-size: 17px; }
  .factory-issue-case { padding: 20px; }
  .factory-issue-page .factory-issue-table { font-size: 14px; min-width: 540px; }
  .factory-issue-page .factory-issue-table th,
  .factory-issue-page .factory-issue-table td { padding: 12px; }
  .factory-issue-related { margin-bottom: 45px; }
}

/* ----------------------------------------------------------------------
 課題別②「建設費と見積り」専用（2026-10）
 課題別①の共通クラスを再利用し、下記のみ追加。
---------------------------------------------------------------------- */
.factory-issue-page--cost .factory-issue-faq {
  margin: 28px 0 0;
}
.factory-issue-page--cost .factory-issue-faq h3 {
  margin: 30px 0 12px;
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 700;
  line-height: 1.6;
}
.factory-issue-page--cost .factory-issue-bullets {
  margin: 20px 0 28px;
  padding: 0 0 0 1.6em;
  list-style: disc outside;
}
.factory-issue-page--cost .factory-issue-bullets > li {
  display: list-item;
  list-style: disc outside;
  margin: 0 0 12px;
  padding: 0;
}
.factory-issue-page--cost .factory-issue-design-decisions > li {
  margin-bottom: 18px;
}
.factory-issue-page--cost .factory-issue-source {
  font-size: 0.82em;
  line-height: 1.7;
  color: #666;
  border-top: 1px solid #e5e5e5;
  padding: 12px 0 0;
  overflow-wrap: anywhere;
}
.factory-issue-page--cost .factory-issue-figure {
  margin: 24px 0 30px;
}
.factory-issue-page--cost .factory-issue-figure__placeholder {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 2px dashed #c9c9c9;
  background: #f8f8f8;
  color: #666;
  font-size: 14px;
  text-align: center;
}
@media screen and (max-width: 650px) {
  .factory-issue-page--cost .factory-issue-figure__placeholder { min-height: 160px; }
  .factory-issue-page--cost .factory-issue-faq h3 { font-size: 17px; }
}


/* ----------------------------------------------------------------------
 課題別ページ本文内の共通CTA：横幅・2カラム崩れの是正（第11回確認対応）
 テーマ標準の本文幅内ではメインCTAが2列のまま窮屈になる。
 本文に挿入したCTAのみ、ページ中央で最大1100pxまで広げる。
 TOP等のCTAや入力済みショートコードのHTML・文言には影響させない。
---------------------------------------------------------------------- */
.post_content .factory-cta--main {
  position: relative;
  left: 50%;
  width: min(1100px, calc(100vw - 40px));
  max-width: none;
  transform: translateX(-50%);
}
.post_content .factory-cta--main .factory-cta__inner {
  width: calc(100% - 72px);
  max-width: 1000px;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(28px, 4vw, 60px);
}
@media screen and (max-width: 850px) {
  .post_content .factory-cta--main .factory-cta__inner {
    width: calc(100% - 48px);
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .post_content .factory-cta--main .factory-cta__actions {
    width: min(100%, 420px);
  }
}
@media screen and (max-width: 650px) {
  .post_content .factory-cta--main .factory-cta__inner {
    width: calc(100% - 40px);
    gap: 24px;
  }
  .post_content .factory-cta--main .factory-cta__actions {
    width: 100%;
  }
}


/* ----------------------------------------------------------------------
 課題別③「将来の増築・設備更新」専用（原稿②・③）
 課題別①②の共通スタイルは維持し、図版・箇条書きだけを追加する。
---------------------------------------------------------------------- */
.factory-issue-page--future .factory-issue-bullets {
  margin: 20px 0 28px;
  padding: 0 0 0 1.6em;
  list-style: disc outside;
}
.factory-issue-page--future .factory-issue-bullets > li {
  display: list-item;
  list-style: disc outside;
  margin: 0 0 12px;
  padding: 0;
}
.factory-issue-page--future .factory-issue-figure--plan {
  margin: 28px 0 32px;
  width: 100%;
}
.factory-issue-page--future .factory-issue-figure--plan a {
  display: block;
  line-height: 0;
  border: 1px solid #e1e1e1;
}
.factory-issue-page--future .factory-issue-figure--plan img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  cursor: zoom-in;
}
.factory-issue-page--future .factory-issue-figure--plan figcaption {
  margin: 12px 0 0;
  color: #555;
  font-size: 0.88em;
  line-height: 1.7;
}
.factory-issue-page--future .factory-issue-work-link {
  margin-top: 24px;
}
@media screen and (max-width: 650px) {
  .factory-issue-page--future .factory-issue-figure--plan { margin: 20px 0 26px; }
}


/* ----------------------------------------------------------------------
 第13回「工場設計の進め方」：固定ページ本文専用
 課題別①～③の共通レイアウトを再利用し、既存CSSを変更しない。
---------------------------------------------------------------------- */
.factory-process-page .factory-issue-section > h3 {
  margin: 34px 0 14px;
  font-size: clamp(18px, 1.65vw, 23px);
  font-weight: 700;
  line-height: 1.55;
}
.factory-process-page .factory-issue-section > h3:first-of-type { margin-top: 14px; }
.factory-process-page .factory-issue-section ul:not(.factory-issue-list) {
  margin: 16px 0 26px;
  padding-left: 1.65em;
  list-style: disc outside;
}
.factory-process-page .factory-issue-section ul:not(.factory-issue-list) > li {
  display: list-item;
  list-style: disc outside;
  margin: 0 0 12px;
}
.factory-process-page .factory-process-ordered { margin: 18px 0 26px; }
.factory-process-page .factory-process-ordered > li { margin-bottom: 14px; }
.factory-process-page .factory-process-faq > h3 {
  margin: 28px 0 8px;
  padding-top: 16px;
  border-top: 1px solid #dedede;
}
.factory-process-page .factory-process-faq > h3:first-of-type { margin-top: 0; }
.factory-process-page .factory-process-faq > p { margin-bottom: 20px; }
.factory-process-page .factory-process-work-link { margin: 22px 0 24px; color: #b34700; }
.factory-process-page .factory-issue-section[id],
.factory-process-page #process-structure { scroll-margin-top: 120px; }
@media screen and (max-width: 650px) {
  .factory-process-page .factory-issue-section > h3 { font-size: 18px; }
  .factory-process-page .factory-issue-section > h3:first-of-type { margin-top: 10px; }
  .factory-process-page .factory-process-faq > h3 { padding-top: 14px; }
  .factory-process-page .factory-issue-section[id],
  .factory-process-page #process-structure { scroll-margin-top: 85px; }
}


/* ----------------------------------------------------------------------
 トップページ：意匠と構造の欄／構造設計部長プロフィール（原稿① 1-3）
 既存のコンテンツビルダー・代表の言葉は変更せず、写真の帯だけを追加。
---------------------------------------------------------------------- */
.shirotori-structure-leader {
  width: min(1000px, calc(100% - 60px));
  margin: 0 auto 85px;
  box-sizing: border-box;
}
.shirotori-structure-leader__inner {
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 28px 38px;
  border-left: 3px solid #b34700;
  background: #f7f6f4;
  box-sizing: border-box;
}
.shirotori-structure-leader__photo {
  width: 174px;
  height: 174px;
  flex: 0 0 174px;
  overflow: hidden;
  border-radius: 50%;
  background: #e8e6e1;
}
.shirotori-structure-leader__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
}
.shirotori-structure-leader__profile {
  min-width: 0;
}
.shirotori-structure-leader__position {
  margin: 0 0 8px;
  color: #b34700;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}
.shirotori-structure-leader__name {
  margin: 0 0 10px;
  color: #333;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: .05em;
  line-height: 1.5;
}
.shirotori-structure-leader__licenses {
  margin: 0;
  color: #4a4a4a;
  font-size: 15px;
  line-height: 1.85;
}
@media screen and (max-width: 650px) {
  .shirotori-structure-leader {
    width: calc(100% - 36px);
    margin-bottom: 60px;
  }
  .shirotori-structure-leader__inner {
    flex-direction: column;
    gap: 16px;
    padding: 26px 20px 28px;
    text-align: center;
  }
  .shirotori-structure-leader__photo {
    width: 146px;
    height: 146px;
    flex: 0 0 146px;
  }
  .shirotori-structure-leader__name {
    font-size: 23px;
  }
  .shirotori-structure-leader__licenses {
    font-size: 14px;
  }
}

/* ----------------------------------------------------------------------
 第16回：ヘッダーロゴのレスポンシブ調整
 原稿① 1-7：<=1050px 大きすぎ／1051～1250px メニューに重なる
 変更範囲は #header_logo 配下のみ。ナビの配置・要素・表示切替は変更しない。
---------------------------------------------------------------------- */
@media screen and (max-width: 1050px) {
  #header_logo {
    max-width: calc(100vw - 100px);
  }

  #header_logo .logo {
    max-width: 100%;
  }

  #header_logo .mobile_logo_image {
    width: min(220px, 56vw) !important;
    max-width: 100% !important;
    height: auto !important;
  }
}

@media screen and (min-width: 1051px) and (max-width: 1250px) {
  #header_logo {
    max-width: 205px;
  }

  #header_logo .logo {
    max-width: 100%;
  }

  #header_logo .pc_logo_image {
    max-width: 205px !important;
    max-height: 50px;
    width: auto !important;
    height: auto !important;
  }
}


/* 第23回：実績詳細 ハーモ配置計画3案（PC横3列／SP縦1列） */
.single_work_desc .shirotori-harmo-comparison {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
  width: 100%;
  box-sizing: border-box;
}
.single_work_desc .shirotori-harmo-comparison__item {
  min-width: 0;
  margin: 0;
  padding: 0;
}
.single_work_desc .shirotori-harmo-comparison__item > a {
  display: block;
  border: 1px solid #e3e3e3;
  background: #f8f8f8;
}
.single_work_desc .shirotori-harmo-comparison__item img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}
.single_work_desc .shirotori-harmo-comparison__item figcaption {
  margin: 9px 0 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}
@media screen and (max-width: 767px) {
  .single_work_desc .shirotori-harmo-comparison {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}


/* 2026-10-20 代理店修正9：設計施工一括／分離の比較図
   - SVGをインライン化せず img で個別読み込み
   - SPでは図だけを720pxで横スクロール
   代理店修正13：実際に横スクロールする表へ案内を表示
---------------------------------------------------------------------- */
.factory-issue-page--cost .factory-issue-diagrams {
  margin: 28px 0 34px;
  width: 100%;
  min-width: 0;
}
.factory-issue-page--cost .factory-issue-diagram + .factory-issue-diagram {
  margin-top: 38px;
}
.factory-issue-page--cost .factory-issue-diagram > h3 {
  margin: 0 0 16px;
  color: #3e3e3e;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.6;
}
.factory-issue-page--cost .factory-issue-diagram__scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.factory-issue-page--cost .factory-issue-diagram__scroll img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
}
.factory-issue-page--cost .factory-issue-scroll-hint {
  display: none;
}
@media screen and (max-width: 767px) {
  /* SVG比較図の横720px表示は維持する。案内テキストは表示しない。 */
  .factory-issue-page--cost .factory-issue-diagram__scroll img {
    width: 720px;
    min-width: 720px;
    max-width: none;
    height: auto;
  }
}

/* 第28回：トップページの宮脇氏カードを設計士詳細へのリンクに変更 */
a.shirotori-structure-leader__inner {
  color: inherit;
  text-decoration: none;
}
a.shirotori-structure-leader__inner:hover {
  background: #f2efea;
}
a.shirotori-structure-leader__inner:focus-visible {
  outline: 2px solid #b34700;
  outline-offset: 3px;
}


/* ======================================================================
 * 2026-10-21 代理店修正8：トップのFV
 * - 写真の上の黒いグラデーションをPC/SPとも非表示
 * - 見出しと説明文の文字色のみ #3e3e3e へ変更
 * - オレンジ色のボタン・他ページ・背景画像は変更しない
 * ====================================================================== */
body.home #index_slider .overlay {
  display: none !important;
}
body.home #index_slider .caption .catch,
body.home #index_slider .caption .catch span,
body.home #index_slider .caption .desc,
body.home #index_slider .caption .desc span {
  color: #3e3e3e !important;
  text-shadow: none !important;
}
/* FVの最後の説明行は、文字を途中で割らず「｜」の直後で折り返す。 */
body.home #index_slider .caption .shirotori-fv-desc,
body.home #index_slider .caption .shirotori-fv-desc > span {
  white-space: normal !important;
}
body.home #index_slider .caption .shirotori-fv-desc .shirotori-fv-desc-part {
  display: inline-block;
  white-space: nowrap;
}

/* 第29回追補：FV説明文の指定改行（スマホのみ）。
 * 行の折り返しが不要な幅でも、必ず指定位置で改行する。
 * PCでは登録文字列と既存の行単位の改行を維持する。 */
@media screen and (max-width: 767px) {
  body.home #index_slider .caption .shirotori-fv-desc .shirotori-fv-desc-intro-part,
  body.home #index_slider .caption .shirotori-fv-desc .shirotori-fv-desc-part {
    display: block !important;
  }
  body.home #index_slider .caption .shirotori-fv-desc wbr,
  body.home #index_slider .caption .shirotori-fv-desc .shirotori-fv-desc-separator {
    display: none !important;
  }
}


/* ======================================================================
 * 2026-10-21 / 代理店修正2・3：問い合わせフォーム表示・案内文
 * 本文・フォームの設定値は変更せず、問い合わせページだけに適用する。
 * ====================================================================== */
body.is-contact-page .contact-intro {
  margin: 12px 0 24px;
  font-size: 16px;
  line-height: 1.9;
  color: #3e3e3e;
}
body.is-contact-page .contact-intro a {
  color: #b34700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.is-contact-page .contact-intro a:hover {
  color: #8f3900;
}

/* 送信ボタン：PC／スマホ共通。既存の文言・処理は維持 */
body.is-contact-page .wrap_contact .wpcf7 input.wpcf7-submit {
  background-color: #b34700 !important;
  border-color: #b34700 !important;
  color: #ffffff !important;
}
body.is-contact-page .wrap_contact .wpcf7 input.wpcf7-submit:hover,
body.is-contact-page .wrap_contact .wpcf7 input.wpcf7-submit:focus-visible {
  background-color: #8f3900 !important;
  border-color: #8f3900 !important;
  color: #ffffff !important;
}

@media screen and (max-width: 767px) {
  body.is-contact-page .contact-intro {
    margin: 10px 0 20px;
    font-size: 14px;
  }

  /* td のインライン width:50% をスマホのみ上書き */
  body.is-contact-page .wrap_contact .wpcf7 table.lp_style,
  body.is-contact-page .wrap_contact .wpcf7 table.lp_style tbody,
  body.is-contact-page .wrap_contact .wpcf7 table.lp_style tr,
  body.is-contact-page .wrap_contact .wpcf7 table.lp_style td {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.is-contact-page .wrap_contact .wpcf7 table.lp_style tr {
    margin: 0 0 18px;
  }
  body.is-contact-page .wrap_contact .wpcf7 table.lp_style tr > td:first-child {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 10px;
    padding: 12px 0 8px !important;
    text-align: left;
  }
  body.is-contact-page .wrap_contact .wpcf7 table.lp_style tr > td:last-child {
    padding: 0 !important;
  }
  body.is-contact-page .wrap_contact .wpcf7 table.lp_style td > p,
  body.is-contact-page .wrap_contact .wpcf7 table.lp_style td > .must > p,
  body.is-contact-page .wrap_contact .wpcf7 table.lp_style td > .nini > p {
    margin: 0 !important;
  }

  body.is-contact-page .wrap_contact .wpcf7 table.lp_style .wpcf7-form-control-wrap {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
  }
  body.is-contact-page .wrap_contact .wpcf7 table.lp_style input[type="text"],
  body.is-contact-page .wrap_contact .wpcf7 table.lp_style input[type="email"],
  body.is-contact-page .wrap_contact .wpcf7 table.lp_style input[type="tel"],
  body.is-contact-page .wrap_contact .wpcf7 table.lp_style select,
  body.is-contact-page .wrap_contact .wpcf7 table.lp_style textarea {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* チェックボックスは横並びのまま折り返し可能にする */
  body.is-contact-page .wrap_contact .wpcf7 table.lp_style .wpcf7-checkbox {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
  }
  body.is-contact-page .wrap_contact .wpcf7 table.lp_style .wpcf7-list-item {
    margin: 0 !important;
  }

  /* reCAPTCHA v3の固定バッジがスクロール中の入力欄を覆わないよう、
     スマホでは画面固定を解除してページ末尾で表示する。 */
  body.is-contact-page .grecaptcha-badge {
    position: static !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    top: auto !important;
    margin: 16px 12px 12px auto !important;
    visibility: visible !important;
  }
}

/* ----------------------------------------------------------------------
   第33回：会社概要／代表挨拶のレイアウト調整
   - PC：写真・氏名を左、代表挨拶本文を右
   - スマホ：写真・氏名の下に全文を表示
   - 文章・写真・HTML・その他のページは変更しない
   ---------------------------------------------------------------------- */
body.page-id-150 .company .company_wrap > .message {
  display: grid !important;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  column-gap: 38px;
  align-items: start;
  margin: 28px 0 65px !important;
  padding: 0;
}
body.page-id-150 .company .company_wrap > .message > div:first-child {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}
body.page-id-150 .company .company_wrap > .message > div:first-child > img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  margin: 0 !important;
}
body.page-id-150 .company .company_wrap > .message .compny_president_name {
  margin: 15px 0 0 !important;
  padding: 0 0 0 12px !important;
  border-left: 3px solid #b34700;
  color: #333;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
  text-align: left;
}
body.page-id-150 .company .company_wrap > .message > p {
  grid-column: 2;
  float: none !important;
  width: auto !important;
  min-width: 0;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 16px;
  line-height: 2;
  color: #3e3e3e;
}
@media screen and (max-width: 900px) {
  body.page-id-150 .company .company_wrap > .message {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 26px;
    margin-bottom: 52px !important;
  }
  body.page-id-150 .company .company_wrap > .message > div:first-child {
    width: min(100%, 280px) !important;
    margin: 0 auto !important;
  }
  body.page-id-150 .company .company_wrap > .message > p {
    grid-column: 1;
    font-size: 15px;
    line-height: 1.95;
  }
}
@media screen and (max-width: 650px) {
  body.page-id-150 .company .company_wrap > .message {
    row-gap: 24px;
    margin: 22px 0 42px !important;
  }
  body.page-id-150 .company .company_wrap > .message > div:first-child {
    width: min(100%, 250px) !important;
  }
  body.page-id-150 .company .company_wrap > .message > p {
    font-size: 14px;
  }
}

/* ----------------------------------------------------------------------
   第32回：会社概要／企業情報の表組み・設計実績企業一覧
   対象：固定ページ #150 の .company_info のみ
   左欄を確保しつつ右欄は社名を原則2列で表示する。
   ※企業名36社は現行の掲載順に応じて「奇数番目＝左列、偶数番目＝右列」
     になるため、右側をやや広く配分（長い社名に対応）。
   ---------------------------------------------------------------------- */
body.page-id-150 .company_info .company-line {
  display: grid !important;
  grid-template-columns: minmax(140px, 20%) minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  margin: -1px 0 0 !important;
  padding: 0 !important;
  border: 1px solid #dcdcdc;
  box-sizing: border-box;
  background-color: #fff;
}
body.page-id-150 .company_info .company-line .company-line-l,
body.page-id-150 .company_info .company-line .company-line-r {
  float: none !important;
  clear: none !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
  box-sizing: border-box;
  line-height: 1.8;
}
body.page-id-150 .company_info .company-line .company-line-l {
  display: flex;
  align-items: center;
  padding: 17px 9px !important;
  background: #f3f3f3;
  border-right: 1px solid #dcdcdc;
  font-weight: 600;
  color: #333;
}
body.page-id-150 .company_info .company-line .company-line-r {
  padding: 17px 10px !important;
  overflow-wrap: anywhere;
  color: #333;
}
/* 企業名欄のみ左側見出しを収まりよくし、その他の表見出しは変えない */
body.page-id-150 .company_info .company-line:has(.company-line__suppliers) .company-line-l {
  font-size: 13px;
  white-space: nowrap;
}
/* 長い社名は偶数番の右列に集中するため右列を広くし、折り返さない */
body.page-id-150 .company_info .company-line__suppliers {
  display: grid !important;
  grid-template-columns: minmax(0, 43%) minmax(0, 1fr);
  gap: 7px 12px;
  list-style: none;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 14px;
  container-type: inline-size;
}
body.page-id-150 .company_info .company-line__suppliers > li {
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0;
  line-height: 1.7;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}
/* 横幅が十分あるPCでは本文と同じ16pxを維持する */
@container (min-width: 576px) {
  body.page-id-150 .company_info .company-line__suppliers > li {
    font-size: 16px;
  }
}
/* 企業一覧の実幅が狭い時は2列を強制せず1列にして横はみ出しを防ぐ */
@container (max-width: 510px) {
  body.page-id-150 .company_info .company-line__suppliers > li {
    grid-column: 1 / -1;
  }
}
body.page-id-150 .company_info .company-line__note {
  margin: 18px 0 0 !important;
  padding: 9px 0 0 !important;
  border-top: 1px solid #dedede;
  color: #777;
  font-size: 12px !important;
  line-height: 1.6;
  text-align: right;
}
body.page-id-150 .company_info .company-line-r a[href^="tel:"] {
  color: #b34700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media screen and (max-width: 650px) {
  body.page-id-150 .company_info .company-line {
    grid-template-columns: minmax(0, 1fr);
  }
  body.page-id-150 .company_info .company-line .company-line-l {
    display: block;
    padding: 11px 14px !important;
    border-right: 0;
    border-bottom: 1px solid #dcdcdc;
  }
  body.page-id-150 .company_info .company-line .company-line-r {
    padding: 13px 14px !important;
  }
  body.page-id-150 .company_info .company-line__suppliers {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }
  body.page-id-150 .company_info .company-line__suppliers > li {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* ================================================================
  第34回：代理店指示11 / スマートフォンメニューの選択色
  親テーマの #ff4b54 をブランドカラー #b34700 に変更する。
  開閉処理や親メニューの表示方法は変更しない。
================================================================ */
@media screen and (max-width: 1050px) {
  #mobile_menu a:hover,
  #mobile_menu a:focus-visible,
  #mobile_menu a:active,
  #mobile_menu .child_menu_button:hover,
  #mobile_menu .child_menu_button:focus-visible,
  #drawer_menu .close_button:hover,
  #drawer_menu .close_button:focus-visible {
    background-color: #b34700 !important;
    color: #ffffff !important;
  }
}


/* ================================================================
   第35回：代理店指示11 / SPドロワーメニューの閉じるボタン
   メニュー構造と親テーマの開閉制御は維持。
================================================================ */
#drawer_menu .shirotori-drawer-close-bar {
  display: none;
}
@media screen and (max-width: 1050px) {
  #drawer_menu .shirotori-drawer-close-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: flex-end;
    box-sizing: border-box;
    width: 100%;
    padding: 12px 16px;
    border-bottom: 1px solid #444;
    background-color: #222;
  }
  #drawer_menu .shirotori-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 108px;
    min-height: 44px;
    padding: 8px 14px;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 3px;
    background: #333;
    color: #fff;
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    transition: background-color .2s ease;
  }
  #drawer_menu .shirotori-drawer-close:hover,
  #drawer_menu .shirotori-drawer-close:focus-visible {
    background-color: #b34700;
    color: #fff;
  }
}

/* ====================================================================
 * 第39回：固定ページ側で明示指定した横スクロール領域だけに案内を表示。
 * HTML：スクロール領域の既存 class に shirotori-swipe-target を追加。
 * 指の表示は CSS だけで完結。JS は横スクロール後の非表示のみ担当。
 * ==================================================================== */
/* 旧案内文は画面に出さない（比較SVGの既存pのみ）。 */
.factory-issue-page--cost .factory-issue-scroll-hint {
  display: none !important;
}
/* 既存の見た目・レイアウト・横スクロール機能は変更しない。 */
.shirotori-swipe-target {
  position: relative;
}
@media screen and (max-width: 767px) {
  /* 半透明の案内カード。擬似要素なので HTML への追加タグ不要。 */
  .shirotori-swipe-target:not(.shirotori-swipe-used):not(.shirotori-swipe-no-overflow)::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 10;
    display: block;
    width: 104px;
    height: 94px;
    box-sizing: border-box;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    pointer-events: none;
    transform: translate(-50%, -50%);
  }
  /* 白い左右矢印＋指のアイコン（画像は子テーマ内）。 */
  .shirotori-swipe-target:not(.shirotori-swipe-used):not(.shirotori-swipe-no-overflow)::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 11;
    display: block;
    width: 74px;
    height: 73px;
    background: transparent url("./img/common/swipe-hand-arrows.svg") center center / contain no-repeat;
    pointer-events: none;
    transform: translate(-50%, -62%);
    animation: shirotori-swipe-icon-slide 1.8s ease-in-out infinite;
  }
  @keyframes shirotori-swipe-icon-slide {
    0%, 100% { transform: translate(calc(-50% - 8px), -62%); }
    50% { transform: translate(calc(-50% + 8px), -62%); }
  }
}
@media screen and (prefers-reduced-motion: reduce) {
  .shirotori-swipe-target:not(.shirotori-swipe-used):not(.shirotori-swipe-no-overflow)::after {
    animation: none;
    transform: translate(-50%, -62%);
  }
}

/* 第40回：トップ・会社所在地の電話番号をタップで発信可能にする */
#support-access .support-access__column--company .shirotori-top-office-tel {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#support-access .support-access__column--company .shirotori-top-office-tel:hover,
#support-access .support-access__column--company .shirotori-top-office-tel:focus-visible {
  color: #b34700;
}

/* お問い合わせフォーム内 */
.wpcf7 .lp_style td>p {
  display: inline-block;
}
.wpcf7 .lp_style td div.must,
.wpcf7 .lp_style td div.nini {
  display: inline-block;
}
.wpcf7 .lp_style td div.must span,
.wpcf7 .lp_style td div.nini span {
  font-size: 0.8em;
}
.wpcf7 .lp_style td div.must span::before,
.wpcf7 .lp_style td div.nini span::before {
  content: "(";
}
.wpcf7 .lp_style td div.must span::after,
.wpcf7 .lp_style td div.nini span::after {
  content: ")";
}
.wpcf7 .lp_style td div.must span {
  color: #ff0000;
}
