/* ==========================================================================
   Design Tokens - デザイン変数
   ========================================================================== */
:root {
  --primary: #f8c291;    /* 暖色系のオレンジ（メイン） */
  --secondary: #6a89cc;  /* 落ち着いた青（アクセント） */
  --accent: #e55039;     /* 活気のある赤（ボタンなど） */
  --bg-color: #fffaf0;   /* 画用紙のような温かい白 */
  --text-color: #4a4a4a; /* 読みやすいチャコールグレー */
  --font-main: 'Kiwi Maru', serif;
  --font-round: 'Zen Maru Gothic', sans-serif;
  
  /* Pastel Palette - 装飾用パステルカラー */
  --pastel-pink: #ffdfd3;
  --pastel-yellow: #fcf4dd;
  --pastel-green: #ddedea;
  --pastel-blue: #daeaf6;
  --pastel-purple: #e8dff5;
}

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

body {
  font-family: var(--font-round);
  background-color: var(--bg-color);
  background-image: url("https://www.transparenttextures.com/patterns/handmade-paper.png"); /* Canvas texture */
  color: var(--text-color);
  line-height: 1.8;
  overflow-x: hidden;
}

/* Base Graphics - watercolor wash background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 20%, rgba(255, 223, 211, 0.4) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(218, 234, 246, 0.4) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(252, 244, 221, 0.3) 0%, transparent 60%);
  filter: blur(60px);
  z-index: -2;
}

h1, h2, h3 {
  font-family: var(--font-main);
  color: #333;
  word-break: auto-phrase;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

/* Header & Nav */
header {
  padding: 1.2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 2000;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: var(--font-main);
  color: var(--accent);
}

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

.logo-small {
  font-size: 1.3rem;
  font-weight: normal;
}

.logo-large {
  font-size: 2.0rem;
  font-weight: bold;
}

.logo img {
  height: 50px;
  width: auto;
  border-radius: 10px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav ul li a {
  font-weight: 500;
  position: relative;
  white-space: nowrap;
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 5px;
  transition: 0.3s;
}

nav ul li a:hover::after {
  width: 100%;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  padding: 8px 12px;
  cursor: pointer;
  position: relative;
  z-index: 2005;
  color: var(--accent);
  border-radius: 10px;
  transition: all 0.2s;
}

/* Hero Section Enhancement - Grand Background */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 5%;
  position: relative;
  overflow: hidden;
  background-image: 
    linear-gradient(to bottom, rgba(255, 250, 240, 0.2), rgba(255, 250, 240, 0.8)),
    url('assets/hero.jpg');
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle, transparent 20%, rgba(255, 250, 240, 0.9) 80%);
  z-index: 1;
}

.hero-content {
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  padding: 3rem 4rem;
  border-radius: 60px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border: 3px dashed var(--primary);
  max-width: 850px;
  position: relative;
  backdrop-filter: blur(5px);
}

.hero h1 {
  font-size: clamp(2rem, 7vw, 3.8rem);
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, #e55039, #f8c291);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.25;
  display: block;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero p {
  font-size: clamp(1rem, 4vw, 1.5rem);
  margin-bottom: 2.5rem;
  font-weight: 700;
  line-height: 1.6;
}

/* Section Common */
section {
  padding: 90px 10%;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title h2 {
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  line-height: 1.4;
  letter-spacing: 0.04em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 60px;
  background: url('assets/palette_icon.svg') no-repeat center;
  background-size: contain;
  margin: 12px auto 0;
}

.section-title.no-icon::after {
  content: none;
  display: none;
}

/* Intro Section */
.intro-flex {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.intro-image {
  flex: 1 1 420px;
  max-width: 100%;
}

.intro-text {
  flex: 1 1 450px;
  max-width: 100%;
}

/* Cards & Components */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: white;
  padding: 2rem;
  border-radius: 30px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.03);
  transition: transform 0.3s;
  border-bottom: 8px solid var(--pastel-yellow);
}

.card:hover {
  transform: translateY(-8px);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.gallery-card img {
  border-radius: 16px;
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--accent);
  color: white;
  border-radius: 50px;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(229, 80, 57, 0.3);
  transition: transform 0.3s;
}

.btn:hover {
  transform: scale(1.04);
  background: #cf4530;
}

/* Footer */
footer {
  background: #333;
  color: white;
  padding: 50px 10%;
  text-align: center;
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0); }
}

.floating-icon {
  position: absolute;
  font-size: 3rem;
  opacity: 0.2;
  animation: float 6s ease-in-out infinite;
}

/* Utils */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* ==========================================================================
   Mobile Responsive Rules (Highest Priority at Bottom)
   ========================================================================== */
@media (max-width: 768px) {
  header {
    padding: 0.8rem 5%;
  }

  .logo-small {
    font-size: 1.1rem;
  }
  .logo-large {
    font-size: 1.4rem;
  }
  .logo img {
    height: 38px;
  }

  .nav-toggle {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 280px;
    max-width: 80%;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2003;
    padding: 90px 25px 40px;
    overflow-y: auto;
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }

  nav ul li {
    width: 100%;
    border-bottom: 1px dashed var(--pastel-pink);
    padding-bottom: 0.8rem;
  }

  nav ul li a {
    font-size: 1.15rem;
    display: block;
    width: 100%;
    padding: 4px 0;
  }

  /* Mobile Hero Section */
  .hero {
    min-height: calc(100dvh - 65px);
    height: auto;
    background-attachment: scroll;
    padding: 25px 4% 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-content {
    padding: 1.8rem 1.1rem 2rem;
    border-radius: 28px;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
  }

  .hero h1 {
    font-size: clamp(1.3rem, 6.0vw, 1.7rem);
    line-height: 1.35;
    margin-bottom: 1rem;
  }

  .hero p {
    font-size: clamp(0.9rem, 3.8vw, 1.1rem);
    margin-bottom: 1.5rem;
  }

  /* Mobile Section Titles & Content */
  section {
    padding: 45px 5%;
  }

  .section-title {
    margin-bottom: 25px;
  }

  .section-title h2 {
    font-size: clamp(1.2rem, 5.0vw, 1.55rem);
    line-height: 1.35;
    letter-spacing: 0.02em;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .section-title::after {
    width: 44px;
    height: 44px;
    margin: 8px auto 0;
  }

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

  .intro-flex {
    flex-direction: column;
    gap: 25px;
  }
  
  .intro-image, .intro-text {
    min-width: 100%;
  }

  .intro-text p {
    font-size: 1.05rem;
    text-align: left;
  }
}
