/* ----- 下層ページ共通 ----- */
body.is-subpage {
  font-size: 2.05rem;
}

body.is-subpage .news_list li {
  font-size: 1.7rem;
}

.site_id a {
  display: block;
}
.site_id a:hover,
.site_id a:focus-visible {
  opacity: 1;
}

.page-hero {
  position: relative;
  display: flex;
  justify-content: center;
  padding: clamp(96px, 14vw, 144px) 4% clamp(80px, 12vw, 120px);
  text-align: center;
  background: transparent;
  border-bottom: none;
  overflow: hidden;
}
.page-hero__perspective {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: clamp(200px, 34vw, 400px);
  transform: translate(calc(-93% - clamp(14px, 2.2vw, 32px)), -50%);
  pointer-events: none;
}
.page-hero__perspective-img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.58;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(
    ellipse 80% 74% at 52% 50%,
    #000 24%,
    rgba(0, 0, 0, 0.58) 54%,
    transparent 76%
  );
  mask-image: radial-gradient(
    ellipse 80% 74% at 52% 50%,
    #000 24%,
    rgba(0, 0, 0, 0.58) 54%,
    transparent 76%
  );
}
.page-hero__inner {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: min(92%, var(--layout-max));
  max-width: var(--layout-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.page-hero__eyebrow {
  margin: 0 0 clamp(10px, 2vw, 14px);
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--logo-mint);
}
.page-hero__title {
  margin: 0;
  width: auto;
  max-width: 100%;
  font-size: clamp(2.25rem, 4.5vw, 3.15rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.05em;
  text-align: center;
  color: var(--text-main);
  -webkit-text-stroke: 2px #fff;
  paint-order: stroke fill;
  text-shadow:
    -1px -1px 0 #fff,
    1px -1px 0 #fff,
    -1px 1px 0 #fff,
    1px 1px 0 #fff,
    0 -1px 0 #fff,
    0 1px 0 #fff,
    -1px 0 0 #fff,
    1px 0 0 #fff,
    0 0 14px rgba(255, 255, 255, 0.85);
}
.page-hero__title-line {
  display: block;
  -webkit-text-stroke: inherit;
  paint-order: inherit;
  text-shadow: inherit;
}
.page-hero__title::after {
  content: "";
  display: block;
  width: min(100px, 18vw);
  height: 4px;
  margin: 16px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--logo-mint), var(--accent-green-mid));
}
@media (max-width: 35.99em) {
  .page-hero__perspective {
    width: clamp(160px, 44vw, 240px);
    transform: translate(calc(-87% - 12px), -50%);
  }
  .page-hero__perspective-img {
    opacity: 0.5;
  }
}
.page-hero__lead {
  margin: 20px 0 0;
  max-width: 720px;
  font-size: 1.75rem;
  line-height: 1.9;
  color: #3a403e;
}
.page-content {
  padding: clamp(40px, 6vw, 72px) 0;
}
.page-content .layout {
  max-width: var(--layout-max);
}

