/* =============================================
   VARIABLES & RESET
   ============================================= */
:root {
  --cream: #FFF8F0;
  --pink: #FF6B9D;
  --pink-light: #FFE5EF;
  --dark: #1a1a1a;
  --gray: #555;
  --gray-light: #f5f0eb;
  --yellow: #FFE769;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
  --max-w: 1100px;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.09);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--dark);
  line-height: 1.85;
  font-size: 15px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(255,248,240,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  height: 64px;
  padding: 0 1.5rem;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo-link { flex-shrink: 0; }
.logo { height: 38px; width: auto; object-fit: contain; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

.main-nav a {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--dark);
  transition: color 0.2s;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--pink); }
.nav-note { font-weight: 700; }

.btn-contact {
  flex-shrink: 0;
  background: var(--pink);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-contact:hover { background: #e5548a; transform: translateX(2px); }

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 4rem 5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

/* hero-tag: 目立つように大きく */
.hero-tag {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 0.5rem 1.4rem;
  border-radius: 999px;
  margin-bottom: 1.8rem;
  letter-spacing: 0.08em;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(72px, 11vw, 150px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 2.5rem;
}

.hero-copy {
  border-left: 3px solid var(--pink);
  padding-left: 1.2rem;
  margin-bottom: 4rem;
}
.hero-copy p {
  font-size: 15px;
  color: var(--gray);
  line-height: 2.1;
}

.scroll-cue {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #bbb;
  position: absolute;
  bottom: 2.5rem;
  left: 4rem;
}

/* =============================================
   SECTIONS
   ============================================= */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 3.5rem;
}

/* =============================================
   WORKS
   ============================================= */
.works-section { padding-top: 0; }
.works-heading { margin-bottom: 1.5rem; }

.work-block {
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: 3.5rem;
  align-items: start;
  padding: 4rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.09);
}

.work-block--reverse {
  grid-template-columns: 6fr 4fr;
}
.work-block--reverse .work-visuals { order: -1; }

.work-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.6;
  color: var(--dark);
}

.work-desc p {
  font-size: 13.5px;
  color: var(--gray);
  margin-bottom: 0.8rem;
  line-height: 2;
}

.work-client {
  font-size: 13px;
  color: var(--pink);
  font-weight: 600;
  margin-bottom: 0.8rem !important;
}

.note-link {
  display: inline-block;
  font-size: 12.5px;
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin: 0.3rem 0 1rem;
  line-height: 1.7;
}

.note-small {
  font-size: 12px !important;
  color: #999 !important;
}

.comment-img {
  margin-top: 1.5rem;
  border-radius: 10px;
  max-width: 100%;
}

/* Work visuals */
.work-visuals { position: relative; }

/* リンクに飛ばない画像はホバーで動かない（box-shadowだけ） */
.work-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: box-shadow 0.3s;
  width: 100%;
}
.work-img:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
}

/* リンク内の画像のみ浮き上がるアニメーション */
a .work-img,
a .coffee-brothers-img {
  transition: transform 0.3s, box-shadow 0.3s;
}
a .work-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.15);
}
a .coffee-brothers-img:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 32px rgba(0,0,0,0.15);
}

/* 縦積み：メイン画像大＋サブ画像小さめ */
.img-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.img-stack .img-sub {
  width: 68%;
}

/* アニメーションなし（静的画像） */
.no-anim {
  transition: none !important;
  animation: none !important;
}

/* 2×2 画像グリッド */
.img-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* クリックで拡大ヒント */
.click-to-view { position: relative; }
.click-hint {
  font-size: 12px;
  color: var(--pink);
  margin-top: 0.5rem;
  text-align: center;
  letter-spacing: 0.05em;
}

/* 等幅ペア */
.img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ポスターレイアウト：針刺し大＋下段２枚小 */
.img-poster {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.poster-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

/* CT学習会スライドサムネイル */
.ct-slide-preview {
  margin-top: 1rem;
}
.ct-thumb {
  width: 100%;
  max-width: 220px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  margin-bottom: 0.5rem;
  transition: box-shadow 0.3s;
}
.ct-thumb:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.15); }

