/* =========================
   基本設定
========================= */
:root {
  --green: #55cbb0;
  --green-dark: #238b78;
  --green-light: #e1faf4;
  --sky: #def6fb;
  --white: #ffffff;
  --text: #23443f;
  --text-light: #607b78;
  --border: rgba(135, 211, 207, 0.34);
  --shadow: 0 16px 40px rgba(44, 128, 121, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text);
  line-height: 1.8;
  background:
    radial-gradient(circle at 10% 12%, rgba(207, 246, 247, 0.55), transparent 28%),
    radial-gradient(circle at 90% 38%, rgba(218, 252, 240, 0.55), transparent 32%),
    #f9feff;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.4;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* =========================
   共通ボタン
========================= */
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  color: #ffffff;
  background: #6ed5c3;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: none;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    opacity 0.25s ease;
}

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

.button-primary:active {
  transform: none;
}

.line-button {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #06c755, #3ee27f) !important;
  box-shadow: none !important;
}

.line-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.42),
    transparent
  );
  transform: skewX(-20deg);
}

.line-button:hover::after {
  animation: buttonShine 0.75s ease;
}

@keyframes buttonShine {
  from {
    left: -80%;
  }

  to {
    left: 130%;
  }
}

/* =========================
   ヘッダー
========================= */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid rgba(83, 207, 178, 0.14);
  box-shadow: 0 4px 16px rgba(39, 116, 106, 0.05);
  transition:
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 86px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  width: 190px;
  height: 72px;
  transform: translateX(-18px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}

.site-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(1.45);
  transform-origin: left center;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}

.nav a {
  position: relative;
  min-height: 44px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #234943;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 12px;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

.nav a:hover {
  background: rgba(218, 250, 244, 0.95);
  color: #139b82;
}

.nav a:not(.nav-contact)::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 6px;
  height: 2px;
  background: linear-gradient(90deg, #55cbb0, #7ddbe6);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav a:not(.nav-contact):hover::after {
  transform: scaleX(1);
}

.nav .nav-contact {
  padding: 0 28px;
  background: #6ed5c3;
  color: #ffffff;
  border-radius: 999px;
  box-shadow: none;
}

.nav .nav-contact:hover {
  background: #53c8b5;
  color: #ffffff;
}

/* =========================
   共通セクション
========================= */
.section {
  padding: 92px 28px;
}

.section-heading {
  max-width: 730px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-label {
  margin-bottom: 9px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.section-heading h2 {
  margin-bottom: 17px;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
}

.section-heading > p:not(.section-label) {
  color: var(--text-light);
}

/* =========================
   フッター
========================= */
.footer {
  color: #ffffff;
  background: #23534d;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 28px 34px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 42px;
}

.footer-logo {
  min-width: 180px;
}

.footer-logo p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.footer-logo h2 {
  margin: 0;
  color: #ffffff;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
}

.footer-links-area {
  flex: 1;
  text-align: right;
}

.footer-nav,
.footer-policy {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 800;
  line-height: 2;
}

.footer-nav {
  margin-bottom: 12px;
}

.footer-policy {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
}

.footer-nav a,
.footer-policy a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.footer-nav a:hover,
.footer-policy a:hover {
  opacity: 0.7;
}

.footer-nav span,
.footer-policy span {
  color: rgba(255, 255, 255, 0.42);
}

.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding: 15px 28px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.70);
  font-size: 12px;
  font-weight: 600;
}

/* 固定ヘッダーで隠れないように */
#interior,
#exterior-wall,
#plaster,
#exterior,
#price,
#service,
#flow,
#access,
#contact {
  scroll-margin-top: 110px;
}

/* =========================
   共通：動きの整理
========================= */

