/*
Theme Name: original Child
Template: original
Author: Child Theme Configurator
Version: 1.0.1778203127
Updated: 2026-05-08 10:18:47

*/

/* ==============================================
   寺田建設 カスタムCSS（子テーマ追加分）
   ============================================== */
/* fadeinアニメーション対応 (is-visible クラスでも動作) */
.fadein.is-visible {
  opacity: 1 !important;
  transform: none !important;
}

/* band（フォトバンド）画像表示 */
.band {
  display: flex;
  height: 300px;
}
.band__item {
  flex: 1;
  background-size: cover;
  background-position: center;
}

/* ========== COMPANY ========== */
/* section--bone 背景 */
.section--bone {
  background: #eef1f5;
}

/* cmp__inner : 地図 + テーブル 横並び */
.cmp__inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: start;
}

/* cmp__table テーブル */
.cmp__table {
  width: 100%;
  border-collapse: collapse;
}
.cmp__table tr {
  border-bottom: 1px solid #d0d8e4;
}
.cmp__table tr:first-child {
  border-top: 1px solid #d0d8e4;
}
.cmp__table th {
  padding: 16px 0;
  width: 160px;
  vertical-align: top;
  text-align: left;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: .1em;
  color: #0a1f3a;
  font-weight: 600;
}
.cmp__table th .jp {
  display: block;
  font-family: inherit;
  font-size: 11px;
  color: #6b7c93;
  font-weight: 400;
  margin-top: 2px;
  letter-spacing: .08em;
}
.cmp__table td {
  padding: 16px 0;
  font-size: 14px;
  color: #2d3748;
  line-height: 1.7;
  vertical-align: top;
}
.cmp__table td a {
  color: #1e4d8c;
  text-decoration: none;
}
.cmp__table td a:hover {
  text-decoration: underline;
}
.cmp__table td b {
  color: #0a1f3a;
}

/* ========== RECRUIT ========== */
.section.rec {
  position: relative;
  background: #fff;
  overflow: hidden;
}
.rec__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(10,31,58,.04) 0%, transparent 60%);
  pointer-events: none;
}
.rec__inner-v {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.rec__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}
.rec__head > div:first-child {
  flex: 0 0 auto;
}
.rec__lead {
  flex: 1;
  font-size: 16px;
  line-height: 2;
  color: rgba(255, 255, 255, .6);
  max-width: 560px;
}
.rec__body {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}
.rec__table {
  display: flex;
  flex-direction: column;
}
.rec__row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 0;
}
.rec__row:first-child {
  border-top: 1px solid #e2e8f0;
}
.rec__th {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rec__th-en {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: .1em;
  color: #0a1f3a;
  font-weight: 600;
}
.rec__th-jp {
  font-size: 11px;
  color: #6b7c93;
  letter-spacing: .08em;
}
.rec__td {
  font-size: 14px;
  color: #2d3748;
  line-height: 1.8;
  padding-top: 2px;
}
.rec__td .txt-link {
  color: #1e4d8c;
  text-decoration: underline;
}
.rec__photo-col {
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 2px;
}
.rec__photo-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rec__note {
  font-size: 16px;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
}
.rec__note .txt-link {
  color: rgba(255,255,255,.6);
  text-decoration: underline;
	font-size: 16px;
}

/* ========== 既存クラス調整 ========== */

/* works 画像 */
.works__feature-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* msg 画像 */
.msg__photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* eyebrow / headline ユーティリティ */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--c-accent, #1e4d8c);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.eyebrow--white {
    color: rgba(255, 255, 255, .6);
}

.headline {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 32px;
}
.headline .en {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 5vw, 120px);
  letter-spacing: .06em;
  line-height: 1;
}
.headline .jp {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: .14em;
}

.hero__eyebrow {
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  font-family: var(--f-en);
  font-size: 14px;
  letter-spacing: 0.2em;
}
@media (max-width: 769px) {
.hero__eyebrow {
	font-size: 12px;
}
}
.bar {
  display: inline-block;
  width: 60px;
  height: 2px;
  background-color: var(--c-accent);
}

.hero__eyebrow span {
	color: #FFFFFF;
    font-weight: 500;
}

