/* ──────────────────────────────────────────────────────────────
   Tokens
   ────────────────────────────────────────────────────────────── */
:root {
  --bg:           #ffffff;
  --ink:          #000000;
  --ink-soft:     #231815;
  --rule:         #606060;
  --rule-soft:    #c8c8c8;
  --gray-section: #606060;
  --cream:        #f4f1e1;
  --beige:        #ece7d7;
  --shell-w:      1600px;
  --gutter:       40px;
  --jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "ヒラギノ角ゴ ProN", sans-serif;
  --jp-mincho: "Shippori Mincho", "Tsukushi A Old Mincho", "筑紫 A 旧明朝", "Hiragino Mincho ProN", "ヒラギノ明朝 ProN", "Yu Mincho", "游明朝体", serif;
  --en: "Inter", "Helvetica Neue", Arial, sans-serif;
  --script: "Pinyon Script", "Cormorant Garamond", cursive;
}

/* ──────────────────────────────────────────────────────────────
   Reset
   ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box }
html, body { margin: 0; padding: 0 }
body {
  font-family: var(--jp);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "palt";
  line-height: 1.6;
}
img { display: block; max-width: 100% }
a { color: inherit; text-decoration: none }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0 }

.shell { position: relative }

/* ──────────────────────────────────────────────────────────────
   Tagline + Header
   ────────────────────────────────────────────────────────────── */
.tagline-row,
.header {
  max-width: var(--shell-w);
  margin-left: auto;
  margin-right: auto;
}

.tagline-row {
  display: flex;
  align-items: center;
  padding: 22px 290px 16px 40px;
  gap: 20px;
}

.tagline {
  margin: 0;
  font-family: var(--jp-mincho);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: .04em;
  color: var(--ink-soft);
}

.header {
  position: relative;
  display: grid;
  grid-template-columns: 290px 280px 1fr;
  align-items: center;
  gap: 28px;
  padding: 22px 40px 24px;
}

.logo-wrap {
  display: inline-block;
  line-height: 0;
}
.logo-wrap img {
  width: 230px;
  height: auto;
  display: block;
}

.search {
  height: 50px;
  border: 1.4px solid var(--rule);
  display: flex;
  align-items: center;
  padding: 0 14px;
}
.search input {
  border: 0; outline: 0; background: transparent;
  flex: 1; font: inherit; font-size: 14px;
  color: var(--ink); height: 100%; min-width: 0;
}
.search input::placeholder { color: #9a9a9a }
.search-btn {
  width: 28px; height: 28px;
  color: var(--rule);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.search-btn img,
.search-btn svg { width: 20px; height: 20px; display: block }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  justify-content: flex-start;
}
.tag {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--ink);
  height: 24px;
  padding: 0 10px;
  border: 1px solid var(--rule);
  background: transparent;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.tag:hover { background: var(--ink); color: #fff; border-color: var(--ink) }
.tag.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* breadcrumb削除可能チップ */
.chip.removable {
  cursor: pointer;
  transition: background .2s;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-right: 8px;
}

.chip.removable:hover {
  background: #f0f0f0;
}

.chip-remove {
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  font-weight: normal;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
}

.request-btn {
  position: absolute;
  top: 22px;
  right: 95px;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--rule);
  background: #fff;
  font-size: 12px;
  line-height: 1.2;
  color: var(--ink);
  transition: background .2s, color .2s;
  white-space: nowrap;
  z-index: 50;
  border-radius: 5px;
}
.request-btn:hover {
  background: #e91e624f;
}
.request-btn img {
  width: 28px;
  height: 28px;
  display: block;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: transparent;
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
  .request-btn {
    top: 18px;
    right: 75px;
    font-size: 11px;
  }
}

@media (max-width: 800px) {
  .request-btn {
    top: 18px;
    right: 75px;
    padding: 6px 8px;
    font-size: 10px;
  }
  .request-btn img {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 720px) {
  .request-btn {
    top: 75px;
    right: 18px;
    padding: 6px 8px;
    font-size: 10px;
  }
}

/* ──────────────────────────────────────────────────────────────
   Hamburger
   ────────────────────────────────────────────────────────────── */
.hamburger {
  position: absolute;
  top: 22px;
  right: 40px;
  width: 42px; height: 43px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 9px;
  z-index: 1001;
  background: transparent;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 42px;
  height: 2px;
  background-color: #606060;
  border-radius: 2px;
  transition: transform .35s ease, opacity .25s ease, background-color .25s ease;
  transform-origin: center;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(11px) rotate(45deg) }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0) }
.hamburger.is-open span:nth-child(3) { transform: translateY(-11px) rotate(-45deg) }

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
  z-index: 998;
}
.menu-overlay.is-open { opacity: 1; visibility: visible }

