@charset "utf-8";

/* =========================================================
   KURUMAINU Main Stylesheet
   ========================================================= */

:root {
  --color-sky-top: #5bc1f2;
  --color-sky-bottom: #dff5ff;
  --color-grass-top: #6fb454;
  --color-grass-bottom: #5db535;
  --color-yellow-panel: #ffd747;
  --color-blue-panel: #a8d8f0;
  --color-products-top: #18b348;
  --color-products-bottom: #0f5470;
  --color-text-dark: #36251e;
  --color-text-body: #333;
  --max-width: 1200px;
  --rail-bg: rgba(255, 255, 255, 1);
  --fill-color: #2bb2ff;
  --btn-size: 37px;
  --btn-bg: rgba(255, 255, 255, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable !important;
}

body {
  font-family: 'Zen Maru Gothic', 'Noto Sans JP', system-ui, sans-serif;
  color: var(--color-text-body);
  line-height: 1.7;
  overflow-x: hidden;
  background: var(--color-sky-bottom);
}

/* =========================================================
   SITE HEADER
   ========================================================= */

.site-header {
  position: fixed;
  top: 10px;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 1000;
  transition: height .28s ease, transform .28s ease, background-color .28s ease, box-shadow .28s ease;
}

/* スマホ・縦長タブレット用 */
html.mode-sp .site-header,
html.mode-tab.is-portrait .site-header {
  height: 60px;
}

.site-header__inner {
  max-width: 1920px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: justify-content .3s ease;
}

/* スマホ・縦長タブレット用 */
html.mode-sp .site-header__inner,
html.mode-tab.is-portrait .site-header__inner {
  padding: 0 15px;
}

.site-header:not(.scrolled) .site-header__inner {
  justify-content: flex-start;
}

.site-header.scrolled .site-header__inner {
  justify-content: space-between;
}

.site-header__logo {
  margin-right: auto;
}

.site-header__logo img {
  display: block;
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: transform .28s ease;
}

/* スマホ・縦長タブレット用 */
html.mode-sp .site-header__logo img,
html.mode-tab.is-portrait .site-header__logo img {
  height: 40px;
}

.site-header__nav {
  display: flex;
  transform-origin: top right;
  transition: opacity .25s ease, transform .25s ease;
  opacity: 1;
}

.site-header.scrolled .site-header__nav {
  opacity: 0;
  transform: scale(.92);
  pointer-events: none;
}

.site-header__link {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  margin-right: 10px;
  border-radius: 50px;
  transition: background .2s ease, color .2s ease;
  white-space: nowrap;
}

.site-header__link:last-of-type {
  margin-right: 0;
}

.site-header__link:hover {
  background: #fff;
  color: var(--color-grass-top);
}

.hamburger {
  display: none;
  width: 80px;
  height: 80px;
  border: 0;
  background: transparent;
  background-image: url("../files/images/common/menu.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 80px auto;
  cursor: pointer;
  transition: opacity .25s ease, transform .25s ease;
}

.hamburger.active {
  background-image: url("../files/images/common/toziru.svg");
}

/* スマホ・縦長タブレット用 */
html.mode-sp .hamburger,
html.mode-tab.is-portrait .hamburger {
  width: 60px;
  height: 60px;
  background-size: 60px auto;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-menu__link {
  padding: 16px 24px;
  text-decoration: none;
  color: var(--color-text-dark);
  font-size: 14px;
  font-weight: 700;
  transition: background .2s ease;
  display: block;
  border-left: 3px solid transparent;
}

.mobile-menu__link:hover {
  background: rgba(255, 123, 163, .1);
  border-left-color: #ff7ba3;
}

/* =========================================================
   HERO SECTION
   ========================================================= */

.hero {
  position: relative;
  min-height: 150svh;
  max-width: 1920px;
  margin-inline: auto;
  background: linear-gradient(180deg, var(--color-sky-top) 0%, var(--color-sky-bottom) 100%);
  overflow: visible;
}

.hero__media {
  position: fixed;
  inset: 0;
  z-index: 10;
  height: 100dvh;
  display: grid;
  place-items: center;
  opacity: 1;
  transition: opacity 0.5s ease, transform .5s cubic-bezier(.2,.7,.3,1);
  pointer-events: auto;
  transform-origin: 50% 50%;
  padding-top: 100px;
  padding-bottom: 60px;
}

/* スマホ・縦長タブレット用: より大きなパディングで確実に収める */
html.mode-sp .hero__media,
html.mode-tab.is-portrait .hero__media {
  padding-top: 80px;
  padding-bottom: 0;
  place-items:start center;
}

.hero__media.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.hero__media-wrap {
  position: relative;
  display: block;
  width: fit-content;
  margin: 0 auto;
  contain: layout style;
}

.hero__media-frame {
  position: relative;
  z-index: 3;
  display: block;
  overflow: hidden;
  width: 70vw;
  height: 70vh;
  max-width: 1280px;
  margin: 0 auto;
  -webkit-mask: url("../files/images/mediaarea.svg") no-repeat center / contain;
  mask: url("../files/images/mediaarea.svg") no-repeat center / contain;
  background: #000;
  container-type: size;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__alt-content { 
  position: sticky;
  z-index: 10;
  display: grid;
  top: 50%;
  place-items: center;
  opacity: 1;
  transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.3,1);
  transform: translateY(-50%);
  pointer-events: none;
  transform-origin: 50% 50%;
} 

.hero__alt-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
}

.hero__alt-img {
  width: 500px;
  height: auto;
  filter: brightness(0) invert(1);
}

.hero__alt-content.visible { 
  opacity: 1;
  pointer-events: auto;
  z-index: 12;
}

.shrink-out {
  animation: shrinkOut .5s cubic-bezier(.2,.7,.3,1) forwards;
}

@keyframes shrinkOut {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(.85); }
}

.pop-in {
  animation: popIn .55s cubic-bezier(.2,.7,.3,1.2);
  animation-fill-mode: none;
}

@keyframes popIn {
  0%   { opacity: 0; transform: scale(.9); }
  60%  { opacity: 1; transform: scale(1.03); }
  100% { opacity: 1; transform: scale(1); }
}

.hero__alt-content.pop-in {
  animation: popInAlt .55s cubic-bezier(.2,.7,.3,1.2);
}

@keyframes popInAlt {
  0%   { opacity: 0; transform: translateY(-50%) scale(.9); }
  60%  { opacity: 1; transform: translateY(-50%) scale(1.03); }
  100% { opacity: 1; transform: translateY(-50%) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .shrink-out, .pop-in {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

.sticky-wrap {
	position: relative;
	height: 150svh;
}

.background-wrap {
	position: relative;
}

.hero__ground {
  position: absolute;
  bottom: 400px;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 4 / 1;
  will-change: transform;
}

.hero__ground img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain !important;
  object-position: left bottom !important;
}

/* スマホ・縦長タブレット用: 左側2/3をトリミング表示 */
html.mode-sp .hero__ground,
html.mode-tab.is-portrait .hero__ground {
  overflow: hidden;
  aspect-ratio: 8 / 3;
}

html.mode-sp .hero__ground img,
html.mode-tab.is-portrait .hero__ground img {
  width: 150%;
  height: auto;
  object-fit: contain !important;
  object-position: left bottom !important;
  transform: none;
}

.hero__foreground {
  position: absolute;
  bottom: 400px;
  left: 0;
  right: 0;
  height: 400px;
  z-index: 4;
  pointer-events: none;
  will-change: transform;
}

.hero__tree {
  position: absolute;
  bottom: 40px;
  right: 2%;
  display: block;
}

.hero__tree img {
  width: clamp(180px, 10vw, 230px);
  height: auto;
}

.hero__ground-character {
  position: absolute;
  bottom: 90px;
  left: 12%;
  animation: walk-around 12s ease-in-out infinite;
}

.hero__ground-character img {
  width: clamp(200px, 25vw, 300px);
  height: auto;
}

/* スマホ・縦長タブレット用の調整 */
html.mode-sp .hero__ground-character,
html.mode-tab.is-portrait .hero__ground-character {
  bottom: 0;
}

html.mode-sp .hero__ground-character img,
html.mode-tab.is-portrait .hero__ground-character img {
  width: clamp(160px, 20vw, 240px);
}

@keyframes walk-around {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-100px, 20px); }
}

.hero__clouds {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__cloud {
  position: absolute;
}

.hero__cloud img {
  display: block;
  height: auto;
}

.hero__cloud--left {
  top: 8%;
  left: -50%;
  animation: float-cloud-left 8s ease-in-out infinite;
}

.hero__cloud--right {
  top: 15%;
  right: -30%;
  animation: float-cloud-right 9s ease-in-out infinite;
}

@keyframes float-cloud-left {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes float-cloud-right {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.media-progress {
  position: absolute;
  pointer-events: none;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.media-progress.is-ready {
  opacity: 1;
}

.media-progress__rail {
  position: relative;
  background: var(--rail-bg);
  border-radius: 999px;
  overflow: hidden;
}

.media-progress__fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 100%;
  background: var(--fill-color);
  border-radius: 999px 0 0 999px;
  transition: none;
}

.media-ctrl {
  pointer-events: auto;
  width: var(--btn-size);
  height: var(--btn-size);
  border-radius: 50%;
  background: var(--btn-bg);
  color: var(--fill-color);
  border: 2px solid var(--btn-bg);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 15px;
  flex-shrink: 0;
  position: relative;
}

.media-ctrl i {
  position: relative;
  /* left: 1px; */
}

/* =========================================================
   SECTIONS
   ========================================================= */

.section {
  position: relative;
  padding: clamp(56px, 6vw, 96px) 16px;
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__title {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.section__lead {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.9;
  max-width: 32em;
  margin: 0 auto;
  text-align: center;
}

.section--whats {
  background: linear-gradient(180deg, var(--color-grass-top) 0%, var(--color-grass-bottom) 100%);
  color: #fff;
  padding: 350px 16px clamp(100px, 12vw, 200px);
  margin-top: -400px;
}

.section--whats .section__title {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.section--products {
  background: linear-gradient(180deg, var(--color-products-top) 0%, var(--color-products-bottom) 100%);
  padding: clamp(72px, 8vw, 120px) 16px clamp(96px, 10vw, 140px);
}

.section--products .section__title {
  color: #fff;
}

/* =========================================================
   PDF LIBRARY STYLES
   ========================================================= */

.pdf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 48px auto 0;
}

.pdf-item {
  background: white;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pdf-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .3);
}

.thumbnail-container {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}

.thumbnail-container canvas {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.pdf-title {
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 8px;
  font-size: 16px;
}

.pdf-description {
  color: #666;
  font-size: 14px;
  line-height: 1.4;
}

.loading {
  color: #999;
  font-size: 14px;
}

/* ライトボックス */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  overflow: auto;
}

.lightbox.active {
  display: flex;
  flex-direction: column;
}

.lightbox-header {
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 2001;
}

.lightbox-title {
  font-size: 18px;
  font-weight: 600;
}

.lightbox-controls {
  display: flex;
  gap: 15px;
  align-items: center;
}

/* 拡大縮小ボタン */
.zoom-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.zoom-controls button {
  background: #444;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
}

.zoom-controls button:hover {
  background: #555;
}

.zoom-level {
  color: #ccc;
  font-size: 14px;
  min-width: 50px;
  text-align: center;
}

.page-nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

.page-nav button {
  background: #444;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.page-nav button:hover:not(:disabled) {
  background: #555;
}

.page-nav button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-info {
  color: #ccc;
  font-size: 14px;
}

.close-btn {
  background: #d32f2f;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
}

.close-btn:hover {
  background: #b71c1c;
}

.lightbox-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  overflow-y: auto;
  overflow-x: auto;
}

.pdf-canvas-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 0;
  width: fit-content;
  margin: 0 auto;
}

.pdf-page {
  position: relative;
  background: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.pdf-page canvas {
  display: block;
  height: auto;
}

.page-number {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
}

/* モバイル用フッター */
.mobile-footer {
  display: none;
}

.mobile-footer button {
  background: #444;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
}

.mobile-footer button:active {
  background: #555;
}

.mobile-footer .close-btn {
  background: #d32f2f;
}

.mobile-footer .close-btn:active {
  background: #b71c1c;
}

.mobile-footer .zoom-level {
  color: #ccc;
  font-size: 14px;
  min-width: 50px;
  text-align: center;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .lightbox-header {
    flex-direction: row;
    padding: 10px;
    gap: 0;
  }
  
  .lightbox-title {
    display: none;
  }
  
  .lightbox-controls {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
  }
  
  .zoom-controls {
    display: none;
  }
  
  .close-btn {
    display: none;
  }
  
  .page-nav {
    width: 100%;
    justify-content: space-between;
  }
  
  .page-nav button {
    padding: 10px 15px;
    font-size: 13px;
  }
  
  .page-info {
    display: none;
  }
  
  /* モバイル用フッター */
  .mobile-footer {
    display: flex;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 10px;
    justify-content: space-around;
    align-items: center;
    position: sticky;
    bottom: 0;
    z-index: 2001;
    gap: 10px;
  }
  
  .mobile-footer button {
    background: #444;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
  }
  
  .mobile-footer button:active {
    background: #555;
  }
  
  .mobile-footer .close-btn {
    background: #d32f2f;
    display: block;
  }
  
  .mobile-footer .close-btn:active {
    background: #b71c1c;
  }
  
  .mobile-footer .zoom-level {
    color: #ccc;
    font-size: 14px;
    min-width: 50px;
    text-align: center;
  }
  
  .lightbox-content {
    padding: 0;
    touch-action: pan-x pan-y;
    overflow-x: auto;
  }
  
  .pdf-canvas-wrapper {
    padding: 10px 0;
    gap: 10px;
    width: auto;
    min-width: 100%;
  }
  
  .pdf-page {
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    width: fit-content;
  }
}

/* デスクトップではモバイルフッターを非表示 */
@media (min-width: 769px) {
  .mobile-footer {
    display: none;
  }
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  background: linear-gradient(180deg, #1a2c4d 0%, #0f1828 100%);
  min-height: clamp(300px, 35vh, 450px);
  color: #fff;
  overflow: hidden;
}

.footer__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) 16px clamp(32px, 4vw, 48px);
  display: grid;
  place-items: end center;
  text-align: center;
}

.footer__nav {
  display: inline-flex;
  gap: clamp(16px, 2.5vw, 24px);
  margin-bottom: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__nav a {
  color: rgba(255, 255, 255, .9);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color .2s;
}

.footer__nav a:hover {
  color: #fff;
}

.footer__copy {
  font-size: 12px;
  opacity: .85;
}

.backtotop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(8px);
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .2s;
}

.backtotop.visible {
  opacity: 1;
  pointer-events: all;
}

.backtotop:hover {
  transform: translateY(-3px);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

.media-progress--pc,
.media-progress--sp {
  display: none;
}

html.mode-sp .media-progress--sp {
  display: flex !important;
}

html.mode-tab.is-portrait .media-progress--sp {
  display: flex !important;
}

html.mode-tab:not(.is-portrait) .media-progress--pc {
  display: flex !important;
}

html.mode-pc .media-progress--pc {
  display: flex !important;
}

html.mode-pc .site-header__nav,
html.mode-tab:not(.is-portrait) .site-header__nav {
  display: flex;
}

html.mode-pc .hamburger,
html.mode-tab:not(.is-portrait) .hamburger {
  display: grid;
  place-items: center;
}

html.mode-pc .site-header:not(.scrolled) .hamburger,
html.mode-tab:not(.is-portrait) .site-header:not(.scrolled) .hamburger {
  opacity: 0;
  transform: scale(.9);
  pointer-events: none;
  display: none;
}

html.mode-pc .site-header.scrolled .hamburger,
html.mode-tab:not(.is-portrait) .site-header.scrolled .hamburger {
  display: grid;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

html.mode-sp .site-header__nav,
html.mode-tab.is-portrait .site-header__nav {
  display: none !important;
}

html.mode-sp .hamburger,
html.mode-tab.is-portrait .hamburger {
  display: grid;
  place-items: center;
}

html.mode-pc .mobile-menu,
html.mode-tab:not(.is-portrait) .mobile-menu {
  position: fixed;
  top: -360px;
  right: 20px;
  width: 240px;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
  border-radius: 12px;
  z-index: 999;
  transition: top .5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  padding: 20px 0;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

html.mode-pc .mobile-menu.active,
html.mode-tab:not(.is-portrait) .mobile-menu.active {
  top: 90px;
}

html.mode-sp .mobile-menu,
html.mode-tab.is-portrait .mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  background: rgba(135, 206, 235, 0);
  backdrop-filter: blur(0px);
  transition: opacity .3s, visibility .3s, background .3s, backdrop-filter .3s;
}

html.mode-sp .mobile-menu.active,
html.mode-tab.is-portrait .mobile-menu.active {
  opacity: 1;
  visibility: visible;
  background: rgba(135, 206, 235, .5);
  backdrop-filter: blur(6px);
}

html.mode-sp .mobile-menu__nav,
html.mode-tab.is-portrait .mobile-menu__nav {
  width: calc(100% - 40px);
  max-width: 400px;
  background: rgba(255, 255, 255, .95);
  border-radius: 24px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
  transform: scale(.9);
  transition: transform .3s;
}

html.mode-sp .mobile-menu.active .mobile-menu__nav,
html.mode-tab.is-portrait .mobile-menu.active .mobile-menu__nav {
  transform: scale(1);
}

html.mode-pc .media-progress--pc,
html.mode-tab:not(.is-portrait) .media-progress--pc {
  position: absolute;
  right: 30px;
  top: 5%;
  flex-direction: column;
  gap: 10px;
}

html.mode-pc .media-progress--pc .media-progress__rail,
html.mode-tab:not(.is-portrait) .media-progress--pc .media-progress__rail {
  width: clamp(0.4cqw, 0.6cqw, 6px);
  height: clamp(12cqh, 18cqh, 120px);
}

html.mode-pc .media-progress--pc .media-progress__fill,
html.mode-tab:not(.is-portrait) .media-progress--pc .media-progress__fill {
  width: 100%;
  height: 0%;
  border-radius: 999px 999px 0 0;
}

html.mode-pc .media-progress--pc .media-ctrl,
html.mode-tab:not(.is-portrait) .media-progress--pc .media-ctrl {
  width: clamp(20px, 3cqh, 30px);
  height: clamp(20px, 3cqh, 30px);
  font-size: clamp(10px, 1.5cqh, 16px);
}

html.mode-sp .media-progress--sp,
html.mode-tab.is-portrait .media-progress--sp {
  position: absolute;
  left: 1% !important;
  bottom: 1% !important;
  flex-direction: row;
  gap: 4px;
}

html.mode-sp .media-progress--sp .media-progress__rail,
html.mode-tab.is-portrait .media-progress--sp .media-progress__rail {
  width: clamp(70px, 12vw, 130px);
  height: clamp(4px, 0.5cqh, 5px);
}

html.mode-sp .media-progress--sp .media-ctrl,
html.mode-tab.is-portrait .media-progress--sp .media-ctrl {
  width: clamp(20px, 2cqh, 26px);
  height: clamp(20px, 2cqh, 26px);
  font-size: clamp(10px, 1cqh, 12px);
}

html.mode-sp .hero__alt-img {
  width: 90%;
}

html.mode-sp .pdf-grid {
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
}

@media (min-width: 600px) {
  .pdf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .pdf-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

html.mode-pc .hero__media-frame,
html.mode-tab:not(.is-portrait) .hero__media-frame {
  aspect-ratio: 329 / 241;
  width: min(75vw, 1280px, calc(80vh * 329 / 241));
  height: auto;
  -webkit-mask: url("../files/images/mediaarea.svg") no-repeat center / contain;
  mask: url("../files/images/mediaarea.svg") no-repeat center / contain;
}

html.mode-sp .hero__media-wrap,
html.mode-tab.is-portrait .hero__media-wrap {
  width: calc(100vw - 30px);
  height: auto;
  max-height: calc(100dvh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
}

html.mode-sp .hero__media-frame,
html.mode-tab.is-portrait .hero__media-frame {
  width: 100%;
  height: calc(100dvh - 200px);
  max-height: 70vh;
  min-height: 400px;
  border-radius: 24px;
  -webkit-mask: url("../files/images/mediaarea_sp.svg") no-repeat center bottom / cover;
  mask: url("../files/images/mediaarea_sp.svg") no-repeat center bottom / cover;
}