/* =====================================
   共通設定
===================================== */
html {
  scroll-behavior: smooth;
}
html { opacity: 1; transition: opacity .25s ease; }
html.fade-out { opacity: 0; }

body {
  margin: 0;
  font-family: 'Quicksand', 'Noto Sans JP', sans-serif;
  background: #E1FCFF;
  color: #333;
  text-align: center;
  overflow-x: hidden; 
  padding-top: 65px; 
   cursor: none;
}
/* カスタムカーソル */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  background-color: #0288D1;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: transform 0.05s linear;
}
h1,h2,h3,.logo,.hero-title { font-family:'Comfortaa', sans-serif; }
body, p, a, li, button, input, textarea { font-family:'Quicksand','Noto Sans JP',sans-serif; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ロゴ */
.logo img {
  height: 40px;
  width: auto;
}


.logo {
  font-size: 1.5rem;  
  font-weight: bold;
  color: #333;
}

/* =====================================
   雪アニメーション
===================================== */
.snow-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 250px;
  pointer-events: none;
  z-index: 0;
}

/* =====================================
   ヘッダー & ナビ
===================================== */
/* ヘッダー全体 */
header {
  width: 100%;
  z-index: 1000;
}
/* ロゴ＋メニューだけ固定 */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  height: 70px;         
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.95);
  z-index: 999;
  box-sizing: border-box;
  margin-bottom: 0;
}

/* メニュー */
.main-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;     
  overflow-x: auto;       
  padding-right: 1rem;   
}

.main-nav a {
  text-decoration: none;
  color: #0288D1;
  font-family: 'Comfortaa', sans-serif;
  font-size: 0.9rem; 
  font-size: 0.85rem;    
  white-space: nowrap;   
}
.main-nav a:hover {
  color: #FF5C5C;
}
.notice-bar {
  top: 70px;   
  margin: 0; 
  padding-top: 0.5rem; 
  border-bottom: 1px solid #FFD700; 
}
/* ハンバーガー共通 */
.hamburger {
  display: none; 
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  background: #0288D1;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  text-align: center;
  line-height: 45px;
  position: fixed; 
  top: 12px;
  right: 12px;
  z-index: 1001;
}
/* カテゴリナビ */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 20px 0;
}

.category-nav button {
  background: #fff;
  border: 2px solid #0288D1;
  border-radius: 25px;
  padding: 8px 16px;
  font-family: 'Comfortaa', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
}

.category-nav button:hover {
  background: #0288D1;
  color: #fff;
}

.category-nav button.active {
  background: #0288D1; 
  color: #fff; 
}


/* =====================================
   お知らせバー
===================================== */
.notice-bar {
  background-color: #FFFAE6;
  color: #333;
  font-size: 0.95rem;
  text-align: center;
  padding: 8px 15px;
  border-bottom: 1px solid #FFD700;
  position: sticky;
  top: 60px;
  z-index: 9;
  transition: transform 0.5s ease, opacity 0.5s ease;
      scroll-margin-top: 80px;
  padding-top: 1rem;
}

.notice-bar a {
  color: #0288D1;
  text-decoration: underline;
}

.notice-bar a:hover {
  color: #FF5C5C;
}

.notice-bar.hide {
  transform: translateY(-100%);
  opacity: 0;
}
section#news {
  scroll-margin-top: 70px; 
}

/* =====================================
   セクション見出し
===================================== */
h2 {
  font-family: 'Comfortaa', cursive;
  font-size: 1.6rem;
  margin: 60px 0 30px;
  color: #0288D1;
}

