/**
 *  固定ページ用
 *  filename : pages.css
 */


/**
 *  page name: Aboutus 
 */

#Aboutus .img {
  width: 40%;
  margin: 0 auto 50px;
}

#Aboutus .flex {
  gap: 40px;
}

#Aboutus .left {
  flex: 2;
}

#Aboutus .right {
  flex: 1;
}

#Aboutus .photo-items {
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 30px auto;
}

#Aboutus .photo-items li {
  display: block;
}

#Aboutus .sp .photo-items li:nth-child(1) {
  transform: rotate(-5deg);
  margin-bottom: 60px;
}
#Aboutus .pc .photo-items li:nth-child(1) {
  transform: rotate(-5deg);

}

#Aboutus .photo-items li:nth-child(2) {
  transform: rotate(5deg);
}
#Aboutus .sp .photo-items.flex-2column {
  flex-direction: row;
  width: 90%;
  margin-top : 50px;
}
#Aboutus .sp .photo-items.flex-2column > li {
  max-width: none;
}
#Aboutus .sp .photo-items li:nth-child(1) {
  margin-bottom: 0;
  transform: rotate(5deg);
}
#Aboutus .sp .photo-items li:nth-child(2) {
  transform: rotate(-5deg);
}

#Aboutus .textarea {
  margin: 50px 0 0;
}
#Aboutus .textarea p {
  font-size: 1.1rem;
  padding-bottom: 1em;
}
#Aboutus .sp .textarea p {
  line-height: 2;
}

.service-items {
  width: 100%;
  margin: 100px 0;
}

.service-items.flex {
  justify-content: space-between;
}

.service-items li {
  position: relative;
  flex: 1;
  height: 200px;
}

/* ボタン共通スタイル */
a.photo-btn {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  background-color: rgba(var(--color-black-rgb), 0.7);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-blend-mode: screen;
  transition: var(--transition-duration);
}

a.photo-btn:hover {
  opacity: 0.7;
}

/* 背景画像別ボタン */
a.photo-btn-flow    { background-image: url("../images/photo006.jpg"); }
a.photo-btn-service { background-image: url("../images/photo011.jpg"); }
a.photo-btn-works   { background-image: url("../images/photo014.jpg"); }
a.photo-btn-renov   { background-image: url("../images/photo014.jpg"); }
a.photo-btn-reform  { background-image: url("../images/photo015.jpg"); }

/* ボタン中のテキストブロック */
a.photo-btn div {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background-color: rgba(var(--color-black-rgb), 0.7);
  color: var(--btn-text-color);
  padding: 1.5em 5em;
}

/* 矢印アイコン */
a.photo-btn div::after {
  content: "";
  display: inline-block;
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  width: 21px;
  height: 21px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><rect style="fill:none;" width="48" height="48"/><path style="fill:none;stroke:rgb(255,255,255);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;" d="M16.5,37.23l17-12.71c0.276-0.212,0.328-0.607,0.117-0.883c-0.034-0.044-0.073-0.083-0.117-0.117l-17-12.71"/></svg>');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

#Advantages .container {
  background-color: var(--color-white);
  border-radius: 25px;
  padding: 50px 30px;
  margin-bottom: 100px;
}

#Advantages .items {
  list-style: none;
  padding: 0;
  margin: 0;
}

#Advantages .items li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 50px;
}

#Advantages .items li:nth-child(even) {
  flex-direction: row-reverse;
}

#Advantages .photo,
#Advantages .text-box {
  padding: 0 20px;
  margin-bottom: 0; /* li に margin-bottom を集約 */
}

#Advantages .photo {
  width: 40%;
}

#Advantages .text-box {
  width: 60%;
}

#Advantages .items img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center;
}

#Advantages .headline2 {
  position: relative;
  width: fit-content;
  margin-bottom: 1em;
}

#Advantages .headline2 .number {
  font-weight: 500;
  font-size: 2.5em;
  padding-right: 0.5em;
  display: inline-block;
  position: relative;
  z-index: 9;
}

#Advantages .headline2 .title {
  font-size: 1.5em;
  position: relative;
  z-index: 10;
}

#Advantages .textarea {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  line-height: 1.7;
}

/* 背景共通 */
#Customers.wrapper{
  background-color: rgba(var(--color-white-rgb), 0.7);
  background-image: url("../images/img003.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-blend-mode: lighten;
}

/* 吹き出しベース */
.arrow_box {
  position: relative;
  width: 80%;
  background: var(--color-white);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 50px;
}

/* 右寄せ */
.arrow_box.right {
  margin-left: auto;
}

