/* ========================================
   Design tokens
   ======================================== */
:root {
  --color-primary: #006e39;
  --color-primary-dark: #004d29;
  --color-primary-on: #fff;
  --color-cta-border: #fd0;
  --color-cta-bg: #fff8cc;
  --color-surface: #f8f8fa;
  --color-surface-card: #fff;
  --color-text: #181c20;
  --color-text-muted: #231815;
  --font-brand: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
  --radius-full: 9999px;
  --radius-xl: 28px;
  --radius-lg: 32px;
  --container-narrow: 602px;
  --container: 960px;
  --container-wide: 1280px;
}

/* ========================================
   Base
   ======================================== */
* {
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: var(--font-brand);
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
}

.l-page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.l-main {
  flex: 1;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

picture {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.sp-br {
  display: none;
}

.highlight-underline {
  background: none;
  text-decoration-line: underline;
  text-decoration-color: #ff0;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.08em;
  text-decoration-skip-ink: none;
  padding: 0 2px;
  line-height: 1;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

@media (max-width: 768px) {
  .sp-br {
    display: block;
  }

  br.pc-br {
    display: none;
  }
}

/* ========================================
   Header
   ======================================== */
.header {
  position: sticky;
  top: 0;
  background: var(--color-surface-card);
  width: 100%;
  z-index: 900;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  height: 103px;
  margin: 0 auto;
  padding: 0;
}

.header__h1 {
  margin: 0;
  padding: 0 clamp(33px, 3.13vw, 40px);
  width: auto;
  height: clamp(27px, 2.5vw, 32px);
}

.header__img {
  display: block;
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  pointer-events: none;
}

.header__cta {
  display: none;
}

@media (max-width: 768px) {
  .header__inner {
    height: 16.53vw;
    padding: 0 24px;
    min-height: 64px;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }

  .header__h1 {
    height: 5.87vw;
    padding: 0;
    min-width: 0;
    max-width: 60%;
    flex-shrink: 1;
  }

  .header__img {
    width: auto;
    max-width: 100%;
    height: 100%;
    max-height: 32px;
    object-fit: contain;
    object-position: left center;
  }

  .header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    min-height: 40px;
    background: var(--color-surface-card);
    border: 2px solid var(--color-cta-border);
    border-radius: var(--radius-full);
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: 16px;
    line-height: 16px;
    color: var(--color-text-muted);
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
  }

  .header__cta:hover {
    opacity: 0.9;
  }
}

/* ========================================
   KV
   ======================================== */
.kv {
  width: 100%;
  line-height: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.kv picture {
  display: block;
}

.kv__img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: cover;
  object-position: center top;
}

@media (min-width: 769px) {
  .kv__img {
    width: 2560px;
    max-width: none;
    height: 800px;
    object-fit: cover;
    object-position: center top;
    max-height: none;
  }
}

@media (max-width: 768px) {
  .kv__img {
    max-height: none;
  }
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section--yellow {
  background: var(--color-cta-bg);
  width: 100%;
  padding: 80px 64px;
}

.cta-section__inner {
  max-width: var(--container-narrow);
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  background: var(--color-surface-card);
  border: 4px solid var(--color-cta-border);
  border-radius: var(--radius-full);
  padding: 32px 64px;
  min-height: 128px;
  width: 100%;
  max-width: var(--container-narrow);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.cta-button:hover,
.cta-button:focus-visible {
  background: var(--color-cta-border);
  border-color: var(--color-cta-border);
}

.cta-button:active {
  transform: scale(0.98);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.cta-button__ornaments {
  position: absolute;
  right: 0;
  top: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.cta-button::before {
  content: "";
  position: absolute;
  right: -29px;
  top: -4px;
  width: 32px;
  height: 4px;
  background: #ffdd00;
  border-radius: 2px;
  transform: rotate(-32deg);
  transform-origin: right center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cta-button::after {
  content: "";
  position: absolute;
  right: -7px;
  top: -30px;
  width: 36px;
  height: 4px;
  background: #ffdd00;
  border-radius: 2px;
  transform: rotate(-64deg);
  transform-origin: right center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cta-button__ornaments::after {
  content: "";
  position: absolute;
  right: -28px;
  top: 27px;
  width: 24px;
  height: 4px;
  background: #ffdd00;
  border-radius: 2px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cta-button:hover::before,
.cta-button:hover::after,
.cta-button:focus-visible::before,
.cta-button:focus-visible::after {
  opacity: 1;
}
.cta-button:hover .cta-button__ornaments::after,
.cta-button:focus-visible .cta-button__ornaments::after {
  opacity: 1;
}

.cta-button__product {
  flex-shrink: 0;
}

.cta-button__product img {
  width: 122px;
  height: 96px;
  object-fit: contain;
}

.cta-button__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.cta-button__brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cta-button__brand img {
  display: block;
  height: 32px;
  width: auto;
  max-width: 285px;
}

.cta-button__label {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 32px;
  line-height: 32px;
  color: var(--color-text-muted);
  font-feature-settings: "palt" 1;
}

@media (max-width: 1024px) {
  .cta-button__label {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .cta-section--top {
    display: none;
  }

  .cta-section--yellow {
    padding: 32px 16px;
  }

  .cta-button {
    gap: 0;
    padding: 32px 24px;
    min-height: 128px;
    border-radius: 64px;
  }

  .cta-button::before,
  .cta-button::after {
    display: none;
  }

  .cta-button__ornaments::after {
    display: none;
  }

  .cta-button__product {
    display: none;
  }

  .cta-button__copy {
    gap: 12px;
  }

  .cta-button__brand img {
    height: 24px;
  }
}

/* ========================================
   Manga Section
   ======================================== */
.manga-section {
  background: var(--color-primary);
  width: 100%;
  padding: 96px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

.manga-section__title {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 64px;
  line-height: 64px;
  color: var(--color-primary-on);
  text-align: center;
  font-feature-settings: "palt" 1;
}

.manga-section__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  width: 100%;
  max-width: var(--container);
}

.manga-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  grid-template-areas:
    "content thumbnail"
    "action thumbnail";
  align-items: start;
  column-gap: 48px;
  row-gap: 24px;
  background: var(--color-surface-card);
  border-radius: var(--radius-xl);
  padding: 64px;
  width: 100%;
  max-width: var(--container);
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-align: left;
}

.manga-card__content {
  grid-area: content;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.manga-card__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.manga-card__title {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 32px;
  line-height: 32px;
  color: var(--color-primary);
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.manga-card__title-suffix {
  font-size: 24px;
  line-height: 26px;
}

.manga-card__desc {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 16px;
  line-height: 32px;
  color: var(--color-text);
}

.manga-card__thumbnail {
  grid-area: thumbnail;
  flex-shrink: 0;
  width: 480px;
  max-width: 100%;
  border: 1px solid #1f1f1f;
  border-radius: 4px;
  overflow: hidden;
}

.manga-card__thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.manga-card__action {
  grid-area: action;
}

@media (max-width: 1024px) {
  .manga-section__title {
    font-size: 40px;
    line-height: 1.3;
  }

  .manga-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "thumbnail"
      "action";
    padding: 48px 32px;
  }

  .manga-card__thumbnail {
    width: 100%;
    max-width: none;
  }

  .manga-card__content {
    width: 100%;
  }

  .manga-card__action {
    width: 100%;
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .manga-section {
    padding: 64px 16px;
    gap: 48px;
  }

  .manga-section__title {
    font-size: 48px;
    line-height: 64px;
    text-align: center;
  }

  .manga-card {
    padding: 32px 24px;
    gap: 24px;
    border-radius: 16px;
  }

  .manga-card__title {
    font-size: 32px;
    line-height: 32px;
    text-align: left;
  }

  .manga-card__title-suffix {
    font-size: 24px;
    line-height: 26px;
  }

  .manga-card__desc {
    line-height: 32px;
  }

  .manga-card__thumbnail {
    max-width: none;
  }

  .manga-card__action {
    display: flex;
    justify-content: center;
  }
}

/* ========================================
   Button (続きを読む) - Tsudsuki-Button
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 24px 64px;
  height: 72px;
  border-radius: var(--radius-full);
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 24px;
  line-height: 24px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.btn--outline {
  background: var(--color-surface-card);
  border: 4px solid var(--color-primary);
  color: var(--color-primary);
  box-shadow: 4px 4px 0 0 var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-primary-on);
  border-color: var(--color-primary);
  box-shadow: 4px 4px 0 0 var(--color-primary-dark);
}

.btn--outline:active {
  background: var(--color-primary-dark);
  color: var(--color-primary-on);
  border-color: var(--color-primary-dark);
  box-shadow: none;
  transform: translate(2px, 2px);
}

@media (max-width: 768px) {
  .btn {
    width: 100%;
    max-width: 248px;
    padding: 24px 40px;
  }
}

/* ========================================
   Manga Modal (manga-dialog-pc / manga-dialog-sp)
   ======================================== */
.manga-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 24px;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.2s ease, opacity 0.2s ease;
}

.manga-modal[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
}

.manga-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.manga-modal__panel {
  position: relative;
  width: 100%;
  max-width: 1088px;
  max-height: calc(100vh - 64px);
  background: var(--color-surface-card);
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.manga-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}

.manga-modal__close::before,
.manga-modal__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 2px;
  margin-left: -12px;
  margin-top: -1px;
  background: #fff;
}

.manga-modal__close::before {
  transform: rotate(45deg);
}

.manga-modal__close::after {
  transform: rotate(-45deg);
}

.manga-modal__close:hover {
  background: rgba(0, 0, 0, 0.7);
}

.manga-modal__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 48px 24px 24px;
}

.manga-modal__stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
}

/* Skeleton Placeholder for Comic Panels */
.manga-modal__img-container {
  width: 100%;
  position: relative;
  background-color: #e0e0e0; /* Skeleton background */
  min-height: 200px; /* Minimum height for placeholder */
  overflow: hidden;
}

/* Skeleton Pulse Animation */
.manga-modal__img-container::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-100%);
  animation: skeleton-pulse 1.5s infinite;
}

.manga-modal__img-container.is-loaded {
  background-color: transparent;
  min-height: 0;
}

.manga-modal__img-container.is-loaded::after {
  display: none;
}

@keyframes skeleton-pulse {
  100% {
    transform: translateX(100%);
  }
}

.manga-modal__img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.is-loaded .manga-modal__img {
  opacity: 1;
}

.manga-modal__stack img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.manga-modal__footer {
  flex-shrink: 0;
  padding: 24px 24px 32px;
  display: flex;
  justify-content: center;
}

.manga-modal__tsudsuki {
  min-width: 200px;
}

@media (max-width: 768px) {
  .manga-modal {
    padding: 16px;
  }

  .manga-modal__panel {
    max-width: 398px;
    max-height: calc(100vh - 32px);
    border-radius: 12px;
  }

  .manga-modal__close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .manga-modal__close::before,
  .manga-modal__close::after {
    width: 20px;
    margin-left: -10px;
  }

  .manga-modal__scroll {
    padding: 40px 16px 16px;
  }

  .manga-modal__footer {
    padding: 16px 16px 24px;
  }
}

/* ========================================
   Columns Section（キャベジンをもっと知る）
   ======================================== */
.columns-section {
  background: #f8f8fa;
  width: 100%;
  padding: 96px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

.columns-section__title {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 64px;
  line-height: 64px;
  color: var(--color-primary);
  text-align: center;
  width: 100%;
}

.column-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  max-width: var(--container);
  width: 100%;
  border: 4px solid var(--color-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.column-card--reverse {
  flex-direction: row-reverse;
}

.column-card__fukidashi {
  flex-shrink: 0;
  width: 320px;
}

.column-card__fukidashi img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  min-height: 320px;
}

.column-card__body {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 64px 48px;
  justify-content: center;
}

.column-card--reverse .column-card__body {
  padding: 64px 64px 64px 48px;
}

.column-card:not(.column-card--reverse) .column-card__body {
  padding: 64px 64px 64px 48px;
}

.column-card__title {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  color: var(--color-primary);
}

.column-card__figure {
  flex-shrink: 0;
}

.column-card__figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.column-card__text {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 16px;
  line-height: 28px;
  color: var(--color-text);
}

.column-card__note {
  margin: -12px 0 0;
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 12px;
  line-height: 18px;
  color: var(--color-text);
}

@media (max-width: 1024px) {
  .columns-section__title {
    font-size: 40px;
    line-height: 1.3;
  }

  .column-card,
  .column-card--reverse {
    flex-direction: column;
  }

  .column-card__fukidashi {
    width: 100%;
    max-height: none;
    order: 2;
  }

  .column-card__fukidashi img {
    min-height: 0;
    aspect-ratio: 2 / 1;
    object-fit: cover;
  }

  .column-card__body {
    order: 1;
    padding: 48px 32px !important;
  }
}

@media (max-width: 768px) {
  .columns-section {
    padding: 64px 16px;
    gap: 48px;
  }

  .columns-section__title {
    font-size: clamp(30px, 10.5vw, 48px);
    line-height: 1.25;
    text-align: center;
    max-width: none;
  }

  .columns-section__title-line {
    white-space: nowrap;
  }

  .column-card {
    border-radius: 24px;
  }

  .column-card__body {
    gap: 24px;
    padding: 24px !important;
  }

  /* 狭幅（iPhone SE 等）で1文字だけ折り返すのを防ぐため、24px〜やや小さめまで可変 */
  .column-card__title {
    font-size: clamp(20px, calc(1.5vw + 17px), 24px);
    line-height: 1.3;
    text-align: center;
  }
}

/* ========================================
   Divider
   ======================================== */
.divider {
  width: 100%;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* ========================================
   Footer
   ======================================== */
#footer {
  position: relative;
}

#footer__2 {
  padding: 30px 0 10px;
  background-color: #f8f8f8;
}

#footer .copyright {
  margin: 2.5em 0 0;
  font-size: 10px;
  text-align: center;
  color: var(--color-text);
}
#footer .copyright small {
  font-size: 1em;
}
#footer .nav_3 {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  white-space: nowrap;
  font-size: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#footer .nav_3 li {
  padding: 0 1em;
}

#footer .nav_3 li + li {
  border-left: solid 1px #000;
}

#footer .nav_3 a {
  text-decoration: none;
  color: inherit;
}

