@charset "UTF-8";

/* =========================================================
   Variables
========================================================= */
:root {
  --color-bg: #f3f3f2;
  --color-text: #222;
  --color-accent: #6e1638; /* 紫寄りのワインレッド */
  --color-beige: #d9ccb9;
  --color-placeholder: #3b2c22;
  /* 和文：秀英角ゴシック銀（Adobe Fonts）／欧文：Zilla Slab（Google Fonts） */
  --font-ja: "dnp-shuei-gothic-gin-std", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "Zilla Slab", Georgia, serif;
  --container: 1000px;
  --gutter: 20px;
  --header-h: max(72px, 5.5vw); /* 左右の余白（5.5vw）とそろえる。狭い画面では72pxを確保 */
}

/* =========================================================
   Base
========================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-ja);
  font-size: 18px;
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.08em;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd { margin: 0; }

/* 画像未設置時は濃い色のボックスを表示 */
.img-box {
  position: relative;
  overflow: hidden;
  background: var(--color-placeholder);
}
.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-box img.is-error { visibility: hidden; }

.section { padding: 120px var(--gutter) 0; }

/* =========================================================
   Logo
========================================================= */
.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 136px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.02em;
  line-height: 1;
}

/* =========================================================
   Header
========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
}
.header__inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 5.5vw;
}
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 48px; }
.nav__list a {
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 600;
  font-size: 18px;
  color: var(--color-accent);
  letter-spacing: 0.04em;
  transition: opacity .3s;
}
.nav__list a:hover { opacity: .6; }

.header__insta {
  margin-left: 56px;
  color: var(--color-text);
  transition: opacity .3s;
}
.header__insta:hover { opacity: .6; }

.hamburger { display: none; }
.sp-only { display: none; }

/* =========================================================
   Hero
========================================================= */
.hero {
  position: relative;
  margin: 0 5.5vw;
}
/* 画面の高さいっぱい（下にヘッダーと同じ高さの余白を残して、上下をそろえる） */
.hero__img {
  height: max(360px, calc(100vh - var(--header-h) * 2));
  height: max(360px, calc(100svh - var(--header-h) * 2));
}
.hero__copy {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  writing-mode: vertical-rl;
  white-space: nowrap;
  color: #fff;
  font-size: clamp(26px, 2.9vw, 42px);
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-shadow: 0 0 12px rgba(0, 0, 0, .35);
}
.hero__copy span { display: block; }
.hero__copy span:last-child { margin-right: 0.4em; padding-top: 2.4em; }

/* ヒーロースライダー：じわっとフェード＋ゆっくりズーム */
.hero-slider__item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1);
  transition: opacity 2.4s ease;
}
.hero-slider__item.is-active {
  opacity: 1;
  animation: hero-zoom 6s linear forwards; /* JSの切り替え間隔と合わせる */
}
/* 切り替わり中の前の画像はズームしたまま消えていく */
.hero-slider__item.is-leaving { transform: scale(1.06); }
@keyframes hero-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

/* =========================================================
   Intro
========================================================= */
.intro {
  padding: 56px var(--gutter) 0;
  text-align: center;
}
.intro__text {
  position: relative;
  display: inline-block;
  font-size: 17px;
  font-weight: 500;
  line-height: 2.2;
}
.stamp {
  position: absolute;
  right: -46px;
  bottom: -6px;
  width: 30px;
  height: auto;
  transform: rotate(-4deg);
}

/* =========================================================
   Section title（墨のかすれ背景付き）
========================================================= */
.section-title {
  position: relative;
  text-align: center;
  margin-bottom: 48px;
  isolation: isolate;
}
.section-title::before {
  content: "";
  position: absolute;
  inset: -40px -20px;
  z-index: -1;
  margin: auto;
  width: 340px;
  max-width: 100%;
  background: url(../images/ink-01.jpg) center / contain no-repeat;
  mix-blend-mode: multiply;
}
.about .section-title::before {
  inset: -70px -20px -40px;
  width: 300px;
  background-image: url(../images/ink-02.jpg);
}
.section-title__en {
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 600;
  font-size: 21px;
  color: var(--color-accent);
  line-height: 1.4;
}
.section-title__ja {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.6;
}

