/* ============================================
   TRADITIONAL CRAFTS - スタイルシート
   ============================================ */

/* --- リセット・基本設定 --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* カラーパレット */
  --sumi-black: #1A1A1A;
  --washi-white: #F9F9F7;
  --nibi-gray: #6B6B6B;
  --gold-accent: #C5A059;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--sumi-black);
  background-color: var(--washi-white);
  line-height: 1.8;
}

h1, h2, h3 {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  letter-spacing: 0.1em;
  font-weight: 500;
}

p {
  line-height: 2;
  letter-spacing: 0.05em;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

ul {
  list-style: none;
}


/* ============================================
   ナビゲーション
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1.5rem 0;
  transition: all 0.3s ease;
}

.nav.scrolled {
  background-color: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(4px);
  padding: 1rem 0;
}

.nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  color: var(--washi-white);
  font-family: 'Shippori Mincho', serif;
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  transition: color 0.3s;
}

.nav-logo:hover {
  color: var(--gold-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-links a {
  color: var(--washi-white);
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-accent);
}

/* デスクトップではハンバーガー非表示 */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 60;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle-bar {
  display: block;
  width: 1.5rem;
  height: 2px;
  background-color: var(--washi-white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


/* ============================================
   ヒーローセクション（ホーム）
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
}

.hero-image img {
  height: 100%;
  width: 100%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(26, 26, 26, 0.3);
}

.hero-vertical-text {
  position: absolute;
  right: 3rem;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: upright;
  color: var(--washi-white);
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  opacity: 0.7;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  text-align: center;
}

.hero-content h1 {
  font-size: 3.75rem;
  color: var(--washi-white);
  margin-bottom: 2rem;
}

.hero-content p {
  color: rgba(249, 249, 247, 0.8);
  font-size: 1.25rem;
  max-width: 42rem;
  margin: 0 auto;
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 4rem;
  background-color: rgba(249, 249, 247, 0.3);
}

.scroll-indicator::after {
  content: '';
  position: absolute;
  top: 0;
  width: 1px;
  height: 2rem;
  background-color: var(--washi-white);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(2rem); }
}


/* ============================================
   コンセプトセクション
   ============================================ */
.concept {
  padding: 8rem 2rem;
}

.concept-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.concept-label {
  color: var(--gold-accent);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  letter-spacing: 0.2em;
}

.concept-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.concept-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.concept-text p {
  color: var(--nibi-gray);
}

.concept-image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}


/* ============================================
   コレクションセクション
   ============================================ */
.collection {
  padding: 8rem 2rem;
  background-color: var(--sumi-black);
}

.collection-inner {
  max-width: 80rem;
  margin: 0 auto;
}

.collection-header {
  text-align: center;
  margin-bottom: 5rem;
}

.collection-header .section-label {
  color: var(--gold-accent);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  letter-spacing: 0.2em;
}

.collection-header h2 {
  font-size: 2.5rem;
  color: var(--washi-white);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem 6rem;
}

.product-card {
  cursor: pointer;
}

.product-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.product-image img {
  transition: transform 0.7s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-category {
  color: var(--gold-accent);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}

.product-title {
  color: var(--washi-white);
  font-size: 1.25rem;
}


/* ============================================
   職人紹介セクション
   ============================================ */
.artisans {
  padding: 8rem 2rem;
}

.artisans-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.artisans-header {
  margin-bottom: 5rem;
}

.artisans-header .section-label {
  color: var(--gold-accent);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  letter-spacing: 0.2em;
}

.artisans-header h2 {
  font-size: 2.5rem;
}

.artisan-list {
  display: flex;
  flex-direction: column;
  gap: 8rem;
}

.artisan-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.artisan-item.reverse .artisan-image {
  order: 2;
}

.artisan-item.reverse .artisan-content {
  order: 1;
}

.artisan-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.artisan-specialty {
  color: var(--gold-accent);
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}

.artisan-name {
  font-size: 1.875rem;
  margin-bottom: 1rem;
}

.artisan-description {
  color: var(--nibi-gray);
  line-height: 2;
}


/* ============================================
   お問い合わせセクション
   ============================================ */
.contact {
  padding: 8rem 2rem;
  background-color: var(--sumi-black);
}

.contact-inner {
  max-width: 48rem;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 4rem;
}

.contact-header .section-label {
  color: var(--gold-accent);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  letter-spacing: 0.2em;
}

.contact-header h2 {
  font-size: 2.5rem;
  color: var(--washi-white);
  margin-bottom: 2rem;
}

.contact-header p {
  color: rgba(249, 249, 247, 0.7);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group label {
  display: block;
  color: var(--washi-white);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: rgba(249, 249, 247, 0.05);
  border: 1px solid rgba(249, 249, 247, 0.1);
  border-radius: 0.375rem;
  color: var(--washi-white);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(249, 249, 247, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold-accent);
}

.form-group input {
  height: 3rem;
}

.form-group textarea {
  min-height: 200px;
  resize: none;
}

.form-submit {
  text-align: center;
  padding-top: 1rem;
}

.btn-submit {
  display: inline-block;
  background-color: var(--gold-accent);
  color: var(--sumi-black);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 1rem 3rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-submit:hover {
  background-color: rgba(197, 160, 89, 0.9);
}


/* ============================================
   フッター
   ============================================ */
.footer {
  background-color: var(--sumi-black);
  border-top: 1px solid rgba(249, 249, 247, 0.1);
}

.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  color: var(--washi-white);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  letter-spacing: 0.15em;
}

.footer-brand p {
  color: rgba(249, 249, 247, 0.6);
  font-size: 0.875rem;
  line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--washi-white);
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(249, 249, 247, 0.6);
  font-size: 0.875rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--gold-accent);
}

.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: rgba(249, 249, 247, 0.6);
  font-size: 0.875rem;
}

.footer-copyright {
  padding-top: 2rem;
  border-top: 1px solid rgba(249, 249, 247, 0.1);
  text-align: center;
}

.footer-copyright p {
  color: rgba(249, 249, 247, 0.4);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}


/* ============================================
   ページトップ余白（サブページ用）
   ============================================ */
.page-top {
  padding-top: 6rem;
}


/* ============================================
   スクロールアニメーション
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}


/* ============================================
   レスポンシブ（タブレット以下）
   ============================================ */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-logo {
    font-size: 1.125rem;
    max-width: calc(100% - 3.5rem);
  }

  /* inset:0 だけだと、backdrop-filter 付き祖先内の fixed がヘッダー高さに閉じ込められ
     （Safari 等）4項目のうち1つしか見えない。vh でビューポート全体を覆う */
  .nav-links {
    display: flex;
    position: fixed;
    z-index: 55;
    top: 0;
    left: 0;
    width: 100%;
    min-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: max(5rem, calc(env(safe-area-inset-top, 0px) + 3rem)) 1.5rem
      max(2rem, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    background-color: rgba(26, 26, 26, 0.98);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links a {
    font-size: 1rem;
    letter-spacing: 0.2em;
    padding: 0.5rem 0;
  }

  .nav.nav-open .nav-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-vertical-text {
    right: 1rem;
    font-size: 0.75rem;
  }

  .concept-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .artisan-item {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .artisan-item.reverse .artisan-image {
    order: 0;
  }

  .artisan-item.reverse .artisan-content {
    order: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .concept-inner {
    gap: 3rem;
  }

  .products-grid {
    gap: 3rem;
  }
}

@media (min-width: 1025px) {
  .nav-inner {
    padding: 0 4rem;
  }

  .concept {
    padding: 8rem 4rem;
  }

  .collection {
    padding: 8rem 4rem;
  }

  .artisans {
    padding: 8rem 4rem;
  }

  .contact {
    padding: 8rem 4rem;
  }

  .hero-content h1 {
    font-size: 5rem;
  }

  .concept-title {
    font-size: 3rem;
  }

  .collection-header h2 {
    font-size: 3rem;
  }

  .artisans-header h2 {
    font-size: 3rem;
  }

  .contact-header h2 {
    font-size: 3rem;
  }
}
