*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --orange: #d4521a;
  --orange-light: #e06030;
  --white: #ffffff;
  --off-white: #fafafa;
  --ink: #1a1a1a;
  --gray: #888;
}

body {
  font-family: 'Jost', 'Noto Sans JP', sans-serif;
  background: var(--off-white);
  color: var(--ink);
  font-weight: 300;
}

/* ── HEADER ── */
header {
  background: var(--white);
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ececec;

/* ヘッダーを最上部に固定 */
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-img {
  height: 52px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text .en {
  font-family: 'Jost', sans-serif;
  font-size: 9.5px;
  font-weight: 300;
  letter-spacing: 0.28em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.logo-text .ja {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 17px;
  font-weight: 100;
  letter-spacing: 0.18em;
  color: var(--orange);
}

/* ── NAV ── */
nav {
  background: var(--orange);
  display: flex;
  justify-content: center;
  gap: 0;

  /* ヘッダーのすぐ下に固定 */
  position: sticky;
  top: 89px; /* デスクトップ版ヘッダーの高さ（パディング＋ロゴ）に合わせる */
  z-index: 90;
}

nav a {
  display: inline-block;
  padding: 14px 44px;
  font-family: 'Jost', sans-serif;
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  position: relative;
  transition: background 0.2s;
}

nav a::after {
  content: '';
  position: absolute;
  right: 0; top: 25%; bottom: 25%;
  width: 0.5px;
  background: rgba(255,255,255,0.35);
}

nav a:last-child::after { display: none; }

nav a:hover { background: rgba(0,0,0,0.12); }

/* ── ハンバーガー・ドロワー（デスクトップでは非表示） ── */
.hamburger { display: none; }
.drawer { display: none; }
.drawer-overlay { display: none; }

/* ── HERO ── */
.hero {
  background: var(--white);
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 72px 80px;
}

/* ── スライドショー ── */
.hero-slideshow {
  flex: 0 0 340px;
  position: relative;
  aspect-ratio: 1 / 1;
}

.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slideshow .slide.active {
  opacity: 1;
}

.hero-slideshow img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── 理念テキスト ── */
.hero-philosophy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-philosophy .philosophy-lead {
  font-family: 'Cormorant Garamond', 'Noto Sans JP', serif;
  font-size: 20px; /* 変更したい大きさ */
  font-weight: 300;
  color: var(--orange); /* 変更したい色（例：墨黒） */
  letter-spacing: 0.06em;
  margin-bottom: 0px;
  padding-bottom: 0px;
  
}

.hero-philosophy p {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12.5px;
  font-weight: 300;
  line-height: 2;
  letter-spacing: 0.06em;
  margin-top: 5px;
  color: #444;
}

/* ── ヒーロー内お問い合わせリンク ── */
.hero-contact-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.hero-contact-link {
  font-family: 'Jost', 'Noto Sans JP', sans-serif;
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.22em;
  color: var(--orange);
  text-decoration: none;
  border-bottom: 0.5px solid var(--orange);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.hero-contact-link:hover {
  opacity: 0.65;
}

/* ── HOME WORKS SECTION ── */
.home-works {
  background: var(--white);
  padding: 64px 80px 56px;
  margin-top: 1px;
}

.home-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 36px;
}

/* サムネイル */
.home-work-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #ebebeb;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.home-work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.home-work-item:not(.home-work-coming) .home-work-link:hover .home-work-thumb img {
  transform: scale(1.04);
  opacity: 0.9;
}

.home-work-thumb--empty {
  background: #ebebeb;
}

.home-coming-label {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: #bbb;
  text-transform: uppercase;
}

/* 作品情報 */
.home-work-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: default;
}

.home-work-item:not(.home-work-coming) .home-work-link {
  cursor: pointer;
}

.home-work-info {
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-work-category {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--orange);
}

.home-work-title {
  font-family: 'Jost', 'Noto Sans JP', sans-serif;
  font-size: 13.5px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.home-work-coming .home-work-title {
  color: #bbb;
  letter-spacing: 0.22em;
}

/* view more */
.home-works-more {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

.home-works-more-link {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: lowercase;
  color: var(--orange);
  text-decoration: none;
  border-bottom: 0.5px solid var(--orange);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.home-works-more-link:hover {
  opacity: 0.65;
}

/* ── SECTIONS (準備中の各コンテンツ用プレースホルダー) ── */
.section-placeholder {
  background: var(--white);
  margin: 1px 0;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc; /* リンクになってもこの色を維持 */
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none; /* 👇 これを追加（リンクの下線を消す） */
}

/* お問い合わせエリアにマウスを乗せたときの変化 */
#contact.section-placeholder:hover {
  background: #fdfaf7; /* 背景をほんのり薄いオレンジ（またはお好みで）に変える */
  color: var(--orange); /* 文字色をブランドカラーのオレンジに変える */
  transition: all 0.3s; /* 変化をふわっとさせる */
}

/* ── FOOTER ── */
footer {
  background: var(--orange);
  color: var(--white);
  text-align: center;
  padding: 10px 48px;
  font-size: 7px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 300;
  position: relative;
}

.footer-sns {
  position: absolute;
  left: 48px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}
 
.footer-sns a {
  display: flex;
  align-items: center;
  opacity: 0.85;
  transition: opacity 0.2s;
}
 
.footer-sns a:hover {
  opacity: 1;
}
 
.footer-sns img {
  height: 22px;
  width: auto;
}

footer .footer-logo {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.25em;
  margin-bottom: 8px;
  opacity: 0.9;
}

footer .footer-copy {
  opacity: 0.65;
  font-size: 7px;
  letter-spacing: 0.2em;
}

/* ── RESPONSIVE (スマホ) ── */
@media (max-width: 600px) {

  header {
    padding: 14px 24px; /* 上下を少し詰め、左右の余白を48pxから24pxに狭くします */
    top: 0;
  }

  .hero {
    flex-direction: column;
    padding: 40px 24px;
    gap: 32px;
  }

  .hero-slideshow {
    flex: none;
    width: 220px;
    aspect-ratio: 1 / 1;
  }

  .philosophy-lead {
    font-size: 16px;
  }

  .hero-philosophy p {
    font-size: 12px;
  }

  .hero-contact-wrap {
    margin-top: 4px;
  }

  /* home works */
  .home-works {
    padding: 40px 24px 48px;
  }

  .home-works-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }



  .logo-img {
    height: 38px;
  }

  .logo-text .ja {
    font-size: 13px;
  }

  .logo-text .en {
    font-size: 8px;
  }

  /* デスクトップナビを非表示 */
  #global-nav {
    display: none;
  }

  /* ハンバーガーボタン */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }

  .hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--orange);
  }

  /* ドロワー本体 */
  .drawer {
    display: block;
    position: fixed;
    top: 0; right: -100%;
    width: 65%;
    height: 100%;
    background: var(--white);
    z-index: 200;
    transition: right 0.3s ease;
    padding: 60px 32px 40px;
  }

  .drawer.open {
    right: 0;
  }

  .drawer-close {
    position: absolute;
    top: 20px; right: 20px;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--orange);
    cursor: pointer;
  }

  .drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--white); 
  }

  .drawer-nav a {
    display: block;
    padding: 16px 0;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--orange);
    text-decoration: none;
    border-bottom: 0.5px solid #ececec;
  }

  /* オーバーレイ（スマホ時） */
  .drawer-overlay {
    display: none; /* 👈 initialやblockから「none」に変更して普段は完全に消す */
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s;
  }

  /* ドロワーが開いたとき */
  .drawer-overlay.open {
    display: block; /* 👈 開いたときだけ「block」にして表示する */
    opacity: 1;
  }

   .footer-sns {
    left: 20px;
  }
 
  .footer-sns img {
    height: 18px;
  }
}