/* =========================================================
   Service
========================================================= */
.service__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  max-width: 1040px; /* 写真を大きく見せるため 880→1040 */
  margin: 0 auto;
}
.service-card__img {
  aspect-ratio: 16 / 8.4;
}
.service-card__title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  writing-mode: vertical-rl;
  white-space: nowrap;
  color: #fff;
  font-size: clamp(22px, 1.9vw, 28px);
  font-weight: 600; /* キット内で一番太いウェイト */
  -webkit-text-stroke: 0.6px #fff; /* さらに太く見せる */
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-shadow: 0 0 12px rgba(0, 0, 0, .55);
}
.service-card__text {
  margin-top: 24px;
  font-size: 16px;
  text-align: center;
  line-height: 2;
  letter-spacing: 0.04em;
  word-break: auto-phrase; /* 文節で改行して1文字だけの行を防ぐ */
  text-wrap: balance;
}
/* 見積もり依頼ボックス（Aboutの吹き出しと同じ1pxの線で囲う） */
.estimate {
  word-break: auto-phrase;
  max-width: 560px;
  margin: 48px auto 0;
  padding: 36px 24px 32px;
  border: 1px solid #333;
  text-align: center;
}
.service__note {
  font-size: 22px;
  font-weight: 600;
  color: #111;
  text-align: center;
  line-height: 1.7;
}

/* 見積もり枠の下の代表の切り抜き */
/* 見積もり枠を吹き出しにして、下の阿部さんにつなげる */
.estimate { position: relative; }
.estimate::after { /* 吹き出しのしっぽ（Aboutの吹き出しと同じ形） */
  content: "";
  position: absolute;
  bottom: -14px;
  left: 50%;
  width: 18px;
  height: 14px;
  background: var(--color-bg);
  border-left: 1px solid #333;
  transform: skewX(-40deg);
  transform-origin: top left;
}
.estimate-figure {
  display: block;
  width: auto;
  height: 110px;
  margin: 36px auto 0;
}

/* 見積もり依頼ボタン */
.cta {
  margin-top: 24px;
  text-align: center;
}
.cta__lead {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1.6;
}
.cta__lead::before,
.cta__lead::after { /* ＼ ／ の斜線 */
  content: "";
  width: 1px;
  height: 14px;
  background: currentColor;
  transform: rotate(-30deg);
}
.cta__lead::after { transform: rotate(30deg); }
.cta__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 460px;
  max-width: 100%;
  padding: 16px 48px 16px 24px;
  white-space: nowrap;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  transition: background .3s;
}
.cta__btn:hover {
  background: #852047;
}
.cta__btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}
.cta__badge {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff;
  color: var(--color-accent);
  font-size: 15px;
  letter-spacing: 0.04em;
}
.cta__icon {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
}
.cta__tel {
  margin-top: 14px;
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 600;
  color: #111;
  letter-spacing: 0.1em;
}
.cta__tel a {
  font-size: 26px;
  font-weight: 600;
  color: var(--color-accent);
}
.cta__hours {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 600;
  color: #222;
}
.cta__note {
  margin-top: 10px;
  line-height: 1.9;
  font-size: 16px;
  font-weight: 600;
  color: #222;
}

/* =========================================================
   About
========================================================= */
.about__lead {
  position: relative;
  font-size: 16px;
  text-align: center;
  margin-top: -24px;
}
.about__subtitle {
  margin: 32px 0 16px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}
.items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 1040px;
  margin: 0 auto;
}
.item {
  position: relative;
  aspect-ratio: 1 / 0.98;
}
.item .img-box { height: 100%; }
.item span {
  text-shadow: 0 0 8px rgba(0, 0, 0, .5);
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  z-index: 1;
  color: #fff;
  font-size: 19px;
  font-weight: 600;
  text-align: center;
}

.balloon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 48px;
}
.balloon {
  position: relative;
  padding: 0 24px 12px;
  border: solid #333;
  border-width: 0 1px 1px;
  font-size: 15px;
  text-align: center;
  line-height: 1.9;
}
.balloon::after { /* 吹き出しのしっぽ */
  content: "";
  position: absolute;
  bottom: -14px;
  left: 50%;
  width: 18px;
  height: 14px;
  background: var(--color-bg);
  border-left: 1px solid #333;
  transform: skewX(-40deg);
  transform-origin: top left;
}
.balloon-figure {
  width: 34px;
  margin-top: 28px;
  margin-left: 40px;
}

