/* =====================================================
   Yasuragi no Sato - お客様の声 コメント (Comment) Page
   ===================================================== */

/* =====================================================
   CSS Variables
   ===================================================== */
: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;
  --font-tsuku: 'FOT-TsukuAntiqueLMin Std', 'Shippori Mincho B1', serif;
}

/* =====================================================
   Reset & Base
   ===================================================== */
*, *::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: var(--color-text-dark);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}


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

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

.hero__text {
  /* Text is part of the hero background image - hide for visual, keep for accessibility */
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

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

.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 {
  width: 100%;
  height: 48px;
  background: var(--color-bg-cream);
}

.breadcrumb__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 130px 0;
}

.breadcrumb__item {
  font-family: var(--font-gothic);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-dark);
  line-height: 200%;
}

.breadcrumb__item--current {
  opacity: 0.7;
}

.breadcrumb__sep {
  flex-shrink: 0;
}

/* =====================================================
   Intro Section (Featured Comment)
   ===================================================== */
.intro {
  background: var(--color-bg-cream);
  padding: 100px 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro__inner {
  width: 1180px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.intro__title {
  font-family: var(--font-tsuku);
  font-size: 64px;
  font-weight: 300;
  color: var(--color-text-dark);
  line-height: 94px;
}

/* Featured Comment Card */
.intro__featured {
  width: 1098px;
  max-width: 100%;
  background: var(--color-white);
  display: flex;
  align-items: center;
  padding: 50px 30px;
  gap: 50px;
  align-self: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.intro__featured-photo {
  flex-shrink: 0;
  width: 260px;
  height: 230px;
}

.intro__featured-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro__featured-content {
  width: 758px;
  flex-shrink: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.intro__featured-heading {
  font-family: var(--font-mincho);
  font-size: 28px;
  font-weight: 600;
  color: var(--color-text-brown);
  line-height: 54px;
}

.intro__featured-attr {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mincho);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-brown);
  line-height: 30px;
}

.intro__featured-divider {
  display: inline-block;
  width: 25px;
  height: 0;
  border-top: 1px solid var(--color-text-brown);
  transform: rotate(-45deg);
}

.intro__featured-text {
  font-family: var(--font-gothic);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text-brown);
  line-height: 36px;
}

/* =====================================================
   Comments Section
   ===================================================== */
.comments {
  background: var(--color-bg-cream);
  padding: 120px 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.comments__inner {
  width: 1180px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}

.comments__title {
  font-family: var(--font-tsuku);
  font-size: 64px;
  font-weight: 300;
  color: var(--color-text-dark);
  line-height: 94px;
  text-align: center;
}

/* Comment Cards List */
.comments__list {
  width: 902px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

/* Individual Comment Card */
.comments__card {
  display: flex;
  align-items: center;
  width: 902px;
  gap: 15px;
}

.comments__card--reverse {
  /* DOM order is already letter-first, photo-second - no row-reverse needed */
}

/* Photo Frame */
.comments__card-photo {
  flex-shrink: 0;
  width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.comments__card-photo > img {
  width: 260px;
  height: auto;
  object-fit: contain;
}

.comments__card-attr {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mincho);
  font-size: 28px;
  font-weight: 600;
  color: var(--color-text-brown);
  line-height: 54px;
  margin-top: 5px;
  position: relative;
  z-index: 3;
}

.comments__card-divider {
  display: inline-block;
  width: 35px;
  height: 0;
  border-top: 1px solid var(--color-text-brown);
  transform: rotate(-45deg);
}

/* Letter Frame */
.comments__card-letter {
  flex-shrink: 0;
  width: 600px;
  background: var(--color-bg-cream);
  border: 0.5px solid var(--color-text-brown);
  padding: 10px 9px;
  position: relative;
  z-index: 1;
  align-self: center;
}


.comments__card-letter img {
  width: 100%;
  height: auto;
}

/* =====================================================
   Pagination
   ===================================================== */
.comments__pagination {
  width: 1180px;
  max-width: 100%;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.comments__pagination-count {
  font-family: var(--font-gothic);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text-dark);
  line-height: 36px;
}

.comments__pagination-pages {
  display: flex;
  align-items: center;
  gap: 20px;
}

.comments__pagination-page {
  font-family: var(--font-tsuku);
  font-size: 36px;
  font-weight: 300;
  color: var(--color-text-dark);
  line-height: 96px;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.comments__pagination-page:hover {
  opacity: 0.8;
}

.comments__pagination-page--active {
  opacity: 1;
}

.comments__pagination-next {
  display: flex;
  align-items: center;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.comments__pagination-next:hover {
  opacity: 0.8;
}

/* =====================================================
   Related Links
   ===================================================== */
.comments__related {
  display: flex;
  gap: 50px;
  justify-content: center;
}

.comments__related-card {
  position: relative;
  width: 500px;
  height: 248px;
  border-radius: 11.42px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}

.comments__related-card:hover {
  opacity: 0.9;
}

.comments__related-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(0.88) saturate(0.87) brightness(1.13);
}


.comments__related-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
}

.comments__related-label {
  font-family: var(--font-mincho);
  font-size: 36px;
  font-weight: 600;
  color: var(--color-white);
  line-height: 52px;
  text-align: center;
}

.comments__related-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

.comments__related-arrow svg {
  display: block;
}

/* =====================================================
   CTA Section
   ===================================================== */
.cta {
  background: var(--color-white);
  padding: 61px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta__inner {
  width: 1000px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.cta__buttons {
  display: flex;
  gap: 60px;
  width: 100%;
}

.cta__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: #fffbf1;
  transition: opacity 0.3s;
}

.cta__btn:hover {
  opacity: 0.9;
}

.cta__btn--orange {
  background: var(--color-btn-orange);
}

.cta__btn--green {
  background: var(--color-primary);
}

.cta__btn svg {
  flex-shrink: 0;
}

.cta__download {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 148px;
  background: var(--color-text-dark);
  padding: 18px 64px;
  transition: opacity 0.3s;
}

.cta__download:hover {
  opacity: 0.9;
}

.cta__download-sub {
  font-family: var(--font-gothic);
  font-size: 24px;
  font-weight: 500;
  line-height: 44px;
  color: #fffbf1;
  text-align: center;
}

.cta__download-main-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cta__download-main {
  font-family: var(--font-mincho);
  font-size: 28px;
  font-weight: 600;
  line-height: 54px;
  color: #fffbf1;
}

.cta__download-icon {
  flex-shrink: 0;
}

/* =====================================================
   SP (Mobile) Styles
   ===================================================== */
.sp-only { display: none !important; }
.pc-only { display: block !important; }

@media (max-width: 768px) {
  .sp-only { display: inline !important; }
  .pc-only { display: none !important; }
  img.sp-only { display: block !important; }

  /* Hero */
  .hero {
    height: 151px;
    margin-top: 56px;
    background: url('../images/hero-sp.png') center / cover no-repeat;
  }

  .hero__text {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }

  .hero__inner {
    padding: 25px 40px;
    align-items: flex-end;
  }

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

  .hero__subtitle {
    font-size: 14px;
    letter-spacing: 0.7px;
    line-height: 16.8px;
    margin-top: 8px;
  }

  /* Breadcrumb */
  .breadcrumb {
    height: 43px;
  }

  .breadcrumb__inner {
    padding: 15px 40px 0;
  }

  /* Intro */
  .intro {
    padding: 50px 0;
  }

  .intro__inner {
    width: 100%;
    gap: 40px;
    align-items: center;
  }

  .intro__title {
    font-size: 36px;
    line-height: 55px;
    letter-spacing: 1.08px;
    padding: 0 20px;
    width: 100%;
  }

  .intro__featured {
    width: 370px;
    flex-direction: column;
    padding: 30px;
    gap: 20px;
  }

  .intro__featured-photo {
    width: 230px;
    height: 230px;
  }

  .intro__featured-content {
    width: 100%;
    gap: 5px;
  }

  .intro__featured-heading {
    font-size: 20px;
    font-weight: 500;
    line-height: 36px;
    color: var(--color-text-dark);
  }

  .intro__featured-attr {
    font-size: 18px;
    line-height: 36px;
  }

  .intro__featured-text {
    font-size: 14px;
    line-height: 28px;
    letter-spacing: -0.28px;
    color: var(--color-text-brown);
  }

  /* Comments Section */
  .comments {
    padding: 50px 0;
  }

  .comments__inner {
    width: 100%;
    gap: 50px;
    align-items: center;
  }

  .comments__title {
    display: none;
  }

  .comments__list {
    width: 330px;
    gap: 30px;
  }

  .comments__card {
    width: 330px;
    flex-direction: column;
    gap: 0;
  }

  .comments__card-photo {
    width: auto;
    order: 2;
    margin-top: -24px;
    align-self: flex-start;
    z-index: 3;
  }

  .comments__card-photo > img:not(.comments__card-avatar) {
    display: none;
  }

  .comments__card-photo > .comments__card-avatar {
    height: 139px;
    width: auto;
    display: block !important;
  }

  .comments__card-attr {
    display: none;
  }

  .comments__card--reverse .comments__card-photo {
    align-self: flex-end;
  }

  .comments__card-letter {
    width: 330px;
    order: 1;
    border: 0.275px solid var(--color-text-brown);
    padding: 5.5px 5px;
    z-index: 1;
  }

  /* Pagination */
  .comments__pagination {
    width: 278px;
    height: 56px;
  }

  .comments__pagination-count {
    font-size: 18px;
    line-height: 28px;
  }

  .comments__pagination-pages {
    gap: 10px;
  }

  .comments__pagination-page {
    font-size: 28px;
    line-height: 56px;
  }

  /* Related Links */
  .comments__related {
    flex-direction: column;
    gap: 31px;
    padding: 0 40px;
  }

  .comments__related-card {
    width: 310px;
    height: 154px;
    border-radius: 7px;
  }

  .comments__related-content {
    gap: 12px;
  }

  .comments__related-label {
    font-size: 24px;
    line-height: 32px;
  }

  .comments__related-arrow svg {
    width: 25px;
    height: 25px;
  }

  /* CTA */
  .cta {
    padding: 50px 0;
  }

  .cta__inner {
    width: 100%;
    gap: 10px;
  }

  .cta__buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .cta__btn {
    width: 100%;
    height: 120px;
    font-size: 24px;
  }

  .cta__btn--green {
    gap: 8px;
  }

  .cta__download {
    width: 100%;
    height: auto;
    padding: 18px 30px;
  }

  .cta__download-sub {
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
  }

  .cta__download-main {
    font-size: 24px;
    line-height: 54px;
    white-space: nowrap;
  }
}

