/* ========================================
   MIRAI CRAFT LAB — style.css
======================================== */

/* --- リセット & ベース --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

:root {
  --bg:        #FAFAF7;
  --bg-beige:  #F3EFE5;
  --text:      #1A1A1A;
  --text-mid:  #555;
  --text-light:#999;
  --border:    #E0DBD0;
  --accent:    #1A1A1A;
  --white:     #fff;
  --font-en: 'DM Sans', sans-serif;
  --font-ja: 'Noto Sans JP', sans-serif;
  --radius: 12px;
  --max-w: 1040px;
  --section-py: 96px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ja);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- コンテナ --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   ヘッダー
======================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.header.scrolled { border-color: var(--border); }

.header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
}
.header__logo-img {
  height: 28px;
  width: auto;
}

.header__nav ul {
  display: flex;
  gap: 32px;
}
.header__nav a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-mid);
  transition: color 0.2s;
}
.header__nav a:hover { color: var(--text); }

/* ハンバーガー */
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.header__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s;
}
.header__hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.header__hamburger.open span:nth-child(2) { opacity: 0; }
.header__hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ========================================
   ヒーロー
======================================== */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 80px 24px 60px;
  position: relative;
  background: var(--bg);
}

/* ヒーロー背景 */
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(250, 250, 247, 0.82);
  z-index: 1;
}

.hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero__logo-wrap {
  margin-bottom: 40px;
}
.hero__logo-img {
  height: 120px;
  width: auto;
  mix-blend-mode: multiply;
}

.hero__tagline {
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--text-mid);
  margin-bottom: 20px;
}

.hero__catch {
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 28px;
}

.hero__sub {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-mid);
  margin-bottom: 48px;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ja);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 12px 28px;
  transition: background 0.2s, border-color 0.2s;
}
.hero__btn:hover {
  background: var(--text);
  color: var(--white);
  border-color: var(--text);
}

/* スクロール */
/* サービスカード画像 */
.service-card__img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 20px;
}
.service-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service-card:hover .service-card__img {
  transform: scale(1.03);
}

/* フォトギャラリー */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery__item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery__item:hover img {
  transform: scale(1.04);
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.hero__scroll span {
  font-family: var(--font-en);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--text-light);
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--border), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ========================================
   セクション共通
======================================== */
.section {
  padding: var(--section-py) 0;
}
.section--beige { background: var(--bg-beige); }

.section-label {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--text-light);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  line-height: 1.3;
}
.section-sub {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 56px;
}

/* ========================================
   コンセプト
======================================== */
.concept__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
  margin-top: 48px;
}

.concept__logo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

.concept__logo-img {
  position: absolute;
  top: 40%;
  left: 47%;
  transform: translate(-50%, -50%);
  width: 175%;
  max-width: none;
  height: auto;
  mix-blend-mode: multiply;
}

.concept__lead {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 20px;
}
.concept__text p {
  color: var(--text-mid);
  margin-bottom: 16px;
}
.concept__quote {
  margin-top: 32px;
  padding: 20px 24px;
  border-left: 2px solid var(--text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text);
}

.concept__img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-beige);
  border: 1px solid var(--border);
}
.concept__img-placeholder--empty::after {
  content: 'Photo';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-light);
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.concept__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.concept__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.tag {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-mid);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 4px 14px;
  background: var(--white);
}

/* ========================================
   サービス
======================================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Photo 補足カード */
.service-sub {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
  padding: 20px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  opacity: 0.85;
}
.service-sub__icon {
  width: 80px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}
.service-sub__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-sub__body { flex: 1; }
.service-sub__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}
.service-sub__desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.9;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.07);
}

.service-card__num {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-light);
  margin-bottom: 16px;
}
.service-card__icon {
  width: 40px;
  height: 40px;
  color: var(--text);
  margin-bottom: 20px;
}
.service-card__title {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.4;
}
.service-card__desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 20px;
}
.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.service-card__list li {
  font-size: 12px;
  color: var(--text-light);
  padding-left: 14px;
  position: relative;
}
.service-card__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  font-size: 10px;
}

/* ========================================
   料金
======================================== */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 16px;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
}

.pricing-card__service {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-mid);
  margin-bottom: 28px;
}

.pricing__rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
  margin-bottom: 24px;
}

.pricing__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.pricing__row-name {
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
}
.pricing__row-name span {
  font-size: 12px;
  color: var(--text-mid);
  margin-left: 4px;
}

