/* ===== 色やサイズはここでまとめて変えられます ===== */
:root {
  --bg-outer: #f3e6d6;      /* PCで見たときの両側の背景 */
  --bg-dot: #ead5bd;        /* 両側のドット柄 */
  --bg: #fdf7ef;            /* 中央カラムの背景 */
  --card: #fffdf9;          /* カードの背景 */
  --text: #5b4636;          /* 文字色 */
  --text-sub: #9a8371;      /* 薄い文字色 */
  --line: #eddcc8;          /* 枠線 */
  --accent: #ef8a6f;        /* 差し色（ピーチ） */
  --accent-dark: #d96f55;
  --accent-soft: #ffe4d8;
  --mint: #8cc7b5;          /* 2つめの差し色 */
  --mint-soft: #ddf1ea;
  --fanza: #e86a88;
  --dlsite: #4a8fd1;
  --radius-l: 28px;
  --radius-m: 20px;
  --radius-s: 14px;
  --column: 480px;          /* PCで表示するときの中央カラムの幅 */
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 112px; }

body {
  margin: 0;
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--text);
  line-height: 1.75;
  background-color: var(--bg-outer);
  background-image: radial-gradient(var(--bg-dot) 2px, transparent 2.5px);
  background-size: 22px 22px;
  -webkit-text-size-adjust: 100%;
}
body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: var(--accent-dark); }

/* ===== 中央1カラム ===== */
.page {
  max-width: var(--column);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
}
@media (min-width: 520px) {
  .page {
    margin: 24px auto;
    min-height: calc(100vh - 48px);
    border-radius: var(--radius-l);
    box-shadow: 0 6px 30px rgba(120, 85, 55, .12);
    overflow: hidden;
  }
}

/* ===== ヘッダー ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 16px 10px;
  background: rgba(253, 247, 239, .94);
  backdrop-filter: blur(6px);
  border-bottom: 1.5px dashed var(--line);
}
.header__logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 8px;
}
.header__name {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--accent-dark);
}
.header__name::before {
  content: "";
  display: inline-block;
  width: .55em;
  height: .55em;
  margin-right: .35em;
  border-radius: 50%;
  background: var(--mint);
  vertical-align: .12em;
}
.header__tagline { font-size: .78rem; color: var(--text-sub); }

.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.tabs__item {
  display: block;
  padding: 6px 0;
  text-align: center;
  font-size: .86rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  transition: background .2s, color .2s, border-color .2s;
}
.tabs__item:hover,
.tabs__item.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ===== カルーセル ===== */
.carousel {
  position: relative;
  margin: 16px 14px 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--accent-soft);
  border: 2px solid var(--line);
}
.carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* スマホは縦長（4:5） */
  aspect-ratio: 4 / 5;
}
.carousel__track::-webkit-scrollbar { display: none; }
@media (min-width: 520px) {
  /* PCは横長（16:9） */
  .carousel__track { aspect-ratio: 16 / 9; }
}
.carousel__slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.carousel__slide a,
.carousel__slide picture { display: block; width: 100%; height: 100%; }
.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
}
.carousel__caption {
  position: absolute;
  left: 12px;
  bottom: 34px;
  max-width: calc(100% - 24px);
  padding: 5px 14px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 253, 249, .92);
  border-radius: 999px;
}
.carousel__arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  padding-bottom: 4px;
  color: var(--accent-dark);
  background: rgba(255, 253, 249, .85);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(120, 85, 55, .15);
}
.carousel__arrow--prev { left: 8px; }
.carousel__arrow--next { right: 8px; }
/* タッチ端末では矢印を隠してスワイプのみ */
@media (hover: none) { .carousel__arrow { display: none; } }

.carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 7px;
}
.carousel__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 0 0 1px rgba(120, 85, 55, .15);
  cursor: pointer;
  transition: width .25s, background .25s;
}
.carousel__dot.is-active { width: 22px; background: var(--accent); }

/* ===== セクション共通 ===== */
.section { padding: 30px 14px 6px; }
.section__title {
  margin: 0 0 14px;
  font-size: 1.15rem;
  text-align: center;
}
.section__title span {
  display: inline-block;
  padding: 4px 22px;
  background: var(--mint-soft);
  border-radius: 999px;
}
.box {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius-m);
}