/* Slideshow */
.slideshow {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #f9f9f9;
}
.slideshow-img {
  width: 100%;
  display: block;
  cursor: pointer;
}
.slideshow-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.92);
  border-top: 1px solid rgba(0,0,0,0.06);
}
.slide-btn {
  background: var(--pink);
  color: white;
  border: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.slide-btn:hover { background: #e5548a; }
.slide-counter {
  font-size: 12px;
  color: var(--gray);
  font-weight: 600;
  min-width: 40px;
  text-align: center;
}

/* Coffee brothers */
.character-link-img { display: inline-block; margin-top: 1.5rem; }
.coffee-brothers-img {
  border-radius: var(--radius);
  cursor: pointer;
  max-width: 220px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Works divider */
.works-divider {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--gray-light);
  border-radius: var(--radius);
  margin: 4rem 0;
}
.divider-text {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.divider-sub {
  font-size: 13.5px;
  color: var(--gray);
  margin-bottom: 1.5rem;
}
.btn-outline {
  display: inline-block;
  border: 2px solid var(--dark);
  padding: 0.55rem 1.5rem;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--dark); color: white; }

/* =============================================
   ABOUT
   ============================================= */
.about-section {
  background: var(--pink-light);
  max-width: 100%;
  padding: 6rem 2rem;
}
.about-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 4rem;
  align-items: start;
}

/* イラスト：円形トリミングなし・全体表示・小さくしない */
.about-illust-wrap {
  width: 100%;
}
.about-illust {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: contain;
}

.about-name-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.about-name {
  font-size: 34px;
  font-weight: 700;
  color: var(--pink);
}
.sns-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1.5px solid currentColor;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  transition: opacity 0.2s;
  cursor: pointer;
}
.sns-badge.instagram { color: #E1306C; }
.sns-badge.note-badge { color: var(--dark); }
.sns-badge:hover { opacity: 0.75; }

.about-role {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray);
  margin-bottom: 1.5rem;
}
.about-text p {
  font-size: 13.5px;
  margin-bottom: 0.75rem;
  line-height: 1.95;
}
.about-subheading {
  font-size: 14px;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--pink);
  display: inline-block;
}
.about-list li {
  font-size: 13.5px;
  color: var(--gray);
  padding: 0.3rem 0 0.3rem 1.2rem;
  position: relative;
}
.about-list li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: var(--pink);
}

/* =============================================
   CONTACT
   ============================================= */
.contact-section { text-align: center; }
.contact-intro {
  font-size: 14.5px;
  color: var(--gray);
  margin-bottom: 2.5rem;
}
.contact-form {
  max-width: 580px;
  margin: 0 auto;
  text-align: left;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.required { color: var(--pink); }
.form-group input,
.form-group textarea {
  width: 100%;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--dark);
  background: white;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--pink); }
.form-group textarea { resize: vertical; }

/* プライバシーポリシーチェックボックス */
.form-group--check { margin-bottom: 1.8rem; }
.check-label {
  display: flex !important;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  margin-bottom: 0 !important;
}
.check-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--pink);
  cursor: pointer;
  border-radius: 4px;
}

.btn-submit {
  display: block;
  width: 100%;
  background: var(--pink);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.04em;
}
.btn-submit:hover { background: #e5548a; }

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.88);
  justify-content: center;
  align-items: center;
}
.lightbox.is-open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-close {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  background: rgba(255,255,255,0.18);
  color: white;
  border: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,0.35); }
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.18);
  color: white;
  border: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-prev { left: 1.2rem; }
.lightbox-next { right: 1.2rem; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.35); }
.lightbox-prev.hidden,
.lightbox-next.hidden { display: none; }

/* =============================================
   CHARACTERS PAGE
   ============================================= */
.characters-page { background: white; }

.char-hero {
  background: var(--yellow);
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 100px 4rem 5rem;
}
.char-hero-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
}
.char-hero .hero-title { color: var(--dark); }
.char-subtitle { margin-top: 1.5rem; }
.char-subtitle p {
  font-size: 16px;
  color: var(--dark);
  line-height: 2;
  font-weight: 400;
}

