@charset "UTF-8";

/* ====================================
   Variables & Common
   ==================================== */
:root {
  --color-green: #559e44;
  --color-green-dark: #4a8b42;
  --color-orange: #f0951e;
  --color-dark: #333;
  --color-gray-bg: #f2f2f2;
  --font-en: "Brush Script MT", cursive; 
}

.inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  box-sizing: border-box;
}

/* ====================================
   Service Main Content & Background
   ==================================== */
.p-service-main {
  position: relative;
  overflow: hidden;
  
  /* 背景画像の設定 */
  background-image: url('../images/service/bg_service.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% auto;
}

@media (max-width: 768px) {
  .p-service-main {
    background-size: cover;
  }
}

/* ====================================
   Main Visual
   ==================================== */
.p-service-mv {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
  margin-bottom: 20px;
}
.p-service-mv__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.p-service-mv__content {
  position: absolute;
  bottom: 30px;
  left: 10%;
  z-index: 2;
  text-shadow: 0 0 15px rgba(255,255,255,0.8);
}
.p-service-mv__title .en {
  display: block;
  font-family: var(--font-en);
  font-size: 5rem;
  line-height: 1;
  color: #000;
}
.p-service-mv__title .jp {
  display: block;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  margin-top: 5px;
  color: #000;
  padding-left: 5px;
}

.p-service-breadcrumb {
  font-size: 12px;
  padding: 0 0 40px;
  margin-bottom: 20px;
}
.p-service-breadcrumb a {
  text-decoration: none;
  color: #333;
}

/* ====================================
   Intro
   ==================================== */
.p-service-intro {
  text-align: center;
  margin-bottom: 80px;
}

/* ★変更：タイトルボックス（TOPページ合わせ） */
.p-service-title-box {
  position: relative;
  width: 100%;
  max-width: 520px;       /* PC幅 */
  margin: 0 auto 40px;    /* 中央寄せ */
  
  /* 背景画像の設定（SVG） */
  background-image: url('../images/service_title_bg.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;

  /* 背景画像の比率を維持 */
  aspect-ratio: 520 / 160;
  
  /* 旧スタイルのリセット */
  border: none;
  padding: 0;
  display: block;
}

/* 旧スタイルの装飾（オレンジ四角）を削除 */
.p-service-title-box::before,
.p-service-title-box::after {
  display: none;
}

.p-service-title-box .title {
  margin: 0;
  width: 100%;
  height: 100%;
  position: relative;
}

/* テキスト部分（中央配置） */
.p-service-title-box .title span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: #333;
  white-space: nowrap; /* 文字折返し防止 */
}

/* スマホ対応 */
@media (max-width: 768px) {
  .p-service-title-box {
    max-width: 360px;
  }
  .p-service-title-box .title span {
    font-size: 24px;
    letter-spacing: 0.18em;
  }
}


.p-service-catch {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 30px;
  line-height: 1.5;
}
.p-service-catch::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: #333;
  margin: 20px auto 0;
}

.p-service-lead {
  font-size: 1rem;
  line-height: 2;
  font-weight: bold;
}

/* ====================================
   3 Points
   ==================================== */
.p-service-points {
  background-color: var(--color-gray-bg);
  padding: 60px 0;
  margin-bottom: 80px;
}

.p-service-points__list {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.p-service-point {
  flex: 1;
  text-align: center;
  padding: 0 10px;
}

.p-service-point .num {
  font-size: 4rem;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 10px;
  font-family: serif;
}

.p-service-point .head {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.4;
}

.p-service-point .desc {
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: left;
  display: inline-block;
}

/* ====================================
   Headings (Common)
   ==================================== */
.p-service-head {
  text-align: center;
  margin-bottom: 50px;
}
.p-service-head .title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 10px;
  letter-spacing: 0.1em;
  display: inline-block;
  position: relative;
}
.p-service-head .title::before {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  background-color: var(--color-green-dark);
  margin: 0 auto 10px;
}

.p-service-head .sub {
  font-weight: bold;
  font-size: 1rem;
}

/* ====================================
   Menu Grid (Revised)
   ==================================== */
.p-service-menu {
  margin-bottom: 100px;
  position: relative;
}

.p-service-menu__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

/* カードスタイル共通 */
.p-service-card {
  width: calc(25% - 22.5px); /* 4列 */
  background: #fff;
  border-radius: 8px; /* 角丸追加 */
  overflow: hidden;   /* 画像のはみ出し防止 */
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* 影を追加してリッチに */
  display: flex;
  flex-direction: column; /* 中身を縦並びに */
  transition: transform 0.3s ease;
}

.p-service-card:hover {
  transform: translateY(-5px); /* ホバーで浮く */
}

.p-service-card .img {
  width: 100%;
  aspect-ratio: 4 / 3; /* 画像比率を固定 */
}
.p-service-card .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.p-service-card .body {
  padding: 20px 15px;
  background-color: #bccdc1; /* 薄い緑背景 */
  text-align: center;
  flex: 1; /* 高さを揃えるために伸縮 */
  display: flex;
  flex-direction: column;
}

