/* ========================================
   Reset & Base
   ======================================== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "ヒラギノ明朝 ProN", serif;
  color: #1a1a1a;
  background-color: #ffffff;
  line-height: 1.9;
  letter-spacing: 0.04em;
  overflow-x: hidden;
}

/* ========================================
   Typography
   ======================================== */

.section-heading {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 2.5rem;
  text-align: center;
}

/* ========================================
   Layout
   ======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 2.5rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-name {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: #1a1a1a;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.header-name:hover {
  opacity: 0.5;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  padding: 10rem 2.5rem 6rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.book-cover {
  flex-shrink: 0;
  width: 280px;
}

.book-cover img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.4s ease;
}

.book-cover img:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.book-cover-placeholder {
  width: 100%;
  aspect-ratio: 7 / 10;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.hero-text {
  flex: 1;
}

.book-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.08em;
  margin-bottom: 2.5rem;
  color: #1a1a1a;
}

.book-author {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: #666;
  margin-bottom: 0.4rem;
}

.book-spec {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #777;
  line-height: 1.8;
  margin-top: 0;
}

.book-links {
  margin-top: 5.0rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
}

.book-store-link {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid #ccc;
  padding-bottom: 1px;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.book-store-link:hover {
  border-color: #1a1a1a;
}

/* ========================================
   Epigraph
   ======================================== */

.epigraph {
  padding: 4rem 2.5rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.epigraph blockquote {
  border: none;
  margin: 0;
  padding: 0;
}

.epigraph p {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #555;
  font-style: italic;
}

/* ========================================
   Divider
   ======================================== */

.divider {
  width: 30px;
  height: 1px;
  background: #ddd;
  margin: 2rem auto;
}

/* ========================================
   Synopsis
   ======================================== */

.synopsis {
  padding: 4rem 2.5rem;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.synopsis p {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 2.2;
  letter-spacing: 0.06em;
  color: #333;
  margin-bottom: 2rem;
}

.synopsis p:last-child {
  margin-bottom: 0;
}

/* ========================================
   Table of Contents
   ======================================== */

.toc {
  padding: 4rem 2.5rem;
  max-width: 560px;
  margin: 0 auto;
}

.toc-chapter {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.2rem;
  align-items: baseline;
}

.toc-chapter:last-child {
  margin-bottom: 0;
}

.toc-number {
  font-size: 0.85rem;
  font-weight: 500;
  color: #bbb;
  flex-shrink: 0;
  width: 1.5rem;
  text-align: center;
}

.toc-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.toc-items span {
  font-size: 0.85rem;
  font-weight: 400;
  color: #555;
  letter-spacing: 0.05em;
  line-height: 2;
}

.toc-sep {
  margin: 0 0.4em;
  color: #ccc;
  font-weight: 300;
}

/* ========================================
   Book Middle Image
   ======================================== */

.book-middle-image {
  max-width: 640px;
  margin: 8rem auto;
  padding: 0 2.5rem;
}

.book-middle-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941;
  display: block;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* ========================================
   Author Section
   ======================================== */

.author-section {
  padding: 4rem 2.5rem 6rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.author-name-large {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #1a1a1a;
  margin-bottom: 0.4rem;
}

.author-name-en {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: #bbb;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.8rem;
}

.social-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.social-link:hover {
  background-color: #f7f7f7;
}

.social-link svg {
  width: 18px !important;
  height: 18px !important;
  display: block;
  fill: #555 !important; /* スマホの白画面でも100%視認できる、品の良い濃いめグレー */
  transition: fill 0.3s ease;
}

.social-link:hover svg {
  fill: #1a1a1a !important;
}

/* ========================================
   Stores Page
   ======================================== */

.stores-page {
  padding: 10rem 2.5rem 6rem;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  min-height: 60vh;
}

.stores-title {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #1a1a1a;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 1.5rem;
}

.stores-list {
  max-width: 400px;
  margin: 0 auto 3rem;
  text-align: left;
}

.stores-notice {
  max-width: 400px;
  margin: 0 auto 4rem;
  text-align: right;
  font-size: 0.75rem;
  color: #999;
  letter-spacing: 0.08em;
}

.stores-placeholder {
  font-size: 0.85rem;
  color: #999;
  letter-spacing: 0.05em;
}

.store-item {
  margin-bottom: 2rem;
}

.store-item:last-child {
  margin-bottom: 0;
}

.store-name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.store-name a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.store-name a:hover {
  opacity: 0.7;
}

.store-address {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.5rem;
}

.store-link {
  font-size: 0.7rem;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: 0.1em;
  border-bottom: 1px solid #ccc;
  padding-bottom: 1px;
  transition: border-color 0.3s ease;
}

.store-link:hover {
  border-color: #1a1a1a;
}

.stores-for-booksellers {
  margin: 5rem auto;
  padding: 2.5rem 2rem;
  border: 1px solid #eaeaea;
  text-align: center;
  max-width: 520px;
}

.booksellers-title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
  color: #1a1a1a;
}

.booksellers-text {
  font-size: 0.8rem;
  line-height: 2.1;
  color: #555;
  letter-spacing: 0.05em;
}

.booksellers-email {
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid #ccc;
  padding-bottom: 1px;
  transition: border-color 0.3s ease;
}

.booksellers-email:hover {
  border-color: #1a1a1a;
}

.back-link {
  font-size: 0.75rem;
  color: #aaa;
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: #1a1a1a;
}

/* ========================================
   Footer
   ======================================== */

.footer {
  padding: 3rem 2.5rem;
  text-align: center;
  border-top: 1px solid #f0f0f0;
}

.footer p {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: #ccc;
}

/* ========================================
   Animations (subtle fade-in on scroll)
   ======================================== */

.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Home Page
   ======================================== */

.home-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
}

.home-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
  max-width: 600px;
  width: 100%;
}

