@charset "UTF-8";
/* ------------------------------
 Function
------------------------------ */
/* ------------------------------
 Vars
------------------------------ */
/* ------------------------------
 Mixin
------------------------------ */
/* ------------------------------
 Reset CSS
------------------------------ */
* {
  box-sizing: border-box;
}

main, article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary, picture {
  display: block;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6, p, dl, dt, dd, ul, ol, li, form {
  margin: 0;
  padding: 0;
}

button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  cursor: pointer;
  color: currentColor;
}
button::-moz-focus-inner {
  border: 0;
}

ul {
  list-style-type: none;
}

img {
  vertical-align: bottom;
  border: 0;
  width: 100%;
  height: auto;
}

/* ------------------------------
 text & layout
------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-size: 1rem;
  line-height: 1.6;
}

p, ul, dl {
  font-size: 1rem;
  line-height: 1.5;
}

sup {
  font-size: 0.7em;
}

.d-ib {
  display: inline-block;
}

.ind-1em {
  display: block;
  text-indent: -1em !important;
  padding-left: 1em;
}
.ind-1em::first-letter {
  font-feature-settings: normal;
}
.ind-1em > * {
  text-indent: 0;
}

.burasage {
  overflow: hidden;
  text-align: left;
}
.burasage > * {
  display: block;
  overflow: hidden;
}
.burasage > *:first-child {
  float: left;
  font-feature-settings: normal;
}

/* ------------------------------
 text-size
------------------------------ */
.txt-lg {
  font-size: 2rem;
}

.txt-md {
  font-size: 1.8rem;
}

.txt-rg {
  font-size: 1.6rem;
}

.txt-sm {
  font-size: 1.4rem;
}

.txt-xs {
  font-size: 1.2rem;
}

.txt-xxs {
  font-size: 1rem;
}

/* ------------------------------
 font-weight
------------------------------ */
.fw-normal {
  font-weight: 400 !important;
}

.fw-medium {
  font-weight: 500 !important;
}

.fw-bold {
  font-weight: 700 !important;
}

/* ------------------------------
 line-height
------------------------------ */
.lh-12 {
  line-height: 1.2;
}

/* ------------------------------
 text-align
------------------------------ */
.align-left {
  text-align: left;
}

.align-center {
  text-align: center;
}

.align-right {
  text-align: right;
}

.justify {
  text-align: justify;
}

/* ------------------------------
 text-link
------------------------------ */
a {
  outline: 0;
  color: currentColor;
  text-decoration: none;
}
a.line-link {
  text-decoration: underline;
}

.underline {
  border-bottom: 0.1em solid currentColor;
}

.underline-dash {
  border-bottom: 0.1em dashed currentColor;
}

/* ------------------------------
 margin
------------------------------ */
.mt-0 {
  margin-top: 0 !important;
}

.mt-02em {
  margin-top: 0.2em !important;
}

.mt-05em {
  margin-top: 0.5em !important;
}

.mt-1em {
  margin-top: 1em !important;
}

.mt-2em {
  margin-top: 2em !important;
}

.mt-3em {
  margin-top: 3em !important;
}

.mt-4em {
  margin-top: 4em !important;
}