/* 矢印共通 */
.arrow_box::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  pointer-events: none;
  border: 10px solid transparent;
}

/* 左向き矢印（左側） */
.arrow_box.left::after {
  right: 100%;
  border-right-color: var(--color-white);
}

/* 右向き矢印（右側） */
.arrow_box.right::after {
  left: 100%;
  border-left-color: var(--color-white);
}


/**
 *  page name: flow 
 */

 #Flow_Message h3 {
  color: var(--primary-text-color);
  margin-top: 1em; /* 読みやすさ向上のため追加 */
}

#Flow_Message .textarea {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto; /* 中央寄せされている想定で追加 */
  font-size: 1.2em;
  background-color: var(--color-gray);
  padding: 40px 5em;
  border-radius: 50px;
  line-height: 1.8; /* 読みやすさアップ */
  text-align: center; /* センター配置を意識 */
}
#Flow .container {
  background-color: var(--color-white);
  border-radius: 50px;
  padding: 50px;
  margin-top : 100px;
}
/* --- flow-items（円形ステップ）--- */
.flow-items {
  margin: 100px auto 200px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px 45px;
  list-style: none;
  padding: 0;
}

.flow-items li {
  width: 150px;
  height: 150px;
  border-radius: 100vh;
  background-color: var(--color-gray);
  font-weight: 500;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.flow-items li div {
  width: 70%;
  line-height: 1.4;
}

.flow-items li::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -25%;
  transform: translateY(-50%);
  width: 20px;
  height: 30px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 46"><path d="M23,0,46,22H0Z" transform="translate(22) rotate(90)" fill="rgb(54,163,214)"/></svg>');
  background-repeat: no-repeat;
  background-size: contain;
}

.flow-items li:last-child::after {
  display: none;
}

/* --- flow-items2（ステップの詳細）--- */
.flow-items2 {
  list-style: none;
  padding: 0;
  margin: 0;
}

.flow-items2 li {
  justify-content: space-between;
  margin-bottom: 50px;
  gap : 50px;
  align-items: flex-start
}

.flow-items2 li.flex:nth-child(even) {
  flex-direction: row-reverse;
}

.flow-items2 .photo {
  flex : 0 0 40%;
}


.flow-items2 .no {
  color: var(--highlight-color);
  font-family: var(--font-family-dancing);
  font-weight: 600;
  font-size: 1.4em;
}

.flow-items2 .no span {
  font-size: 1.5em;
  margin-left: 5px;
}
.mission-list {
  margin-top: 100px;
  width: 100%;
  list-style: none;
  padding: 0;
  counter-reset: my-counter;
  justify-content: space-between;
}

.mission-list li {
  position: relative;
}

.mission-list li::before {
  content: counter(my-counter, decimal-leading-zero);
  counter-increment: my-counter;
  position: absolute;
  top: -23px;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
  border: 3px solid var(--secondary-color);
  border-radius: 100vh;
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1.1em;
  z-index: 1;
}

/* タイトル部分 */
.mission-list .title {
  background-color: var(--secondary-color);
  color: var(--btn-text-color);
  font-size: 1.2em;
  font-weight: bold;
  padding: 25px;
  text-align: center;
}

/* テキストエリア本体 */
.mission-list .textarea {
  width: 100%;
  height: 100%;
  min-height: 200px;
  padding: 20px;
  margin-top: 10px;
  position: relative;
  /* background-color: var(--color-white); */
  line-height: 1.6;
}

/* 両端の装飾を維持（必要な場合） */
.mission-list .textarea::before,
.mission-list .textarea::after {
  content: "";
  position: absolute;
  top: 0;
  width: 20px;
  height: 100%;
  background-color: transparent;
}

.mission-list .textarea::before {
  left: 0;
  border-left: 2px solid var(--secondary-color);
  border-top: 2px solid var(--secondary-color);
  border-bottom: 2px solid var(--secondary-color);
}

.mission-list .textarea::after {
  right: 0;
  border-right: 2px solid var(--secondary-color);
  border-top: 2px solid var(--secondary-color);
  border-bottom: 2px solid var(--secondary-color);
}



/**
 *  page name: Service 
 */

#Service h4 {
    font-size: 2.5rem;
}

#Service .textarea {
    max-width: 700px;
    font-size: 1.2em;
    margin : 100px auto 0;
}
.title-wrapper {
  width: 100%;
  padding: 30px 0;
  background-color: var(--primary-bg-color);
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0,
    transparent 7px,
    rgba(var(--color-light-blue-rgb), 1) 7px,
    rgba(var(--color-light-blue-rgb), 1) 14px
  );
  background-size: auto;
}
.title-box {
  background-color: var(--color-white);
  margin: 0 auto;
  padding: 20px;
  width: 40%;
}

