@charset "UTF-8";
/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  --color-primary: #FFF300;
  --color-ink: #2D2D2D;
  --color-ink-dark: #1F1F1F;
  --color-accent: #CEA519;
  --color-error: #C0392B;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F7F7F7;
  --color-bg-error: #FD7668;
  --color-muted: #777777;
  --color-border: #C9D2D0;
  
  --font-jp: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-en: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --lh-body: 1.8;
  --lh-heading: 1.4;
  --content-width: 1032px;
  --section-padding: 72px;
  --radius-card: 16px;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, .06);
  --shadow-card-hover: 0 10px 28px rgba(0, 0, 0, .12);
  --shadow-btn: 0 2px 8px rgba(0, 0, 0, .16);
  --shadow-btn-hover: 0 8px 20px rgba(0, 0, 0, .24);
}
/* ==========================================================================
   2. Reset / Base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body,
h1, h2, h3, p, figure, dl, dd, ol, ul {
  margin: 0;
  padding: 0;
}
ol, ul { list-style: none; }
[hidden] { display: none !important; }
img {
  display: block;
  max-width: 100%;
  height: auto;
}
body {
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 16px;
  line-height: var(--lh-body);
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 {
  line-height: var(--lh-heading);
  font-weight: 700;
}
a { color: inherit; }
:focus-visible {
  outline: 3px solid var(--color-ink);
  outline-offset: 3px;
}

/* ==========================================================================
   3. Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: 36px;
}
.section {
  padding-block: var(--section-padding);
}
.section--service { background: var(--color-bg); }
.section--about   { background: var(--color-bg-alt); }
.section--contact { background: var(--color-bg); }
/* ==========================================================================
   4. Components
   ========================================================================== */
/* --- Button --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-ink);
  background: linear-gradient(
    120deg,
    var(--color-ink) 0%,
    var(--color-ink) 66%,
    var(--color-ink-dark) 66%
  );
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  padding: 18px 24px;
  border-radius: 999px;
  box-shadow: var(--shadow-btn);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn--sm {
  font-size: 14px;
  padding: 12px 26px;
}
.btn--hero {
  width: 240px;
  padding-inline: 24px;
}
@media (hover: hover) {
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn-hover);
  }
}
/* --- Section head --- */
.section-head { text-align: center; }
.section-label {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .08em;
  color: var(--color-accent);
  margin-bottom: 6px;
}
.section-title {
  font-size: 30px;
  letter-spacing: .04em;
}
.section-lead {
  margin-top: 24px;
  font-size: 16px;
}
.section-lead--narrow {
  max-width: 540px;
  margin-inline: auto;
}
.section-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--color-muted);
}
/* ==========================================================================
   5. Header
   ========================================================================== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}
.site-header__inner {
  max-width: var(--content-width);
  margin-inline: auto;
  padding: 24px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}
.logo {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--color-ink);
}
/* ==========================================================================
   6. Hero
   ========================================================================== */
.hero {
  position: relative;
  background: var(--color-primary);
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding-block: 72px;
}
.hero__title {
  font-size: 36px;
  letter-spacing: .02em;
}
.hero__lead {
  max-width: 420px;
  margin-top: 24px;
  font-size: 15px;
}
.hero__text .btn--hero { margin-top: 24px; }
.hero-visual {
  position: relative;
  aspect-ratio: 520 / 380;
  width: 100%;
}
.hero-obj {
  position: absolute;
  z-index: 2;
}
.hero-obj img { width: 100%; }
.hero-obj--wrench {
  left: 2%;
  bottom: 10%;
  width: 40%;
}
.hero-obj--sparkle {
  left: 30%;
  bottom: 24%;
  width: 40%;
  z-index: 1;
}
.hero-obj--hammer {
  right: 6%;
  bottom: 10%;
  width: 40%;
}
.hero-obj__float {
  transform-origin: 50% 50%;
  will-change: transform;
}
/* --- Hero visual: shadow --- */
.hero-obj__shadow {
  position: absolute;
  left: 50%;
  bottom: var(--shadow-bottom, -18px);
  width: var(--shadow-w, 74%);
  transform: translateX(calc(-50% + var(--shadow-x, 0px)));
  z-index: -1;
}
.hero-obj__shadow-inner {
  display: block;
  width: 100%;
  height: 24px;
  background: rgba(120, 105, 0, .55);
  border-radius: 50%;
  filter: blur(12px);
  opacity: .5;
}
.hero-obj--wrench  { --shadow-x: -18px; --shadow-w: 60%; --shadow-bottom: -24px; }
.hero-obj--sparkle .hero-obj__shadow { display: none; }
.hero-obj--hammer  { --shadow-x: 48px; --shadow-w: 60%; --shadow-bottom: -24px; }
/* ==========================================================================
   7. Service
   ========================================================================== */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.service-card__title {
  font-size: 18px;
  letter-spacing: .02em;
}
.service-card__num {
  font-family: var(--font-en);
  font-weight: 700;
  margin-right: 6px;
}
.service-card__img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin: 24px auto 0;
}
/* ==========================================================================
   8. About
   ========================================================================== */
