/* ============================================
   Reset & Base
============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Hiragino Mincho ProN', 'Yu Mincho', 'Georgia', serif;
  background-image: url('images/bg.jpg');
  background-repeat: repeat;
  background-size: 600px auto;
  color: #3a2a1a;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ============================================
   Header / Hero
============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 60px;
  overflow: hidden;
}

/* 背景に薄いオーバーレイで読みやすく */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 252, 245, 0.45);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 10;
}

.hero-label {
  display: inline-block;
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
  letter-spacing: 0.25em;
  color: #7a6a5a;
  border: 1px solid #b5a090;
  padding: 5px 18px;
  border-radius: 30px;
  margin-bottom: 24px;
  background: rgba(255,255,255,0.6);
}

.sp-br {
  display: none;
}

@media (max-width: 600px) {
  .sp-br {
    display: block;
  }
}

.hero-title {
  font-family: 'Kaisei Opti', serif;
  font-size: clamp(2.8rem, 9vw, 6.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: #2a6496;
  text-shadow: 2px 3px 0 rgba(255,255,255,0.7), 0 0 30px rgba(100,170,220,0.3);
  margin-bottom: 10px;
}

.hero-title-en {
  font-family: 'Kaisei Opti', serif;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-style: italic;
  color: #5a8aaa;
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}

.hero-desc {
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  color: #5a4a3a;
  line-height: 2;
  max-width: 500px;
  margin: 0 auto 48px;
  letter-spacing: 0.08em;
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #7a6a5a;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  border-right: 2px solid #7a6a5a;
  border-bottom: 2px solid #7a6a5a;
  transform: rotate(45deg);
  animation: scrollArrow 1.4s ease-in-out infinite;
}

@keyframes scrollArrow {
  0%   { opacity: 0; transform: translateY(-4px) rotate(45deg); }
  50%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(6px) rotate(45deg); }
}

/* ============================================
   Floating Illustrations (Hero)
============================================ */
.illust {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.illust img {
  width: 100%;
  height: auto;
  display: block;
}

/* クジラ - 左上 */
.illust-whale {
  top: 5%;
  left: -2%;
  width: clamp(130px, 18vw, 260px);
  transform: rotate(-8deg);
  animation: float1 7s ease-in-out infinite;
}

/* かつお - 右下 */
.illust-bonito {
  bottom: 10%;
  right: 0%;
  width: clamp(100px, 14vw, 200px);
  transform: rotate(12deg) scaleX(-1);
  animation: float2 8s ease-in-out infinite;
}

/* ひまわり1 - 左下 */
.illust-sunflower {
  bottom: 5%;
  left: 3%;
  width: clamp(80px, 10vw, 150px);
  transform: rotate(-6deg);
  animation: float3 6s ease-in-out infinite;
}

/* ひまわり2 - 右上 */
.illust-sunflower2 {
  top: 8%;
  right: 4%;
  width: clamp(70px, 9vw, 130px);
  transform: rotate(10deg);
  animation: float1 9s ease-in-out infinite;
}

/* 日本酒 - 左中央 */
.illust-nihonshu {
  top: 38%;
  left: 3%;
  width: clamp(40px, 5.5vw, 80px);
  transform: rotate(-5deg);
  animation: float2 10s ease-in-out infinite;
}

/* アイス - 右中央 */
.illust-ice {
  top: 30%;
  right: 4%;
  width: clamp(55px, 7vw, 110px);
  transform: rotate(8deg);
  animation: float3 7.5s ease-in-out infinite;
}

/* 遍路笠 - 右中 */
.illust-henro {
  top: 60%;
  right: 6%;
  width: clamp(65px, 9.1vw, 130px);
  transform: rotate(-12deg);
  animation: float1 11s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50%       { transform: translateY(-14px) rotate(-8deg); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0) rotate(12deg) scaleX(-1); }
  50%       { transform: translateY(-10px) rotate(12deg) scaleX(-1); }
}
@keyframes float3 {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50%       { transform: translateY(-18px) rotate(-6deg); }
}

/* ============================================
   Section: ガイドブック一覧
============================================ */
.books-section {
  position: relative;
  padding: 80px 20px 100px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-subtitle {
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  color: #7a6a5a;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.section-subtitle::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: #2a6496;
  margin: 12px auto 16px;
}

.section-title {
  font-family: 'Kaisei Opti', serif;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  color: #2a4a6a;
  letter-spacing: 0.1em;
  font-weight: 700;
}

/* ============================================
   Book Cards Grid
============================================ */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px 30px;
  position: relative;
}

.book-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s ease;
}

.book-card:hover {
  transform: translateY(-8px);
}

/* 冊子の影・立体感 */
.book-cover-wrap {
  position: relative;
  width: 100%;
  max-width: 240px;
  aspect-ratio: 3 / 4;
  border-radius: 4px 12px 12px 4px;
  overflow: hidden;
  box-shadow:
    -6px 6px 0 #c8b8a0,
    -12px 12px 0 #ddd0be,
    0 20px 50px rgba(0,0,0,0.18);
  transition: box-shadow 0.35s ease;
}

.book-card:hover .book-cover-wrap {
  box-shadow:
    -8px 8px 0 #b8a890,
    -16px 16px 0 #d0c0ae,
    0 30px 60px rgba(0,0,0,0.25);
}

.book-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 背表紙の線 */
.book-cover-wrap::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: linear-gradient(to right, rgba(0,0,0,0.12), transparent);
  z-index: 1;
}

/* PDF バッジ */
.book-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(42, 100, 150, 0.85);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
  backdrop-filter: blur(4px);
}

