:root {
  --innerBorderWidth: 18px;
  --outerBorderWidth: 28px;
  --innerContentHMargin: 16px;
  --border-radius: 2rem;

  --accent-color-1: #0F52BA;
  --accent-color-2: #FF6699;

  --bg: #eee;
  --surface: #fff;
  --text: #222;
  --line: #ddd;
  --site-header-height: 80px;
  --backdrop: rgb(32 32 32 / 30%);
}

* {
  outline: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  box-sizing: border-box;
  text-decoration: none;
}

.animate-fadeIn {
  animation: fadeIn 1.5s ease 1 both;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

img {
  pointer-events: none;
  user-select: none;
  -webkit-touch-callout:none;
  -webkit-user-select:none;
  -moz-touch-callout:none;
  -moz-user-select:none;
}

html {
  font-size: 18px;
  font-family: Arial, Helvetica, "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  vertical-align: baseline;
  background: transparent;
}

.innerContent {
  max-width: calc(100% - (var(--innerBorderWidth) + var(--outerBorderWidth) * 2));
  margin: 0 auto;
}

main {
  max-width: 1264px;
  padding: 0 var(--innerContentHMargin);
  margin: 0 auto;
}

.bg {
    position: fixed;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(-45deg, #d1dae9 0px, #d1dae9 15px, #b9cbeb 15px, #b9cbeb 30px);
    background-size: cover;
    z-index: -1;
    top: 0;
    left: 0;
    opacity: 0.62;
}

.frame {
  /* border: calc((var(--outerBorderWidth) + var(--innerBorderWidth))) solid transparent; */
  width: 100%;
  height: 100%;
  background: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  pointer-events: none;
}

.outerFrame {
  background: var(--accent-color-1);
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0) border-box;
  -webkit-mask-composite: destination-out;
  mask: linear-gradient(var(--accent-color-1) 0 0) padding-box, linear-gradient(var(--accent-color-1) 0 0) border-box;
  mask-composite: exclude;
  border: calc(var(--outerBorderWidth) + var(--innerBorderWidth) / 2) solid var(--accent-color-1);
}

.innerFrame {
  left: calc((var(--outerBorderWidth) + var(--innerBorderWidth)) / 2);
  top: calc((var(--outerBorderWidth) + var(--innerBorderWidth)) / 2);
  width: calc(100% - (var(--outerBorderWidth) + var(--innerBorderWidth)));
  height: calc(100% - (var(--outerBorderWidth) + var(--innerBorderWidth)));
  border: var(--innerBorderWidth) solid #ffffff;
  border-radius: var(--border-radius);
  box-shadow: 2px 2px 0 #00000030 inset;
}

.tsurutaLogo {
  position: fixed;
  margin: 0 var(--innerContentHMargin);
  top: calc(var(--innerBorderWidth) + var(--outerBorderWidth) + 8px);
  z-index: 990;
  height: 32px;
  cursor: pointer;
  background-color: #fff;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); */
  border: var(--accent-color-1) solid 1px;
}

.tsurutaLogo img {
  height: 100%;
}

.hamBtn {
  position: fixed;
  margin: 0 var(--innerContentHMargin);
  top: calc(var(--innerBorderWidth) + var(--outerBorderWidth) + 8px);
  right: calc(var(--innerBorderWidth) + var(--outerBorderWidth) + 8px);
  z-index: 991;
  display: grid;
  flex: 0 0 48px;
  place-items: center;
  inline-size: 48px;
  block-size: 48px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s;
  color: var(--accent-color-1);
}

.button-menu {
  &::before {
    width: 24px;
    height: 2px;
    border-radius: 20px;
    background: currentColor;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
  }
}

.button-menu {
  &::after {
    content: none;
  }
}

.hamBtn {
  &::before, &::after {
    position: absolute;
    width: 20px;
    height: 2px;
    border-radius: 20px;
    background: currentColor;
    content: "";
  }
}

.button-close {
  color: inherit;
}

.button-close {
  &::before {
    rotate: 45deg;
  }
}

.button-close {
  &::after {
      rotate: -45deg;
  }
}

.button-open {
  background-color: #fff;
  border-radius: var(--border-radius);
  border: var(--accent-color-1) solid 1px;
}

#mainVisual {
  width: 100%;
}

.heroImageContainer {
  position: relative;
}

.heroLogoContainer {
  margin-top: 72vh;
  text-align: center;
  color: #3b3b3b;
}

.heroLogoText {
  font-family: "Caveat", "comic-sans", cursive;
  font-optical-sizing: auto;
  font-size: 96px;
  color: #6e9426;
  font-weight: 400;
  font-style: normal;
}

.heroLogoContainer > img {
  height: 64px;
  max-width: 100%;
}

/* .heroImageContainer > img,
.heroLogoContainer > img {
  max-height: 100%;
  max-width: 88%;
} */