.menu-drawer {
  position: fixed;
  top: 0; left: 0;
  width: min(320px, 80vw);
  height: 100vh;
  background: #fff;
  transform: translateX(-100%);
  transition: transform .4s cubic-bezier(.65,.05,.36,1);
  z-index: 999;
  padding: 120px 40px 40px;
  box-shadow: 2px 0 12px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.menu-drawer.is-open { transform: translateX(0) }
.menu-drawer a {
  display: block;
  padding: 22px 0;
  font-family: var(--jp);
  font-size: 18px;
  letter-spacing: .08em;
  color: var(--ink);
  border-bottom: 1px solid #e6e6e6;
  transition: color .2s, padding-left .25s;
}
.menu-drawer a:hover { color: #606060; padding-left: 6px }
body.menu-locked { overflow: hidden }

/* ──────────────────────────────────────────────────────────────
   Back to top
   ────────────────────────────────────────────────────────────── */
.back-top {
  text-align: right;
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: .28em;
  color: var(--ink);
  display: inline-block;
}
.back-top img {
  width: 32px; height: auto;
  display: block;
  margin-left: auto;
  margin-bottom: 4px;
}
.back-top svg { display: block; margin-left: auto; margin-bottom: 4px }
.back-top-wrap {
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 0 40px 30px;
  display: flex;
  justify-content: flex-end;
}

/* スクロール追従ボタン */
.scroll-to-top {
  position: fixed;
  right: 40px;
  bottom: 30px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top .back-top {
  text-shadow: 0 0 4px rgba(255,255,255,1.0),
               0 0 8px rgba(255,255,255,0.9),
               0 0 16px rgba(255,255,255,0.8);
}

.scroll-to-top .back-top img {
  filter: drop-shadow(0 0 2px rgba(255,255,255,1.0))
          drop-shadow(0 0 6px rgba(255,255,255,1.0))
          drop-shadow(0 0 12px rgba(255,255,255,0.9))
          drop-shadow(0 0 20px rgba(255,255,255,0.8));
}

/* ──────────────────────────────────────────────────────────────
   Magazine section
   ────────────────────────────────────────────────────────────── */
.magazine {
  background: var(--gray-section);
  color: #fff;
  padding: 96px 40px 110px;
}
.magazine-intro {
  max-width: 1320px;
  margin: 0 auto 64px;
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: .04em;
  color: #fff;
  padding: 0 8px;
}
.magazine-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 400px 1fr 280px;
  gap: 60px;
  align-items: center;
  padding: 0 8px;
}
.magazine-cover {
  width: 100%;
  aspect-ratio: 400 / 539;
  background: #222;
  overflow: hidden;
}
.magazine-cover img { width: 100%; height: 100%; object-fit: cover }
.contents-block { padding-top: 0 }
.contents-title {
  display: block;
  width: 198.64px;
  height: 70.23px;
  max-width: 100%;
  margin: 0 0 36px;
  color: #fff;
}
.contents-title svg,
.contents-title img { width: 100%; height: 100%; display: block; fill: currentColor }
.contents-list {
  margin: 0; padding: 0;
  font-size: 15px;
  letter-spacing: .06em;
  line-height: 2.4;
  color: #fff;
  white-space: pre-line;
}
.mag-info {
  color: #fff;
  padding-top: 0;
  position: relative;
  padding-left: 40px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mag-info::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 1px;
  height: 544px;
  background: rgba(255,255,255,.4);
}
.mag-info .mag-logo { display: block; line-height: 0; margin-bottom: 18px }
.mag-info .mag-logo img { width: 100%; max-width: 240px; height: auto; display: block }
.mag-info .vol { font-family: var(--en); font-size: 12px; letter-spacing: .18em; margin-bottom: 28px }
.mag-info .desc { font-size: 13px; line-height: 1.9; margin-bottom: 22px }
.mag-info .price { font-size: 13px; line-height: 1.7; margin-bottom: 32px }
.mag-info .price b { font-weight: 500; font-size: 18px }

.buy {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 251px;
  max-width: 100%;
  height: 89px;
  padding: 0;
  background: #fff;
  color: #000;
  border: 0;
  font-family: var(--en);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .12em;
  transition: opacity .2s;
}
.buy:hover { opacity: .85 }
.buy::after {
  content: "";
  position: absolute;
  right: 17px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 22px;
  background: url("../assets/arrow.png") center/contain no-repeat;
}

/* ──────────────────────────────────────────────────────────────
   Footer
   ────────────────────────────────────────────────────────────── */
.foot {
  background: var(--cream);
  color: var(--ink-soft);
  padding: 70px 40px 50px;
}
.foot-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr 1fr 430px;
  gap: 48px;
  align-items: flex-start;
}
.foot-brand .foot-logo { display: block; line-height: 0; margin-bottom: 30px }
.foot-brand .foot-logo img { width: 100%; max-width: 195px; height: auto; display: block }
.ie-hime { display: inline-block; line-height: 0 }
.ie-hime img { width: 84px; height: auto; display: block }
.foot-nav { list-style: none; margin: 0; padding: 0 }
.foot-nav li { font-size: 14px; padding: 9px 0; letter-spacing: .06em }
.foot-nav li a:hover { border-bottom: 1px solid currentColor }
.socials {
  display: flex;
  gap: 50px;
  justify-content: flex-end;
  align-items: flex-end;
  flex-wrap: nowrap;
}
.social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  line-height: 1;
  flex-shrink: 0;
  font-family: var(--en);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-soft);
}
.social img { height: 38px; width: 38px; max-width: none; display: block }
.copyright {
  max-width: 1320px;
  margin: 60px auto 0;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--ink-soft);
  font-family: var(--en);
}

