/*
Theme Name: PUBLICA original
Theme URL: テーマ of the site URI
Description: PUBLICAオリジナルのテーマです。
Author: T.Aratani
Version: 1.1.0
*/

/* =========================================
   全般/共通スタイル
   ========================================= */

.br-380 {
  display: none !important;
}

.br-430 {
  display: none !important;
}

.br-650 {
  display: none !important;
}

.br-560 {
  display: none !important;
}

.br-960 {
  display: none !important;
}

/* =========================================
   #troubleshooting styles
   ========================================= */

#troubleshooting {
  background: #e2edfd !important;
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}

#troubleshooting .p-section-inner {
  position: relative !important;
  padding: 50px 40px !important;
  background-color: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#troubleshooting .p-section-lead {
  text-align: left !important;
  font-size: 18px !important;
  line-height: 1.8 !important;
  max-width: 980px !important;
  margin: 20px auto 50px auto !important;
  color: #444 !important;
}

#troubleshooting .p-section-h2 {
  margin-bottom: 20px !important;
}

.p-section-h2__main {
  text-align: center !important;
}

.p-trouble-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  margin-top: 50px !important;
}

.p-trouble-item {
  width: 260px !important;
  height: 380px !important;
  border-radius: 10px !important;
  display: flex !important;
  flex-direction: column !important;
  background-color: #fff !important;
  overflow: hidden !important;
  justify-self: center !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}

.p-trouble-speech-wrap {
  background-color: transparent !important;
  padding: 20px 0px 30px 0px !important;
  position: relative !important;
}

.p-trouble-speech {
  font-size: 22px !important;
  font-weight: bold !important;
  color: #333 !important;
  text-align: center !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

.p-trouble-visual {
  text-align: center !important;
}

.p-trouble-img {
  width: 115px !important;
  height: 115px !important;
  max-width: none !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
}

.p-trouble-solution {
  background-color: #ffffff !important;
  color: #1360ca !important;
  padding: 20px 0px !important;
  text-align: left !important;
  margin-top: auto !important;
}

.p-trouble-solution-text {
  font-size: 16px !important;
  font-weight: bold !important;
  margin: 0 !important;
  line-height: 1.7 !important;
}

.p-trouble-catch {
  margin: 50px auto 0px auto !important;
  max-width: 980px !important;
  text-align: center !important;
  font-size: 26px;
  font-weight: bold;
}

.p-company-catch {
  margin: 50px auto 0px auto !important;
  max-width: 980px !important;
  text-align: center !important;
  font-size: 26px;
  font-weight: bold;
}

/* =========================================
   #service styles
   ========================================= */

#service {
  padding-top: 100px;
  padding-bottom: 0px;
  background-color: transparent;
}

#service .p-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.p-service-subtitle {
  font-size: 16px;
  color: #666;
  text-align: center;
  margin-bottom: 5px;
}

#service .p-section-lead {
  text-align: left !important;
  font-size: 18px !important;
  line-height: 1.8 !important;
  max-width: 980px !important;
  margin: 20px auto 50px auto !important;
  color: #444 !important;
}

.p-service-catch {
  font-size: 28px;
  font-weight: bold;
  color: #1360ca;
  text-align: center;
  margin: 10px 0 20px 0;
}

.p-section-separator {
  border: none;
  border-top: 1px solid #ddd;
  margin: 80px auto;
  width: 80%;
}

.p-service-icon-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 0px;
}

.p-icon-item {
  text-align: center;
}

.p-icon-img-wrap {
  width: 140px;
  height: 84px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 10px auto;
}

.p-icon-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.p-icon-text {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

/* =========================================
   #install styles (Main Module)
   ========================================= */

.p-service-module.p-service-module--main {
  width: 100%;
  padding: 80px 0;
  background-color: #fff;
  overflow: hidden;
}

.p-service-module__inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  background-color: #f7f7f7;
  border-radius: 30px;
  padding: 50px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.p-service-main-visual {
  flex: 0 1 450px;
  width: 450px;
  height: auto;
  min-width: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background: #fff;
}

.p-service-main-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0 !important;
}

