/* ─── CSS Variables ─── */
:root {
  --cream:    #faf7f2;
  --warm:     #f5efe4;
  --linen:    #e8ddd0;
  --stitch:   #c4a882;
  --thread:   #a0836a;
  --deep:     #5c4033;
  --ink:      #3a2e28;
  --blush:    #e8c4b0;
  --sage:     #a8b89a;
  --sage-lt:  #d4e0cc;
  --accent:   #c96b4a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.hero-scissor *, *::before, *::after {
  border-radius: 50%;
}
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 400;
  line-height: 1.8;
  overflow-x: hidden;
}

/* ─── NAV ─────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background: rgba(253,244,236,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(62,34,19,0.08);
  transition: box-shadow 0.3s;
}

nav.scrolled { box-shadow: 0 2px 20px rgba(62,34,19,0.08); }

.nav-site-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--brown);
  white-space: nowrap;
}
.nav-site-title a{
  text-decoration: none;
  color: var(--brown);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--brown);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--brown-light);
  transition: width 0.3s ease;
}

.nav-links a:hover::after { width: 100%; }

/* ─── ハンバーガー ─────────────────────── */
.hamburger {
  display: none;
  width: 28px;
  height: 22px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  background: var(--brown);
  border-radius: 2px;
  transition: 0.3s;
}

/* 開いたときのアニメーション */
.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ─── SPメニュー（ドロワー） ───────────── */
.mobile-menu {
  position: fixed;
  top: 64px;
  right: -100%;
  width: 70%;
  height: calc(100% - 64px);
  background: rgba(253,244,236,0.95);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  padding: 40px 24px;
  gap: 24px;
  transition: right 0.35s ease;
  z-index: 250;
}

.mobile-menu a {
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
  color: var(--brown);
  text-decoration: none;
  letter-spacing: 0.1em;
}

.mobile-menu.open {
  right: 0;
}

/* ─── BREAKPOINT ───────────────────────── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* ─── PAGE HERO ─── */
.page-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 2rem 10rem;
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 80%, rgba(200,160,120,.12) 0%, transparent 70%),
    var(--cream);
  overflow: hidden;
}

/* 糸のライン装飾 */
.hero-thread-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-thread-lines svg {
  width: 100%; height: 100%;
  position: absolute; inset: 0;
}

/* アイコン */
.hero-scissor {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  display: inline-block;
  animation: scissorBob 3s ease-in-out infinite;
}
@media (max-width: 640px) {
  .hero-scissor img{
    width: 30%;
  }
}
@keyframes scissorBob {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50%       { transform: translateY(-8px) rotate(5deg); }
}

.hero-label {
  font-family: 'Delius', cursive;
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 400;
  color: var(--deep);
  letter-spacing: .08em;
  line-height: 1;
  margin-bottom: .5rem;
}
.hero-ja {
  font-size: .85rem;
  letter-spacing: .25em;
  color: var(--stitch);
  margin-bottom: 2.5rem;
}

/* ステッチ線 */
.stitch-line {
  width: min(480px, 90%);
  height: 16px;
  margin: 0 auto 2.5rem;
  background-image: repeating-linear-gradient(
    90deg,
    var(--stitch) 0, var(--stitch) 12px,
    transparent 12px, transparent 22px
  );
  border-radius: 4px;
  opacity: .45;
}

.hero-quote {
  max-width: 680px;
  font-family: 'Zen Maru Gothic', sans-serif;
  /* font-size: 1.3rem; */
  color: var(--thread);
  line-height: 2;
  text-align: left;
}
.hero-quote p { margin-bottom: 1.1em; }