.char-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 2rem;
}

.char-block {
  display: grid;
  grid-template-columns: 6fr 4fr;
  gap: 3.5rem;
  align-items: start;
  padding: 4rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.09);
}

.char-visual img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.char-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}

.char-text p {
  font-size: 13.5px;
  color: var(--gray);
  margin-bottom: 0.75rem;
  line-height: 2;
}

.goods-section {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--yellow);
  border-radius: var(--radius);
  margin: 3rem 0;
}
.goods-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}
.goods-link img {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}
.goods-link:hover img { transform: scale(1.02); }
.goods-note {
  font-size: 13px;
  color: var(--gray);
  margin-top: 1.2rem;
}

.char-back {
  text-align: center;
  padding: 3rem 2rem;
}
.char-back a { display: inline-block; }
.char-back img {
  height: 44px;
  width: auto;
  margin: 0 auto;
  transition: opacity 0.2s;
}
.char-back a:hover img { opacity: 0.75; }
.char-back p {
  font-size: 12px;
  color: #aaa;
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  text-align: center;
  padding: 2.5rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 12px;
  color: #aaa;
  letter-spacing: 0.05em;
}

/* =============================================
   HAMBURGER MENU
   ============================================= */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* =============================================
   RESPONSIVE — TABLET 768px
   ============================================= */
@media (max-width: 768px) {
  /* Header */
  .site-header { padding: 0 1rem; }
  .header-inner { gap: 0.6rem; }
  .btn-contact { display: none; }
  .nav-toggle { display: flex; }

  /* Mobile nav drawer */
  .main-nav {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(255,248,240,0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.5rem 2rem;
    gap: 1.2rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    z-index: 199;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { font-size: 16px; }

  /* Hero */
  .hero { padding: 90px 1.5rem 3rem; }
  .hero-title { font-size: clamp(52px, 16vw, 90px); }
  .scroll-cue { left: 1.5rem; bottom: 1.5rem; }
  .hero-copy p { font-size: 14px; }

  /* Sections */
  .section { padding: 3rem 1.2rem; }
  .section-heading { font-size: 32px; margin-bottom: 2rem; }

  /* Work blocks */
  .work-block,
  .work-block--reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2.5rem 0;
  }
  .work-block--reverse .work-visuals { order: 0; }

  /* Images */
  .img-stack .img-sub { width: 55%; }
  .img-pair { grid-template-columns: 1fr 1fr; }
  .poster-sub { grid-template-columns: 1fr 1fr; }

  /* About */
  .about-section { padding: 3.5rem 1.2rem; }
  .about-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-illust { max-width: 280px; margin: 0 auto; }

  /* Contact */
  .contact-section { padding: 3rem 1.2rem; }

  /* Characters */
  .char-hero { padding: 90px 1.5rem 3rem; }
  .char-block { grid-template-columns: 1fr; gap: 2rem; }
}

/* =============================================
   RESPONSIVE — PHONE 480px
   ============================================= */
@media (max-width: 480px) {
  .hero-title { font-size: clamp(44px, 18vw, 80px); }
  .hero-tag { font-size: 12px; padding: 0.4rem 0.9rem; }

  .work-title { font-size: 15px; }
  .work-desc p { font-size: 13px; }

  .img-pair { grid-template-columns: 1fr; }
  .img-stack .img-sub { width: 75%; }
  .poster-sub { grid-template-columns: 1fr 1fr; }

  .slideshow-controls { gap: 1rem; padding: 0.6rem; }

  .about-name { font-size: 28px; }
  .section-heading { font-size: 28px; }

  .char-hero { min-height: auto; }
  .char-hero .hero-title { font-size: clamp(44px, 16vw, 80px); }
}

/* =============================================
   THANKS PAGE
   ============================================= */
.thanks-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
}
.thanks-inner {
  text-align: center;
  padding: 4rem 2rem;
}
.thanks-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  letter-spacing: 0.2em;
  font-size: 48px;
  color: var(--dark);
  margin-bottom: 1.5rem;
}