.p-service-main-text-wrap {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.p-service-main-title {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.p-service-main-description {
  font-size: 16px;
  line-height: 1.85;
  color: #555;
  margin-bottom: 35px;
  text-align: justify;
}

.p-service-main-button {
  display: inline-block;
  min-width: 220px;
  padding: 16px 30px;
  background-color: #1360ca;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(19, 96, 202, 0.2);
}

.p-service-main-button:hover {
  background-color: #0d4a98;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(19, 96, 202, 0.3);
}

/* ---------------------------------------------------- */
/* 002-3. 工事説明詳細 */
/* ---------------------------------------------------- */

#install {
  padding-top: 0px;
  padding-bottom: 50px;
}

.p-detail-main-wrap {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 100px;
}

.p-detail-main-text {
  flex-basis: 60%;
}

.p-detail-main-image {
  flex-basis: 40%;
  text-align: center;
}

.p-detail-diagram {
  width: 450px !important;
  height: auto !important;
  max-width: 450px !important;
  margin: 10px auto 0 auto;
  display: block;
}

.p-detail-h4-primary {
  font-size: 24px;
  font-weight: bold;
  color: #1360ca;
  padding: 5px 15px;
  border-left: 5px solid #1360ca;
  margin-bottom: 20px;
}

.p-detail-h4-secondary {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  background-color: #1360ca;
  padding: 8px 15px;
  margin-bottom: 15px;
}

.p-detail-main-text p {
  font-size: 18px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 15px;
  min-height: 165px;
}

.p-detail-service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 60px;
  margin-top: 40px;
  /* 隣り合うアイテムの「全体の高さ」を強制的に揃える */
  align-items: stretch;
}

.p-detail-service-item {
  /* カード内をFlexboxにして、中身の配置を制御可能にする */
  display: flex;
  flex-direction: column;
}

.p-detail-service-item p {
  font-size: 16px;
  line-height: 1.7;
  color: #444;
  /* 固定の min-height を廃止し、余白を自動計算させる */
  margin-bottom: 20px;
  flex-grow: 1; /* ★重要：テキストが短くても、余白を埋めて画像を下に押し下げる */
}

/* 画像を包むグループの調整（もしflex設定などが残っていれば解除） */
.p-detail-image-group {
  display: block !important; /* 横並びを解除 */
  width: 100%;
  margin-top: 20px; /* テキストとの余白 */
}

/* 画像自体の調整 */
.p-detail-img {
  width: 100% !important; /* 親要素（テキスト幅）と同じにする */
  max-width: 100% !important; /* はみ出し防止 */
  height: auto !important; /* 比率維持 */
  display: block;
  margin: 0 auto;
}

.image-with-label-wrap {
  position: relative;
  width: 200px;
  height: 138px;
}

.image-label {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 6px;
  font-size: 14px;
  font-weight: bold;
  color: white;
  z-index: 10;
  border-radius: 3px;
  line-height: 1;
}

.image-label--before {
  background-color: #d9534f;
}

.image-label--after {
  background-color: #5cb85c;
}

.comparison-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #1360ca;
  height: 138px;
  line-height: 1;
}

/* =========================================
   #business styles
   ========================================= */

.p-business-bg {
  position: relative;
  z-index: 1;
  padding-top: 50px;
  padding-bottom: 50px;
}

.p-business-module--main {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  overflow: visible;
}

.p-business-background-wrap {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  background-color: #f8f8f8;
  border-radius: 30px;
  padding: 50px 40px;
  box-sizing: border-box;
}

.p-business-main-content {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: center;
  gap: 70px;
  padding: 0 50px;
  margin-bottom: 40px;
  width: 100%;
}

.p-business-main-image-wrap {
  flex: 0 1 450px;
  width: 0px;
  height: auto;
  min-width: 0;
  position: relative;
  z-index: 3;
  overflow: hidden;
}

.p-business-main-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-business-main-text-wrap {
  flex: 1;
  max-width: 500px;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  align-items: flex-start; /* ★これだけ追加：子要素を左に寄せる（広がらなくなる） */
}

.p-business-main-title {
  font-size: 32px;
  font-weight: bold;
  color: #333;
  line-height: 1.3;
  margin-bottom: 20px;
}

.p-business-main-lead {
  font-size: 16px;
  line-height: 1.7;
  color: #666;
  margin-bottom: 30px;
}

.p-business-main-button {
  display: inline-block;
  min-width: 240px;
  padding: 16px 30px;
  background-color: #1360ca;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(19, 96, 202, 0.2);
}

.p-business-main-button:hover {
  background-color: #0d4a98;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(19, 96, 202, 0.3);
}

.p-business-content {
  padding: 30px;
  text-align: center;
}

.p-business-heading {
  font-size: 24px;
  font-weight: bold;
  color: #1360ca;
  text-align: center;
  padding: 10px 0;
  margin-top: 50px;
  margin-bottom: 30px;
  border-top: 1px solid #1360ca;
  border-bottom: 1px solid #1360ca;
}