h2::after {
  content: " ❄";
  color: #FF5C5C;
  margin-left: 8px;
}
/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg,#E1FCFF 0%,#ffffff 100%);
  padding: 110px 20px 80px; text-align: center;
}
.hero-bg .light-dots {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow { color:#0288D1; font-weight:600; letter-spacing:.08em; margin:0 0 8px; }
.hero-title { font-family:'Comfortaa',sans-serif; font-size: clamp(1.6rem, 4vw, 2.6rem); margin:6px 0 14px; color:#014D7A; }
.hero-copy { color:#4b5563; line-height:1.9; margin:0 auto 18px; max-width: 26rem; }
.hero-cta {
  display:inline-block; background:#0288D1; color:#fff; text-decoration:none;
  padding:12px 26px; border-radius:999px; font-weight:700; transition:.2s;
}
.hero-cta:hover { background:#FF5C5C; transform: translateY(-1px); }

/* =====================================
   Worksギャラリー
===================================== */
/* Worksギャラリー */
.gallery {
  display: flex;
  flex-wrap: wrap; 
  gap: 20px;  
  justify-content: center;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.gallery .work img {
  width: 100%;
  aspect-ratio: 1 / 1; 
  object-fit: cover;
  border-radius: 8px; 
}
.work {
  height: auto;
  background: #fff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 20px; 
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 0 0 calc(25% - 20px); 
  max-width: 320px;
  aspect-ratio: 4/3;
  margin: 0;

}
.work img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit; 
  box-shadow: none; 
}
/* ホバー時 */
.work:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.work p {
  position: absolute;
  bottom: 10px;
  left: 10px;
  margin: 0;
  font-weight: 600;
  font-size: 14px;
  color: #333;
  background: rgba(255,255,255,0.7);
  padding: 4px 8px;
  border-radius: 6px;
}

.work:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* スクロールバー非表示 */
.gallery::-webkit-scrollbar { display: none; }
.gallery { -ms-overflow-style: none; scrollbar-width: none; }

/* =====================================
   Price / Plan
===================================== */
.price, .detail-page {
  text-align: center;
}

.plan-cards, .price-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; 
  justify-content: center;
  margin: 40px auto 0;
}

.plan-card, .price-item {
  background: #fff;
  border-radius: 20px;
  padding: 30px 20px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
 width: 260px; 
  max-width: 280px;
}

.plan-card:hover, .price-item:hover {
  transform: translateY(-10px) rotate(-1deg);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.plan-icon, .price-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  animation: float 3s ease-in-out infinite;
}

.plan-card h3, .price-item h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.plan-card p, .price-item p, .price-desc {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
  margin-bottom: 15px;
}

.more-btn {
  display: inline-block;
  background-color: #fff;
  color: #0288D1;
  border: 2px solid #0288D1;
  padding: 10px 25px;
  border-radius: 25px;
  font-family: 'Quicksand', 'Noto Sans JP', sans-serif; /* 共通フォントに揃える */
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.more-btn:hover {
  background-color: #0288D1;
  color: #fff;
  transform: translateY(-2px);
}
.plan-icon {
  font-size: 2rem;          /* ← サイズ調整 */
  display: flex;
  justify-content: center;  /* 横中央寄せ */
  align-items: center;      /* 縦中央寄せ */
  height: 60px;             /* 必要に応じて高さ固定 */
}

/* =====================================
   Profile
===================================== */
#profile {
  padding: 40px 20px;
}

.profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 700px;
  margin: 0 auto;
}

.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #0288D1;
  transition: border-color 0.3s;
}

.profile-photo:hover { border-color: #FF5C5C; }

.profile-text p:first-child { font-weight: bold; font-size: 1.1rem; margin-bottom: 5px; }

/* =====================================
   Contact
===================================== */
#contact {
  padding: 40px 20px;
  max-width: 700px;
  margin: 50px auto;
}

#contact form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#contact input, #contact textarea {
  padding: 12px 15px;
  border-radius: 15px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.3s;
}

#plan-select:focus {
  border-color: #0288D1;
  outline: none;
}

#contact textarea { min-height: 100px; resize: vertical; }

.contact-btn {
    border: none; 
  background-color: #0288D1;
  color: #fff;
  padding: 15px 30px;
  border-radius: 25px;
  font-family: 'Quicksand', 'Noto Sans JP', sans-serif; 
  text-decoration: none;
    font-size: 18px; 
  transition: background-color 0.3s;
}

.contact-btn:hover { background-color: #FF5C5C; }

#plan-selected {
  display: none; 
}

#plan-select {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 16px;
  appearance: none;
  background: url('img/arrow-down.svg') no-repeat right 10px center;
  background-size: 16px;
}

.scroll-top-btn {
  position: fixed;
  right: 20px;
  bottom: 80px;
  display: block;  
  width: 48px;
  height: 48px;
  background: #0288D1;
  color: #fff;
  font-size: 24px;
  text-align: center;
  line-height: 48px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
  z-index: 1000;
}
.scroll-top-btn:hover {
  background: #0277BD;
  transform: translateY(-2px);
}
/* =====================================
   Partners / バナー
===================================== */
#partners { padding: 50px 20px; text-align: center; }

.banner-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.banner-container a img {
  width: 220px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.banner-container a img:hover {
  transform: translateY(-5px) scale(1.05); 
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* 特別バナー（絵本 / クリスマス） */
#special-banners {
  padding: 60px 20px;
  text-align: center;
  background: #fffaf5;
}

.special-banner-container {
  display: flex;
  flex-direction: column; 
  align-items: center;
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.special-banner img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}


.special-banner img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}


/* =====================================
   モーダル
===================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  overflow: hidden; 
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 20px;
  width: 90%;
  max-width: 800px;
   max-height: 90%; 
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: auto;
  overflow-y: auto;
}

#modal-img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
}
.modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.7);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  z-index: 10;
}

.modal-arrow.left { left: 0.5rem; }
.modal-arrow.right { right: 0.5rem; }

.modal-arrow:hover { color: #FF5C5C; }
.modal-desc-block { margin: 6px 0 8px; color:#374151; }
.modal-meta { background:#f7fbff; border:1px solid #e5f1fb; padding:10px 12px; border-radius:12px; text-align:left; margin:10px 0; }
.meta-label { display:inline-block; font-size:.78rem; font-weight:700; color:#0288D1; margin-bottom:4px; }

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 50px;
  cursor: pointer;
  color: #333;
}

/* =====================================
   アニメーション
===================================== */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-5px) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
  75% { transform: translateY(-5px) rotate(-1deg); }
}