.about-body {
  max-width: 600px;
  margin: 36px auto 0;
}
.about-list__row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding-block: 18px;
}
.about-list__row + .about-list__row { border-top: 1px solid rgba(26, 26, 26, .08); }
.about-list dt {
  font-weight: 700;
  font-size: 15px;
}
.about-list dd { font-size: 15px; }

/* ==========================================================================
   contact form
   ========================================================================== */
.contact__form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
  margin: 36px auto 0;
  gap: 24px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field__label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
}
.field__badge {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 6px;
  border-radius: 3px;
  background: var(--color-bg-error);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
.field__input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field__input--area {
  resize: vertical;
  min-height: 120px;
}
.field__input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-ink) 10%, transparent);
}
.field__input[aria-invalid="true"] {
  border-color: var(--color-error);
}
.field__error {
  margin: 0;
  color: var(--color-error);
  font-size: 13px;
  line-height: 1.6;
}
.field__error:empty {
  display: none;
}
.field-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.contact__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border: none;
  border-radius: 8px;
  background: var(--color-ink);
  background: linear-gradient(
    120deg,
    var(--color-ink) 0%,
    var(--color-ink) 66%,
    var(--color-ink-dark) 66%
  );
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s ease;
}
.contact__submit:hover {
  opacity: .88;
}
.contact__submit:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.contact__status {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}
.contact__status--error {
  color: var(--color-error);
}
.contact__note {
  text-align: center;
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;  
}
.contact__done {
  width: 100%;
  max-width: 600px;
  margin: 36px auto 0;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg-alt);
  line-height: 1.8;
}
.contact__done-title {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}

/* ==========================================================================
   Legal page (privacy policy)
   ========================================================================== */
.page-head {
  background: var(--color-primary);
  padding-block: 132px 48px;
  text-align: center;
}
.page-head__title {
  font-size: 30px;
  letter-spacing: .04em;
}
.legal {
  max-width: 720px;
  margin-inline: auto;
  font-size: 15px;
}
.legal__intro {
  margin-bottom: 48px;
}
.legal__block + .legal__block {
  margin-top: 48px;
}
.legal__title {
  font-size: 18px;
  letter-spacing: .02em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(26, 26, 26, .08);
}
.legal__block p + p {
  margin-top: 18px;
}
.legal__list {
  margin: 12px 0 0;
  padding-left: 1.2em;
  list-style: disc;
}
.legal__list li {
  margin-top: 4px;
}
.legal__dl-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 12px;
  padding-block: 12px;
}
.legal__dl-row + .legal__dl-row {
  border-top: 1px solid rgba(26, 26, 26, .08);
}
.legal__dl dt {
  font-weight: 700;
}
.legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal__date {
  margin-top: 48px;
  color: var(--color-muted);
  font-size: 14px;
}
.legal__back {
  margin-top: 36px;
  text-align: center;
}

/* ==========================================================================
   9. Footer
   ========================================================================== */

   .site-footer {
  background: var(--color-ink);
  color: #fff;
  padding-block: 24px;
  }
  
  .site-footer__nav {
    text-align: center;
    margin-bottom: 12px;
  }

  .site-footer__nav a {
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    transition: color .2s ease;
  }

  @media (hover: hover) {
    .site-footer__nav a:hover {
      color: var(--color-primary);
    }
  }

  .site-footer__copy {
    text-align: center;
    font-size: 14px;
  }