/* btn-primary */
.btn-primary {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 32px;
  background: var(--c-accent, #1e4d8c);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .08em;
  transition: opacity .3s;
}
.btn-primary:hover { opacity: .8; }

/* ========== レスポンシブ ========== */
@media (max-width: 900px) {
  .cmp__inner {
    grid-template-columns: 1fr;
  }
  .rec__body {
    grid-template-columns: 1fr;
  }
  .rec__photo-col {
    aspect-ratio: 16/9;
    order: -1;
  }
  .rec__head {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  .band { height: 200px;
	 flex-direction: column;}
  .rec__row {
    grid-template-columns: 120px 1fr;
  }
}


/* ============================================
   サブページ共通スタイル（archive/single/page）
   ============================================ */

/* ページヒーロー */
.pg-hero {
  padding: 50px 0 30px;
  background: var(--c-navy, #0a1f3a);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.pg-hero__num {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--c-accent, #1e4d8c);
  margin-bottom: 8px;
}
.pg-hero__en {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 3vw, 80px);
  letter-spacing: .06em;
  line-height: 1.5;
  margin-bottom: 8px;
  color: #FFFFFF;
  text-align: center;
}
.pg-hero__jp {
  font-size: 14px;
  letter-spacing: .14em;
  opacity: .7;
}
.pg-hero__cat {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--c-accent, #1e4d8c);
  margin-bottom: 12px;
}
.pg-hero__cat a { color: inherit; text-decoration: none; }
.pg-hero__ttl {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
	color: #ffffff;
}
.pg-hero__date {
  font-size: 13px;
  opacity: .6;
	color: rgba(255, 255, 255, .9);
}

/* ============================================
   お知らせ一覧（archive.php - news）
   ============================================ */
.pg-list {
  padding: 80px 0;
  background: #fff;
}
.news-list {
  display: flex;
  flex-direction: column;
}
.news-list__item {
  border-bottom: 1px solid #e2e8f0;
}
.news-list__item:first-child {
  border-top: 1px solid #e2e8f0;
}
.news-list__item a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0;
  color: #2d3748;
  text-decoration: none;
  transition: color .2s;
}
.news-list__item a:hover { color: var(--c-accent, #1e4d8c); }
.news-list__date {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: .08em;
  color: #6b7c93;
  flex-shrink: 0;
  min-width: 90px;
}
.news-list__cat {
  font-size: 11px;
  letter-spacing: .12em;
  background: var(--c-accent, #1e4d8c);
  color: #fff;
  padding: 2px 8px;
  flex-shrink: 0;
}
.news-list__cat a { color: inherit; text-decoration: none; }
.news-list__ttl {
  font-size: 15px;
  line-height: 1.5;
}

/* ============================================
   施工事例グリッド（archive.php - works）
   ============================================ */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.works-card a {
  display: block;
  text-decoration: none;
  color: #2d3748;
}
.works-card__photo {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #d4dce8;
  margin-bottom: 16px;
}
.works-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.works-card a:hover .works-card__photo img { transform: scale(1.04); }
.works-card__cat {
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--c-accent, #1e4d8c);
  margin-bottom: 6px;
}
.works-card__cat a { color: inherit; text-decoration: none; }
.works-card__ttl {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
}
.works-card__meta {
  font-size: 12px;
  color: #6b7c93;
  margin-bottom: 12px;
}
.works-card__link {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--c-accent, #1e4d8c);
  display: flex;
  align-items: center;
  gap: 8px;
}
.arr {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: currentColor;
  position: relative;
}
.arr::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 6px;
  height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

/* ページネーション */
.pg-pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 60px;
}
.pg-pager .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #d0d8e4;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  color: #0a1f3a;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.pg-pager .page-numbers.current,
.pg-pager .page-numbers:hover {
  background: var(--c-accent, #1e4d8c);
  border-color: var(--c-accent, #1e4d8c);
  color: #fff;
}
.pg-empty {
  text-align: center;
  padding: 60px 0;
  color: #6b7c93;
  font-size: 15px;
}

/* ============================================
   記事詳細（single.php）
   ============================================ */
.pg-single {
  padding: 80px 0;
  background: #fff;
}
.pg-single__thumb {
  margin-bottom: 48px;
}
.pg-single__thumb img {
  width: 100%;
  height: auto;
  display: block;
}
.pg-single__body {
  max-width: 800px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.9;
  color: #2d3748;
}
.pg-single__body h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
  color: #0a1f3a;
}
.pg-single__body h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 32px 0 12px;
  color: #0a1f3a;
}
.pg-single__body p { margin-bottom: 20px; }
.pg-single__body img { max-width: 100%; height: auto; }
.pg-single__back {
  max-width: 800px;
  margin: 60px auto 0;
  padding-top: 40px;
  border-top: 1px solid #e2e8f0;
}
.pg-single__back-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--c-accent, #1e4d8c);
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: .12em;
  transition: opacity .2s;
}
.pg-single__back-link:hover { opacity: .7; }
.arr--left {
  transform: scaleX(-1);
}

/* ============================================
   固定ページ（page.php）
   ============================================ */
.pg-content {
  padding: 80px 0;
  background: #fff;
}
.pg-content__body {
  max-width: 800px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.9;
  color: #2d3748;
}
.pg-content__body h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
  color: #0a1f3a;
}
.pg-content__body h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 32px 0 12px;
  color: #0a1f3a;
}
.pg-content__body p { margin-bottom: 20px; }
.pg-content__body ul, .pg-content__body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
.pg-content__body li { margin-bottom: 8px; }
.pg-content__body a {
  color: var(--c-accent, #1e4d8c);
  text-decoration: underline;
}

/* お問い合わせフォーム（CF7） */
.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d0d8e4;
  font-size: 15px;
  font-family: inherit;
  background: #f8fafc;
  transition: border-color .2s;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--c-accent, #1e4d8c);
  background: #fff;
}
.wpcf7 textarea { min-height: 160px; resize: vertical; }
.wpcf7 input[type="submit"] {
  align-self: flex-start;
  padding: 14px 40px;
  background: var(--c-accent, #1e4d8c);
  color: #fff;
  border: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .08em;
  cursor: pointer;
  transition: opacity .3s;
}
.wpcf7 input[type="submit"]:hover {
	opacity: .8; 
}

.wpcf7 select{
	width: auto;
	padding: 12px 16px;
	border: 1px solid #d0d8e4;
	background: #f8fafc;
	font-size: 15px;
}

.wpcf7 .required{
	background-color: #1e4d8c;
	color: #FFFFFF;
	font-size: 12px;
	margin-left: 10px;
	padding: 4px 8px;
	vertical-align: middle;
	word-break: keep-all;
}

.form_item textarea{
	margin-bottom: 12px;
}

.wpcf7 .preview_none p:not(.note){
	font-size: 18px;
}

.wpcf7 p{
	font-size: 16px;
}

.text_link{
	font-size: 16px !important;
}

.text_center{
	text-align: center;
}

.form_btn_wrap{
	text-align: center;
}

.wpcf7-spinner{
	display: none;
}

@media (max-width: 768px) {
	.wpcf7 .preview_none p:not(.note){
		font-size: 16px;
	}

	.wpcf7 p{
		font-size: 14px;
	}
	.text_link{
		font-size: 14px !important;
	}
}

/* お問い合わせフォーム送信完了 */
.contact_text{
	font-size: 16px;
	text-align: center;
}

.contact_complete{
	font-size: 20px;
	font-weight: 500;
	color: #1e4d8c;
	text-align: center;
}

.top_btn01{
	position: relative;
	display: inline-flex;
	text-align: center;
	text-decoration: none;
	background: #1e4d8c;
	align-items: center;
	padding: 14px 40px;
	margin-top: 40px;
}

.top_btn01 > span{
  font-size: 16px;
  color: #FFF;
  font-weight: 600;
}

.top_btn01:hover{
	opacity: 0.8;
	text-decoration: none !important;
}

.top_btn01_wrap{
	width: 100%;
	text-align: center; 
}

@media (max-width: 768px) {
	.contact_text{
		font-size: 14px;
		text-align: left;
	}
	
	.contact_complete{
		font-size: 18px;
	}
}

/* プライバシーポリシー */
.mb50 > p{
	font-size: 16px;
	margin-bottom: 12px;
}

.col_title{
	font-size: 20px !important;
	color: #1e4d8c !important;
	margin-bottom: 0;
}

.pg-content__body li{
	font-size: 16px;
}

@media (max-width: 768px) {
	.mb50 > p{
		font-size: 14px;
	}
	
	.col_title{
	font-size: 18px !important;
	margin-top: 0 !important;
}
	
	.pg-content__body li{
		font-size: 14px;
	}
}

/* ============================================
   レスポンシブ（サブページ）
   ============================================ */
@media (max-width: 900px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 767px) {
  .works-grid { grid-template-columns: 1fr; }
  .news-list__item a { flex-wrap: wrap; gap: 8px; }
  .pg-hero { padding: 40px 0 20px; }
  .pg-single, .pg-list, .pg-content { padding: 60px 0; }
}


/* ヒーローキャッチコピー: 文字色を白に */
.hero__catch .accent {
  color: #1e4d8c !important;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

/* WORKS/MSG/REC フォトラベル位置修正 */
.works__feature-photo.ph--img,
.msg__photo.ph--img,
.rec__photo-col.ph--img {
  position: relative;
}
.works__feature-photo.ph--img .ph__lbl,
.msg__photo.ph--img .ph__lbl,
.rec__photo-col.ph--img .ph__lbl {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: auto;
  height: auto;
}
.works__feature-photo.ph--img img,
.msg__photo.ph--img img,
.rec__photo-col.ph--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* ========== RECRUIT セクション 背景上書き ==========
 * 親テーマ style.css の .section.rec { background: white } を上書き
 * ================================================= */
.section.rec {
  background: var(--c-navy-deep) !important;
  color: #fff !important;
}

.main {
	margin-top: 0;
}
@media screen and (min-width: 768px) and (max-width: 1082px) {
    html body main {
        padding-top: 70px !important;
    }
}
.posts_item_list .posts_item {
	margin-right: 0;
}

.posts_item a {
	text-decoration: none;
}

.pg-content__body h2.posts_title {
	line-height: 2;
    margin: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.pg-content__body .post_text p {
	margin-bottom: 0;
}

@media screen and (max-width: 767px) {
    article {
        padding: 0;
    }
}

.content_block {
    padding: 60px 0;
}

.archive article {
	background-color: #fff;
}

.grecaptcha-badge {
	visibility: hidden;
}