@charset "UTF-8";
/*
Template: arkhe
Theme Name: Arkhe Child
Theme URI: https://arkhe-theme.com/ja/
Description: Arkhe用子テーマ
Version: 1.0.1
Text Domain: arkhe
License: GNU General Public License
License URI: http://www.gnu.org/licenses/gpl.html
*/

/* =========================================
   1) サイト全体フォント
========================================= */
body,
p,
li {
  font-family: 'Noto Sans JP', sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Noto Serif JP', serif !important;
  -webkit-font-smoothing: antialiased;
}

/* =========================================
   2) ヘッダー
========================================= */
.l-header {
  height: auto !important;
  min-height: 100px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.l-header__inner {
  height: auto !important;
  min-height: 100px !important;
  display: block !important;
}

.p-gNav,
.p-gNav__list {
  height: 100% !important;
}

@media (max-width: 767px) {
  .l-header,
  .l-header__inner {
    min-height: 70px !important;
  }
  .c-logo__img {
    height: 40px !important;
    width: auto !important;
  }
}

/* =========================================
   3) ヒーローエリア
========================================= */
.wp-block-group.hero-pad {
  padding-top: 3rem !important;
  padding-bottom: 2.5rem !important;
  margin: 0 !important;
}

@media (min-width: 768px) {
  .wp-block-group.hero-pad {
    padding-top: 7.5rem !important;
    padding-bottom: 7rem !important;
  }
}

.hero-lead {
  font-size: 1.375rem !important;
  line-height: 1.8 !important;
  text-align: center !important;
}

.hero-sub {
  font-size: 1rem !important;
  line-height: 1.9 !important;
  text-align: center !important;
}

@media (max-width: 767px) {
  .hero-lead {
    font-size: 1.125rem !important;
    line-height: 1.6 !important;
    text-align: left !important;
  }
  .hero-sub {
    font-size: 0.875rem !important;
    line-height: 1.7 !important;
    text-align: left !important;
  }
  p:not(.hero-lead):not(.hero-sub) {
    text-align: left !important;
  }
}

/* =========================================
   4) Product Colors
========================================= */
.product-colors {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
}

.product-colors__intro {
  text-align: left;
  margin-bottom: 44px;
}

.product-colors__title {
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}

.product-colors__lead {
  margin: 0 auto;
  max-width: 820px;
  text-align: left;
  line-height: 1.9;
  color: #555;
}

.product-colors__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .product-colors__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .product-colors__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.color-item {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.16),
    0 2px 4px rgba(0, 0, 0, 0.25);
  background: #f5f5f5;
}

.color-item img {
  width: 100%;
  aspect-ratio: 15 / 8;
  object-fit: cover;
  display: block;
}

.color-item figcaption {
  margin: 14px 0 10px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
}

/* =========================================
   5) Works Hub（アーカイブ上部）
========================================= */
.works-hub {
  padding-top: 24px;
}

/* 検索UI */
.works-search-wrap {
  max-width: 860px;
  margin: 0 auto 28px;
}

.works-search {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.works-search label {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.works-search input[type='text'] {
  width: min(520px, 92vw);
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
}

.works-search button {
  height: 44px;
  padding: 0 18px;
  border-radius: 6px;
}

.works-search__label {
  display: block;
  font-weight: 700;
  margin: 0 0 8px;
}

.works-search__row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.works-search__input {
  flex: 1 1 280px;
  min-width: 220px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 10px;
}

.works-search__btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(0, 0, 0, 0.04);
  cursor: pointer;
}

.works-search-note {
  margin: 10px 0 0;
  text-align: center;
  font-size: 13px;
  opacity: 0.75;
}

/* =========================================
   6) Works Hub - 使用目的ナビ
========================================= */
.works-purpose-nav > h2 {
  margin: 40px 0 0 !important;
}

.works-purpose-title {
  margin: 28px 0 12px;
}

.works-purpose-list {
  max-width: 1000px;
  margin: 24px auto 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.works-purpose-list li {
  margin: 0;
}

.works-purpose-list a {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  font-size: 14px;
  transition: all 0.25s ease;
}

.works-purpose-list a:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* =========================================
   7) Works Archive - 最新施工事例タイトル
========================================= */
.works-latest-title {
  margin: 56px 0 18px;
  text-align: center;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: clamp(18px, 2.2vw, 26px);
  position: relative;
  padding-top: 18px;
}

.works-latest-title::before {
  content: '';
  display: block;
  width: min(640px, 90%);
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 0 auto 22px;
}

/* =========================================
   8) Works Archive - グリッド・カード
========================================= */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 28px;
}