.p-service-card .card-title {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
}

.p-service-card .card-text {
  font-size: 0.85rem;
  line-height: 1.6;
  text-align: left;
  margin-bottom: 20px;
}

.card-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: auto; /* ボタンを常に最下部に */
  border: 1px solid #333;
  background: transparent;
  padding: 8px 0;
  width: 100%; /* 横幅いっぱい */
  font-size: 0.85rem;
  text-decoration: none;
  color: #333;
  background-color: rgba(255,255,255,0.6); /* 少し白くして読みやすく */
  transition: all 0.3s;
}
.card-btn:hover {
  background: #333;
  color: #fff;
}

/* ====================================
   FAQ
   ==================================== */
.p-service-faq {
  margin-bottom: 100px;
}

.p-faq-list {
  max-width: 800px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.p-faq-item {
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 4px;
}

.p-faq-item__question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px;
  text-align: left;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #333;
}

.q-icon {
  position: relative;
  width: 20px;
  height: 20px;
}
.q-icon::before, .q-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: var(--color-green-dark);
  transform: translate(-50%, -50%);
}
.q-icon::before { width: 100%; height: 2px; }
.q-icon::after { width: 2px; height: 100%; }

.p-faq-item__question.active .q-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.p-faq-item.active .q-icon {
  transform: rotate(135deg);
}

.p-faq-item__answer {
  display: none;
  border-top: 1px solid #eee;
}
.p-faq-item__answer-inner {
  padding: 20px;
  line-height: 1.8;
}

.p-service-faq__more {
  text-align: center;
}
.btn-more-simple {
  display: inline-block;
  border: 1px solid #333;
  padding: 10px 60px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s;
  background: #fff;
}
.btn-more-simple:hover {
  background: #333;
  color: #fff;
}

/* ====================================
   Flow CTA (New Section)
   ==================================== */
.p-service-flow {
  background-color: var(--color-gray-bg);
  padding: 80px 0;
  margin-bottom: 100px;
  text-align: center;
}

.p-service-flow__body .text {
  font-weight: bold;
  line-height: 2;
  margin-bottom: 40px;
}

/* ====================================
   Contact CTA (Common)
   ==================================== */
.p-contact {
  background-color: #d9dcdb;
  padding: 60px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}
.p-contact__bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  opacity: 0.3;
}
.p-contact__head { margin-bottom: 30px; }
.p-contact__title .en {
  display: block;
  font-family: var(--font-en);
  font-size: 3.5rem;
  line-height: 1;
  color: #000;
  position: relative;
  z-index: 1;
  padding: 0 15px;
  display: inline-block;
}
.p-contact__title .en::before {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 110%;
  height: 12px;
  background-color: #568a47;
  z-index: -1;
}
.p-contact__title .jp {
  display: block;
  font-size: 1rem;
  font-weight: bold;
  margin-top: 8px;
}
.p-contact__text {
  font-weight: bold;
  line-height: 2;
  margin-bottom: 40px;
}
.p-contact__actions {
  display: flex;
  justify-content: center;
  gap: 30px;
}
.p-contact__btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 280px;
  height: 60px;
  color: #fff;
  font-weight: bold;
  font-size: 1.125rem;
  text-decoration: none;
  transition: opacity 0.3s;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}
.p-contact__btn:hover { opacity: 0.8; }
.p-contact__btn--line { background-color: #f09c16; }
.p-contact__btn--tel { background-color: #568a47; }


/* ====================================
   Responsive (SP)
   ==================================== */
@media (max-width: 768px) {
  .p-service-mv__title .en { font-size: 4rem; }
  .p-service-intro .title { font-size: 1.2rem; }
  .p-service-catch { font-size: 1.2rem; }
  .sp-only { display: block; }

  /* 3 Points */
  .p-service-points__list {
    flex-direction: column;
    gap: 40px;
  }
  .p-service-point .desc {
    text-align: center;
  }

  /* Menu (Card Adjustment) */
  .p-service-menu__grid {
    gap: 20px; /* カード間の余白 */
  }
  .p-service-card {
    width: calc(50% - 10px); /* 2列表示 */
  }
  .p-service-card .body {
    padding: 15px 10px; /* 余白調整 */
  }
  .p-service-card .card-title {
    font-size: 0.9rem;
  }
  .p-service-card .card-text {
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 15px;
  }
  .card-btn {
    padding: 8px 0;
    font-size: 0.8rem;
  }

  /* Contact */
  .p-contact__title .en { font-size: 3rem; }
  .p-contact__actions {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .p-contact__btn {
    width: 100%;
    max-width: 320px;
  }
  
  /* Flow */
  .p-service-flow {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .p-service-card {
    width: 100%; /* 1列表示 */
  }
}