/* ===== 作品一覧 ===== */
.works {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.work {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius-m);
}
.work__thumb {
  flex: 0 0 104px;
  width: 104px;
  height: 104px;
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--accent-soft);
}
.work__thumb img { width: 100%; height: 100%; object-fit: cover; }
.work__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.work__meta { display: flex; gap: 6px; align-items: center; font-size: .72rem; color: var(--text-sub); }
.work__type {
  padding: 0 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
}
.work__title { margin: 2px 0 2px; font-size: 1rem; line-height: 1.45; }
.work__catch { margin: 0 0 8px; font-size: .82rem; color: var(--text-sub); line-height: 1.6; }
.work__links { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.shop {
  display: inline-block;
  padding: 3px 12px;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  border-radius: 999px;
}
.shop--fanza { background: var(--fanza); }
.shop--dlsite { background: var(--dlsite); }
.shop:hover { opacity: .85; }

/* ===== お知らせ ===== */
.news { list-style: none; margin: 0; padding: 6px 16px; }
.news li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  font-size: .88rem;
  border-bottom: 1.5px dashed var(--line);
}
.news li:last-child { border-bottom: none; }
.news time { flex: 0 0 auto; color: var(--text-sub); font-size: .8rem; padding-top: .1em; }

/* ===== 問い合わせ ===== */
.form { padding: 18px 16px; }
.form__lead { margin: 0 0 12px; font-size: .88rem; }
.form__field { display: block; margin-bottom: 12px; }
.form__field span { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 4px; }
.form__field input,
.form__field textarea {
  width: 100%;
  padding: 10px 14px;
  font: inherit;
  font-size: 16px; /* iPhoneで自動ズームしないように */
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: var(--radius-s);
  outline: none;
  transition: border-color .2s;
}
.form__field textarea { resize: vertical; }
.form__field input:focus,
.form__field textarea:focus { border-color: var(--accent); }
.form__status { margin: 10px 0 0; font-size: .85rem; text-align: center; min-height: 1.2em; }
.form__status.is-ok { color: #3f9a7d; }
.form__status.is-error { color: var(--accent-dark); }
.form__alt { margin: 6px 0 0; font-size: .8rem; text-align: center; color: var(--text-sub); }

/* ===== リンク ===== */
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 999px;
  transition: border-color .2s, background .2s;
}
.links a::after { content: "→"; color: var(--accent); }
.links a:hover { border-color: var(--accent); background: var(--accent-soft); }
.links small { margin-left: auto; color: var(--text-sub); font-size: .75rem; font-weight: 400; }

/* ===== ボタン ===== */
.btn {
  display: inline-block;
  padding: 10px 24px;
  font: inherit;
  font-weight: 700;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, transform .1s;
}
.btn:active { transform: scale(.97); }
.btn--main { background: var(--accent); color: #fff; }
.btn--main:hover { background: var(--accent-dark); }
.btn--sub { background: var(--card); color: var(--text); border-color: var(--line); }
.btn--sub:hover { background: var(--bg); }
.btn--wide { display: block; width: 100%; }
.btn:disabled { opacity: .6; cursor: default; }

/* ===== フッター ===== */
.footer {
  margin-top: 30px;
  padding: 20px 14px 28px;
  text-align: center;
  font-size: .78rem;
  color: var(--text-sub);
  border-top: 1.5px dashed var(--line);
}
.footer p { margin: 0; }
.footer__note { font-size: .7rem; margin-top: 4px !important; }

/* ===== 年齢確認 ===== */
.agegate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background-color: var(--bg-outer);
  background-image: radial-gradient(var(--bg-dot) 2px, transparent 2.5px);
  background-size: 22px 22px;
}
.agegate[hidden] { display: none; }
.agegate__box {
  width: 100%;
  max-width: 380px;
  padding: 30px 22px 24px;
  text-align: center;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: 0 6px 30px rgba(120, 85, 55, .12);
}
.agegate__badge {
  display: inline-block;
  margin: 0 0 6px;
  padding: 2px 16px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
}
.agegate__title { margin: 0 0 10px; font-size: 1.3rem; }
.agegate__text { margin: 0 0 20px; font-size: .9rem; }
.agegate__buttons { display: grid; gap: 10px; }
.agegate__denied { margin: 16px 0 0; font-size: .85rem; color: var(--accent-dark); }
