@charset "utf-8";

/* =====================================
common
===================================== */
:root {
  --cream: #FAF7EF;
  --warm-white: #FFF9F0;
  --card: #FFFFFF;
  --lemon: #F3D86B;
  --lemon-mid: #E5C24A;
  --yellow: #D9A91E;
  --yellow-deep: #B98512;
  --brown: #5A4635;
  --brown-light: #8A7661;
  --text: #33291F;
  --text-light: #6F6457;
  --shadow: rgba(74, 56, 40, 0.10);
  --green: #BCC59B;
  --green-light: #F4F5E9;
  --green-text: #727C58;
}

/* リセットCSS */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
/* スムーススクロール */
html { 
  scroll-behavior: smooth; 
  font-size: 62.5%;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family:
   'Zen Maru Gothic', 
    sans-serif;
  font-style: normal;
  background-color: var(--cream);
  color: var(--text);
  
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===========================
   BLOBS
   =========================== */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

@media screen and (max-width: 780px) {
  .blob {
    filter: blur(40px);
    opacity: 0.3;
  }
}

/* ===========================
   NAV
   =========================== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(255, 253, 245, 0.8);
  border-bottom: 1px solid rgba(245, 183, 49, 0.1);
  transition: box-shadow 0.3s ease;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

nav.scrolled { box-shadow: 0 2px 20px var(--shadow); }

.nav-logo {
  font-family: 'Caveat', cursive;
  font-size: 3.2rem;
  color: var(--yellow);
  font-weight: 500;
  text-decoration: none;
}

nav ul { 
  list-style: none; display: flex; gap: 28px; }

nav ul li a {
  font-size: 1.8rem;
  color: var(--brown);
  text-decoration: none;
  letter-spacing: 0.04em;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.is-active { color: var(--yellow); }

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 3px;
  background: var(--lemon-mid);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.is-active::after { width: 100%; }

/* ===========================
   ハンバーガーボタン（PC では非表示）
   =========================== */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--yellow-deep);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { top: 22px; }

/* ×印に変形（メニュー開いたとき） */
.hamburger.active span:nth-child(1) {
  top: 11px;
  transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  top: 11px;
  transform: rotate(-45deg);
}

@media screen and (max-width: 780px) {
  nav {
    padding: 14px 16px;

  }

  .nav-logo {
    font-size: 2.4rem;
    flex-shrink: 0; 
  }

  .hamburger {
    display: block;
  }

  nav ul {
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    height: 100dvh;
    background: rgba(255, 251, 232, 0.9);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 80px 40px;
    box-shadow: -4px 0 24px rgba(107, 91, 62, 0.1);
    transition: transform 0.4s ease;
    z-index: 105;
    transform: translateX(-100%);
  }

  /* メニューが開いた状態 */
  nav ul.open {
    transform: translateX(0);
  }

  nav ul li a {
    font-size: 2.4rem;
    font-weight: 500;
    color:var(--text)
    
  }
}

/* ===========================
   sunflower
   =========================== */
.sunflower-deco {
  position: absolute;
  width: 120px;
  height: 120px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
}

.sunflower-deco svg { 
  width: 100%; 
  height: 100%; 
}

/* ===========================
   section
   =========================== */
section { padding: 100px 64px; position: relative; }

/* セクションラベル（Works, About, Skills 等） */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--lemon-mid);
  border-radius: 1px;
}

/* セクション見出し */
.section-heading {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.4;
}

/* セクション説明文 */
.section-sub {
  font-size: 1.4rem;
  color: var(--text-light);
  line-height: 2;
  max-width: 560px;
  margin-bottom: 48px;
}

/* 蛍光マーカー装飾 */
.marker {
  background: linear-gradient(transparent 60%, var(--lemon) 60%);
  padding: 0 2px;
}

/* ===========================
   FOOTER
   =========================== */
footer {
  padding: 20px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: var(--text-light);
  border-top: 1px solid var(--lemon);
}

footer .f-logo {
  font-family: 'Caveat', cursive;
  font-size: 2.4rem;
  color: var(--yellow);
}

@media screen and (max-width: 780px) {
  footer { 
    padding: 24px; 
    flex-direction: column; 
    gap: 8px; 
  }
}

/* ===========================
   BADGE
   =========================== */
.badge {
  position: fixed;
  bottom: 20px; right: 20px;
  background: var(--yellow);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  padding: 15px;
  border-radius: 50%;
  z-index: 200;
  box-shadow: 0 4px 16px rgba(245, 183, 49, 0.35);
  text-decoration: none;
}

/* ===========================
   担当範囲タグ（共通）
   =========================== */
.work-type { 
  display: inline-flex; 
  gap: 6px; 
  margin-bottom: 12px; 
}

.work-type span {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
}

.type-plan {
  background: #EDE8F5;
  color: #7B6BA0;
}

.type-design { 
  background: var(--lemon); 
  color: var(--yellow-deep); 
}

.type-dev { 
  background: var(--green);
  color: var(--green-text); 
}

/* ===========================
   技術タグ（共通）
   =========================== */
.tag-pill {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  color: var(--brown-light);
  border: 1px solid var(--lemon-mid);
  padding: 3px 10px;
  border-radius: 14px;
}

/* ===========================
   CTAボタン（共通）
   =========================== */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--yellow);
  color: #fff;
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(232, 185, 35, 0.25);
}

.hero-cta:hover {
  background: var(--yellow-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232, 185, 35, 0.35);
}

.hero-cta img { 
  width: 20px; 
  height: 20px; 
}

/* ===========================
   コンタクトボタン（共通）
   =========================== */
.c-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.c-btn img { width: 20px; height: 20px; }

.c-btn.primary {
  background: var(--yellow);
  color: #fff;
  box-shadow: 0 4px 20px rgba(232, 185, 35, 0.25);
  border: none;
}

.c-btn.primary:hover {
  background: var(--yellow-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232, 185, 35, 0.35);
}

.c-btn.outline {
  background: var(--card);
  color: var(--brown);
  border: 1px solid var(--lemon-mid);
}

.c-btn.outline:hover {
  background: var(--lemon);
  border-color: var(--yellow);
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes blobFloat1 {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(20px,-30px) scale(1.05); }
  66% { transform: translate(-15px,15px) scale(0.97); }
}

@keyframes blobFloat2 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(25px,-20px) scale(1.08); }
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
