@charset "UTF-8";

:root {
  --left-bg: #fff0f2;
  --right-bg: #eefaff;
  --blue: #064aa0;
  --turquoise: #04b4b9;
}

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

body {
  min-width: 320px;
  color: #444;
  background: #fff;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.7;
}

body.menu-open {
  overflow: hidden;
}

.mobile-header,
.mobile-nav {
  display: none;
}

.page-layout {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
}

.side-area {
  flex: 1 1 0;
  min-width: 0;
}

.side-area--left {
  background: var(--left-bg);
}

.side-area--right {
  background: var(--right-bg);
}

.side-inner {
  position: sticky;
  top: 40px;
  width: 330px;
  max-width: calc(100% - 40px);
  margin: 40px auto;
}

.side-inner--right {
  align-self: start;
}

.side-campaign {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 20px;
  border-radius: 10px;
  background: #fff;
}

.side-campaign > img {
  width: 100%;
  min-width: 0;
}

.side-logo {
  width: 100%;
  margin: 0 0 5px;
}

.side-logo a {
  display: block;
  width: 145px;
  max-width: 100%;
}

.side-logo img {
  display: block;
  width: 100%;
}

.campaign-period {
  display: grid;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  color: #fff;
  background: #0789c9;
  text-align: center;
  font-size: clamp(10px, 1.2vw, 15px);
  line-height: 1.5;
}

.campaign-period strong {
  padding-bottom: 5px;
  border-bottom: 1px solid #fff;
}

.side-menu {
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
}

.side-menu h2 {
  margin: 0;
  padding: 10px;
  color: #fff;
  background: #0789c9;
  text-align: center;
  font-size: clamp(16px, 2vw, 24px);
}

.side-menu a {
  position: relative;
  display: block;
  margin: 0 20px;
  padding: 15px 20px 15px 0;
  border-bottom: 1px solid #bde6f8;
  color: #0789c9;
  font-size: clamp(10px, 1.2vw, 15px);
  font-weight: 700;
  line-height: 1.4;
}

.side-menu a:last-child {
  border-bottom: 0;
}

.side-menu a::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translateY(-70%) rotate(45deg);
}

.side-menu a.nav-link--external::after {
  width: 17px;
  height: 17px;
  border: 0;
  background: url(../images/icon_external_blue.png) no-repeat center / contain;
  transform: translateY(-50%);
}

.side-qr {
  width: 150px;
  max-width: 70%;
  margin: 25px auto 5px;
}

.side-qr img {
  display: block;
  width: 100%;
}

.qr-label {
  color: #0789c9;
  text-align: center;
  font-size: clamp(12px, 1.5vw, 18px);
  font-weight: 700;
}

.main-content {
  flex: 0 0 430px;
  width: 430px;
  overflow: hidden;
  background: #fff;
}

.main-visual img {
  width: 100%;
}

/* ============================================================
   FVアニメーション（fv01〜fv09）
   fv01（背景）は最初から表示し、fv02〜fv09 を全レイヤー同位置に
   絶対配置で重ね、順番にフェードイン＋ズームで登場させる。
   transform-origin は各レイヤーの要素中心（実測）に合わせ、
   位置ずれのない「正面」のズームにしている。
   タイミング：全体を一息の流れにする。02（0.25秒〜）→03（0.33秒〜、02に食い気味に表示）→
   04（0.58秒〜）と、各要素が動き終わる前に次が重なって出る。
   05・06（製品）は 04 の直後（0.72秒〜）に間髪入れず、0.28 秒でシュッと出す。
   07〜09 はそのすぐ後（0.9秒〜）に 0.04 秒刻み・0.45 秒再生の純フェードで
   ほぼ同時にキビキビと出す。全完了は約1.45秒。
   ※終了後の震え対策：animation-fill-mode は backwards とし、
     アニメーション終了後に transform を保持しない（静止画として描画）。
     細い文字の 07〜09 はズーム自体も廃止した。
   ============================================================ */
.main-visual {
  position: relative;
  aspect-ratio: 860 / 1204;
}

/* 全レイヤーが出揃った後、fv04 だけを1回ぷるっとさせる
   （元サイト mv_balloon の anim-swing がモチーフ）。
   fv04 の2つ目のアニメーションとして付けている。 */