@media (max-width: 960px) {
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .works-grid {
    grid-template-columns: 1fr;
  }
}

/* アーカイブページ上書き */
body.post-type-archive-works .works-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 28px !important;
}

@media (max-width: 900px) {
  body.post-type-archive-works .works-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 520px) {
  body.post-type-archive-works .works-grid {
    grid-template-columns: 1fr !important;
  }
}

/* カード */
.works-card {
  display: flex;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
}

body.post-type-archive-works .works-grid article.works-card {
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #fff !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
  transition: 0.25s ease !important;
  text-align: left !important;
}

.works-card:hover {
  transform: translateY(-2px);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
}

body.post-type-archive-works .works-grid article.works-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1) !important;
}

/* カードリンク */
.works-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none !important;
  color: inherit !important;
}

body.post-type-archive-works .works-card__link {
  display: block !important;
  text-align: left !important;
  color: inherit;
  text-decoration: none;
}

/* サムネイル */
.works-card__thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.03);
}

body.post-type-archive-works .works-card__thumb {
  aspect-ratio: 3 / 2 !important;
  overflow: hidden !important;
  background: #f4f4f4 !important;
}

.works-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

/* カードbody */
.works-card__body {
  flex: 1;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

body.post-type-archive-works .works-card__body {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 24px !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  text-align: left !important;
  min-height: 170px !important;
}

body.post-type-archive-works .works-card__body > * {
  align-self: flex-start !important;
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* meta */
.works-card__meta {
  order: 1;
  margin: 0 !important;
  font-size: 12px;
  letter-spacing: 0.05em;
  line-height: 1.4;
  min-height: 1.4em;
  opacity: 0.7;
  white-space: normal;
}

body.post-type-archive-works .works-card__meta:empty {
  display: none;
}

body.post-type-archive-works .works-card__meta,
body.post-type-archive-works .works-card__title {
  width: 100% !important;
  text-align: left !important;
}

/* タイトル */
.works-card__title {
  order: 2;
  margin: 0 !important;
  font-size: 16px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

body.post-type-archive-works .works-card__title {
  margin: 0.6em 0 0.4em !important;
  line-height: 1.4 !important;
  min-height: 2.8em !important;
}

/* 型番 */
.works-card__code {
  order: 3;
  margin: 0 !important;
  margin-top: auto;
  display: inline-block;
  font-size: 11px;
  padding: 4px 8px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.03);
  opacity: 0.8;
}

body.post-type-archive-works .works-card__code {
  width: max-content !important;
  align-self: flex-start !important;
  background: #f2f2f2 !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  color: #222 !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.03em;
}

/* =========================================
   9) Works Archive - ページネーション
========================================= */
.works-pagination {
  margin: 32px 0 0;
}

.works-pagination .page-numbers {
  list-style: none;
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 0;
  margin: 0;
  background: transparent !important;
}

.works-pagination .page-numbers li {
  margin: 0;
  background: transparent !important;
}

/* 通常・hover・focus すべての文字色を固定 */
.works-pagination .page-numbers,
.works-pagination .page-numbers a,
.works-pagination a.page-numbers,
.works-pagination span.page-numbers,
.works-pagination .page-numbers.current,
.works-pagination .page-numbers.dots {
  color: #222 !important;
  opacity: 1 !important;
}

.works-pagination .page-numbers a,
.works-pagination span.page-numbers {
  display: inline-block;
  padding: 6px 10px;
  font-size: 13px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  text-decoration: none !important;
}

.works-pagination .page-numbers .current {
  background: rgba(0, 0, 0, 0.04);
}

.works-pagination .page-numbers a:hover,
.works-pagination a.page-numbers:hover,
.works-pagination .page-numbers a:focus,
.works-pagination a.page-numbers:focus {
  color: #222 !important;
  opacity: 1 !important;
  background: rgba(0, 0, 0, 0.05) !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

/* =========================================
   10) Works Single
========================================= */
.works-single__inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px;
}

.works-head {
  margin: 0 0 16px;
}

.works-date {
  opacity: 0.7;
  font-size: 0.9rem;
  margin: 0 0 6px;
}

.works-title {
  font-size: 1.6rem;
  line-height: 1.4;
  margin: 0;
}

.works-thumb {
  margin: 18px 0 22px;
}

.works-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

.works-body {
  line-height: 1.9;
}

/* メタテーブル */
.works-meta {
  margin: 18px 0 22px;
}

.works-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  overflow: hidden;
}

.works-table th,
.works-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  vertical-align: top;
}