/* ダウンロードアイコン */
.book-action {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(42,100,150,0.9) 0%, transparent 100%);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  padding: 28px 12px 12px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.book-card:hover .book-action {
  opacity: 1;
}

.book-action::before {
  content: '↓';
  display: block;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

/* カードのテキスト */
.book-info {
  margin-top: 18px;
  text-align: center;
}

.book-lang {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: #fff;
  background: #2a6496;
  padding: 2px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.book-title {
  font-family: 'Kaisei Opti', serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  color: #2a4a6a;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.book-subtitle {
  font-size: 0.8rem;
  color: #7a6a5a;
  letter-spacing: 0.1em;
}

.book-filesize {
  margin-top: 6px;
  font-size: 0.7rem;
  color: #aaa;
  letter-spacing: 0.1em;
}

/* ============================================
   Section: Spread (Inside Pages)
============================================ */
.spread-section {
  padding: 80px 20px 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.spread-header {
  text-align: center;
  margin-bottom: 40px;
}


.spread-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.spread-item {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.spread-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

.spread-item img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 600px) {
  .spread-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Section: Digest
============================================ */
.digest-section {
  position: relative;
  padding: 80px 20px 100px;
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
}

.digest-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}


.digest-lead {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  color: #5a4a3a;
  line-height: 2.2;
  letter-spacing: 0.08em;
  margin-top: 20px;
}

/* カードグリッド */
.digest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  position: relative;
  z-index: 2;
}

.digest-card {
  background: rgba(255, 252, 245, 0.75);
  border: 1px solid rgba(180, 160, 130, 0.3);
  border-radius: 12px;
  padding: 28px 22px;
  backdrop-filter: blur(4px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.digest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.digest-icon {
  height: 64px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
}

.digest-icon img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.digest-icon img[src*="illust-bonito"] {
  height: 70%;
}

.digest-card-title {
  font-family: 'Kaisei Opti', serif;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 700;
  color: #2a4a6a;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.digest-card-text {
  font-size: clamp(0.8rem, 1.4vw, 0.9rem);
  line-height: 1.9;
  color: #5a4a3a;
  letter-spacing: 0.05em;
}

/* Digest セクション内のイラスト */
.about-illust {
  position: absolute;
  pointer-events: none;
  opacity: 0.65;
}

.about-illust-ice {
  left: 1%;
  top: 10%;
  width: clamp(50px, 6vw, 90px);
  transform: rotate(-10deg);
}

.about-illust-buntan {
  right: 1%;
  top: 15%;
  width: clamp(55px, 7vw, 100px);
  transform: rotate(12deg);
}

.about-illust-nihonshu {
  left: 0%;
  bottom: 8%;
  width: clamp(35px, 4.5vw, 65px);
  transform: rotate(5deg);
}

.about-illust-sunflower {
  right: 0%;
  bottom: 4%;
  width: clamp(60px, 7vw, 100px);
  transform: rotate(-8deg);
}

/* ============================================
   Scattered Illustrations (Books Section)
============================================ */
.scatter-wrap {
  position: relative;
}

.scatter {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.scatter img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.8;
}

.sc-buntan {
  top: -40px;
  right: -20px;
  width: clamp(70px, 8vw, 120px);
  transform: rotate(15deg);
  animation: float3 9s ease-in-out infinite;
}

.sc-cutlery {
  bottom: 20px;
  left: -10px;
  width: clamp(40px, 5vw, 70px);
  transform: rotate(-20deg);
  animation: float1 12s ease-in-out infinite;
}

.sc-henro2 {
  top: 50%;
  right: -30px;
  width: clamp(72px, 7.8vw, 117px);
  transform: rotate(8deg);
  animation: float2 10s ease-in-out infinite;
}

.sc-whale2 {
  bottom: -30px;
  right: 10%;
  width: clamp(100px, 14vw, 180px);
  transform: rotate(5deg);
  opacity: 0.6;
  animation: float3 13s ease-in-out infinite;
}

/* ============================================
   Footer
============================================ */
footer {
  position: relative;
  text-align: center;
  padding: 40px 20px 50px;
  border-top: 1px solid rgba(100,80,60,0.15);
}

.footer-logo-text {
  font-family: 'Kaisei Opti', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: #2a4a6a;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.footer-sub {
  font-size: 0.8rem;
  color: #8a7a6a;
  letter-spacing: 0.15em;
}

.footer-copyright {
  margin-top: 30px;
  font-size: 0.72rem;
  color: #aaa;
  letter-spacing: 0.1em;
}

/* footer illustration */
.footer-illust-left {
  position: absolute;
  left: 4%;
  bottom: 0;
  width: clamp(60px, 8vw, 110px);
  opacity: 0.7;
}

.footer-illust-right {
  position: absolute;
  right: 4%;
  bottom: 0;
  width: clamp(60px, 8vw, 110px);
  opacity: 0.7;
  transform: scaleX(-1);
}

/* ============================================
   Divider Wave
============================================ */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
}

/* ============================================
   Responsive
============================================ */
@media (max-width: 600px) {
  .illust-nihonshu,
  .illust-henro {
    display: none;
  }

  .books-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 16px;
  }

  .book-cover-wrap {
    max-width: 100%;
  }

  /* ダイジェストカード: スマホでは1カラム・内部を2カラム */
  .digest-grid {
    grid-template-columns: 1fr;
  }

  .digest-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    align-items: start;
    padding: 18px 16px;
  }

  .digest-icon {
    grid-column: 1;
    grid-row: 1 / 3;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin-bottom: 0;
  }

  .digest-card-title {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 4px;
  }

  .digest-card-text {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (max-width: 420px) {
  .books-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px 10px;
  }
}