/* サービス内容（2×2グリッド・画像上に番号） */
.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 6vw, 64px);
  margin: 0 0 clamp(40px, 6vw, 56px);
}
@media (min-width: 56em) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(28px, 3.5vw, 44px);
    row-gap: clamp(44px, 5.5vw, 64px);
  }
}
.service-block {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  border: none;
}
.service-block__media {
  position: relative;
  container-type: inline-size;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0 0 clamp(14px, 2.5vw, 20px);
  line-height: 0;
  overflow: hidden;
  background: #e8ecea;
}
.service-block__num {
  position: absolute;
  left: clamp(4px, 1vw, 12px);
  bottom: 0;
  z-index: 2;
  margin: 0;
  font-size: 58cqi;
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.03em;
  color: var(--ivory);
  text-shadow: none;
  pointer-events: none;
  user-select: none;
}
.service-block__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.service-block__media--stack-3 .service-block__img {
  object-position: center top;
}
@supports not (font-size: 1cqi) {
  .service-block__num {
    font-size: 8.5rem;
  }
}
.service-block__title {
  margin: 0 0 clamp(12px, 2vw, 18px);
  font-size: clamp(2.25rem, 4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  color: #00997f;
}
.service-block__title-inner {
  display: inline-block;
  text-decoration: underline dotted #ffd54d;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 2px;
}
.service-block__content {
  min-width: 0;
  text-align: left;
}
.service-block__list {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  font-size: 1.75rem;
  line-height: 1.85;
  color: #2f3331;
}
.service-block__list li {
  position: relative;
  margin: 0 0 0.4em;
  padding-left: 1.15em;
}
.service-block__list li::before {
  content: "・";
  position: absolute;
  left: 0;
  font-weight: 700;
}
.service-block__body {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.9;
  color: #2f3331;
}
.service-note {
  margin: clamp(32px, 5vw, 48px) 0 0;
  padding: clamp(20px, 3vw, 28px);
  background: rgba(86, 185, 143, 0.12);
  border-left: 4px solid var(--logo-mint);
  border-radius: 0 10px 10px 0;
  font-size: 1.75rem;
  line-height: 1.85;
}

/* 工事の流れ（左画像・Stepラベル重なり） */
.flow-intro {
  margin: 0 0 clamp(36px, 5vw, 52px);
  font-size: 1.75rem;
  line-height: 1.95;
  color: #3a403e;
}
.flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.flow-step {
  --flow-media-inset: clamp(2.1rem, 5vw, 3.4rem);
  --flow-content-inset: clamp(3.6rem, 7.5vw, 5.2rem);
  --flow-step-shift: clamp(14px, 3.5vw, 28px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 3vw, 24px);
  margin: 0 0 clamp(44px, 6vw, 64px);
  padding: 0;
  border: none;
}
.flow-step:last-child {
  margin-bottom: 0;
}
.flow-step__visual {
  position: relative;
}
.flow-step__label {
  position: absolute;
  top: 0;
  left: calc(var(--flow-step-shift) * -0.35);
  z-index: 2;
  margin: 0;
  font-size: clamp(3.2rem, 9vw, 5.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: #00997f;
  pointer-events: none;
}
.flow-step__label-word {
  font-size: 0.58em;
  letter-spacing: 0.02em;
}
.flow-step__label-num {
  letter-spacing: -0.03em;
}
.flow-step__media {
  position: relative;
  z-index: 1;
  width: calc(100% - var(--flow-step-shift));
  margin: var(--flow-media-inset) 0 0 var(--flow-step-shift);
  aspect-ratio: 4 / 3;
  line-height: 0;
  overflow: hidden;
  background: #e8ecea;
}
.flow-step__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.flow-step__content {
  min-width: 0;
  padding-top: var(--flow-content-inset);
}
.flow-step__title {
  margin: 0 0 clamp(12px, 2vw, 18px);
  font-size: clamp(2rem, 3.5vw, 2.45rem);
  font-weight: 800;
  line-height: 1.45;
  color: #00997f;
}
.flow-step__title-inner {
  display: inline;
  text-decoration: underline solid #ffd54d;
  text-decoration-thickness: 0.16em;
  text-underline-offset: -0.06em;
}
.flow-step__body {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.9;
  color: #2f3331;
}
.flow-step__body a.flow-step__link {
  display: inline-block;
  margin-top: 0.35em;
  color: #00997f;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
.flow-step__body a.flow-step__link:hover,
.flow-step__body a.flow-step__link:focus-visible {
  color: #007a66;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  opacity: 1;
}
@media (min-width: 48em) {
  .flow-step {
    --flow-media-inset: clamp(2.4rem, 5.2vw, 3.6rem);
    --flow-content-inset: clamp(5rem, 9vw, 6.8rem);
    --flow-step-shift: clamp(18px, 4vw, 36px);
    grid-template-columns: minmax(260px, 42%) minmax(0, 1fr);
    column-gap: clamp(24px, 4vw, 44px);
    align-items: start;
  }
}
@media (max-width: 47.99em) {
  .flow-step__content {
    padding-top: clamp(12px, 3vw, 20px);
  }
}

/* 施工事例 */
.works-intro {
  margin: 0 0 clamp(28px, 4vw, 40px);
  font-size: 1.75rem;
  line-height: 1.9;
  color: #3a403e;
}
.works-list {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 64px);
}
.works-case {
  padding: clamp(22px, 3.5vw, 32px);
  background: #fff;
  border: 1px solid rgba(0, 153, 127, 0.16);
  border-radius: 14px;
  box-shadow: 0 10px 32px var(--shadow-green);
}
.works-case__title {
  margin: 0 0 clamp(16px, 2.5vw, 24px);
  padding-bottom: 12px;
  border-bottom: 2px solid #ffd54d;
  font-size: clamp(1.95rem, 3.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.45;
  color: var(--accent-green);
}
.works-case__photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.8vw, 14px);
}
@media (min-width: 48em) {
  .works-case__photos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 64em) {
  .works-case__photos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.works-case__photo {
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  background: var(--accent-green-pale);
}
.works-case__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 会社概要・代表者メッセージ（左画像・右テキスト） */
.company-message {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 36px);
  margin: 0 0 clamp(48px, 7vw, 72px);
  padding: 0;
  align-items: start;
}
.company-message__media {
  margin: 0;
  line-height: 0;
  overflow: hidden;
}
.company-message__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(72vh, 560px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center center;
}
.company-message__content {
  min-width: 0;
}
.company-message__title {
  margin: 0 0 clamp(18px, 3vw, 26px);
  padding-bottom: 0.35em;
  font-size: clamp(1.95rem, 3.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.45;
  color: #00997f;
  border-bottom: 2px solid #ffd54d;
}
.company-message__body {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.95;
  color: #2f3331;
}
.company-message__body p {
  margin: 0 0 1em;
}
.company-message__body p:last-child {
  margin-bottom: 0;
}
.company-message__sign {
  margin: clamp(20px, 3.5vw, 28px) 0 0;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.6;
  text-align: right;
  color: #00997f;
}
@media (min-width: 48em) {
  .company-message {
    grid-template-columns: minmax(300px, 42%) minmax(0, 1fr);
    column-gap: clamp(28px, 4vw, 48px);
    align-items: stretch;
  }
  .company-message__media {
    display: block;
    height: 100%;
    min-height: 100%;
  }
  .company-message__media img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: none;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center center;
  }
}
.company-table {
  width: 100%;
  border-collapse: collapse;
  margin: clamp(64px, 10vw, 96px) 0 clamp(40px, 6vw, 56px);
  border: 1px solid rgba(0, 153, 127, 0.28);
}
.company-table th,
.company-table td {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(0, 153, 127, 0.22);
  font-size: 1.75rem;
  line-height: 1.75;
  text-align: left;
  vertical-align: top;
}
.company-table th {
  width: 28%;
  background: rgba(255, 213, 77, 0.14);
  font-weight: 700;
  color: var(--accent-green);
}
.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: none;
}
.company-business-list {
  margin: 0;
  padding-left: 1.2em;
}
.company-business-list li {
  margin-bottom: 0.35em;
}
.company-business-list li:last-child {
  margin-bottom: 0;
}
.company-map {
  margin-top: clamp(20px, 3vw, 28px);
}
.company-instagram {
  margin-top: clamp(40px, 6vw, 56px);
  text-align: center;
}
.company-instagram__link {
  display: inline-block;
  line-height: 0;
  transition: opacity 0.2s ease;
}
.company-instagram__link:hover,
.company-instagram__link:focus-visible {
  opacity: 0.85;
}
.company-instagram__icon {
  display: block;
  width: clamp(40px, 7vw, 52px);
  height: auto;
}
.company-map__iframe {
  display: block;
  width: 100%;
  height: clamp(280px, 50vw, 420px);
  border: 0;
  border-radius: 14px;
}
.company-map__link-wrap {
  margin: 12px 0 0;
  padding: 0;
  text-align: center;
}
.company-map__link {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--accent-green);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.company-map__link:hover,
.company-map__link:focus-visible {
  opacity: 0.75;
}
.news-article__title {
  margin: 0.5em 0 1em;
  font-size: clamp(1.95rem, 3.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.45;
}
.news-article__body {
  font-size: 1.75rem;
  line-height: 1.9;
}
.news-article__back {
  margin-top: 2.5em;
  font-size: 1.65rem;
}
.news-pagination {
  margin-top: 2em;
  text-align: center;
  font-size: 1.65rem;
}
.news-pagination ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.placeholder-note {
  margin: 0 0 20px;
  padding: 14px 18px;
  background: rgba(255, 220, 88, 0.25);
  border-radius: 8px;
  font-size: 1.65rem;
  color: #5a5340;
}

/* お知らせ一覧 */
.news-page-panel .news_list li:nth-child(n + 4) {
  display: block;
}
.news-page-panel {
  max-width: 820px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 153, 127, 0.28);
  border-radius: 16px;
  border-top: 4px solid var(--logo-mint);
  box-shadow: 0 12px 40px rgba(40, 80, 65, 0.12);
  overflow: hidden;
}

