:root {
  color-scheme: light;
  --page-bg: #edede9;
  --card-bg: #fff;
  --header-bg: #008a82;
  --shadow: 0 10px 24px rgba(42, 35, 32, .14);
  --gap: clamp(14px, 1.6vw, 26px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--page-bg);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(70, 75, 72, .12) 0,
    rgba(70, 75, 72, .12) 1px,
    transparent 1px,
    transparent 6px
  );
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.site-header {
  position: relative;
  padding: clamp(42px, 6vw, 78px) 24px 28px;
  background: var(--header-bg);
  color: #fff;
  text-align: center;
}

main {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 72px) 0;
}

.site-title {
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 400;
  letter-spacing: .12em;
  line-height: 1.3;
  text-align: center;
}

.header-image-slot {
  width: clamp(120px, 14vw, 180px);
  aspect-ratio: 1;
  margin: 0 auto clamp(24px, 3vw, 36px);
  overflow: hidden;
  border: 1px dashed rgba(255, 255, 255, .75);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
}

.header-image-slot img,
.header-image-slot svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

/* img または inline SVG を .icon-slot の中に入れてアイコンを配置できます。 */
.icon-slot {
  display: grid;
  width: clamp(44px, 5vw, 58px);
  height: clamp(44px, 5vw, 58px);
  place-items: center;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 50%;
  background: rgba(0, 0, 0, .12);
  color: #fff;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}

.icon-slot:hover,
.icon-slot:focus-visible {
  background: rgba(0, 0, 0, .25);
  transform: translateY(-2px);
}

.icon-slot img,
.icon-slot svg {
  width: 62%;
  height: 62%;
  object-fit: contain;
}

.site-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(760px, 100%);
  margin: clamp(32px, 5vw, 58px) auto 0;
}

.site-nav-fr {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.site-nav a {
  padding: 8px 18px;
  border-left: 1px solid rgba(255, 255, 255, .85);
  color: #fff;
  font-size: clamp(.82rem, 1.6vw, 1.05rem);
  letter-spacing: .06em;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:last-child {
  border-right: 1px solid rgba(255, 255, 255, .85);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, .13);
}

.site-footer {
  padding: 18px 20px 20px;
  background: #008a82;
  color: #fff;
  text-align: center;
}

.placeholder-body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.placeholder-main {
  display: grid;
  flex: 1;
  place-items: center;
  text-align: center;
}

.placeholder-content h2 {
  margin: 0 0 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: .12em;
}

.placeholder-content .back-link {
  color: #554945;
}

.store-main {
  width: min(1040px, calc(100% - 40px));
  flex: 1;
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(48px, 8vw, 96px);
}

.store-card {
  overflow: hidden;
  border-radius: 16px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.store-cover-link {
  display: block;
}

.store-cover-link:focus-visible {
  outline: 4px solid #f4c44f;
  outline-offset: -4px;
}

.store-cover-image {
  display: block;
  width: 100%;
  height: auto;
}

.store-card-copy {
  padding: clamp(28px, 5vw, 52px) 24px;
  text-align: center;
}

.store-heading {
  margin: 0 0 clamp(22px, 3vw, 32px);
  color: #554945;
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Kosugi Maru", "Yu Gothic", "Meiryo", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.5;
}

.store-minne-link {
  display: inline-flex;
  min-height: 52px;
  padding: 8px 24px 8px 12px;
  border-radius: 999px;
  align-items: center;
  gap: 10px;
  background: #008a82;
  color: #fff;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}

.store-minne-link:hover,
.store-minne-link:focus-visible {
  background: #006f69;
  transform: translateY(-2px);
}

.store-minne-link:focus-visible {
  outline: 3px solid rgba(0, 111, 105, .28);
  outline-offset: 3px;
}

.store-minne-link img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.store-line-card {
  display: flex;
  width: min(760px, 100%);
  margin: clamp(28px, 4vw, 40px) auto 0;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(0, 138, 130, .18);
  border-radius: 18px;
  align-items: center;
  gap: clamp(18px, 4vw, 34px);
  background: var(--card-bg);
  box-shadow: var(--shadow);
  color: #554945;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}

.store-line-card:hover,
.store-line-card:focus-visible {
  border-color: rgba(0, 138, 130, .6);
  transform: translateY(-2px);
}

.store-line-card:focus-visible {
  outline: 3px solid rgba(0, 111, 105, .28);
  outline-offset: 3px;
}

.store-line-icon {
  display: block;
  overflow: hidden;
  flex: 0 0 clamp(96px, 15vw, 132px);
  background: transparent;
  aspect-ratio: 1 / 1;
}

.store-line-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04) translate(-1%, -1%);
}

.store-line-copy {
  display: block;
  min-width: 0;
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Kosugi Maru", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.5;
}

.store-line-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3em;
}

.store-line-title {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: .04em;
}

.store-line-platform {
  color: #008a82;
  font-size: clamp(.88rem, 2vw, 1.15rem);
  font-weight: 700;
  letter-spacing: .03em;
}

.store-line-description {
  display: block;
  margin-top: 6px;
  color: #554945;
  font-family: "Hiragino Maru Gothic ProN", "M PLUS Rounded 1c", "Kosugi Maru", "Arial Rounded MT Bold", "Yu Gothic", "Meiryo", sans-serif;
  font-size: clamp(.78rem, 1.2vw, .95rem);
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.8;
}

.store-back-link {
  display: block;
  width: fit-content;
  margin: clamp(40px, 6vw, 64px) auto 0;
  color: #554945;
}

.about-main {
  width: min(900px, calc(100% - 40px));
  flex: 1;
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(48px, 8vw, 96px);
}

.about-intro {
  margin-bottom: clamp(48px, 8vw, 84px);
  text-align: center;
}

.about-intro-heading {
  margin: 0 0 16px;
  color: #554945;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: .06em;
}

.about-intro p {
  margin: 0;
  color: #554945;
  font-family: "Hiragino Maru Gothic ProN", "M PLUS Rounded 1c", "Kosugi Maru", "Arial Rounded MT Bold", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.9;
}

.about-heading {
  margin: 0 0 16px;
  color: #554945;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: .08em;
  text-align: center;
}

.about-team-description {
  margin: 0 0 clamp(36px, 6vw, 64px);
  color: #554945;
  font-family: "Hiragino Maru Gothic ProN", "M PLUS Rounded 1c", "Kosugi Maru", "Arial Rounded MT Bold", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.9;
  text-align: center;
}

.profile-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 6vw, 64px);
}