.home-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #1a1a1a;
  transition: opacity 0.3s ease;
}

.home-menu-item:hover {
  opacity: 0.5;
}

.home-menu-title {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.home-menu-sub {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #bbb;
}

.home-menu-separator {
  width: 30px;
  height: 1px;
  background: #eee;
}

/* ========================================
   Profile Page
   ======================================== */

.profile-hero {
  padding: 10rem 2.5rem 4.5rem;
  display: flex;
  justify-content: center;
}

.profile-container {
  max-width: 600px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-image-wrap {
  width: 280px;
  max-width: 100%;
  overflow: hidden;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
  margin-bottom: 4.5rem;
}

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

.profile-text-wrap {
  max-width: 100%;
}

.profile-desc {
  font-size: 0.9rem;
  line-height: 2.2;
  color: #444;
  letter-spacing: 0.08em;
  text-align: center;
}


/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
  .header {
    padding: 1.2rem 1.5rem;
  }

  .hero {
    padding: 8rem 1.5rem 4rem;
  }

  .hero-inner {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    text-align: center;
  }

  .book-cover {
    width: 200px;
  }

  .book-title {
    font-size: 1.4rem;
  }

  .synopsis {
    padding: 3rem 1.5rem;
  }

  .synopsis p {
    font-size: 0.9rem;
    line-height: 2;
  }

  .sp-hide {
    display: none;
  }

  .toc {
    padding: 3rem 1.5rem;
  }

  .toc-chapter {
    gap: 1.2rem;
  }

  .toc-items span {
    font-size: 0.8rem;
  }

  .book-middle-image {
    margin: 6rem auto;
    padding: 0 1.5rem;
  }

  .author-section {
    padding: 3rem 1.5rem 4rem;
  }

  .profile-hero {
    padding: 8rem 1.5rem 3rem;
  }

  .profile-image-wrap {
    width: 200px;
    margin-bottom: 3rem;
  }

  .profile-desc {
    font-size: 0.85rem;
    line-height: 2;
  }

  .book-links {
    align-items: center;
  }

  .home-menu-title {
    font-size: 1.1rem;
  }

  .stores-for-booksellers {
    margin-top: 3.5rem;
    padding: 2rem 1.5rem;
    margin-bottom: 3.5rem;
  }

  .booksellers-text {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 7rem 1.2rem 3rem;
  }

  .book-cover {
    width: 180px;
  }

  .book-title {
    font-size: 1.25rem;
  }

  .synopsis p {
    font-size: 0.85rem;
  }
}