/* 共通：中央寄せ + 自動幅 */
.title-box .service,
.title-box .title-ja,
.title-box .title-en {
  width: fit-content;
  margin: 0 auto;
}

/* 英語カテゴリ（上部） */
.title-box .service {
  background-color: var(--highlight-color);
  color: var(--btn-text-color);
  font-family: var(--font-family-didot);
  font-weight: 400;
  text-transform: uppercase;
  padding: 0.3em 2em;
}

.title-box .service span {
  font-size: 1.5em;
  padding-left: 0.5em;
  display: inline-block;
}

/* 日本語タイトル */
.title-box .title-ja {
  font-family: var(--font-family-mincho);
  font-size: 3em;
  font-weight: bold;
  padding-top: 0.5em;
  line-height: 1;
}

/* 英語タイトル（下） */
.title-box .title-en {
  font-family: var(--font-family-didot);
  font-weight: 400;
  font-size: 1.3em;
  color: var(--border-color);
}
body.service .textarea {
  width: 100%;
  max-width: 700px;
  line-height: 2;
  margin: 0 auto;
}

body.service .items .photo {
  width: 100%;
  height: 200px;
}

body.service .items .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body.service .items .text-warpper {
  width: 100%;
  background-color: var(--color-white);
  padding: 20px 20px 50px;
}

.box-stripe {
  position: relative;
  padding: 20px 25px;
  z-index: 0; /* 擬似要素を背景に送るために必要 */
}

/* 内側の背景ボックス（無地） */
.box-stripe::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background-color: var(--primary-bg-color);
  border-radius: 25px;
  z-index: -1;
}

/* 外側の斜めストライプ背景 */
.box-stripe::after {
  content: "";
  position: absolute;
  inset: 0; /* top, right, bottom, left を0に統一 */
  background: repeating-linear-gradient(
    -45deg,
    var(--primary-bg-color),
    var(--primary-bg-color) 3px,
    var(--color-blue2) 0,
    var(--color-blue2) 6px
  );
  border-radius: 25px;
  z-index: -2;
}
.cat-items {
  justify-content: flex-start;
  margin-bottom: 20px;
  gap : 10px;
}

.cat-items li {
  border: 1px solid var(--border-color);
  color: var(--border-color);
  padding: 5px;
  width: fit-content !important;
  font-size: .7em;
}

/* === 画像2枚配置用 === */
.img-flex {
  width: 100%;
  margin-bottom: 10px;
}

.img-flex img {
  height: 300px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* 左右で幅を調整 */
.img-flex img.left {
  width: 50%;
  max-width: none;
}

.img-flex img.right {
  max-width: none;
  width: 50%;
  filter: grayscale(100%);
}

/* === リストの共通化 === */
.example2-items .example-list {
  list-style: disc inside;
  width: 90%;
  margin: 0 auto;
  padding-left: 0; /* 保険として追加：ブラウザ差異対策 */
}

.example2-items .example-list li {
  width: 100%;
}

/* === リンク型ボタン（Reformページ） === */
body.service #Reform a.photo-btn {
  width: 100%;
  max-width: 700px;
  height: 200px;
  display: block;
  background-size: cover;
  background-position: center;
}

a.photo-btn:hover {
  opacity: 0.7;
}
.example2-items > li {
  position: relative;
  padding: 20px;
  height: 250px;
}

/* 画像の共通スタイル */
.example2-items > li .img {
  position: absolute;
  bottom: 10%;
  right: 10%;
  width: 130px; /* デフォルトサイズ */
}

/* 特定の要素のみサイズ変更 */
.example2-items > li:nth-child(1) .img,
.example2-items > li:nth-child(2) .img {
  width: 120px;
}

.example2-items > li:nth-child(6) .img {
  width: 90px;
}

/* テキストエリアのスタイル */
.example2-items .textarea {
  max-width: 200px!important;
  margin: 0 10px!important;
}



/**
 *  page name: Company 
 */

body.company dt,
body.company dd {
  background-color: var(--color-gray);
}

body.company dt:nth-of-type(even),
body.company dd:nth-of-type(even) {
  background-color: var(--color-white);
}

body.company dt {
  flex: 0 0 150px;
}

body.company dd {
  flex : 0 0 calc(100% - 150px);
}

#Message .textarea {
  max-width: 700px;
  width: 100%;
  font-size: 1.4rem;
  line-height: 2;
  margin: 100px auto 50px;
  padding-bottom: 1rem;
  font-family: "Zen Kurenaido", sans-serif;
}
#Message h5 {
  font-weight: bold;
  font-family: "Zen Kurenaido", sans-serif;

}
#Company .items {
  max-width: 700px;
  margin: 50px auto;
}


