@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&family=Kite+One&family=Zen+Maru+Gothic&display=swap');

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-weight: normal;
  font-family: "Zen Maru Gothic", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 1rem;
  color: #072676;
  line-height: 1.7;
  letter-spacing: 0.01em;
  background-color: #fffef1;
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: strict;
}

.text {
  text-box: trim-both cap alphabetic;
}

img.emoji {
  display: inline;
  width: 1em;
  height: auto;
  margin: 0;
  padding: 0;
  vertical-align: -2px;
}

a {
  display: inline-block;
  text-decoration: none;
  color: #303030;
}

.bold-text {
  text-decoration: underline #ed2c8a;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1.2px;
  font-weight: 600;
}

/* リンク装飾 */
.feel {
  background: linear-gradient(transparent 60%, #f1dadd 60%);
}

.bkm a {
  background: linear-gradient(transparent 60%, #f1dadd 60%);
}

h1 {
  display: inline-block;
  font-size: 1.8rem;
  font-weight: normal;
  font-family: 'Amatic SC', sans-serif;
  line-height: 1.1;
  margin: 10px 0;
  position: relative;
  z-index: 2;
}

h1:before {
  content: "";
  position: absolute;
  width: 40px;
  aspect-ratio: 1;
  top: 50%;
  left: -15px;
  transform: translateY(-50%);
  z-index: -1;
  background: #e9c3ce;
  --g: /40% 40% radial-gradient(#000 calc(70% - 1px), #0000 70%) no-repeat;
  -webkit-mask:
    50% 0% var(--g),
    95% 35% var(--g),
    78% 90% var(--g),
    22% 90% var(--g),
    5% 35% var(--g),
    radial-gradient(100% 100%, #000 32%, #0000 calc(32% + 1px));
  mask:
    50% 0% var(--g),
    95% 35% var(--g),
    78% 90% var(--g),
    22% 90% var(--g),
    5% 35% var(--g),
    radial-gradient(100% 100%, #000 32%, #0000 calc(32% + 1px));
}

h2 {
  display: inline-block;
  font-size: 1rem;
  font-family: "Kite One", sans-serif;
}

.grid {
  width: 100%;
  display: grid;
  grid:
    "header header" auto "top main" 1fr "footer footer" auto / auto 1fr auto;
  background-color: #fffef1;
}

.header {
  grid-area: header;
  height: 80px;
  background-color: #e4b4c5;
  padding: 20px;
  mask:
    linear-gradient(0, #0000 30px, #000 0),
    radial-gradient(30px, #000 calc(100% - 1px), #0000) bottom/55.5px 60px;

}

/* TOP画 */
.top {
  grid-area: top;
  text-align: center;
  margin-top: 2em;
  height: 100svh;
  position: -webkit-sticky;
  position: sticky;
  top: 0;


  .top-img {
    display: inline-block;
    text-align: center;
    height: 250px;
    margin: 0 30px;
  }
}


.main {
  grid-area: main;
  justify-self: center;
  padding: 20px;
  margin-top: 30px;
  font-family: "Zen Maru Gothic", serif;

  .about,
  .memo,
  .leading-log,
  .prf,
  .bkm {
    padding: 40px;
    margin-bottom: 40px;
    border: 3px solid #e9a7cb;
    border-radius: 30px;
  }
}

.footer {
  grid-area: footer;
}

/* ナビエリア */
nav {
  text-align: center;
}

.navigation {
  display: inline-block;
  margin: 2.5em 0;
}

.navigation a {
  line-height: 1.7;
  font-size: 1.9rem;
  font-family: Amatic SC;
  color: #000;
}

/*
 * ICS MEDIA (https://ics.media/)
 * Copyright (c) 2025 ICS INC.
 * Licensed under the MIT License
 */
.list {
  position: relative;

  &::before {
    position: absolute;
    left: -40px;
    top: 0;
    content: "";
    width: 25px;
    height: 100%;
    background-image: url("img/footprint.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: scale 0.2s;
    scale: 0;
  }

  &:hover::before {
    scale: 1;
  }
}

.menu,
.scrollbar-text_04 {
  display: none;
}

.top-moji {
  display: none;
}

.url {
  font-family: Helvetica Neue, sans-serif;
  font-size: 14px;
}

/* レスポンシブ */
@media (max-width: 767px) {
  .container {
    grid-template-columns: 1fr;
    grid-template-rows: auto;

  }

  .header,
  .top,
  .main,
  .footer {
    grid-column: 1;
    grid-row: auto;
  }

  .top {
    position: relative;
    max-height: 100%;
  }

  .top-box {
    display: inline-flex;
    margin-top: 340px;
    margin-left: 100px;
  }


  .top-moji {
    display: inline-flex;
    text-align: right;
    font-family: Helvetica Neue, sans-serif;
    font-size: 0.7rem;
    color: #7f94ca;
  }

  iframe#umekomi {
    padding: 0 !important;
  }

  .umekomi-frame {
    margin: 0 !important;
  }

  .memo {
    padding: 30px 10px !important;
  }

  .about,
  .leading-log,
  .prf,
  .bkm {
    padding: 25px !important;
  }

  /* スマホメニュー */
  .navigation {
    display: none;
  }

  .header {
    position: fixed;
    width: 100%;
    height: 80px;
    z-index: 5;
    opacity: 0.8;
  }

  .header ul {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 20px;
  }

  .header ul li {
    padding-right: 30px;
    list-style-type: none;
  }

  .header a {
    line-height: 1.7;
    font-size: 1.5rem;
    font-family: Amatic SC;
    color: #000;
    text-decoration: none;
  }

  #first,
  #log,
  #me,
  #others {
    margin-top: 80px;
  }

  /* TOP画 */
  .top-img {
    position: absolute;
    place-self: start center;
    inset: 90px;
    z-index: 1;
    height: 200px;
  }

  /* スクロールダウン */
  .scrollbar-text_04 {
    display: inline-block;
    position: absolute;
    bottom: 10%;
    padding: 10px 10px 50px;
    color: #627bbc;
    font-size: 14px;
    font-family: serif;
    line-height: 1;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    writing-mode: vertical-lr;
    left: 50%;
    transform: translateX(-50%);
  }

  .scrollbar_04 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 1px;
  }

  .scrollbar_04::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 1px;
    height: 100px;
    background: #627bbc;
  }

  .scrollbar_04::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: -4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #627bbc;
    animation: circlemove 3s ease-in-out infinite,
      cirlemovehide 3s ease-out infinite;
  }

  @keyframes circlemove {
    0% {
      bottom: 95px;
    }

    100% {
      bottom: 0px;
    }

  }

  @keyframes cirlemovehide {
    0% {
      opacity: 0;
    }

    50% {
      opacity: 1;
    }

    80% {
      opacity: 0.9;
    }

    100% {
      opacity: 0;
    }
  }

  #gallery {
    justify-content: center !important;
  }

}

/* スクロールボタン */
.pagetop-btn_04 {
  display: block;
  width: 40px;
  height: 40px;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #e6b2c4;
  color: #fff;
  border-radius: 50%;
  border: 4px solid #fff;
  outline: 3px solid #e6b2c4;
  z-index: 99;
}

.pagetop-btn_04::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-left: 2px solid #fff;
  border-top: 2px solid #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -25%) rotate(45deg);
  opacity: 0.9;
  transition: all .3s ease;
}

.pagetop-btn_04:hover {
  text-decoration: none;
  opacity: .5;
}

/* webfontサイズ */
i.la,
i.las,
i.lar,
i.lab {
  font-size: 14px;
}

/* fontアニメ */
.animation {
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-duration: 1.0s;
  width: 14px;
}

.keyframe1 {
  animation-name: anim_v;
}

@keyframes anim_v {
  0% {
    transform: translate(0, -2px);
  }

  100% {
    transform: translate(0, 0x);
  }
}

/* 埋め込み */
iframe#umekomi {
  border: none;
  width: 100%;
}