/* プライバシーポリシー */
.privacy-policy {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 40px);
  background: #fff;
  border: 1px solid rgba(0, 153, 127, 0.16);
  border-radius: 14px;
  box-shadow: 0 10px 32px var(--shadow-green);
}
.privacy-policy__lead {
  margin: 0 0 28px;
  font-size: 1.75rem;
  line-height: 1.95;
  color: #3a403e;
}
.privacy-policy__section {
  margin: 0 0 28px;
}
.privacy-policy__section:last-of-type {
  margin-bottom: 20px;
}
.privacy-policy__heading {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(86, 185, 143, 0.35);
  font-size: clamp(1.75rem, 2.8vw, 2.05rem);
  font-weight: 800;
  line-height: 1.45;
  color: var(--accent-green);
}
.privacy-policy__section p {
  margin: 0 0 12px;
  font-size: 1.7rem;
  line-height: 1.9;
  color: #3a403e;
}
.privacy-policy__list,
.privacy-policy__olist {
  margin: 0 0 12px;
  padding-left: 1.4em;
  font-size: 1.7rem;
  line-height: 1.9;
  color: #3a403e;
}
.privacy-policy__list li,
.privacy-policy__olist li {
  margin-bottom: 0.35em;
}
.privacy-policy__section a {
  color: var(--logo-mint);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
}
.privacy-policy__section a:hover,
.privacy-policy__section a:focus-visible {
  color: var(--accent-green);
  opacity: 1;
}
.privacy-policy__contact {
  margin: 12px 0 0;
  padding: 16px 18px;
  background: rgba(86, 185, 143, 0.1);
  border-radius: 10px;
  font-size: 1.7rem;
  line-height: 1.85;
}
.privacy-policy__date {
  margin: 24px 0 0;
  font-size: 1.6rem;
  color: var(--accent-green-mid);
  text-align: right;
}