.works-table th {
  width: 26%;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.03);
}

.works-table tr:last-child th,
.works-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 520px) {
  .works-table th {
    width: 34%;
  }
}

/* 型番 */
.works-part-number {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #555;
  letter-spacing: 0.02em;
}

.works-part-number .works-part-code {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono',
    monospace;
  letter-spacing: 0.06em;
}

/* CTA */
.works-cta {
  margin-top: 32px;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 16px;
}

.works-cta__title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  line-height: 1.3;
}

.works-cta__note {
  margin: 0 0 16px;
  line-height: 1.5;
}

/* =========================================
   11) Works Single - ギャラリー
========================================= */
.works-gallery {
  margin: 40px 0 80px;
}

/* PC：ギャラリー全体を800px・センター揃え */
@media (min-width: 641px) {
  .works-gallery {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 36px;
  }
}

.works-gallery__mainFrame {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f3f3f3;
  border-radius: 8px;
}

.works-gallery__mainImg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.works-gallery__thumbs {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

@media (max-width: 900px) {
  .works-gallery__thumbs {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 520px) {
  .works-gallery__thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
}

.works-gallery__thumb {
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
}

.works-gallery__thumbFrame {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f3f3f3;
  overflow: hidden;
}

.works-gallery__thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.works-gallery__thumb.is-active {
  border-color: #222;
  border-width: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  opacity: 1;
}

.works-gallery__thumb:not(.is-active) {
  opacity: 0.55;
}

/* =========================================
   Works Single - タイトルエリア
========================================= */
.works-single-header {
  margin-bottom: 0;
  padding: 28px 0 0;
  text-align: center;
}

.works-single-title {
  font-weight: normal !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.works-single-title__area {
  font-size: 20px !important;
  letter-spacing: 0.18em;
  color: #aaa;
  display: block;
}

.works-single-title__product {
  font-size: clamp(17px, 2.2vw, 24px) !important;
  letter-spacing: 0.14em;
  color: #222;
  line-height: 1.5;
  display: block;
}

@media (max-width: 640px) {
  .works-single-header {
    text-align: left;
    padding: 16px 0 0;
  }
  .works-single-title {
    align-items: flex-start;
  }
  .works-single-title__product {
    font-size: 16px !important;
  }
}

/* ラベルフォントサイズを小さく・ブロック表示 */
.works-contact .wpcf7-form label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

@media (max-width: 640px) {
  .works-contact .wpcf7-form label {
    margin-bottom: 4px;
  }
}

/* 入力欄の下＝次のラベルとの間に余白 */
.works-contact .wpcf7-form input[type='text'],
.works-contact .wpcf7-form input[type='email'],
.works-contact .wpcf7-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  box-sizing: border-box;
} /* ブロックギャラリー用 */
.wp-block-gallery.works-gallery,
.wp-block-gallery.works-gallery .blocks-gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
}

figure.wp-block-gallery.works-gallery > * {
  margin: 0 !important;
  width: auto !important;
}

figure.wp-block-gallery.works-gallery img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

@media (max-width: 1024px) {
  figure.wp-block-gallery.works-gallery {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  figure.wp-block-gallery.works-gallery {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  figure.wp-block-gallery.works-gallery {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================
   12) Works Detail - 情報ブロック
========================================= */
.works-info {
  max-width: 1100px;
  margin: 80px auto 0;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.06);
}

/* ヘッダー行：カテゴリータグ＋製品ナンバー */
.works-info__catrow {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 10px;
  margin-bottom: 4px;
}

.works-info__catlabel {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #777;
  white-space: nowrap;
}

.works-info__headrow {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.works-info__cattag {
  font-size: 12px;
  padding: 4px 16px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 20px;
  color: #444;
  background: #f5f5f5;
  letter-spacing: 0.06em;
}

.works-info__cattag--empty {
  color: #bbb;
  border-color: rgba(0, 0, 0, 0.07);
  background: #fafafa;
}

.works-info__pn {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #777;
}

.works-info__pn-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  color: #555;
  margin-left: 6px;
}

/* 色の行 */
.works-info__colorrow {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 4px;
}

.works-info__colorrow-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.works-info__label {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #aaa;
  white-space: nowrap;
  min-width: 3em;
}

.works-info__colorval {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.works-info__colorChip {
  width: 80px;
  height: 32px;
  object-fit: cover;
  border-radius: 4px;
  display: inline-block;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.works-info__colorName {
  font-size: 0.9rem;
  color: #333;
}

.works-info__colorLink {
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
  margin-left: 0;
  padding-left: 3em;
}

/* 製品紹介ブロック */
.works-info__descblock {
  margin: 16px 0;
  padding: 18px 22px;
  background: rgba(0, 0, 0, 0.025);
  border-left: 3px solid #222;
  border-radius: 0 8px 8px 0;
}

.works-info__desclabel {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: #aaa;
  margin-bottom: 10px;
}

.works-info__desctext {
  font-size: 0.9rem;
  line-height: 2;
  color: #444;
}

.works-info__hr {
  border: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.07);
  margin: 16px 0;
}

/* メタ情報グリッド */
.works-info__metagrid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.works-info__metacell {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px;
}

.works-info__metacell:nth-child(even) {
  border-right: none;
}

.works-info__metacell:nth-last-child(-n + 2) {
  border-bottom: none;
}

.works-info__metacell--full {
  grid-column: 1 / -1;
  border-right: none;
}

.works-info__metacell-dt {
  font-size: 12px !important;
  letter-spacing: 0.12em;
  color: #777 !important;
  white-space: nowrap;
  min-width: 4em;
  flex-shrink: 0;
  margin: 0 !important;
  padding: 0 !important;
}

.works-info__metacell-dd {
  display: flex !important;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 !important;
  padding: 0 !important;
}

/* タグ共通 */
.works-tag {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 20px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: #333;
  background: #fafafa;
}

.works-tag--empty {
  color: #ccc;
  border-color: rgba(0, 0, 0, 0.08);
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .works-info {
    margin-top: 18px;
    padding: 20px 18px;
  }
  .works-info__metagrid {
    grid-template-columns: 1fr;
  }
  .works-info__metacell {
    border-right: none;
  }
  .works-info__metacell:nth-last-child(-n + 2) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
  .works-info__metacell:last-child {
    border-bottom: none;
  }
  .works-info__metacell--full {
    grid-column: auto;
  }
}

/* =========================================
   Works Gallery - 矢印ナビ
========================================= */
.works-gallery__main {
  position: relative;
  display: block;
}

.works-gallery__mainFrame {
  position: relative;
  display: block;
  width: 100%;
}

.works-gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.88);
  color: #222;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  line-height: 1;
}

.works-gallery__arrow--prev {
  left: 12px;
}
.works-gallery__arrow--next {
  right: 12px;
}

.works-gallery__arrow:hover {
  background: rgba(255, 255, 255, 1);
}

@media (max-width: 520px) {
  .works-gallery__arrow {
    width: 36px;
    height: 36px;
  }
  .works-gallery__arrow--prev {
    left: 6px;
  }
  .works-gallery__arrow--next {
    right: 6px;
  }
}

.works-gallery__mainImg {
  opacity: 1;
  transition: opacity 0.35s ease;
}

/* =========================================
   Works サムネイル アクティブ表示
========================================= */
.works-gallery__thumb.is-active {
  border-color: #222;
  border-width: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  opacity: 1;
}

.works-gallery__thumb:not(.is-active) {
  opacity: 0.55;
}

/* ===================================================
 * 📩 Contact Form 7 カスタマイズ（シブい鉄工所仕様）
 * =================================================== */
.p-contact-form {
    max-width: 800px;
    margin: 0 auto;
    font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
}

.p-contact-form__item {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

/* ラベル部分（左側） */
.p-contact-form__label {
    width: 250px;
    font-size: 0.95em;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    padding-top: 10px;
}

/* 必須マーク */
.p-contact-form__req {
    background-color: #d63638; /* 御田のアクセントカラー（赤）を想定 */
    color: #fff;
    font-size: 0.7em;
    padding: 3px 8px;
    margin-left: 15px;
    letter-spacing: 0.1em;
}

/* 入力エリア（右側） */
.p-contact-form__input {
    flex: 1;
    min-width: 300px;
}

/* フォーム部品の共通リセット＆デザイン */
.p-contact-form input[type="text"],
.p-contact-form input[type="email"],
.p-contact-form textarea {
    width: 100%;
    padding: 15px;
    background-color: #fafafa;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-size: 1em;
    color: #333;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* プレースホルダー（入力例）の文字色 */
.p-contact-form input::placeholder,
.p-contact-form textarea::placeholder {
    color: #bbb;
    font-size: 0.9em;
}

/* 入力中（フォーカス時）のシブいアクション */
.p-contact-form input:focus,
.p-contact-form textarea:focus {
    outline: none;
    border-color: #666;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

/* 送信ボタンのコンテナ */
.p-contact-form__submit {
    text-align: center;
    margin-top: 50px;
}

/* 送信ボタン本体 */
.p-contact-form input[type="submit"] {
    background-color: #222;
    color: #fff;
    border: none;
    padding: 18px 60px;
    font-size: 1.1em;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.p-contact-form input[type="submit"]:hover {
    background-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* スマホ表示（縦積み） */
@media (max-width: 768px) {
    .p-contact-form__item {
        flex-direction: column;
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 25px;
    }
    .p-contact-form__label {
        width: 100%;
        margin-bottom: 10px;
        padding-top: 0;
    }
    .p-contact-form__input {
        min-width: 100%;
    }
    .p-contact-form input[type="submit"] {
        width: 100%;
        padding: 15px;
    }
}

/* ===================================================
 * 📱 全ページ共通：スマホ上部の3連グレーボタンを強制非表示
 * =================================================== */
.custom-mobile-subnav { display: none !important; }

/* ハンバーガー：サイズを大きく */
.l-header__drawerBtn .c-iconBtn__icon {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    width: auto !important;
    height: auto !important;
    font-size: 2.5rem !important;
    overflow: visible !important;
}

.l-header__drawerBtn .c-iconBtn__icon svg.arkhe-svg-menu {
    width: 1em !important;
    height: 1em !important;
}

.l-header__drawerBtn .c-iconBtn__icon svg.arkhe-svg-close {
    display: none !important;
}

/* path順：中・上・下 */
.l-header__drawerBtn .c-iconBtn__icon svg.arkhe-svg-menu path:nth-child(1) {
    transform: scaleX(0.75); /* 中：やや短く */
    transform-origin: left;
}

.l-header__drawerBtn .c-iconBtn__icon svg.arkhe-svg-menu path:nth-child(2) {
    transform: scaleX(1); /* 上：一番長く */
    transform-origin: left;
}

.l-header__drawerBtn .c-iconBtn__icon svg.arkhe-svg-menu path:nth-child(3) {
    transform: scaleX(0.45); /* 下：一番短く */
    transform-origin: left;
}

/* 通常ディスプレイ（Windows等） */
@media (min-width: 768px) {
  .c-headLogo__img {
    height: 48px !important;
    width: auto !important;
  }
}

/* Retinaディスプレイ（Mac等） */
@media (min-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
  .c-headLogo__img {
    height: 40px !important;
    width: auto !important;
  }
}

/* スマホ */
@media (max-width: 767px) {
  .c-headLogo__img {
    height: 36px !important;
    width: auto !important;
  }
}

/* ===== TOPページ スマホヘッダー最適化 ===== */
@media (max-width: 1024px) {
  body.home .l-header .l-header__body {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
  }
  body.home .l-header .l-header__center {
    order: 1 !important;
    flex: 1 !important;
  }
  body.home .l-header .l-header__right {
    order: 2 !important;
    flex: 0 0 auto !important;
  }
  body.home .l-header .l-header__drawerBtn {
    order: 3 !important;
    flex: 0 0 auto !important;
  }
}

/* ページヘッダー 高さ・画像調整 */
#top_title_area {
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  height: 250px !important;
}

#top_title_area .p-topArea__img {
  object-fit: cover !important;
  object-position: center center !important;
  height: 100% !important;
  width: 100% !important;
}

/* CF7 送信完了メッセージ */
.wpcf7-response-output {
  border: none !important;
  background: #111;
  color: #fff;
  padding: 20px 30px !important;
  margin: 30px 0 !important;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-align: center;
  border-radius: 4px;
}

.page-id-3 #top_title_area .c-pageTitle__main {
  font-size: 0 !important;
  position: relative;
}
.page-id-3 #top_title_area .p-topArea__body::before {
  content: "PRIVACY POLICY" !important;
  font-size: 2rem !important;
  letter-spacing: 0.3em !important;
  color: #fff !important;
  display: block !important;
  margin-bottom: 8px !important;
}
.page-id-3 #top_title_area .p-topArea__body::after {
  content: "\30D7\30E9\30A4\30D0\30B7\30FC\30DD\30EA\30B7\30FC" !important;
  color: #fff !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.2em !important;
  display: block !important;
}

.page-id-15974 #top_title_area .c-pageTitle__main {
  font-size: 0 !important;
  position: relative;
}
.page-id-15974 #top_title_area .p-topArea__body::before {
  content: "COLORS" !important;
  font-size: 2rem !important;
  letter-spacing: 0.3em !important;
  color: #fff !important;
  display: block !important;
  margin-bottom: 8px !important;
}
.page-id-15974 #top_title_area .p-topArea__body::after {
  content: "\88FD\54C1\306E\30AB\30E9\30FC\4E00\8A6A" !important;
  color: #fff !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.2em !important;
  display: block !important;
}