/* ──────────────────────────────────────────────────────────────
   Responsive — 1280px
   ────────────────────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .tagline-row { padding: 20px 260px 16px 24px; }
  .tagline { font-size: 14px }
  .header {
    grid-template-columns: 230px 240px 1fr;
    gap: 20px;
    padding: 18px 24px 20px;
  }
  .logo-wrap img { width: 200px }
  .hamburger { top: 18px; right: 24px; width: 36px; height: 37px; gap: 8px }
  .hamburger span { width: 36px }

  .magazine { padding: 80px 32px 90px }
  .magazine-grid { grid-template-columns: 320px 1fr 260px; gap: 40px }
  .contents-title { width: 198.64px; height: 70.23px; margin-bottom: 28px }

  .foot { padding: 60px 32px 40px }
  .foot-grid { grid-template-columns: 240px 1fr 1fr 360px; gap: 32px }
  .socials { gap: 28px }
}

@media (max-width: 1100px) {
  .header {
    grid-template-columns: 200px 1fr;
    grid-template-areas:
      "logo  search"
      "tags  tags";
    gap: 16px 20px;
  }
  .logo-wrap { grid-area: logo }
  .search { grid-area: search; max-width: 360px; justify-self: end; width: 100% }
  .tags { grid-area: tags }

  .magazine-intro { font-size: 14px; line-height: 1.9 }
  .magazine-grid { grid-template-columns: 280px 1fr; gap: 40px }
  .mag-info {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.4);
    padding-left: 0;
    padding-top: 32px;
    max-width: 480px;
  }
  .mag-info::before { display: none }
}

@media (max-width: 980px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px }
  .foot-brand { grid-column: 1 / -1 }
  .socials { grid-column: 1 / -1; justify-content: flex-start; gap: 28px }
}

@media (max-width: 720px) {
  .tagline-row { padding: 14px 70px 16px 18px; }
  .tagline { font-size: 12px; line-height: 1.6 }
  .header { display: block; padding: 14px 18px 16px }
  .logo-wrap, .search, .tags {
    grid-area: auto;
    max-width: none;
    justify-self: start;
    width: 100%;
  }
  .hamburger { position: absolute; top: 14px; right: 16px; width: 36px; height: 37px; gap: 7px }
  .hamburger span { width: 36px; height: 2px }
  .hamburger.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg) }
  .hamburger.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg) }
  .logo-wrap { display: block; margin-bottom: 14px; width: auto }
  .logo-wrap img { width: 150px }
  .search { height: 44px; margin-bottom: 14px }
  .tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tags::-webkit-scrollbar { display: none }
  .tag { white-space: nowrap; font-size: 12px; padding: 0 10px; height: 24px; border: 1px solid var(--rule); flex-shrink: 0 }

  .back-top-wrap { padding: 0 18px 18px }
  .scroll-to-top { right: 18px; }

  .magazine { padding: 60px 18px 70px }
  .magazine-intro { font-size: 13px; line-height: 1.9; margin-bottom: 40px }
  .magazine-grid { grid-template-columns: 1fr; gap: 36px }
  .magazine-cover { max-width: 320px; margin: 0 auto }
  .contents-title { width: 160px; height: 56.55px; margin-bottom: 22px }

  .foot { padding: 48px 18px 32px }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px }
  .foot-brand { grid-column: 1 / -1 }
  .foot-brand .foot-logo img { max-width: 240px }
  .socials { grid-column: 1 / -1; justify-content: flex-start; gap: 22px }
  .social img { height: 32px; width: 32px }
  .copyright { margin-top: 36px }
}

@media (max-width: 520px) {
  .magazine-cover { max-width: 280px }
}

/* ──────────────────────────────────────────────────────────────
   Campaign Banner
   ────────────────────────────────────────────────────────────── */
.campaign-banner {
  display: inline-block;
  line-height: 0;
}
.campaign-banner img {
  display: block;
  max-height: 100px;
  width: auto;
}

@media (max-width: 1280px) {
  .campaign-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 900;
  }
  .campaign-banner img {
    box-shadow: 0 -2px 8px rgba(0, 0, 0, .2);
  }

  .shell {
    padding-bottom: 80px;
  }
}