*, *::before, *::after {
  box-sizing: border-box;
}

.plan-cards, .price-container, .gallery, .banner-container {
  max-width: 100%;
  overflow-x: hidden;
}



/* =====================================
   レスポンシブ
===================================== */
@media (min-width: 768px) {
  .gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 1200px; 
    margin: 0 auto;
  }

  .work {
    flex: 1 1 calc(25% - 20px); 
    max-width: calc(25% - 20px); 
    aspect-ratio: 4 / 3;
    margin: 0;
  }
  .work img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
  }
  .profile-container { flex-direction: row; text-align: left; }
  .profile-text { max-width: 500px; }
  .plan-cards, .price-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-items: center;
    max-width: 900px;
    margin: 40px auto 0;
  }

  .plan-card, .price-item {
    max-width: 280px;
    width: 100%;
  }
  .top-bar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
  }
  .main-nav {
    display: flex;
  }
  .hamburger {
    display: none;
  }
}

@media (max-width: 767px) {
  .gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 10px;
    align-items: center;
  }
/* スマホ時の画像の縦ずれ修正 */
  .work {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;  
  }

  .work img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
  }

  .gallery .work p {
    position: absolute !important;
    bottom: 8px !important;
    left: 8px !important;
    right: auto !important;
    margin: 0 !important;
    font-size: 13px !important;
    background: rgba(255, 255, 255, 0.7) !important;
    padding: 3px 7px !important;
    border-radius: 6px !important;
    text-align: left !important;
  }
  /* Services / Price */
  .plan-card, .price-item {
    width: 85%;      /* もう少し横幅を広く */
    max-width: none;
    margin: 0 auto;
  }
  .modal-content {
    width: 90%;
    max-height: 90vh; 
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }

  #modal-img {
    width: 100%;
    height: auto;
    max-height: 55vh; 
    object-fit: contain; 
    margin-bottom: 10px;
  }

  #modal-title {
    font-size: 1.1rem;
    margin: 5px 0;
  }

  #modal-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 10px;
  }

  .modal-arrow {
    display: none;
  }
    
    .modal-link {
  display: inline-block;
  margin-top: 10px;
  color: #0288D1;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
  font-size: 0.9rem;
}

.modal-link:hover {
  color: #FF5C5C;
  text-decoration: underline;
}
/* ===== モーダル内リンクボタン ===== */
.modal-btn {
  display: inline-block;
  margin-top: 12px;
  background-color: #0288D1;
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  font-family: 'Quicksand', 'Noto Sans JP', sans-serif;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.3s, transform 0.2s;
}

.modal-btn:hover {
  background-color: #FF5C5C;
  transform: translateY(-2px);
}

  .top-bar {
    position: static;
    top: 0;
    width: 100%;
    height: 70px;
    padding: 10px 1rem; 
    display: flex;
      margin: 0; 
      justify-content: center; 
    align-items: center;
   background: #fff; 
      box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
    z-index: auto; 
      flex-direction: row;
  }
      body {
    padding-top: 0; 
  }
  .main-nav {
    display: none;
  }
  /* ハンバーガークリックでメニュー表示 */
  .main-nav.show {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    right: 10px;
    background: rgba(255,255,255,0.95);
    padding: 10px 15px;
    gap: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 999;
  }
  .main-nav {
    display: none; 
    flex-direction: column;
    position: absolute;
    top: 70px; 
    right: 10px;
    background: rgba(255,255,255,0.95);
    padding: 10px 15px;
    gap: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 999;
  }
      /* ニュースバー固定 */
  .notice-bar {
    position: static;   
    top: 60px; 
    width: 100%;
    z-index: 999;
  }
  .hamburger {
        display: block; 
    position: fixed; 
    top: 15px;
    right: 15px;
    z-index: 1000;
  }
  }
  .logo {
    display: flex; 
    align-items: center;
  }

  .logo img {
    height: 40px; 
    width: auto;
  }

}
@media (max-width: 600px) {
  .top-bar { flex-direction: column; gap: 10px; }
  .main-nav { gap: 15px; justify-content: center; }
    /* バナーをスマホで大きく */
  .banner-container a img {
    width: 160px;
    height: auto;
  }
       .gallery {
  flex-direction: column;
  gap: 30px;
           
}
  .works img {
    width: 100%;
    height: 200px; 
    object-fit: cover; 
    border-radius: 10px;
  }
}
/* 小さいスマホで安全に中央寄せ */
@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr; 
  }
}
.top-works-footer {
  margin-top: 24px;
  text-align: center;
}

.button-more {
  display: inline-block;
  padding: 10px 32px;
    background: #fff;
    border: 2px solid #0288D1;
    border-radius: 25px;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #111;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.button-more:hover {
  background: #0288D1;
  color: #fff;
  transform: translateY(-1px);
}