.heroImageContainer > img {
  position: absolute;
  height: 72vh;

  left: 50%;
  transform: translate(-50%, 0%); /* 要素の半分だけ戻す */
}

.eye-close {
  opacity: 0;
  animation: blink 3s step-start infinite; /* 4秒周期でまばたきを繰り返す */
}

/* まばたきアニメーションの定義 */
@keyframes blink {
  0%, 30%, 90%, 100% {
    opacity: 1; /* 目を閉じている時間（不透明） */
  }
  32%, 88%, 98% {
    opacity: 0; /* 目を開けている時間（透明） */
  }
}

section {
  position: relative;
  padding: 64px 0;
}

section#leadingText {
  color: #3b3b3b;
  font-weight: 700;
  font-size: 1.2rem;
  text-align: center;
}

section#profile {
  text-align: center;

}

.titleEn {
  font-size: 1.6em;
  font-weight: 900;
  color: var(--accent-color-1);
}

.titleJa {
  font-size: 0.8em;
  font-weight: 700;
  color: var(--accent-color-2);
  font-feature-settings: "palt";
}

.mascotProfileImageContainer {
  width: 100%;
  margin: 24px 0;
}

.mascotProfileImageContainer img {
  max-width: 64vw;
  max-height: 64vh;
  margin: 0 auto;
}

/* プロフィール立ち絵アニメーション */
.animate-tada.is-animated {
  animation: tada 1s ease 1 both;
}

/* プロフィール立ち絵アニメーション */
@keyframes tada {
  0% { transform: scale3d(1, 1, 1); }
  10%, 20% { transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg); }
  30%, 50%, 70%, 90% { transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg); }
  40%, 60%, 80% { transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg); }
  100% { transform: scale3d(1, 1, 1); }
}

.mascotProfileText {
  color: var(--accent-color-1);
  font-weight: 700;
  font-size: 1.2rem;
}

.mascotTitle span {
  background-color: var(--accent-color-1);
  font-feature-settings: "palt";
}
.mascotTitle span.mascotSubtitle {
  font-size: 1.8em;
  font-weight: 700;
  color: #FF9999;
}
.mascotTitle span.mascotName {
  font-size: 3.2em;
  font-weight: 900;
  color: #fff;
}

section#prolouge p {
  font-size: 1.2rem;
  text-align: center;
}

section#prolouge .strong {
  font-size: 1.8rem;
  font-weight: 700;
}

.garally-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* grid-template-rows: 80vh 80vh; */
  gap: 20px;
}

.garally-grid-item img {
  width: 100%;
  border-radius: var(--border-radius);
}

.line-sticker-ad img {
  width: 100%;
  border-radius: var(--border-radius);
  pointer-events: auto;
}

.line-sticker-text {
  color: var(--accent-color-1);
  text-align: center;
  margin: 10px 0;
}

.about-tile a {
  display: block;
  background-color: var(--accent-color-1);
  color: #fff;
  margin: 24px 0;
  padding: 16px 32px;

  overflow: hidden;
  position: relative;
  z-index: 1;
}

.about-tile a::after {
  background: var(--accent-color-2);
  position: absolute;
  top: 0;
  left: 0;
  content: '';
  width: 100%;
  height: 100%;
  transform: scale(0, 1);
  transform-origin: left top;
  transition: .2s cubic-bezier(0.45, 0, 0.55, 1);
  z-index: -1;
}

.about-tile a:hover::after {
  transform: scale(1, 1);
}

.go-to-homepage-container {
  text-align: center;
  margin-top: 56px;
}

.go-to-homepage-container a {
  color: var(--accent-color-1);
  font-weight: 700;
}

/* ===== Footer ===== */
.footer {
  color: #fff;
  background: #3b3b3b;
  padding: 48px 20px 64px;
  text-align: center;

  font-size: 0.85rem;
  font-weight: 400;
  margin-bottom: 20px;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
}

.footer-info {
  font-size: 0.9rem;
  line-height: 2;
  margin-bottom: 20px;
}

.footer-copy {
  font-size: 0.75rem;
  opacity: 0.5;
  margin-top: 12px;
}

.footer-logo-wrapper {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  height: 32px;
  margin-bottom: 16px;
}

.footer-logo-container img,
.footer-emblem-container img {
  height: 100%;
}


/* ===== Responsive ===== */
@media (max-width: 768px) {
  :root {
    --innerBorderWidth: 10px;
    --outerBorderWidth: 20px;
  }

  .mascotTitle {
    font-size: 0.8rem;
  }

  .garally-grid {
    grid-template-columns: 1fr;
  }
  /* .mascotProfile, .plantColors {
    flex-direction: column;
  } */
  /* .mascotProfileBody {
    width: 100%;
  }

  .plantColors img {
    width: 100%;
  } */

}

@media (max-width: 480px) {

}
