/* ---------------------------------------
   Font Face (company standard)
---------------------------------------- */
@font-face {
  font-family: "A-OTF-ShinGoPro-Medium";
  src: url("../font/A-OTF-ShinGoPro-Medium.otf");
}

/* ---------------------------------------
   Global Reset (company standard)
---------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  font: inherit;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* 1rem = 10px on desktop */
html {
  font-size: 62.5%;
}

/* mobile <= 750px: scale root font per standard */
@media screen and (max-width: 750px) {
  html {
    font-size: calc(100vw / 75);
  }
}

body {
  background-color: #ffffff;
  min-height: 100vh;
  word-wrap: break-word;
  font-weight: 400;
  font-size: 1.7rem; /* was 17px → use rem */
  line-height: 1.8;
  color: #333333;
  font-family: "Hiragino Sans","Hiragino Kaku Gothic Pro","YuGothic","Yu Gothic", Arial, sans-serif;
}

/* wrapper styling for id="wrapper" */
#wrapper {
  max-width: 750px;
  margin: 0 auto;
}

/* use .wrapper per company standard (not #wrapper) */
.wrapper {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* utilities */
.poR { position: relative; }

/* ---------------------------------------
   Floating Button
   - Desktop: image width 340px
   - Mobile: responsive via clamp (no extra breakpoints needed)
---------------------------------------- */
#floating {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255,255,255,0.9);
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#floating.show { opacity: 1; }

.floating-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  padding: 0.8rem 1.2rem;
  max-width: 750px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.floating-inner > a { display: block; }

/* button image size: mobile-first */
.floating-inner img {
  width: clamp(16rem, 45vw, 34rem); /* 160px … 340px */
  height: auto;
}

/* ≥768px: lock to 340px as requested */
@media screen and (min-width: 768px) {
  .floating-inner img { width: 34rem; }
}

/* slashes */
.backslash::before,
.slash::before {
  display: inline-block;
  font-family: Arial, sans-serif;
  font-size: 1.5em;
  transform: scaleY(1.5);
}
.backslash::before { content: "\\"; }
.slash::before { content: "/"; }

/* ---------------------------------------
   Footer (company standard)
   - Wrap-friendly nav
   - Text sizes via clamp()
---------------------------------------- */
.footer,
#footer {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  background-color: #f5f5f5;
  padding: 0;
  text-align: center;
  position: relative;
}

.footer-container {
  width: 100%;
  padding: 4vw 2vw 3vw; /* mobile-first spacing */
  background: transparent;
  min-height: 15vw;
  max-width: none;
  position: relative;
}

.footer-logo { margin-bottom: 1.5vw; position: relative; }
.footer-logo img { height: 4vw; margin: 0 auto; }

.footer-nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;        /* allow multiple rows */
  column-gap: 0.6rem;     /* ~6px */
  row-gap: 0.6rem;
  margin: 0 auto 1.5vw;
  list-style: none;
  padding: 0;
  width: 100%;
  position: relative;
}

.footer-nav li {
  margin: 0;
  flex: 0 1 auto;         /* natural wrap/grow */
  text-align: center;
  min-width: 0;           /* allow text to wrap inside link */
}

.footer-nav a {
  color: #005ca2;
  text-decoration: none;
  transition: color 0.3s ease;
  font-family: "Hiragino Sans","Hiragino Kaku Gothic ProN","Meiryo",sans-serif;
  /* Responsive typography via clamp: ~8px..12px in your scale */
  font-size: clamp(1.5rem, 1.6vw, 1.5rem);
  font-weight: 400;
  display: block;
  padding: 0.4rem 0.6rem;
  line-height: 1.35;      /* better for wrapped lines */
  white-space: normal;    /* allow wrapping */
  overflow: visible;
  text-overflow: clip;
  word-break: break-word; /* wrap long words/URLs if any */
}

.footer-nav a:hover {
  color: #2eb6e3;
  text-decoration: underline;
}

.footer-nav a.external {
  color: #005ca2;
  white-space: normal;
  max-width: none;        /* no truncation */
  overflow: visible;
  text-overflow: clip;
}

.footer-nav a.external svg {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  margin-left: 0.3em;
  vertical-align: middle;
  display: inline-block;
}

.footer-copyright p {
  color: #666;
  /* Responsive typography via clamp: ~8px..12px */
  font-size: clamp(0.8rem, 1.6vw, 1.2rem);
  font-weight: 300;
  margin: 0;
  font-family: "Hiragino Sans","Hiragino Kaku Gothic ProN","Meiryo",sans-serif;
  position: relative;
}

/* ≥768px: stable layout sizing (text already handled by clamp) */
@media screen and (min-width: 768px) {
  .footer-container { padding: 24px 32px 16px; min-height: 120px; }
  .footer-logo img { height: 3.2rem; } /* 32px */
  .footer-nav ul { column-gap: 0.8rem; row-gap: 0.6rem; margin: 0 auto 26px; }
  .footer-nav a { padding: 4px 6px; }
}

/* tighter spacing on very small phones */
@media screen and (max-width: 480px) {
  .footer-nav ul { column-gap: 0; }
}

/* ---------------------------------------
   Coupon Section
   - Desktop: image 340px + text ~22px
   - Mobile: responsive via clamp
---------------------------------------- */
.coupon-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  max-width: 750px;
  width: 100%;
  margin: 5rem auto;
  flex-wrap: wrap;
}

.coupon-box {
  text-align: center;
  padding: 0;
  margin: 0 .5rem;
}

.coupon-box .coupon-code {
  font-weight: bold;
  color: #333;
  text-align: center;
  white-space: nowrap; /* keep single-line here per your previous design */
  font-size: clamp(1.95rem, 2.2vw, 2.2rem); /* ~22px on desktop */
  line-height: 1.3;
}

/* coupon images: mobile-first clamp */
.coupon-box img {
  width: clamp(16rem, 45vw, 34rem); /* 160px … 340px */
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ≥768px: lock coupon image at 340px */
@media screen and (min-width: 768px){
  .coupon-box img { width: 34rem; }
}

/* ---------------------------------------
   Misc (company standard)
---------------------------------------- */
@media screen and (min-width: 768px){
  .footer-container { padding: 3vw 0 2vw; }
}
