@charset "UTF-8";

/* =============================================
   RESET & BASE
   ============================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 🎨 COLOR & THEME */
  --color-black: #000;
  --color-white: #fff;
  --color-primary: #223d2e;
  --color-secondary: #e63946;
  --color-bg-pattern: #e0e5e0;

  /* 📐 LAYOUT & SIZE */
  --in-size: 90%;
  --wrapper-gutter: 5%;
  --header-height: 52px;
  --radius: 12px;

  /* 🔠 FONT SCALE */
  --fs-2xs: clamp(1.2rem, 0.8vw, 1.6rem);
  --fs-xs: clamp(1.4rem, 0.6vw + 0.9rem, 1.7rem);
  --fs-sm: clamp(1.5rem, 1.2vw + 0.6rem, 1.8rem);
  --fs-md: clamp(1.6rem, 2vw, 2.4rem);
  --fs-lg: clamp(1.8rem, 0.9vw + 1.1rem, 2.6rem);
  --fs-xl: clamp(2.2rem, 2vw + 1rem, 4.8rem);
  --fs-nav: clamp(1.8rem, -0.6vw + 2.6rem, 2.4rem);

  /* 📏 SPACING SCALE */
  --space-2xs: clamp(0.4rem, 0.4vw, 0.8rem);
  --space-xs: clamp(0.8rem, 0.6vw, 1.2rem);
  --space-sm: clamp(1.2rem, 1vw, 1.6rem);
  --space-md: clamp(1.6rem, 1.5vw, 2.4rem);
  --space-lg: clamp(2.4rem, 2vw, 3.2rem);

  /* 🧱 SECTION PADDING */
  --section-padding-block: clamp(60px, 8vw, 100px);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  color: var(--color-black);
  font-family:
    "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    Meiryo, sans-serif;
  line-height: 1.8;
}

/* セクション共通 */
section {
  padding-block: var(--section-padding-block);
  width: 100%;
}

/* 共通ラッパー */
.wrapper {
  width: min(100%, 1200px);
  margin-inline: auto;
  padding: 0 var(--wrapper-gutter);
}

.sp-none {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

[class$="-tit"] {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-lg);
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* =============================================
   🏞️ HEADER & HERO
   ============================================= */
.header {
  width: 100%;
  padding: 10px 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 500;
  background-color: transparent;
  transition:
    background-color 0.3s ease,
    padding 0.3s ease,
    box-shadow 0.3s ease;
}
.header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 5px 0;
}
.header-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
.header-tit {
  width: 70px;
  margin-bottom: 0;
}
.header-tit-logo img {
  width: auto;
}

/* スマホ用の基本設定（黒文字） */
.header-nav-list a {
  color: var(--color-black);
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease; /* 色の変化を滑らかに */
}

/* Hero Section */
.hero {
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 9;
  background: rgba(0, 0, 0, 0.2);
  animation: breathing 2s ease-in-out infinite alternate;
}
@keyframes breathing {
  0% {
    background-color: rgba(0, 0, 0, 0.2);
  }
  100% {
    background-color: rgba(0, 0, 0, 0.5);
  }
}
.hero-tit {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  z-index: 100;
  text-align: center;
  color: #fff;
  font-size: var(--fs-xl);
}
.hero-swiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =============================================
   📄 SECTIONS
   ============================================= */

/* --- Reason --- */
.reason {
  background-color: #fdfdfd;
  background-image:
    radial-gradient(
      circle at 50% 100%,
      transparent 12px,
      var(--color-bg-pattern) 13px,
      var(--color-bg-pattern) 14px,
      transparent 15px
    ),
    radial-gradient(
      circle at 50% 0%,
      transparent 12px,
      var(--color-bg-pattern) 13px,
      var(--color-bg-pattern) 14px,
      transparent 15px
    );
  background-size: 40px 40px;
  background-position:
    0 0,
    20px 20px;
  margin-inline: 0;
  border-radius: 0;
  overflow: visible;
}
.reason-txt-box {
  max-width: 800px;
  margin-inline: auto;
  text-align: left;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(2px);
  padding: var(--space-md);
  border-radius: var(--radius);
}
.reason-txt {
  font-size: var(--fs-md);
  line-height: 2;
}
.reason-txt + .reason-txt {
  margin-top: var(--space-md);
}

