/* =====================================================
   Yasuragi no Sato - 滞在記 (Journal) Page
   ===================================================== */

:root {
  --color-primary: #4a9255;
  --color-bg-cream: #fffbf1;
  --color-btn-orange: #d67c3d;
  --color-text-dark: #352304;
  --color-text-brown: #604d44;
  --color-white: #ffffff;
  --font-mincho: 'Shippori Mincho B1', 'YuMincho', 'Yu Mincho', serif;
  --font-gothic: 'YuGothic', 'Yu Gothic', 'Hiragino Sans', sans-serif;
  --font-italiana: 'Italiana', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-gothic); font-size: 15px; line-height: 1.8; color: #5a5a5a; background: var(--color-white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* =====================================================
   Hero Section
   ===================================================== */
.journal-hero {
  position: relative;
  width: 100%;
  height: 343px;
  margin-top: clamp(60px, 5.56vw, 80px);
  overflow: hidden;
  background: url('../images/voice-journal/hero.webp') center / cover no-repeat;
}

.journal-hero__inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 157px;
}

.journal-hero__text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.journal-hero__title {
  font-family: var(--font-mincho);
  font-size: 64px;
  font-weight: 600;
  color: #fffbf1;
  letter-spacing: 6.4px;
  line-height: 70px;
}

.journal-hero__subtitle {
  font-family: var(--font-italiana);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.9px;
  color: var(--color-white);
  margin-top: 8px;
}

/* =====================================================
   Breadcrumb
   ===================================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 130px 0;
  background: var(--color-bg-cream);
}

.breadcrumb__link,
.breadcrumb__current {
  font-family: var(--font-gothic);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-dark);
  line-height: 28px;
}

.breadcrumb__link:hover {
  opacity: 0.7;
}

.breadcrumb__arrow {
  width: 6px;
  height: 9px;
  flex-shrink: 0;
}

/* =====================================================
   Article Grid Section
   ===================================================== */
.journal-grid-section {
  background: var(--color-bg-cream);
  padding: 80px 130px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 300px);
  column-gap: 50px;
  row-gap: 70px;
  max-width: 1000px;
  width: 100%;
  justify-content: center;
}

.journal-grid__card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}

.journal-grid__card:hover {
  opacity: 0.8;
}

.journal-grid__thumb {
  width: 300px;
  height: 216px;
  overflow: hidden;
}

.journal-grid__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journal-grid__text {
  display: contents;
}

.journal-grid__title {
  font-family: var(--font-gothic);
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text-dark);
  line-height: 30px;
  height: 60px;
  margin-top: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.journal-grid__bottom {
  display: contents;
}

.journal-grid__divider {
  width: 100%;
  height: 1px;
  background: var(--color-text-dark);
  margin-top: 8px;
}

.journal-grid__date {
  font-family: var(--font-gothic);
  font-size: 15px;
  font-weight: 300;
  color: var(--color-text-dark);
  line-height: 27px;
  text-align: right;
  margin-top: 0;
}

/* =====================================================
   CTA Section
   ===================================================== */
.cta-new { background: #FFFFFF; padding: 61px 350px; display: flex; flex-direction: column; align-items: center; gap: 50px; }
.cta-new__buttons { display: flex; gap: 60px; }
.cta-new__btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 470px; height: 120px; font-family: var(--font-mincho); font-size: 28px; font-weight: 600; line-height: 54px; color: white; text-decoration: none; transition: opacity 0.3s; }
.cta-new__btn:hover { opacity: 0.9; }
.cta-new__btn--web { background: #d67c3d; }
.cta-new__btn--phone { background: #4a9255; }
.cta-new__btn-icon { width: 26px; height: 26px; }
.cta-new__btn-icon--phone { width: 34px; height: 26px; }
.cta-new__download { width: calc(470px + 60px + 470px); background: #352304; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 64px; height: 148px; }
.cta-new__download-label { font-family: var(--font-gothic); font-size: 24px; font-weight: 500; line-height: 44px; color: white; text-align: center; margin-bottom: 0; }
.cta-new__download-link { display: flex; align-items: center; gap: 8px; font-family: var(--font-mincho); font-size: 28px; font-weight: 600; line-height: 54px; color: white; text-decoration: none; transition: opacity 0.3s; }
.cta-new__download-link:hover { opacity: 0.8; }
.cta-new__download-icon { width: 26px; height: 26px; }

/* =====================================================
   Utility Classes
   ===================================================== */
.sp-only { display: none !important; }
.pc-only { display: inline !important; }

/* =====================================================
   SP Responsive (max-width: 768px)
   ===================================================== */
@media (max-width: 768px) {
  .sp-only { display: inline !important; }
  .pc-only { display: none !important; }

  /* ===== Hero SP ===== */
  .journal-hero {
    height: 151px !important;
    margin-top: 80px !important;
    background: url('../images/voice-journal/hero-sp.webp') center / cover no-repeat !important;
  }

  .journal-hero__inner {
    padding: 25px 40px !important;
    align-items: flex-start !important;
  }

  .journal-hero__text {
    position: relative !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .journal-hero__title {
    font-size: 36px !important;
    font-weight: 600 !important;
    letter-spacing: 3.6px !important;
    line-height: 38px !important;
  }

  .journal-hero__subtitle {
    font-size: 14px !important;
    letter-spacing: 0.7px !important;
    margin-top: 0 !important;
  }

  /* ===== Breadcrumb SP ===== */
  .breadcrumb {
    padding: 15px 40px 0 !important;
  }

  /* ===== Article Grid SP ===== */
  .journal-grid-section {
    padding: 50px 25px !important;
  }

  .journal-grid {
    grid-template-columns: 1fr !important;
    row-gap: 30px !important;
    column-gap: 0 !important;
    max-width: 310px !important;
  }

  .journal-grid__card {
    flex-direction: row !important;
    gap: 10px !important;
    height: 93px !important;
  }

  .journal-grid__thumb {
    width: 130px !important;
    height: 93px !important;
    flex-shrink: 0;
  }

  .journal-grid__text {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    width: 170px !important;
    height: 93px !important;
  }

  .journal-grid__title {
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 28px !important;
    height: 56px !important;
    margin-top: 0 !important;
  }

  .journal-grid__bottom {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .journal-grid__divider {
    width: 170px !important;
    margin-top: 0 !important;
  }

  .journal-grid__date {
    font-family: 'FOT-TsukuAntiqueLMin Std', var(--font-mincho) !important;
    font-size: 12px !important;
    font-weight: 300 !important;
    letter-spacing: 1.2px !important;
    line-height: 22px !important;
    text-align: right !important;
  }

  /* ===== CTA SP ===== */
  .section.cta-new {
    padding: 50px 0 !important;
    margin: 0 !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .cta-new__buttons {
    flex-direction: column;
    gap: 10px !important;
    width: 100%;
  }

  .cta-new__btn {
    width: 100% !important;
    max-width: none !important;
    height: 120px !important;
    font-size: 24px !important;
    line-height: 54px !important;
  }

  .cta-new__download {
    width: 100% !important;
    max-width: none !important;
    height: 148px !important;
    padding: 18px 30px !important;
  }

  .cta-new__download-label {
    font-size: 20px !important;
    line-height: 30px !important;
    font-weight: 500;
  }

  .cta-new__download-link {
    font-size: 24px !important;
    line-height: 54px !important;
    white-space: nowrap;
  }

  .cta-new__download-icon {
    width: 21px !important;
    height: 26px !important;
  }
}