/* ページ表示だけ少しなめらかに */
body {
  animation: pageFadeIn 0.7s ease both;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* リンク・ボタンの基本動作：浮かせない */
a,
button,
.button-primary,
.company-back-link,
.instagram-link,
.company-button-new,
.service-link {
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    opacity 0.25s ease,
    border-color 0.25s ease;
}

/* ボタンをhoverしても浮かせない */
.button-primary:hover,
.company-back-link:hover,
.instagram-link:hover,
.company-button-new:hover,
.service-link:hover {
  transform: none;
}

/* ボタンを押しても縮ませない */
.button-primary:active,
.company-back-link:active,
.instagram-link:active,
.company-button-new:active,
.service-link:active {
  transform: none;
}

/* トップページのカード・ボックスは浮かせない */
.price-simple-item,
.price-formula-item,
.flow-step,
.flow-step-text,
.flow-illust,
.access-card-new,
.company-contact-box,
.service-photo-card[open] .service-detail {
  transition: none !important;
}

.price-simple-item:hover,
.price-formula-item:hover,
.flow-step:hover,
.flow-step-text:hover,
.flow-illust:hover,
.access-card-new:hover,
.company-contact-box:hover,
.service-photo-card[open] .service-detail:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* 他ページ用カードだけ必要最低限で動かす */
.works-card,
.before-after-card,
.company-page-card,
.contact-page-card,
.policy-card,
.thanks-card {
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.works-card:hover,
.before-after-card:hover,
.company-page-card:hover,
.contact-page-card:hover,
.policy-card:hover,
.thanks-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(44, 128, 121, 0.14);
}

/* 写真ズームは施工事例ページ系だけ */
.works-card img,
.before-after-item img {
  transition: transform 0.35s ease;
}

.works-card:hover img,
.before-after-card:hover .before-after-item img {
  transform: scale(1.04);
}

/* トップの写真で見る施工事例は画像ズームさせない */
.photo-circle img {
  transition: none;
}

.photo-menu-item:hover .photo-circle img {
  transform: none;
}

/* フォーム入力中を分かりやすく */
input,
select,
textarea {
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

/* 動きが苦手な人の設定に配慮 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* =========================
   スマホ用ハンバーガーメニュー
========================= */
.menu-toggle {
  display: none;
}

/* =========================
   共通スマホ表示
========================= */
@media (max-width: 820px) {
  .header-inner {
    position: relative;
    min-height: 86px;
    padding: 12px 12px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }

  .site-logo {
    width: 190px;
    height: 64px;
    transform: translateX(-40px) translateY(4px);
  }

  .site-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.35);
    transform-origin: left center;
  }

  .menu-toggle {
    width: 46px;
    height: 46px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 26px;
    height: 3px;
    margin: 3px 0;
    display: block;
    background: #238b78;
    border-radius: 999px;
    transition: 0.25s ease;
  }

  .header.is-menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .header.is-menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .header.is-menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: calc(100% + 10px);
    z-index: 999;
    width: auto;
    padding: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(135, 211, 207, 0.34);
    border-radius: 22px;
    box-shadow: 0 18px 38px rgba(44, 128, 121, 0.16);
    overflow: visible;
  }

  .header.is-menu-open .nav {
    display: flex;
    animation: mobileMenuFade 0.25s ease both;
  }

  .nav a {
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
    justify-content: center;
    font-size: 14px;
    border-radius: 14px;
  }

  .nav .nav-contact {
    min-height: 48px;
    margin-top: 4px;
    padding: 0 18px;
  }

  .nav a:not(.nav-contact)::after {
    display: none;
  }

  .section {
    padding: 69px 20px;
  }

  .section-heading {
    margin-bottom: 35px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
    padding: 38px 22px 30px;
  }

  .footer-logo {
    min-width: auto;
  }

  .footer-logo h2 {
    font-size: 30px;
  }

  .footer-links-area {
    width: 100%;
    text-align: left;
  }

  .footer-nav,
  .footer-policy {
    justify-content: flex-start;
    gap: 6px 8px;
    line-height: 1.9;
  }

  .footer-bottom {
    padding: 14px 22px 16px;
    text-align: center;
  }

  .pc-only {
    display: none;
  }
}

@keyframes mobileMenuFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