#footer .nav_3 a:hover {
  text-decoration: underline;
}

#footer .logo_2 {
  margin: 30px auto 0;
  text-align: center;
  font-size: 0;
}

#footer .logo_2 img {
  display: block;
  margin: 0 auto;
  width: 120px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  #footer__2 {
    padding: 7.47vw 0 3.2vw;
  }

  #footer .copyright {
    font-size: 2.67vw;
  }

  #footer .nav_3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
    width: 80vw;
    margin: 0 auto;
    font-size: 3.2vw;
  }

  #footer .nav_3 li + li {
    border-left: none;
  }

  #footer .logo_2 {
    margin-top: 5.33vw;
  }

  #footer .logo_2 img {
    width: 25.07vw;
    height: auto;
  }
}

/* ========================================
   Animation (a_fadein_1)
   ======================================== */
.a_fadein_1 {
  opacity: 0;
  transition: opacity 1s, transform 1s;
}

.a_fadein_1.is_b2t {
  transform: translateY(20px);
}

.a_fadein_1.is_r2l {
  transform: translateX(40px);
}

.a_fadein_1.is_animation {
  opacity: 1;
}

.a_fadein_1.is_animation.is_b2t {
  transform: translateY(0) !important;
}

.a_fadein_1.is_animation.is_r2l {
  transform: translateX(0) !important;
}

@media screen and (max-width: 767px) {
  .a_fadein_1.is_b2t {
    transform: translateY(3vw);
  }
  .a_fadein_1.is_r2l {
    transform: translateX(6vw);
  }
}

@media all and (-ms-high-contrast: none) {
  .a_fadein_1.is_b2t {
    transform: translateY(20px) !important;
  }
  .a_fadein_1.is_r2l {
    transform: translateX(40px) !important;
  }
}

.a_ignite_2.is_animation .a_fadein_1 {
  opacity: 1;
}

.a_ignite_2.is_animation .a_fadein_1.is_b2t {
  transform: translateY(0) !important;
}

.a_ignite_2.is_animation .a_fadein_1.is_r2l {
  transform: translateX(0) !important;
}