/* CTA帯 */
.page-cta {
  margin-top: clamp(40px, 6vw, 64px);
  padding: clamp(32px, 5vw, 48px);
  text-align: center;
  border: 2px solid transparent;
  border-radius: 14px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #ffd54d 0%, var(--logo-mint) 50%, #ffd54d 100%) border-box;
  box-shadow: 0 6px 28px rgba(74, 92, 86, 0.08);
}
.page-cta__text {
  margin: 0 0 20px;
  font-size: 1.75rem;
  line-height: 1.85;
  font-weight: 500;
}
.page-cta .button_main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: min(100%, 360px);
  min-height: 4.2rem;
  padding: 0 1.8rem;
  border: none;
  border-radius: 6px;
  background: var(--logo-mint);
  color: #fff !important;
  font-size: clamp(1.5rem, 3.4vw, 1.95rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: filter 0.3s ease;
}
.page-cta .button_main::before,
.page-cta .button_main::after {
  display: none;
}
.page-cta .button_main:hover,
.page-cta .button_main:focus-visible {
  opacity: 1;
  background: var(--logo-mint);
  color: #fff !important;
  filter: brightness(1.08);
}
@media (min-width: 64em) {
  .page-cta .button_main {
    min-height: 4.6rem;
    padding: 0 18px;
    font-size: 2rem;
  }
}
@media (max-width: 24.99em) {
  .page-cta .button_main {
    white-space: normal;
    padding: 12px 20px;
  }
}

/* スクロールで下からフェードイン（service / flow / works）— JS が .is-visible を付与 */
html.horiken-scroll-reveal.horiken-reveal-active .scroll_reveal_up {
  transition: opacity 1s ease, transform 1.1s cubic-bezier(0.18, 0.7, 0.2, 1);
}
html.horiken-scroll-reveal.horiken-reveal-active .scroll_reveal_up:not(.is-visible) {
  opacity: 0;
  transform: translateY(64px);
}
html.horiken-scroll-reveal.horiken-reveal-active .scroll_reveal_up.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
@media (prefers-reduced-motion: reduce) {
  html.horiken-scroll-reveal .scroll_reveal_up {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
