/* =========================
   基本スタイル
========================= */
body {
  margin: 0;
  font-family: 'Zen Maru Gothic', sans-serif;
  color: #5A4A42;
  background-color: #F7EFE5;
  background-image: 
    radial-gradient(rgba(255,255,255,0.45) 3px, transparent 3px),
    radial-gradient(rgba(255,255,255,0.45) 3px, transparent 3px);
  background-position: 0 0, 25px 25px;
  background-size: 50px 50px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

body, h1, h2, h3, p, li, button {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ヘッダー */
.header {
  background: #FFDAB9;
  padding: 20px;
}

.sub-nav {
  display: flex;
  justify-content: center;
  gap: 45px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.sub-nav a {
  text-decoration: none;
  color: #5A4A42;
  font-weight: bold;
  font-size: 1.1em;
}

/* Hero */
.hero {
  text-align: center;
  padding: 60px 20px;
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  animation: floatHeroText 3s ease-in-out infinite;
}

@keyframes floatHeroText {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-illust {
  width: 260px;
  max-width: 80%;
}

.hero-text {
  text-align: center;
  width: 100%;
  max-width: 360px;
}

/* ⭐ ここが今回の改善ポイント */
.hero-text p:first-of-type {
  font-size: clamp(12px, 4vw, 16px);
}

/* CTAボタン */
.cta-button {
  padding: 10px 20px;
  border-radius: 50px;
  border: 2px solid #E8B4A0;
  background: white;
  cursor: pointer;
  transition: 0.3s;
}

.cta-button:hover {
  transform: translateY(-3px);
  background: #FFE4D6;
}

/* セクション */
.section-title.center {
  text-align: center;
}

/* カード */
.project-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.project-card {
  background: white;
  padding: 10px;
  border-radius: 15px;
  flex: 1 1 150px;
  max-width: 200px;
  text-align: center;
}

.project-thumb {
  width: 100%;
  border-radius: 10px;
}

.more-btn {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  border-radius: 30px;
  border: none;
  background: #E8B4A0;
  color: white;
  cursor: pointer;
}

/* セクション共通 */
.about, .shop, .contact {
  text-align: center;
  padding: 60px 20px;
}

.about-img {
  max-width: 250px;
  width: 80%;
}

/* フォーム */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 300px;
  margin: auto;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

.contact-form button {
  background: #A76E54;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 10px;
}

/* フッター */
.footer-banner {
  width: 50%;
  max-width: 400px;
  display: block;
  margin: 0 auto 10px;
}

footer {
  text-align: center;
  padding: 30px;
  background: #777;
  color: white;
}

/* スクロール */
.scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.scroll-fade.show {
  opacity: 1;
  transform: translateY(0);
}

/* モーダル */
.image-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.8);
}

.image-modal.show {
  display: flex;
}

.modal-content {
  text-align: center;
  color: white;
}

.image-modal img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: white;
  cursor: pointer;
  padding: 10px;
}

.prev { left: 20px; }
.next { right: 20px; }

/* =========================
   スマホ対応
========================= */
@media (max-width: 600px) {

  .sub-nav {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .hero-inner {
    flex-direction: column;
    gap: 20px;
  }

  .project-card {
    flex: 1 1 45%;
    max-width: 45%;
  }

  .hero-illust {
    width: 200px;
  }

  .about-img {
    width: 70%;
  }

  .contact-form {
    width: 90%;
  }

  .footer-banner {
    width: 80%;
  }

  .modal-content img {
    max-width: 80%;
    max-height: 60%;
  }

  .nav {
    font-size: 30px;
  }
}

/* 小さいスマホ */
@media (max-width: 400px) {
  h1 { font-size: 1.8em; }
  h2 { font-size: 1.4em; }
  h3 { font-size: 1.2em; }
  p  { font-size: 0.95em; }
}