@keyframes fv-puru-04 {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(3deg); }
  50%  { transform: rotate(-2.5deg); }
  75%  { transform: rotate(1.2deg); }
  100% { transform: rotate(0deg); }
}

.main-visual .fv-base {
  width: 100%;
}

.fv-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: opacity, transform;
  animation-duration: 0.5s;
  animation-timing-function: ease-out;
  animation-fill-mode: backwards;
}

@keyframes fv-zoom {
  from { opacity: 0; transform: scale(1.2); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes fv-pop {
  from { opacity: 0; transform: scale(1.28); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes fv-zoom-lg {
  from { opacity: 0; transform: scale(1.9); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes fv-rise {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes fv-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fv-layer--02 {
  transform-origin: 50% 34%;
  animation-name: fv-zoom;
  animation-duration: 0.55s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-delay: 0.25s;
}
.fv-layer--03 {
  transform-origin: 50% 47%;
  animation-name: fv-pop;
  animation-duration: 0.6s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-delay: 0.33s;
}
.fv-layer--04 {
  transform-origin: 71% 57%;
  animation-name: fv-zoom-lg, fv-puru-04;
  animation-duration: 0.55s, 0.5s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1), ease-in-out;
  animation-delay: 0.58s, 1.55s;
  animation-fill-mode: backwards, none;
}
.fv-layer--05 {
  transform-origin: 74% 19%;
  animation-name: fv-rise;
  animation-duration: 0.28s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-delay: 0.72s;
}
.fv-layer--06 {
  transform-origin: 36% 19%;
  animation-name: fv-rise;
  animation-duration: 0.28s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-delay: 0.72s;
}
.fv-layer--07 {
  transform-origin: 50% 64%;
  animation-name: fv-fade;
  animation-duration: 0.45s;
  animation-timing-function: ease-out;
  animation-delay: 0.9s;
}
.fv-layer--08 {
  transform-origin: 50% 75%;
  animation-name: fv-fade;
  animation-duration: 0.45s;
  animation-timing-function: ease-out;
  animation-delay: 0.94s;
}
.fv-layer--09 {
  transform-origin: 50% 89%;
  animation-name: fv-fade;
  animation-duration: 0.45s;
  animation-timing-function: ease-out;
  animation-delay: 0.98s;
}

@media (prefers-reduced-motion: reduce) {
  .fv-layer {
    animation: none;
    opacity: 1;
  }
}

.campaign-section,
.smart-touch-section,
.lineup-section,
.flow-section {
  padding: 25px 20px;
}

.campaign-section {
  display: grid;
  gap: 10px;
}

.note {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.7;
	margin-bottom: 15px;
}

.image-link {
  display: block;
  margin-top: 10px;
}

#menicoin {
  scroll-margin-top: 20px;
}

.smart-touch-section {
  padding-top: 10px;
  text-align: center;
}

.section-heading {
  width: 100%;
  margin: 0 auto 10px;
}

.smart-touch-card {
  margin-top: 10px;
  padding: 15% 20px 25px;
  border-radius: 10px;
  background: #e9fafa;
}

.smart-touch-logo {
  position: static;
  width: 100%;
  margin: 0 auto -12%;
}

.touch-step {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
}

.touch-step img {
  width: 50%;
}

.touch-step p {
  color: var(--turquoise);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.7;
}

.step-arrow {
  display: block;
  width: 0;
  height: 0;
  margin: 10px 0 10px 75px;
  border-top: 15px solid var(--turquoise);
  border-right: 10px solid transparent;
  border-left: 10px solid transparent;
}

.more-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 45px;
  margin-top: 25px;
  border-radius: 25px;
  color: #fff;
  background: var(--blue);
  font-size: 18px;
  font-weight: 700;
}

.more-button img {
  width: 17px;
  margin-left: 5px;
}

.lineup-section {
  padding-top: 20px;
}

.lineup-heading {
  width: 100%;
  margin-bottom: 30px;
}

.product-card + .product-card {
  margin-top: 40px;
}

.product-name {
  margin-right: auto;
  margin-left: auto;
}

.product-name--premio {
  width: 190px;
}

.product-name--magic {
  width: 206px;
}

.product-label {
  max-width: 310px;
  margin: 20px auto;
  padding: 10px;
  color: #2697d2;
  background: #e5f3f9;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.product-image {
  margin-right: auto;
  margin-left: auto;
}

.product-image--premio {
  width: 346px;
}

.product-image--magic {
  width: 223px;
}

.product-info {
  width: 310px;
  max-width: 100%;
  margin: 20px auto 0;
  font-size: 14px;
  line-height: 1.6;
}

.magic-note {
  margin-top: 15px;
  font-size: 11px;
  line-height: 1.6;
}

.flow-inner {
	border-radius: 10px;
	overflow: hidden;
  display: grid;
  gap: 15px;
	border: 2px solid #0789c9;
}

.flow-intro {
  overflow: hidden;
  padding: 10px 10px 0;
  color: #fff;
  background: #0789c9;
  font-size: 12px;
  line-height: 1.5;
}

.flow-intro strong {
  display: block;
	text-align: center;
}

.flow-intro strong {
  width: 100%;
  margin-bottom: 5px;
  font-size: 14px;
}

.flow-intro em {
  color: #fff600;
  font-style: normal;
}

.flow-intro-body {
  display: flex;
  align-items: end;
}

.flow-intro-body p {
  flex: 1 1 auto;
  margin-bottom: 10px;
  padding: 8px;
  color: #0789c9;
  background: #fff1f6;
  border-radius: 5px;
  margin-right: 15px;
  font-size: 12px;
}

.flow-intro-body img {
  flex: 0 0 90px;
  width: 90px;
}

.flow-step {
  display: flex;
  align-items: center;
	padding: 0 10px;
}

.flow-step > img {
  flex: 0 0 110px;
  width: 110px;
	margin: 0 10px;
}

.flow-step > div {
  flex: 1 1 auto;
}

.flow-step h2 {
  margin: 0 0 5px;
  padding: 5px 10px;
  border-radius: 5px;
  color: #fff;
  background: #0789c9;
  font-size: 14px;
  line-height: 1.4;
}

.flow-step--present h2 {
  color: #f05c72;
  background: #fff000;
}

.flow-step p {
  font-size: 14px;
  line-height: 1.6;
	padding: 0 5px;
}

.flow-arrow {
  display: block;
  width: 0;
  height: 0;
  border-top: 15px solid #f8bdd7;
  border-right: 15px solid transparent;
  border-left: 15px solid transparent;
  margin: 0 auto;
}

.flow-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  color: #f05c72;
  background: #fff0f5;
  font-size: 12px;
  line-height: 1.5;
}

.flow-note p {
  flex: 1 1 auto;
	font-weight: bold;
}

.flow-note p strong {
	color: #390303;
}

.flow-note img {
  flex: 0 0 60px;
  width: 60px;
}

.footer {
  padding: 15px 20px 90px;
  color: #222;
  text-align: center;
}

.fixed-footer {
  position: fixed;
  z-index: 10;
  bottom: 0;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 430px;
  min-height: 55px;
  color: #fff;
  background: #064aa0;
  font-size: 18px;
  font-weight: 700;
  transform: translateX(-50%);
}

.fixed-footer img {
  width: 17px;
  margin-left: 15px;
}

@media (min-width: 768px) {
  .side-campaign,
  .side-inner--right .side-menu {
    box-shadow: 0 5px 18px rgba(45, 75, 95, 0.08);
  }
}

@media (max-width: 767px) {
  .mobile-header {
    position: fixed;
    z-index: 30;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border-bottom: 1px solid #d9d9d9;
    background: #fff;
  }

  .mobile-header-logo {
    display: block;
    width: 120px;
  }

  .mobile-header-logo img {
    width: 100%;
  }

  .mobile-menu-button {
    position: relative;
    display: block;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .mobile-menu-button span {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 30px;
    height: 2px;
    margin: 0;
    background: #064aa0;
    transition: transform 0.3s, opacity 0.3s;
  }

  .mobile-menu-button span:nth-child(1) {
    transform: translate(-50%, -10px);
  }

  .mobile-menu-button span:nth-child(2) {
    transform: translate(-50%, -50%);
  }

  .mobile-menu-button span:nth-child(3) {
    transform: translate(-50%, 8px);
  }

  .mobile-menu-button.is-active span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .mobile-menu-button.is-active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-button.is-active span:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .mobile-nav {
    position: fixed;
    z-index: 25;
    top: 50px;
    left: 0;
    display: block;
    width: 100%;
    height: calc(100vh - 50px);
    height: calc(100dvh - 50px);
    padding: 20px;
    overflow-y: auto;
    background: var(--right-bg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  }

  .mobile-nav.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-nav-panel {
    width: 100%;
    max-width: none;
    margin: 0 auto;
  }

  .mobile-nav .side-menu h2 {
    font-size: 20px;
  }

  .mobile-nav .side-menu a {
    font-size: 14px;
  }

  .side-area {
    display: none;
  }

  .main-content {
    flex-basis: auto;
    width: 100%;
    padding-top: 50px;
  }

  #campaign,
  #smart-touch,
  #lineup,
  #receive {
    scroll-margin-top: 50px;
  }

  #menicoin {
    scroll-margin-top: 70px;
  }

  .fixed-footer {
    width: 100%;
  }
}

/* ============================================================
   MENICOiN（.menicoin-container）
   mels_syokai（common/css/common.css + common/css/index.css）から移植。
   元サイトは html { font-size: 18px } 前提の rem 設計のため、
   コンテナに font-size: 18px を持たせ、rem は em に読み替えて
   元と同一寸法を再現している。幅だけ smart-touch-lp 側に追従する。
   ============================================================ */

.menicoin-container {
  --mc-font-gothic: 'M PLUS Rounded 1c', Hiragino Sans, Hiragino Kaku Gothic ProN, YuGothic, 'Yu Gothic', Meiryo, sans-serif;
  --mc-font-gothic02: 'Noto Sans JP', Hiragino Sans, Hiragino Kaku Gothic ProN, YuGothic, 'Yu Gothic', Meiryo, sans-serif;
  --mc-color-base: #fff;
  --mc-color-dark01: #333;
  --mc-color-dark02: #666;
  --mc-color-brand01: #003b90;
  --mc-color-highlight01: #fccf00;
  --mc-rounded-small: 0.5em;

  background-color: var(--mc-color-highlight01);
  border-radius: var(--mc-rounded-small);
  padding: 0.3em;
  font-family: var(--mc-font-gothic);
  font-size: 18px;
  line-height: 1.5;
  color: var(--mc-color-dark01);
  text-align: left;
}

/* 元サイトの reset.css 相当（見出し・段落のマージン初期化）
   :where() で詳細度0にし、クラス側の padding 指定（.menicoin-heading-title 等）を
   元サイトと同じく優先させる */
.menicoin-container :where(h2, h3, p) {
  margin: 0;
  padding: 0;
}

/* --- 元 common.css のユーティリティ（使用分のみ・スコープ付き） --- */
.menicoin-container .l-block {
  padding-block: 1.5em;
}
.menicoin-container .l-textMain {
  line-height: 1.7;
  font-weight: 500;
  text-align: justify;
}
.menicoin-container .l-top-xsmall { margin-top: 0.6em !important; }
.menicoin-container .l-top-small  { margin-top: 0.9em !important; }
.menicoin-container .l-top        { margin-top: 1.2em !important; }

.menicoin-container .l-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 3em;
  font-weight: 700;
  font-size: 1.025em;
  line-height: 1.3;
  color: var(--mc-color-base);
  background-color: var(--mc-color-brand01);
  border-radius: 3em;
  text-align: center;
  text-decoration: none;
  padding: 0.5em 2em 0.5em 1em;
  position: relative;
  transition: 0.2s;
}
.menicoin-container .l-btn::before {
  content: "";
  display: block;
  width: 0.7em;
  height: 0.7em;
  border-top: 2px solid var(--mc-color-base);
  border-right: 2px solid var(--mc-color-base);
  position: absolute;
  right: 1.5em;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.menicoin-container .l-btn[target="_blank"]::after {
  content: "";
  display: block;
  width: 1em;
  height: 1em;
  background: url(../images/icon/external_nv.svg) no-repeat center center / 100% auto;
  position: absolute;
  right: 1em;
  top: 50%;
  translate: 0 -50%;
  scale: 1.1;
  transition: 0.2s;
  filter: invert(1) brightness(1000%);
}
.menicoin-container .l-btn[target="_blank"]::before {
  display: none;
}
.menicoin-container .l-btn.-white {
  background-color: var(--mc-color-base);
  color: var(--mc-color-dark01);
}
.menicoin-container .l-btn.-white[target="_blank"]::after {
  filter: grayscale(100%);
}
@media (hover: hover) and (pointer: fine) {
  /* 元サイトの body.is-pc .l-btn:hover 相当 */
  .menicoin-container .l-btn:hover {
    opacity: 0.7;
  }
}

/* --- 見出し（アコーディオン） --- */
.menicoin-heading {
  background-color: var(--mc-color-base);
  border-radius: calc(var(--mc-rounded-small) / 1.5);
  cursor: pointer;
  position: relative;
  padding-top: 0.6em;
  padding-bottom: 1.2em;
  transition: 0.2s;
}
.menicoin-heading::after {
  content: "";
  display: block;
  width: 1em;
  height: 1em;
  border-bottom: 2px solid var(--mc-color-dark02);
  border-right: 2px solid var(--mc-color-dark02);
  position: absolute;
  left: 50%;
  bottom: 0.6em;
  transform: rotate(45deg) translateX(-50%);
}
.menicoin-heading.is-active::after {
  margin-bottom: -0.5em;
  transform: rotate(225deg) translateX(50%);
}
.menicoin-heading-title {
  text-align: center;
  font-size: 1em;
  padding: 1em 0;
}
.menicoin-heading-title img {
  width: 70%;
  margin-inline: auto;
}
.menicoin-heading-title span {
  display: block;
}

.menicoin-block {
  display: none;
  padding-inline: 4%;
}

/* --- フロー --- */
.menicoinFlow-section {
  position: relative;
  background-color: var(--mc-color-base);
  border-radius: var(--mc-rounded-small);
}
.menicoinFlow-section:not(:last-of-type) {
  margin-bottom: 2em;
}
.menicoinFlow-section:not(:last-of-type)::after {
  content: "";
  display: block;
  width: 3em;
  height: 1em;
  position: absolute;
  left: 50%;
  top: calc(100% + 0.5em);
  translate: -50% 0;
  background: url(../images/icon/flow_arrow_down.svg) no-repeat 0 0 / 100% 100%;
}
.menicoinFlow-header {
  display: flex;
  gap: 0 5%;
  align-items: center;
  padding: 0.8em 0.5em;
}
.menicoinFlow-header-img {
  width: 35%;
  padding-left: 3%;
}
.menicoinFlow-header-inner {
  flex: 1;
}
.menicoinFlow-header-text {
  font-size: 1.05em;
  font-weight: 700;
}
.menicoinFlow-block {
  margin: 0.5em 4.5% 0;
  padding-block: 1em 1.5em;
  border-top: 1px solid var(--mc-color-highlight01);
}
.menicoinFlow-title {
  font-size: 1em;
  text-align: center;
  padding-bottom: 0.5em;
}
.menicoinFlow-lead {
  background: var(--mc-color-highlight01);
  border-radius: 3em;
  padding: 0.2em 0.5em;
  text-align: center;
  font-weight: 700;
}
.menicoinFlow-tips {
  font-size: 0.85em;
  font-family: var(--mc-font-gothic02);
  line-height: 1.6;
  text-align: justify;
}
.menicoinFlow-point {
  padding-inline: 4%;
}

/* 元サイトは max-width:768px で html { font-size: 3.9vw } になるため、
   smart-touch-lp のモバイル表示（max-width:767px）でも同じ比率で追従させる */
@media (max-width: 767px) {
  .menicoin-container {
    font-size: 3.9vw;
  }
}

.fixed-footer:hover,
.side-menu a:hover,
.more-button:hover {
	opacity: 0.7;
}