/* ==========================================================================
   10. Animations
   ========================================================================== */
/* --- ヒーローの3Dオブジェクト：ロード時 --- */
.hero-obj__enter,
.hero-obj__shadow {
  opacity: 0;
  animation: load-scale .7s cubic-bezier(.2, .7, .3, 1) var(--enter-delay, 0ms) forwards;
}
@keyframes load-scale {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}
/* 影は translateX を保持したままフェードインさせる */
.hero-obj__shadow {
  animation-name: load-shadow;
}
@keyframes load-shadow {
  from { opacity: 0; transform: translateX(calc(-50% + var(--shadow-x, 0%))) scale(.94); }
  to   { opacity: 1; transform: translateX(calc(-50% + var(--shadow-x, 0%))) scale(1); }
}
.hero-obj--wrench  { --enter-delay: 200ms; }
.hero-obj--sparkle { --enter-delay: 320ms; }
.hero-obj--hammer  { --enter-delay: 440ms; }
/* --- ヒーローの3Dオブジェクト：フロート（振幅・周期・位相をすべて変える） --- */
.hero-obj--wrench .hero-obj__float {
  animation: float-wrench 4.2s ease-in-out 0s infinite alternate;
}
.hero-obj--sparkle .hero-obj__float {
  animation: float-sparkle 3.4s ease-in-out -.8s infinite alternate;
}
.hero-obj--hammer .hero-obj__float {
  animation: float-hammer 4.8s ease-in-out -1.5s infinite alternate;
}
@keyframes float-wrench {
  from { transform: translateY(0); }
  to   { transform: translateY(-8px); }
}
@keyframes float-sparkle {
  from { transform: translateY(0) rotate(-3deg); }
  to   { transform: translateY(-5px) rotate(3deg); }
}
@keyframes float-hammer {
  from { transform: translateY(0); }
  to   { transform: translateY(-6px); }
}
/* スパークルのみ、ゆっくり明滅（フロートとはレイヤーを分ける） */
.hero-obj--sparkle img {
  animation: sparkle-blink 2.6s ease-in-out 0s infinite alternate;
}
@keyframes sparkle-blink {
  from { opacity: .85; }
  to   { opacity: 1; }
}
/* --- 影の連動（オブジェクトと同じ周期・同じ delay） --- */
.hero-obj--wrench .hero-obj__shadow-inner {
  animation: shadow-pulse 4.2s ease-in-out 0s infinite alternate;
}
.hero-obj--hammer .hero-obj__shadow-inner {
  animation: shadow-pulse 4.8s ease-in-out -1.5s infinite alternate;
}
@keyframes shadow-pulse {
  from { transform: scale(1);   opacity: .5; }
  to   { transform: scale(.92); opacity: .35; }
}

/* ==========================================================================
   11. Responsive
   ========================================================================== */
@media screen and (max-width: 768px) {

  :root { --section-padding: 48px; }
  .container { padding-inline: 24px; }
  .site-header__inner { padding: 12px 18px; }
  .logo { font-size: 18px; }
  .site-header .btn--sm { display: none; }
  .hero {
    min-height: 0;
    height: auto;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-block: 72px 36px;
  }

  .hero__text { text-align: center; }
  .hero__title { font-size: 30px; }
  .hero__lead {
    font-size: 14px;
    margin-top: 24px;
    margin-inline: auto;
  }

  .br-pc { display: none; }
  .hero__text .btn--hero {
    margin-top: 24px;
    width: 100%;
    max-width: 240px;
  }

  .hero-visual {
    max-width: 360px;
    margin-inline: auto;
  }

  .hero-obj__shadow-inner { height: 18px; filter: blur(9px); }
  .section-title { font-size: 24px; }
  .section-lead { font-size: 15px; }
  .service-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-top: 36px;
  }

  .service-card { padding: 18px; }
  .service-card__img { width: 160px; height: 160px; }
  .about-body { margin-top: 36px; }
  .about-list__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding-block: 18px;
  }

    .page-head {
    padding-block: 96px 36px;
  }
  .page-head__title { font-size: 24px; }
  .legal__dl-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

}
/* ==========================================================================
   12. prefers-reduced-motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}