/* =========================================================
   Open Garage
========================================================= */
.garage { padding-top: 160px; }
.garage__inner {
  position: relative;
  display: grid;
  grid-template-columns: 48% 1fr;
  max-width: 1040px;
  margin: 0 auto;
}
.garage__main { aspect-ratio: 1 / 1.22; }
.garage__en {
  position: absolute;
  top: 28%;
  left: 37%;
  z-index: 2;
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(28px, 3vw, 40px);
  color: var(--color-accent);
  line-height: 1;
  white-space: nowrap;
}
.garage__en-white {
  position: absolute;
  inset: 0;
  color: #fff;
  clip-path: inset(0 100% 0 0); /* JSで写真と重なる範囲に更新 */
}
.garage__body {
  position: relative;
  isolation: isolate;
  padding-top: 40px;
  text-align: center;
}
.garage__body::before { /* 墨のかすれ */
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  z-index: -1;
  width: 90%;
  height: 340px;
  background: url(../images/ink-01.jpg) center / contain no-repeat;
  mix-blend-mode: multiply;
  transform: rotate(-18deg);
}
.garage__sub {
  width: 42%;
  aspect-ratio: 1 / 1.22;
  margin: 0 auto;
}
.garage__title {
  margin: 20px 0 16px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.garage__text {
  font-size: 15px;
  line-height: 2.1;
  word-break: auto-phrase;
  text-wrap: balance;
}
/* Instagram欄へ移動するリンク */
.garage__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity .3s;
}
.garage__link:hover { opacity: .6; }
.garage__link-arrow { /* ⌄ */
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

/* =========================================================
   Gallery（自動で横に流れる）
========================================================= */
.gallery {
  margin-top: 100px;
  overflow: hidden;
}
.gallery__track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: gallery-scroll 60s linear infinite;
}
.gallery:hover .gallery__track { animation-play-state: paused; }
/* 高さを揃え、幅は写真の比率なりに（縦長・横長を混在できる） */
.gallery__item {
  flex-shrink: 0;
  height: clamp(260px, 30vw, 420px);
  background: var(--color-placeholder);
}
.gallery__item img {
  width: auto;
  height: 100%;
  max-width: none;
}
@keyframes gallery-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================
   Instagram
========================================================= */
.insta { padding: 140px 5.5vw 0; }
.insta__head {
  scroll-margin-top: 40px; /* ヘッダーの下に少し余白をあけて止める */
  margin-bottom: 32px;
  text-align: center;
}
.insta__title {
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 600;
  font-size: 32px;
  color: var(--color-accent);
  line-height: 1.3;
}
.insta__lead {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 600;
  word-break: auto-phrase;
}
/* Instagram の埋め込み（Tagembed） */
.insta__embed {
  max-width: 1040px;
  margin: 0 auto;
  min-height: 280px;
}