.profile-card {
  display: grid;
  grid-template-columns: clamp(88px, 12.8vw, 128px) 1fr;
  gap: clamp(16px, 2.5vw, 28px);
  align-items: center;
}

.profile-icon {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 2px dashed rgba(0, 138, 130, .65);
  border-radius: 50%;
  background: transparent;
  text-decoration: none;
}

.profile-icon img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.profile-copy {
  color: #554945;
  font-family: "Hiragino Maru Gothic ProN", "M PLUS Rounded 1c", "Kosugi Maru", "Arial Rounded MT Bold", "Yu Gothic", "Meiryo", sans-serif;
  font-size: clamp(.78rem, 1.2vw, .95rem);
  line-height: 1.8;
}

.profile-copy h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 500;
}

.profile-bio {
  margin: 0;
}

.profile-social-link {
  margin-top: 12px;
}

.about-back-link {
  display: block;
  width: fit-content;
  margin: clamp(40px, 6vw, 64px) auto 0;
  color: #554945;
}

.comic-body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.comic-main {
  width: min(900px, calc(100% - 40px));
  flex: 1;
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(48px, 8vw, 96px);
}

.comic-heading {
  margin: 0 0 clamp(28px, 5vw, 48px);
  color: #554945;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: .08em;
  text-align: center;
}

.comic-intro {
  margin: clamp(-20px, -2vw, -12px) 0 clamp(28px, 5vw, 48px);
  color: #554945;
  font-family: "Hiragino Maru Gothic ProN", "M PLUS Rounded 1c", "Kosugi Maru", "Arial Rounded MT Bold", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.9;
  text-align: center;
}

.comic-pages {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 4vw, 36px);
}

.comic-page {
  margin: 0;
  overflow: visible;
}

.comic-episode {
  margin: 0 0 clamp(10px, 2vw, 18px);
  padding: 0;
  color: #554945;
  font-family: Georgia, "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1.3;
  text-align: center;
}

.comic-page img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.comic-back-link {
  display: block;
  width: fit-content;
  margin: clamp(40px, 6vw, 64px) auto 0;
  color: #554945;
}

.copyright {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(.75rem, 1.5vw, .95rem);
  letter-spacing: .04em;
  line-height: 1.8;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

@media (max-width: 800px) {
  .site-header {
    padding-top: 24px;
  }

  main {
    width: min(680px, calc(100% - 28px));
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .store-line-card {
    padding: 16px;
    gap: 16px;
  }

  .store-line-icon {
    flex-basis: 86px;
  }

  .store-line-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .comic-pages {
    grid-template-columns: 1fr;
  }

  .profile-list {
    grid-template-columns: 1fr;
  }

  .profile-card {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .profile-icon {
    width: clamp(110px, 35vw, 150px);
  }

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

  .profile-social-link {
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 460px) {
  .site-nav a {
    padding: 8px 4px;
    font-size: .7rem;
    letter-spacing: 0;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    aspect-ratio: 1 / 1;
  }
}