/* --- Services --- */
.services {
  background-color: #f9f9f9;
}
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}
.services-list > li {
  background: var(--color-white);
  padding: var(--space-md);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  text-align: center;
}
@media (hover: hover) {
  .services-list > li:hover {
    transform: translateY(-5px);
  }
}
.services-list-fig img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-inline: auto;
  margin-bottom: var(--space-sm);
  display: block;
}
.services-list-tit {
  font-size: var(--fs-lg);
  text-align: center;
  margin-top: var(--space-sm);
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
  padding-bottom: 4px;
}

/* --- Case --- */
.case-one {
  border: 1px solid #eee;
  padding: var(--space-md);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 6rem;
}
.case-one:last-child {
  margin-bottom: 0;
}
.case-one-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-md);
  border-bottom: 1px solid #eee;
  padding-bottom: var(--space-sm);
}
.case-one-infoTit {
  font-size: var(--fs-lg);
  color: var(--color-black);
}
.case-one-infoSeason {
  color: #666;
  font-size: var(--fs-sm);
}
.case-one-photo {
  margin-bottom: var(--space-lg);
}
.case-one-photoMain img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: var(--space-xs);
  transition: opacity 0.3s ease;
  opacity: 1;
}
.case-one-photoMain img.fade-out {
  opacity: 0.6;
}
.case-one-photoSub {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2xs);
}
.case-one-photoSub img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  box-sizing: border-box;
  transition: all 0.2s ease;
  opacity: 0.7;
}
.case-one-photoSub img:hover {
  opacity: 1;
}
.case-one-photoSub img.is-active {
  border-color: var(--color-secondary);
  opacity: 1;
  pointer-events: none;
}
.case-one-contentMain {
  background: #f0f8f9;
  padding: var(--space-md);
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
}
.case-one-contentMainPrice {
  font-size: var(--fs-md);
  color: var(--color-secondary);
  font-weight: bold;
  margin-bottom: var(--space-xs);
}
.case-one-contentMainPrice strong {
  font-size: var(--fs-xl);
  margin-left: 0.2em;
}

/* --- Error / Not Found (index.php など) --- */
#main .error-page-box {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--section-padding-block) var(--wrapper-gutter);
  text-align: center;
}
.error-page-txt {
  font-size: var(--fs-md);
  color: var(--color-black);
  margin-bottom: var(--space-md);
}
.error-page-guide {
  font-size: var(--fs-sm);
  color: #555;
}
.error-page-guide a {
  color: var(--color-primary);
  font-weight: bold;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.error-page-guide a:hover {
  opacity: 0.8;
}

/* --- About & Contact --- */
.cmn-table {
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
  border-top: 1px solid #ddd;
}
.cmn-table th,
.cmn-table td {
  padding: var(--space-sm);
  border-bottom: 1px solid #ddd;
  font-size: var(--fs-sm);
}
.cmn-table th {
  background: #f9f9f9;
  width: 30%;
  font-weight: normal;
  text-align: left;
}
.input-txt,
.input-email,
.input-tel,
.input-textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  font-size: 16px;
}
.input-textarea {
  height: 12rem;
}
.input-checkbox-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}
.input-checkbox-list label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.input-submmit {
  display: block;
  width: min(100%, 300px);
  margin: var(--space-lg) auto 0;
  padding: 1em;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: bold;
  font-size: var(--fs-md);
  border-radius: 50px;
  transition: opacity 0.3s;
}
.input-submmit:hover {
  opacity: 0.8;
}

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 12;
  background: #333;
  color: #fff;
  padding-block: var(--space-lg);
  text-align: center;
}
.footer-tit-logo img {
  width: 100%;
  max-width: 80px;
  height: auto;
  margin-inline: auto;
}
.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-block: var(--space-md);
}
.footer-nav-list a {
  text-decoration: none;
  font-weight: normal;
}
.footer-small {
  display: block;
  margin-top: var(--space-lg);
  font-size: var(--fs-xs);
  opacity: 0.7;
}
.float-tel {
  position: fixed;
  right: 0;
  bottom: -1px;
  z-index: 11;
  width: 150px;
  transition: bottom 0.1s ease-out;
}

/* =============================================
   📱 MOBILE LAYOUT (max-width: 820px)
   ============================================= */