.umekomi-frame {
  margin: 0 20%;
}

.purofu {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-top: 10px;
  margin-bottom: 10px;
}

.bn {
  margin-top: 10px;
}

img {
  -webkit-user-drag: none;
  /* Chrome, Safari, Opera */
  -moz-user-drag: none;
  /* Firefox */
}

.protect {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-touch-callout: none;
  -moz-user-select: none;
  touch-action: none;
  user-select: none;
}

#gallery {
  display: flex;
  justify-content: flex-start;
  padding: 5px;
}

ol {
  list-style: none;
}

/* ルビ */
[data-ruby] {
  position: relative;
  display: inline-block;
}

[data-ruby]::after {
  content: attr(data-ruby);
  position: absolute;
  text-align: center;
  display: block;
  top: -0.8em;
  left: 0;
  right: 0;
  margin: auto;
  font-size: 0.5em;
}

/* 魚アニメ */
@keyframes shakeAnimation {
  0% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(1px);
  }

  60% {
    transform: translateX(-1px);
  }

  70% {
    transform: translateX(1px);
  }

  80% {
    transform: translateX(-1px);
  }

  100% {
    transform: translateX(0);
  }
}

.animated-btn {
  animation: shakeAnimation 1.8s ease-in-out infinite;
  animation-delay: 1s;
}

.keyframe2 {
  animation-name: shakeAnimation;
}