/**
 * page name: Contact
 */

 .forms {
  width: 100%;
  margin: 0 auto;
  font-family: 'Noto Sans JP', sans-serif;
}

.forms label {
  display: inline;
  margin-bottom: 10px;
  font-weight: 600;
}

.forms .required {
  color: #d00;
  margin-left: 5px;
  font-size: 0.9em;
}

.forms input[type="text"],
.forms input[type="email"],
.forms input[type="tel"],
.forms textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 25px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.forms input[type="text"]:focus,
.forms input[type="email"]:focus,
.forms input[type="tel"]:focus,
.forms textarea:focus {
  border-color: #36A3D6;
  outline: none;
}

.forms textarea {
  min-height: 150px;
  resize: vertical;
}

.forms .buttons {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.forms input[type="submit"],
.forms input[type="reset"],
.btn-reset {
  padding: 12px 30px;
  width: 300px;
  font-size: 1em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.forms input[type="submit"] {
  background-color: #36A3D6;
  color: #fff;
}

.forms input[type="submit"]:hover {
  background-color: #2a89b4;
}

.forms input[type="reset"],
.btn-reset {
  background-color: #ccc;
  color: #333;
}

.forms input[type="reset"]:hover,
.btn-reset:hover {
  background-color: #aaa;
}
body.contact .textarea {
  margin : 100px auto 50px;
}
.example-items {
  align-items: stretch;
}
/* ▼ 1280px以下（ノートPC対応） */
@media screen and (max-width: 1280px) {
  .mission-list .textarea {
    min-height: 300px;
  }
  .example2-items > * {
    flex: 1 1 calc((100% - 50px) / 2);
  }
}

@media screen and (max-width: 768px) {
  #index-feature .items > li.flex-2column {
    gap : 20px;
  }
  .breadcrumb ul {
    margin : 0 15px;
  }
  .mission-list .textarea {
    min-height: auto;
  }

}

/* =========================================
   CF7 確認画面
   白黒基調＋くすみブルー
   ========================================= */
#wpcf7cpcnf {
  color: #222222;
}

/* テーブル */
#wpcf7cpcnf table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

#wpcf7cpcnf th,
#wpcf7cpcnf td {
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid #dddddd;
  background: #ffffff;
}

#wpcf7cpcnf th {
  width: 30%;
  font-weight: bold;
  color: #111111;
  background: #f8f8f8;
}

#wpcf7cpcnf td p,
#wpcf7cpcnf th p {
  margin: 0;
}

#wpcf7cpcnf td p:empty::before {
  content: "—";
  color: #999999;
}

/* ボタン行 */
#wpcf7cpcnf .wpcf7cp-btns {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 16px;
}

/* 共通ボタン */
#wpcf7cpcnf .wpcf7cp-btns .wpcf7-form-control {
  border-radius: 6px;
  padding: 10px 18px;
  font-weight: bold;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}

/* 修正ボタン（白黒基調） */
#wpcf7cpcnf .wpcf7cp-cfm-edit-btn {
  background: #f5f5f5;
  color: #333333;
  border: 1px solid #cccccc;
}
#wpcf7cpcnf .wpcf7cp-cfm-edit-btn:hover {
  background: #e9e9e9;
}

/* 送信ボタン（くすみブルー） */
#wpcf7cpcnf .wpcf7cp-cfm-submit-btn {
  background: #3a6ea5; /* くすみブルー */
  color: #ffffff;
  border: 1px solid #2e5a87;
}
#wpcf7cpcnf .wpcf7cp-cfm-submit-btn:hover {
  background: #487fb8;
}

/* スマホ表示：縦積み */
@media (max-width: 640px) {
  #wpcf7cpcnf table,
  #wpcf7cpcnf tr,
  #wpcf7cpcnf th,
  #wpcf7cpcnf td {
    display: block;
    width: 100%;
  }
  #wpcf7cpcnf tr {
    margin-bottom: 12px;
    border: 1px solid #dddddd;
    border-radius: 6px;
    overflow: hidden;
  }
  #wpcf7cpcnf th {
    background: #f0f0f0;
    padding: 8px 12px;
    border-bottom: none;
  }
  #wpcf7cpcnf td {
    padding: 8px 12px 12px;
    border-bottom: none;
  }
  #wpcf7cpcnf .wpcf7cp-btns {
    flex-direction: column-reverse;
    gap: 8px;
  }
  #wpcf7cpcnf .wpcf7-form-control {
    width: 100%;
    text-align: center;
  }
}