@media screen and (max-width: 820px) {
  .hero-swiper {
    height: 100vh;
  }
  .cmn-table,
  .cmn-table tbody,
  .cmn-table tr,
  .cmn-table th,
  .cmn-table td {
    display: block;
    width: 100%;
  }
  .cmn-table th {
    background: #eee;
    border-bottom: none;
  }
  .cmn-table td {
    padding-top: var(--space-xs);
  }

  /* Drawer */
  .header-nav {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(84vw, 320px);
    background: var(--color-white);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    transform: translateX(-100%);
    opacity: 0;
    transition:
      transform 0.22s ease,
      opacity 0.18s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
  }
  .header-nav[data-open="true"] {
    transform: translateX(0);
    opacity: 1;
  }
  .header-nav-list {
    list-style: none;
    margin: 0;
    padding: 16px;
  }
  .header-nav-list a {
    display: block;
    padding: var(--space-sm) var(--space-xs);
    font-size: var(--fs-nav);
  }

  /* Backdrop */
  .header-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
    z-index: 999;
  }
  .header-backdrop[data-open="true"] {
    opacity: 1;
    pointer-events: auto;
  }

  /* Hamburger */
  .header-nav-toggle {
    color: var(--color-white);
    position: relative;
    z-index: 1001;
    min-width: 28px;
    min-height: 32px;
    padding: 0;
  }
  .header-nav-toggle .icon .line {
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    transition:
      transform 200ms ease,
      opacity 200ms ease;
    transform-origin: 12px 12px;
  }
  .header.is-scrolled .header-nav-toggle {
    color: var(--color-black);
  }
  .header-nav-toggle[aria-expanded="true"] {
    color: var(--color-black) !important;
  }
  .header-nav-toggle[aria-expanded="true"] .line1 {
    transform: translateX(5px) translateY(4px) rotate(45deg);
  }
  .header-nav-toggle[aria-expanded="true"] .line2 {
    opacity: 0;
  }
  .header-nav-toggle[aria-expanded="true"] .line3 {
    transform: translateY(-6px) rotate(-45deg);
  }
  main > section:last-of-type {
    padding-bottom: 160px;
  }
}

/* =============================================
   💻 PC LAYOUT (min-width: 820px)
   ============================================= */
@media screen and (min-width: 820px) {
  .header-nav-toggle {
    display: none;
  }

  /* --- Header --- */
  .header-nav {
    position: static;
    transform: none;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    width: auto;
    display: block;
    z-index: auto;
  }
  .header-nav-list {
    display: flex;
    gap: var(--space-md);
    padding: 0;
  }

  /* ★PC用のメニュー文字色設定 */
  .header-nav-list a {
    /* 初期状態：白 */
    color: var(--color-white);
    padding: 0;
    font-size: var(--fs-sm);
    position: relative;
  }
  /* ★スクロールしてヘッダーが白くなったら：黒 */
  .header.is-scrolled .header-nav-list a {
    color: var(--color-black);
  }

  /* ホバーアニメーション */
  .header-nav-list a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s;
  }
  .header-nav-list a:hover::after {
    width: 100%;
  }

  /* --- Services (3 Columns) --- */
  .services-list {
    grid-template-columns: repeat(3, 1fr);
  }

  /* --- Case Study (2 Columns) --- */
  .case-one {
    display: grid;
    grid-template-columns: 45% 1fr;
    gap: var(--space-lg);
    align-items: start;
    grid-template-areas: "head head" "img info";
  }
  .case-one-info {
    grid-area: head;
    margin-bottom: var(--space-sm);
    border-bottom: 2px solid #eee;
  }
  .case-one-photo {
    grid-area: img;
    margin-bottom: 0;
  }
  .case-one-photoSub {
    grid-template-columns: repeat(5, 1fr);
  }
  .case-one-content {
    grid-area: info;
    display: block;
  }
  .case-one-contentMain,
  .case-one-contentSubDetail,
  .case-one-contentSubVoice {
    margin-bottom: var(--space-md);
  }
  .case-one-contentSub {
    display: block;
  }
  .float-tel {
    width: 15vw;
  }
}

@media (min-width: 820px) {
  /* float-telの中にあるaタグに対して */
  .float-tel a {
    pointer-events: none; /* クリックそのものを無効化 */
    cursor: default; /* マウスカーソルを指マークにしない */
  }
}

.grecaptcha-badge {
  display: none;
}
