/* =========================
   トップ：4枚写真＋中央丸ロゴ
========================= */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-photo {
  padding: 0;
  background: #ffffff;
}

.hero-collage {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: hidden;
}

.four-photo-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 280px 280px;
  gap: 0;
  border-radius: 0;
  box-shadow: none;
}

.four-photo-item {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
}

.four-photo-item picture,
.photo-circle picture {
  width: 100%;
  height: 100%;
  display: block;
}

.four-photo-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.photo-1 {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

.photo-2 {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.photo-3 {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}

.photo-4 {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

.four-photo-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 20;
  transform: translate(-50%, -50%);
  width: 270px;
  height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: none;
  overflow: hidden;
}

.four-photo-logo img {
  width: 84%;
  height: 84%;
  object-fit: contain;
  display: block;
}

/* =========================
   写真で見る施工事例
========================= */
.photo-menu-section {
  padding: 76px 28px 78px;
  background:
    linear-gradient(135deg, rgba(222, 246, 251, 0.82), rgba(226, 253, 242, 0.78));
}

.photo-menu-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 58px 44px;
}

.photo-menu-item {
  display: block;
  text-align: center;
  color: var(--green-dark);
  font-weight: 800;
}

.photo-circle {
  width: 150px;
  height: 150px;
  margin: 0 auto 14px;
  padding: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 32px rgba(44, 128, 121, 0.14);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.photo-menu-item:hover .photo-circle {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(44, 128, 121, 0.18);
}

.photo-circle img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}

.photo-menu-item p {
  position: relative;
  padding-bottom: 12px;
  font-size: 15px;
}

.photo-menu-item p::after {
  content: "";
  display: block;
  width: 100%;
  max-width: 330px;
  height: 3px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, #55cbb0, #7ddbe6);
  border-radius: 999px;
}

/* =========================
   費用について
========================= */
.price-explain-section {
  padding: 82px 28px 88px;
  background: #ffffff;
}

.price-explain-section .section-heading {
  margin-bottom: 42px;
  text-align: center;
}

.sp-only {
  display: none;
}

.price-simple-grid {
  max-width: 860px;
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.price-simple-item {
  padding: 30px 18px 26px;
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(135, 211, 207, 0.34);
  border-radius: 26px;
  box-shadow: none;
}

.price-simple-icon {
  width: 86px;
  height: 86px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.price-simple-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.price-simple-item h3 {
  margin: 0;
  color: #238b78;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.5;
}

.price-simple-text {
  max-width: 760px;
  margin: 0 auto 30px;
  color: #526f6a;
  font-size: 16px;
  font-weight: 700;
  line-height: 2;
  text-align: center;
}

.price-formula-simple {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  gap: 18px;
  align-items: center;
}

.price-formula-item {
  padding: 30px 20px 26px;
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(135, 211, 207, 0.34);
  border-radius: 28px;
  box-shadow: none;
}

.price-formula-icon {
  width: 110px;
  height: 110px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.price-formula-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.price-formula-item h3 {
  margin: 0;
  color: #238b78;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.5;
}

.price-formula-plus {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #55cbb0;
  border-radius: 50%;
  font-size: 34px;
  font-weight: 900;
  box-shadow: none;
}

/* =========================
   対応サービス
========================= */
.service {
  max-width: none;
  margin: 0;
  padding: 82px 28px 88px;
  background:
    linear-gradient(135deg, rgba(222, 246, 251, 0.82), rgba(226, 253, 242, 0.78));
}

.service .section-heading {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.service-photo-grid {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding-bottom: 70px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
  align-items: start;
}

.service-photo-grid:has(.service-photo-card[open]) {
  padding-bottom: 560px;
}

.service-photo-card {
  padding: 8px 10px 0;
}

.service-photo-card summary {
  list-style: none;
  cursor: pointer;
}

.service-photo-card summary::-webkit-details-marker {
  display: none;
}

.service-photo-card summary::marker {
  content: "";
}

.service-photo-circle {
  width: 140px;
  height: 140px;
  margin: 0 auto 18px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 14px 32px rgba(44, 128, 121, 0.12);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-photo-card summary:hover .service-photo-circle {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(44, 128, 121, 0.16);
}

.service-photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transform: scale(1.32);
  display: block;
}

.service-photo-card h3 {
  margin-bottom: 8px;
  color: #238b78;
  font-size: 20px;
  font-weight: 800;
}

.service-more {
  color: #1f7bd8;
  font-size: 15px;
  font-weight: 800;
}

.service-photo-card:not([open]) .service-more::after {
  content: " ＞";
}

.service-photo-card[open] .service-more::after {
  content: " ▲";
}

.service-photo-card[open] .service-photo-circle {
  border: 5px solid #1f7bd8;
  box-shadow: 0 0 0 8px rgba(31, 123, 216, 0.12);
}

.service-photo-card[open] h3 {
  color: #1f7bd8;
}

.service-photo-card[open] .service-detail {
  position: absolute;
  left: 0;
  right: 0;
  top: 245px;
  width: 100%;
  max-width: 1120px;
  min-height: 430px;
  margin: 0 auto;
  padding: 34px 38px;
  text-align: left;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(135, 211, 207, 0.30);
  border-radius: 28px;
  box-shadow: none;
}

.service-detail h4 {
  margin: 22px 0 8px;
  color: #238b78;
  font-size: 17px;
  font-weight: 800;
}

.service-detail h4:first-child {
  margin-top: 0;
}

.service-detail ul {
  margin: 0 0 6px;
  padding-left: 1.2em;
  list-style: disc;
}

.service-detail li,
.service-detail p {
  color: #526f6a;
  font-size: 15px;
  line-height: 1.9;
}

.service-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 18px;
  padding: 8px 18px;
  color: #ffffff;
  background: #6ed5c3;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
}

.service-link:hover {
  background: #53c8b5;
}

/* =========================
   工事の流れ：背景になじむタイムライン
========================= */
.flow {
  padding: 90px 20px;
  background: #ffffff;
}

.flow-timeline {
  max-width: 820px;
  margin: 64px auto 0;
  position: relative;
  transform: translateX(100px);
}

.flow-timeline::before {
  content: "";
  position: absolute;
  top: 55px;
  left: 54px;
  width: 3px;
  height: calc(100% - 110px);
  background: rgba(86, 190, 180, 0.22);
  border-radius: 999px;
  z-index: 1;
}

.flow-timeline::after {
  content: "";
  position: absolute;
  top: 55px;
  left: 54px;
  width: 3px;
  height: var(--flow-progress, 0%);
  max-height: calc(100% - 110px);
  background: linear-gradient(180deg, #55cbb0, #1f7bd8);
  border-radius: 999px;
  z-index: 2;
  transition: height 0.12s linear;
}

.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 28px;
  align-items: flex-start;
  margin: 0;
  padding: 0 0 58px;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.flow-step:last-child {
  padding-bottom: 0;
}

.flow-step::before {
  display: none;
}

.flow-illust {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #e9faf6;
  border: 2px solid rgba(88, 207, 192, 0.58);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  z-index: 3;
}

.flow-illust img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  transform: scale(1.45);
  border-radius: 50%;
  display: block;
}

.flow-step-text {
  padding-top: 17px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.flow-step-text h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.5;
  color: #168f81;
  font-weight: 800;
}

.flow-step-text p {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: #3f5f5a;
  font-weight: 600;
}

.flow-arrow {
  display: none !important;
}

.flow,
.flow * {
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.flow-step,
.flow-step-text,
.flow-illust {
  cursor: default !important;
  transition: none !important;
}

.flow-step:hover,
.flow-step-text:hover,
.flow-illust:hover,
.flow-step:active,
.flow-step-text:active,
.flow-step:focus,
.flow-step:focus-visible,
.flow-step-text:focus,
.flow-step-text:focus-visible,
.flow-illust:focus,
.flow-illust:focus-visible {
  transform: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* =========================
   アクセス
========================= */
.access {
  max-width: none;
  margin: 0;
  padding: 82px 28px 88px;
  background:
    linear-gradient(135deg, rgba(222, 246, 251, 0.82), rgba(226, 253, 242, 0.78));
}

.access .section-heading {
  max-width: 1060px;
  margin-left: auto;
  margin-right: auto;
}

.access-card-new {
  max-width: 1060px;
  margin: 0 auto;
  padding: 44px 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(135, 211, 207, 0.28);
  border-radius: 28px;
  box-shadow: none;
}

.access-map-new {
  width: 100%;
  height: 100%;
  min-height: 370px;
  align-self: stretch;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(135, 211, 207, 0.25);
  box-shadow: none;
}

.access-map-new iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 370px !important;
  display: block;
}

.access-info-new {
  width: 100%;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.access-row-new {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 28px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(135, 211, 207, 0.28);
}

.access-row-new:first-child {
  padding-top: 0;
}

.access-label-new {
  margin: 0;
  padding: 0;
  color: #238b78;
  background: transparent;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.8;
}

.access-row-new > div {
  padding: 0;
}

.access-row-new p {
  margin: 0;
  color: #23443f;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.8;
}

.access-note-new {
  margin-top: 5px !important;
  color: #607b78 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.7 !important;
}

/* =========================
   会社概要ページへのボタン
========================= */
.company-button-new {
  width: fit-content;
  min-width: 210px;
  min-height: 48px;
  margin-top: 24px;
  padding: 12px 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #68d8c8;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: none;
  transition: background 0.25s ease;
}

.company-button-new:hover {
  transform: none;
  background: #53c8b5;
}

/* =========================
   お問い合わせ誘導
========================= */
.company-contact-section {
  padding: 96px 28px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-contact-box {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 46px 34px;
  text-align: center;
  background:
    radial-gradient(circle at 8% 15%, rgba(208, 245, 250, 0.72), transparent 36%),
    linear-gradient(135deg, rgba(228, 249, 252, 0.82), rgba(226, 253, 242, 0.78));
  border: 1px solid rgba(135, 211, 207, 0.22);
  border-radius: 30px;
  box-shadow: none;
}

.company-contact-box h2 {
  margin-bottom: 16px;
  color: #23443f;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
}

.company-contact-box p:not(.section-label) {
  color: #607b78;
  font-weight: 600;
  line-height: 1.9;
}

.company-contact-buttons {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.company-back-link {
  min-height: 48px;
  padding: 12px 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #238b78;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(135, 211, 207, 0.38);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: none;
  transition: background 0.25s ease;
}

.company-back-link:hover {
  transform: none;
  background: #ffffff;
}

/* =========================
   ボタン全体：浮かせない
========================= */
.button-primary,
.button-primary:hover,
.service-link,
.service-link:hover,
.company-button-new,
.company-button-new:hover,
.company-back-link,
.company-back-link:hover {
  box-shadow: none !important;
  transform: none !important;
}

/* =========================
   タブレット表示
========================= */
@media (max-width: 900px) {
  .service-photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 38px 20px;
  }

  .access-card-new {
    padding: 26px 22px;
    grid-template-columns: 1fr;
    gap: 28px;
    border-radius: 22px;
  }

  .access-map-new {
    height: 300px;
    min-height: 300px;
    border-radius: 16px;
  }

  .access-map-new iframe {
    height: 300px !important;
    min-height: 300px !important;
  }

  .access-row-new {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* =========================
   スマホ表示
========================= */
@media (max-width: 820px) {
  .four-photo-layout {
    grid-template-rows: 175px 175px;
  }

  .four-photo-logo {
    width: 130px;
    height: 130px;
  }

  .photo-menu-section {
    padding: 62px 20px 58px;
  }

  .photo-menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 18px;
  }

  .photo-circle {
    width: 112px;
    height: 112px;
  }

  .photo-menu-item p {
    font-size: 13px;
    line-height: 1.5;
  }

  .price-explain-section {
    padding: 72px 20px 78px;
  }

  .price-explain-section .section-heading {
    margin-bottom: 34px;
  }

  .sp-only {
    display: block;
  }

  .price-simple-grid {
    max-width: 100%;
    margin-bottom: 24px;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .price-simple-item {
    padding: 18px 6px 16px;
    border-radius: 18px;
  }

  .price-simple-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 10px;
  }

  .price-simple-item h3 {
    font-size: 12.5px;
    line-height: 1.45;
  }

  .price-simple-text {
    max-width: 360px;
    margin-bottom: 26px;
    font-size: 15px;
    line-height: 2;
  }

  .price-formula-simple {
    max-width: 360px;
    grid-template-columns: 1fr 40px 1fr;
    gap: 8px;
  }

  .price-formula-item {
    padding: 20px 8px 18px;
    border-radius: 22px;
  }

  .price-formula-icon {
    width: 76px;
    height: 76px;
    margin-bottom: 10px;
  }

  .price-formula-item h3 {
    font-size: 18px;
  }

  .price-formula-plus {
    width: 40px;
    height: 40px;
    font-size: 25px;
  }

  .service {
    padding: 72px 20px 78px;
  }

  .service-photo-grid {
    position: relative;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 18px;
    padding-bottom: 0;
  }

  .service-photo-grid:has(.service-photo-card[open]) {
    padding-bottom: 560px;
  }

  .service-photo-card {
    padding: 0;
    text-align: center;
  }

  .service-photo-circle {
    width: 112px;
    height: 112px;
    margin: 0 auto 14px;
  }

  .service-photo-card h3 {
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.5;
  }

  .service-more {
    font-size: 13px;
  }

  .service-photo-card[open] {
    grid-column: auto;
  }

  .service-photo-card[open] .service-detail {
    position: absolute;
    left: 0;
    right: 0;
    top: 420px;
    width: 100%;
    max-width: 100%;
    min-height: auto;
    margin: 0 auto;
    padding: 24px 20px;
    text-align: left;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(135, 211, 207, 0.30);
    border-radius: 24px;
    box-shadow: none;
  }

  .flow {
    padding: 70px 18px;
  }

  .flow-timeline {
    max-width: 100%;
    margin-top: 46px;
    transform: none;
  }

  .flow-timeline::before {
    top: 39px;
    left: 39px;
    width: 2px;
    height: calc(100% - 78px);
  }

  .flow-timeline::after {
    top: 39px;
    left: 39px;
    width: 2px;
    max-height: calc(100% - 78px);
  }

  .flow-step {
    grid-template-columns: 78px 1fr;
    gap: 18px;
    padding-bottom: 44px;
  }

  .flow-illust {
    width: 78px;
    height: 78px;
  }

  .flow-illust img {
    transform: scale(1.45);
  }

  .flow-step-text {
    padding-top: 5px;
  }

  .flow-step-text h3 {
    margin-bottom: 6px;
    font-size: 17px;
    line-height: 1.45;
  }

  .flow-step-text p {
    font-size: 13px;
    line-height: 1.7;
    font-weight: 600;
  }

  .company-contact-section {
    padding: 72px 20px;
  }

  .company-contact-box {
    padding: 40px 22px;
  }
}

@media (max-width: 700px) {
  .company-contact-buttons {
    flex-direction: column;
  }

  .company-contact-buttons .button-primary,
  .company-back-link {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 390px) {
  .price-simple-item h3 {
    font-size: 11.5px;
  }

  .price-simple-icon {
    width: 50px;
    height: 50px;
  }

  .price-formula-simple {
    grid-template-columns: 1fr 34px 1fr;
    gap: 6px;
  }

  .price-formula-plus {
    width: 34px;
    height: 34px;
    font-size: 21px;
  }

  .price-formula-item h3 {
    font-size: 16px;
  }

  .service-photo-circle {
    width: 104px;
    height: 104px;
  }

  .service-photo-card h3 {
    font-size: 14px;
  }

  .service-more {
    font-size: 12px;
  }

  .flow-step {
    grid-template-columns: 68px 1fr;
    gap: 14px;
    padding-bottom: 40px;
  }

  .flow-timeline::before {
    top: 34px;
    left: 34px;
    height: calc(100% - 68px);
  }

  .flow-timeline::after {
    top: 34px;
    left: 34px;
    max-height: calc(100% - 68px);
  }

  .flow-illust {
    width: 68px;
    height: 68px;
  }

  .flow-step-text h3 {
    font-size: 16px;
  }

  .flow-step-text p {
    font-size: 12.5px;
  }
}