/* Instagram の最新3件（API版・自社で試してから使う） */
.insta-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 1040px;
  margin: 0 auto;
}
.insta-feed__item a {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-placeholder);
}
.insta-feed__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.insta-feed__item a:hover img { transform: scale(1.04); }
.insta-feed__item a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.insta-feed__badge { /* 動画・複数枚の目印 */
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font-size: 12px;
  line-height: 1.6;
}
.insta-feed__date {
  margin-top: 6px;
  font-family: var(--font-en);
  font-size: 14px;
  color: #555;
}
.insta-feed__item--skeleton a { pointer-events: none; }
.insta-more {
  margin-top: 28px;
  text-align: center;
}
.insta-more__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 600;
  font-size: 18px;
  text-decoration: underline;
  text-underline-offset: 5px;
  transition: opacity .3s;
}
.insta-more__link:hover { opacity: .6; }
.insta-more__arrow {
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

/* =========================================================
   Footer
========================================================= */
.footer {
  margin-top: 64px;
  padding: 80px 5.5vw 16px;
  border-top: 1px solid #555;
}
.footer__inner {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 8%;
  align-items: start;
}
.footer__img { aspect-ratio: 16 / 10.4; }
.footer__info { padding-top: 0; }
.logo--footer { margin-bottom: 28px; }
.footer__dl { font-size: 15px; line-height: 2; }
.footer__dl div { display: flex; }
.footer__links {
  display: flex;
  align-items: flex-end;
  gap: 40px;
  margin-top: 40px;
}
.btn {
  display: inline-block;
  width: 230px;
  padding: 2px 0;
  border: 1.5px solid #222;
  font-size: 15px;
  text-align: center;
  transition: background .3s, color .3s;
}
.btn:hover { background: #222; color: #fff; }
.map-link {
  position: relative;
  padding: 0 40px 4px 0;
  font-size: 15px;
}
.map-link::after { /* 矢印ライン */
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 6px;
  border-bottom: 1px solid #222;
  border-right: 1px solid #222;
  transform: skewX(60deg);
  transform-origin: bottom right;
  transition: width .3s;
}
.map-link:hover::after { width: 115%; }
.copyright {
  margin-top: 48px;
  font-size: 14px;
}

/* =========================================================
   Animation
========================================================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s ease, transform .9s ease;
}
.fade-in.is-show {
  opacity: 1;
  transform: none;
}
/* ご相談の流れ（見積もり枠の上） */
.flow {
  max-width: 560px;
  margin: 64px auto 0;
}
.flow__title {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
}
.flow__list { list-style: none; padding: 0; margin: 0; }
.flow__step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border: 1px solid #333;
}
.flow__step + .flow__step { margin-top: 22px; }
.flow__step + .flow__step::before { /* ステップ間の下向き矢印 */
  content: "";
  position: absolute;
  top: -17px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 1px solid #333;
  border-bottom: 1px solid #333;
  transform: translateX(-50%) rotate(45deg);
}
.flow__num {
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 700;
  font-size: 22px;
  color: var(--color-accent);
  line-height: 1;
}
.flow__text { font-size: 16px; line-height: 1.6; }
.flow__text small { font-size: 13px; }
.flow + .estimate { margin-top: 40px; }

/* 取り扱い品目の下の補足 */
.items__note {
  margin-top: 16px;
  font-size: 15px;
  text-align: center;
}

/* オンラインショップ */
.shop__body { text-align: center; }
.shop__note { font-size: 16px; line-height: 2; }
.shop__btn { width: auto; min-width: 300px; margin-top: 24px; padding: 8px 24px; }
.shop__btn.is-disabled { border-color: #999; color: #999; cursor: default; }
.shop__btn.is-disabled:hover { background: none; color: #999; }

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  .hero-slider__item.is-active { animation: none; }
  .gallery__track { animation: none; }
}

/* =========================================================
   Responsive (SP)
========================================================= */
@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .logo { width: 110px; height: 42px; font-size: 16px; }
  .header__inner { padding: 0 var(--gutter); }
  .header__insta { margin-left: auto; margin-right: 16px; }

  .hamburger {
    position: relative;
    z-index: 110;
    display: block;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
  }
  .hamburger span {
    position: absolute;
    left: 4px;
    width: 24px;
    height: 1.5px;
    background: var(--color-text);
    transition: transform .3s, top .3s;
  }
  .hamburger span:nth-child(1) { top: 12px; }
  .hamburger span:nth-child(2) { top: 20px; }
  .hamburger.is-open span:nth-child(1) { top: 16px; transform: rotate(30deg); }
  .hamburger.is-open span:nth-child(2) { top: 16px; transform: rotate(-30deg); }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 105;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; gap: 32px; text-align: center; }
  .nav__list a { font-size: 26px; }

  .hero { margin: 0; }
  .hero__img { height: auto; aspect-ratio: 3 / 4; }
  .hero__copy { font-size: 30px; }

  .intro__text { font-size: 16px; }
  .stamp { right: -8px; bottom: -56px; }

  .section { padding-top: 96px; }

  .service__list { grid-template-columns: 1fr; gap: 40px; }
  .service-card__title { font-size: 26px; }
  .service-card__text br,
  .about__lead br { display: none; }
  .service-card__text { text-align: left; }
  .about__lead { text-align: left; }

  .items { grid-template-columns: repeat(2, 1fr); }

  .garage__inner { grid-template-columns: 1fr; }
  .garage__main { aspect-ratio: 4 / 3; }
  .garage__en { top: auto; left: 50%; transform: translate(-50%, -50%); position: relative; text-align: center; margin-top: 0; font-size: 36px; }
  .garage__body { padding-top: 8px; }
  .garage__sub { width: 50%; }

  .sp-only { display: inline; }
  .cta__btn { white-space: normal; text-align: left; line-height: 1.4;
    padding: 16px 40px 16px 16px; gap: 8px; font-size: 18px; letter-spacing: 0.06em; }
  .cta__icon { right: 16px; }
  .estimate { padding: 28px 16px 24px; }
  .cta__lead { font-size: 14px; gap: 6px; }
  .service__note { font-size: 20px; }
  .insta__title { font-size: 28px; }
  .insta__lead { font-size: 16px; }
  .gallery { margin-top: 72px; }
  .gallery__track { gap: 8px; }
  .gallery__item { height: 260px; }
  .insta { padding: 96px var(--gutter) 0; }
  .insta-feed { gap: 4px; }
  .insta-feed__date { font-size: 12px; }
  .insta-feed__badge { top: 6px; right: 6px; padding: 0 6px; font-size: 10px; }

  .footer { padding: 48px var(--gutter) 16px; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__links { flex-direction: column; align-items: flex-start; gap: 24px; }
  .btn { width: 100%; padding: 10px 0; }
}