.mt-5em {
  margin-top: 5em !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-05em {
  margin-bottom: 0.5em !important;
}

.mb-1em {
  margin-bottom: 1em !important;
}

.mb-2em {
  margin-bottom: 2em !important;
}

.mb-3em {
  margin-bottom: 3em !important;
}

.mb-4em {
  margin-bottom: 4em !important;
}

.mb-5em {
  margin-bottom: 5em !important;
}

.m-auto {
  margin: auto !important;
}

/* ------------------------------
 padding
------------------------------ */
.side-padding {
  padding-left: 1.75rem !important;
  padding-right: 1.75rem !important;
}

.pt-0 {
  padding-top: 0 !important;
}

.pt-05em {
  padding-top: 0.5em !important;
}

.pt-1em {
  padding-top: 1em !important;
}

.pt-2em {
  padding-top: 2em !important;
}

.pt-3em {
  padding-top: 3em !important;
}

.pt-4em {
  padding-top: 4em !important;
}

.pt-5em {
  padding-top: 5em !important;
}

.pb-0 {
  padding-bottom: 0 !important;
}

.pb-05em {
  padding-bottom: 0.5em !important;
}

.pb-1em {
  padding-bottom: 1em !important;
}

.pb-2em {
  padding-bottom: 2em !important;
}

.pb-3em {
  padding-bottom: 3em !important;
}

.pb-4em {
  padding-bottom: 4em !important;
}

.pb-5em {
  padding-bottom: 5em !important;
}

/* ------------------------------
 device
------------------------------ */
[class^=show-ua-], [class*=" show-ua-"] {
  display: none !important;
}

html.ua-ios .show-ua-ios {
  display: block !important;
}

html.ua-ios .show-ua-ios-inline {
  display: inline !important;
}

[class^=show-ua-], [class*=" show-ua-"] {
  display: none !important;
}

html.ua-andr .show-ua-andr {
  display: block !important;
}

html.ua-andr .show-ua-andr-inline {
  display: inline !important;
}

[class^=show-ua-], [class*=" show-ua-"] {
  display: none !important;
}

html.ua-pc .show-ua-pc {
  display: block !important;
}

html.ua-pc .show-ua-pc-inline {
  display: inline !important;
}

[class^=show-ua-], [class*=" show-ua-"] {
  display: none !important;
}

html.ua-app .show-ua-app {
  display: block !important;
}

html.ua-app .show-ua-app-inline {
  display: inline !important;
}

html.ua-ios .hide-ua-ios {
  display: none !important;
}

html.ua-andr .hide-ua-andr {
  display: none !important;
}

html.ua-pc .hide-ua-pc {
  display: none !important;
}

html.ua-app .hide-ua-app {
  display: none !important;
}

/* ------------------------------
 scroll-in
------------------------------ */
html:not(.legacy) .scroll-in.fade-in {
  opacity: 0;
  transition: 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}
html:not(.legacy) .scroll-in.fade-in.appeared {
  opacity: 1;
}
html:not(.legacy) .scroll-in.up-in {
  opacity: 0;
  transform: translateY(3rem);
  transition: 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}
html:not(.legacy) .scroll-in.up-in.appeared {
  opacity: 1;
  transform: translateY(0);
}
html:not(.legacy) .scroll-in.popup-in {
  opacity: 0;
  transform: scale(0.9) translateY(3rem);
  transform-origin: 50% 15rem;
  transition: 0.7s cubic-bezier(0.22, 1.5, 0.8, 1);
}
html:not(.legacy) .scroll-in.popup-in.appeared {
  opacity: 1;
  transform: scale(1) translateY(0);
}
html:not(.legacy) .scroll-in.zoom-in {
  opacity: 0;
  transform: scale(0.4);
  transform-origin: 50% 50%;
  transition: 0.7s cubic-bezier(0.22, 1.5, 0.8, 1);
}
html:not(.legacy) .scroll-in.zoom-in.appeared {
  opacity: 1;
  transform: scale(1);
}

/* ===================================================
   親ページ：2×2の画像グリッド（スマホ向け）
   =================================================== */
.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2列並び */
  gap: 0.75em;
  margin: 0 auto;
}

.grid-item {
  cursor: pointer;
  overflow: hidden;
  border-radius: 0.5em;
  box-shadow: 0 0.125em 0.3125em rgba(0, 0, 0, 0.1);
}

.grid-item img {
  width: 100%;
  display: block;
  transition: transform 0.2s;
}

/* ===================================================
   子ページ（ポップアップ全体・背景50%黒）
   =================================================== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* 透過50%の黒背景 */
  z-index: 1000;
  /* 中央配置 */
  display: flex;
  justify-content: center;
  align-items: center;
  /* 16px × 1.25em = 20px 相当の余白 */
  padding: 1.25em;
  /* 初期状態は非表示（フワッと出すための設定） */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* JSでこのクラスがつくとフワッと表示される */
.popup-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* 子ページ（白枠のコンテンツ部分） */
.popup-content {
  position: relative;
  width: 100%;
  /* 16px × 25em = 400px 相当の最大横幅 */
  max-width: 30em;
  /* 16px × 0.75em = 12px 相当の角丸 */
  border-radius: 0.75em;
  /* 上:24px(1.5em), 左右:16px(1em), 下:16px(1em) 相当の余白 */
  box-shadow: 0 0.25em 1.25em rgba(0, 0, 0, 0.25);
}

/* 閉じるボタン（右上配置・png画像などを想定） */
.popup-close {
  position: absolute;
  /* 16px × -0.75em = -12px 相当のはみ出し */
  top: -3em;
  right: -0.75em;
  background: none;
  border: none;
  cursor: pointer;
  /* 16px × 2.5em = 40px 相当のタップエリア */
  width: 4em;
  height: 4em;
  padding: 0;
}

.popup-close img {
  width: 100%;
  height: 100%;
  display: block;
}

/* 子ページ内の画像 */
.popup-img {
  width: 100%;
  height: auto;
  display: block;
  /* 16px × 0.375em = 6px 相当の角丸 */
  border-radius: 0.375em;
  /* 16px × 0.75em = 12px 相当の下余白 */
  margin-bottom: 0.75em;
}

/* 子ページ内のテキスト */
.popup-text {
  /* 16px × 0.875em = 14px 相当の文字サイズ */
  font-size: 0.875em;
  color: #333;
  line-height: 1.6;
}