/* scroll arrow */
.scroll-down {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: var(--stitch);
  font-size: .68rem;
  letter-spacing: .18em;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ─── SECTION ─── */
.sec {
  padding: 6rem 2rem;
}
.sec-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.sec-heading {
  text-align: center;
  margin-bottom: 3.5rem;
}
.sec-heading .en {
  font-family: 'Delius', cursive;
  font-size: 2.6rem;
  color: var(--deep);
  line-height: 1;
  margin-bottom: .4rem;
}
.sec-heading .divider {
  width: 60px;
  height: 2px;
  background: var(--stitch);
  margin: .8rem auto;
  border-radius: 2px;
}
.sec-heading .ja {
  font-size: .8rem;
  letter-spacing: .22em;
  color: var(--stitch);
}

/* reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .22s; }
.delay-3 { transition-delay: .34s; }
.delay-4 { transition-delay: .46s; }
.delay-5 { transition-delay: .58s; }

/* ─── TOOLS ─── */
:root {
      --bg: #f7f1e8;
      --card-bg: #fbf7f1;
      --accent: #c9a27b;
      --text-main: #3b2f2a;
      --text-sub: #6b5a4f;
      --radius: 18px;
    }

    body {
      margin: 0;
      padding: 0;
      background: var(--bg);
      font-family: 'Zen Maru Gothic', sans-serif;
      color: var(--text-main);
      line-height: 1.7;
    }

    .tools-section {
      max-width: 720px;
      margin: 60px auto;
      padding: 0 24px 80px;
    }

    .tools-title-en {
      font-size: 14px;
      letter-spacing: 0.18em;
      color: var(--accent);
      margin-bottom: 4px;
      text-transform: uppercase;
    }

    .tools-title-ja {
      font-size: 26px;
      font-weight: 600;
      letter-spacing: 0.18em;
      margin-bottom: 32px;
    }

    .sec-heading-text{
      width: 50%;
      margin: 10% auto 15%;
      line-height: 2;
    }

    /* ▼ ここが縦並び */
    .tools-list {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .tool-card {
      background: var(--card-bg);
      border-radius: var(--radius);
      padding: 22px 24px;
      box-shadow: 0 8px 18px rgba(0,0,0,0.04);
      border: 1px solid rgba(0,0,0,0.03);
    }

    .tool-header {
      display: flex;
      align-items: center;
      margin-bottom: 12px;
    }

    .tool-icon{
      width: 32px;
      height: 32px;
      border-radius: 50%;
      /* background-color: #e4d4c3; */
      background: url(../assets/images/icon/web/html1.png) center/cover no-repeat;
      margin-right: 12px;
    }
    .tool-icon.word{
      background: url(../assets/images/icon/web/word2.png) center/cover no-repeat;
    }
    .tool-icon.illust{
      background: url(../assets/images/icon/web/illust3.png) center/cover no-repeat;
    }
    .tool-icon.vs{
      background: url(../assets/images/icon/web/vs4.png) center/cover no-repeat;
    }

    .tool-icon.figma{
      background: url(../assets/images/icon/web/figma5.png) center/cover no-repeat;
    }

    .tool-icon.ai{
      background: url(../assets/images/icon/web/ai6.png) center/cover no-repeat;
    }

    .tool-icon.english{
      background: url(../assets/images/icon/web/english7.png) center/cover no-repeat;
    }
    .tool-name {
      font-size: 18px;
      font-weight: 600;
      letter-spacing: 0.12em;
    }

    .tool-body {
      font-size: 14px;
      color: var(--text-sub);
      margin-bottom: 14px;
    }

    .tool-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .tool-tag {
      background: #efe1d1;
      padding: 4px 12px;
      border-radius: 999px;
      font-size: 11px;
      letter-spacing: 0.12em;
      white-space: nowrap;
    }
    .tool-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 22px 24px;
    border: 1px solid rgba(0,0,0,0.03);

    /* ▼ ふわっと浮かせる影 */
    box-shadow:
      0 8px 20px rgba(0,0,0,0.06),
      0 3px 6px rgba(0,0,0,0.04);

    /* ▼ アニメーションで柔らかく */
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* ▼ ホバーで少しだけ持ち上がる */
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 28px rgba(0,0,0,0.10),
    0 4px 10px rgba(0,0,0,0.06);
}

/* ─── BACK ─── */
.back-row {
  text-align: center;
  padding: 3rem 2rem 5rem;
}
.back-btn {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .18em;
  color: var(--thread);
  text-decoration: none;
  border: 1px solid var(--stitch);
  border-radius: 999px;
  padding: .7rem 2rem;
  transition: background .25s, color .25s;
}
.back-btn:hover {
  background: var(--stitch);
  color: #fff;
}

/* ─── FOOTER ─── */
footer {
  background: var(--deep);
  color: var(--linen);
  text-align: center;
  padding: 2rem;
  font-size: .78rem;
  letter-spacing: .12em;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  #main-nav { padding: .8rem 1.2rem; }
  .nav-links { gap: 1.2rem; }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-item:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }
  .gallery-item:nth-child(1) { grid-column: 1 / 3; }
  .process-flow::before { left: 22px; }
  .step-num { width: 44px; height: 44px; font-size: .7rem; }
  .sec-heading-text{
      width: 100%;
    }
}

/* ─── SNS ─────────────────────────────── */
.sec-sns .sns-instaicon{
  width: 100%;
  display: flex;
  justify-content: center;
}
.sec-sns .sns-instaicon a img{
  width: 3rem;
  /* display: block; */
}

/* ─── FOOTER ──────────────────────────── */
footer {
  background: var(--brown);
  color: var(--peach-light);
  text-align: center;
  padding: 32px 24px;
}

.footer-title { font-family: 'Zen Maru Gothic', sans-serif; font-size: 1.1rem; letter-spacing: 0.2em; color: var(--peach-light); opacity: 0.75; margin-bottom: 10px; }

footer p {
  font-family: 'Caveat', cursive;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  opacity: 0.6;
}

/* ─── REVEAL ──────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* ─── ANIMATION ───────────────────────── */
@keyframes riseIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ──────────────────────── */
@media (max-width: 640px) {
  nav { padding: 0 20px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.95rem; }
  .about-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
}

@keyframes catWalkFwd {
  0%   { left: -80px; }
  100% { left: 110%; }
}
@keyframes catWalkRev {
  0%   { left: 110%; }
  100% { left: -80px; }
}