.pricing__row-price {
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  white-space: nowrap;
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.pricing__row-note {
  font-size: 11px;
  color: var(--text-light);
  font-family: var(--font-ja);
  letter-spacing: 0;
  white-space: nowrap;
}

.pricing-card__note {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.8;
}

.pricing__photo-note {
  margin-top: 16px;
  padding: 16px 24px;
  background: var(--bg-beige);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  text-align: center;
}

.pricing__disclaimer {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.9;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pricing__disclaimer li {
  padding-left: 1em;
  position: relative;
}
.pricing__disclaimer li::before {
  content: '※';
  position: absolute;
  left: 0;
  font-size: 11px;
}
.pricing__disclaimer strong {
  font-weight: 500;
  color: var(--text);
}

/* ========================================
   強み
======================================== */
.strength__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 48px;
}

.strength__lead {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 20px;
}
.strength__main p {
  color: var(--text-mid);
  margin-bottom: 16px;
}

.strength__items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.strength-item {
  background: var(--bg-beige);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.strength-item__icon {
  font-size: 24px;
  margin-bottom: 12px;
}
.strength-item h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}
.strength-item p {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ========================================
   Works
======================================== */
.works__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.work-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.work-card__img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-beige);
}

.work-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.work-card:hover .work-card__img {
  transform: scale(1.03);
}

.work-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.work-card:hover .work-card__overlay {
  opacity: 1;
}

.work-card__overlay span {
  color: #fff;
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.work-card__body {
  padding: 20px 24px 24px;
}

.work-card__label {
  font-size: 11px;
  font-family: var(--font-en);
  letter-spacing: 0.12em;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.work-card__title {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 4px;
}

.work-card__url {
  font-size: 12px;
  font-family: var(--font-en);
  color: var(--text-light);
}

/* ========================================
   About
======================================== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 48px;
}

.about__photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
}
.about__photo-placeholder--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__photo-placeholder--empty::after {
  content: 'Photo';
  color: var(--text-light);
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.about__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__lead {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 20px;
}
.about__text p {
  color: var(--text-mid);
  margin-bottom: 16px;
}
.about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

/* ========================================
   コンタクト
======================================== */
.contact__note {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 32px;
  padding: 12px 16px;
  background: var(--bg-beige);
  border-radius: 8px;
}

.contact__grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  cursor: pointer;
}
.contact-card:hover {
  background: var(--text);
  color: var(--white);
  border-color: var(--text);
  transform: translateX(4px);
}

.contact-card__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.contact-card__icon svg {
  width: 100%;
  height: 100%;
}
.contact-card__body { flex: 1; }
.contact-card__body h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}
.contact-card__body p {
  font-size: 12px;
  color: var(--text-light);
  transition: color 0.2s;
}
.contact-card:hover .contact-card__body p { color: rgba(255,255,255,0.6); }

.contact-card__arrow {
  font-family: var(--font-en);
  font-size: 16px;
  color: var(--text-light);
  transition: color 0.2s, transform 0.2s;
}
.contact-card:hover .contact-card__arrow {
  color: var(--white);
  transform: translateX(4px);
}

.contact__note {
  text-align: center;
  font-size: 11px;
  color: var(--text-light);
  margin-top: 24px;
}

/* ========================================
   フッター
======================================== */
.footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__logo-img {
  height: 36px;
  width: auto;
  opacity: 0.7;
}
.footer__copy {
  font-size: 11px;
  color: var(--text-light);
  font-family: var(--font-en);
}
.footer__credit {
  font-size: 11px;
  color: var(--text-light);
  font-family: var(--font-en);
  letter-spacing: 0.06em;
}

/* ========================================
   フェードアップアニメーション
======================================== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   レスポンシブ
======================================== */
@media (max-width: 768px) {
  :root { --section-py: 64px; }

  .header__nav { display: none; }
  .header__hamburger { display: flex; }

  /* モバイルナビ */
  .header__nav.open {
    display: flex;
    position: fixed;
    top: 60px; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    z-index: 99;
  }
  .header__nav.open ul {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .header__nav.open a {
    display: block;
    padding: 20px 40px;
    font-size: 18px;
    color: var(--text);
  }

  .hero__catch { font-size: clamp(40px, 12vw, 64px); }

  .concept__grid,
  .strength__grid,
  .about__grid { grid-template-columns: 1fr; gap: 40px; }

  .services__grid { grid-template-columns: 1fr; }
  .service-sub { flex-direction: column; align-items: flex-start; }
  .pricing__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }

  .strength__items { grid-template-columns: 1fr 1fr; }

  .footer__inner { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .strength__items { grid-template-columns: 1fr; }
}