.p-business-catch {
  font-size: 24px;
  font-weight: bold;
  color: #e71866;
  text-align: center;
  margin-bottom: 30px;
}

/* メーカーロゴグリッド (3列 × 2段 維持版) */
.p-business-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  max-width: 820px !important;
  margin: 0 auto !important;
  gap: 30px 40px !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}

.p-business-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 246px;
  max-height: 99px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.3s;
  margin: 0 auto;
}

.p-business-img:hover {
  opacity: 1;
}

.p-bouhan-catch {
  text-align: center;
  font-size: 32px;
  font-weight: bold;
  color: #1360ca;
  line-height: 1.5;
  padding-top: 50px;
  padding-bottom: 50px;
}

.heading-area {
  padding-bottom: 50px;
}

.main-heading {
  font-size: 24px;
  color: #1360ca;
  font-weight: bold;
  padding: 15px 0;
  position: relative;
  text-align: center;
}

.main-heading::before,
.main-heading::after {
  content: "";
  position: absolute;
  height: 1px;
  background-color: #1360ca;
  left: 0;
  right: 0;
}

.main-heading::before {
  top: 0;
}

.main-heading::after {
  bottom: 0;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-image {
  width: 211px;
  height: 138px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.step-caption {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-number {
  color: #1360ca;
  margin-right: 4px;
}

.arrow-right {
  color: #1360ca;
  font-size: 20px;
  text-align: center;
  position: relative;
  top: -20px;
}

/* =========================================
   横並びセクション (ac-type-horizontal)
   ========================================= */

.p-detail-service-item--horizontal {
  max-width: 1200px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
}

.ac-type-horizontal-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0px;
}

.ac-type-horizontal-wrapper > p {
  flex-shrink: 0;
  width: 630px;
  max-width: 630px;
  margin: 0;
}

.ac-type-image-group-horizontal {
  flex-shrink: 0;
  width: 570px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 54px;
}

.ac-type-image-group-horizontal > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 200px;
  flex-shrink: 0;
}

.ac-type-image-group-horizontal {
  width: 200px;
  height: 138px;
  object-fit: none;
}

.p-detail-h3-option-title {
  font-size: 28px;
  font-weight: bold;
  color: #1360ca;
  text-align: center;
  padding: 10px 0;
  margin: 80px 0px 30px 0px;
  border-bottom: 3px solid #1360ca;
  max-width: 1200px;
}

/* =========================================
   #business styles
   ========================================= */

#business {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background-color: #fff !important;
  width: 100% !important;
  max-width: none !important;
}

.p-business-header {
  background-color: #f5f5f5 !important;
  text-align: center !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  margin-left: -40px !important;
  margin-right: -40px !important;
  margin-bottom: 0 !important;
}

.p-business-image-wrap {
  width: 100% !important;
  text-align: center !important;
  margin-bottom: 30px !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.p-business-top-image {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 1092px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.p-business-merits-wrap {
  background-color: #fff !important;
  padding-top: 0 !important;
  padding-bottom: 80px !important;
}

.p-business-merits-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 30px !important;
  max-width: 1092px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.p-business-merits-wrap .p-section-inner {
  padding-left: 40ox !important;
  padding-right: 40px !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.p-merit-item {
  background-color: #fff !important;
  border-radius: 8px !important;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08) !important;
  padding: 0 !important;
  border: 3px solid #1360ca !important;
  overflow: hidden !important;
}

.p-merit-title-line {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  padding: 15px 25px !important;
  background-color: #f7f7f7 !important;
  border-bottom: 1px solid #1360ca !important;
}

.p-merit-number-inline {
  background-color: #1360ca !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: bold !important;
  padding: 5px 15px !important;
  border-radius: 4px !important;
  flex-shrink: 0 !important;
}

.p-merit-title {
  font-size: 24px !important;
  font-weight: bold !important;
  color: #1360ca !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

.p-merit-body {
  padding: 25px !important;
  display: flex !important;
  gap: 20px !important;
  flex-direction: row !important;
}

.p-merit-text-wrap {
  flex-grow: 1 !important;
  text-align: left !important;
}

.p-merit-text {
  font-size: 18px !important;
  line-height: 1.6 !important;
  color: #555 !important;
  margin: 0 !important;
}

.p-merit-image {
  width: 100px !important;
  height: 120px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.p-merit-image img {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

.p-business-note {
  font-size: 16px;
  text-align: right;
  margin-top: 20px;
  margin-right: 54px;
}

.p-business-note p {
  margin: 0;
}