/* ===== 検索モーダル カスタム ===== */
.p-searchModal__inner {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  max-width: 680px !important;
}

.c-searchForm {
  background: rgba(255,255,255,0.18) !important;
  border: 1px solid rgba(255,255,255,0.4) !important;
  border-radius: 2px !important;
  padding: 14px 20px !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  backdrop-filter: blur(4px) !important;
}

.c-searchForm__s {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: #fff !important;
  font-family: "Helvetica Neue", Arial, sans-serif !important;
  font-size: 1.05em !important;
  letter-spacing: 0.25em !important;
  width: 100% !important;
}

.c-searchForm__s::placeholder {
  color: rgba(255,255,255,0.45) !important;
  letter-spacing: 0.25em !important;
}

.c-searchForm__submit svg path {
  fill: rgba(255,255,255,0.7) !important;
}

.p-searchModal__close {
  color: rgba(255,255,255,0.7) !important;
  font-family: "Helvetica Neue", Arial, sans-serif !important;
  letter-spacing: 0.2em !important;
  font-size: 0.8em !important;
}

.p-searchModal__close svg path {
  fill: rgba(255,255,255,0.7) !important;
}

/* designer-collaborationページ：ページヘッダー背景を黒に */
.page-template-page-designer-collaboration #top_title_area.-noimg {
  background-color: #111 !important;
}

@media (max-width: 1024px) {
  .l-header__searchBtn {
    margin-right: 12px !important;
  }
}