/* ==============================================
   news-detail.css – NEWS詳細ページ専用スタイル
============================================== */

/* ---- Article Page Section ---- */
.apage {
  padding: 160px 0 112px;
  background: #fff;
}

.apage__inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
  max-width: 1140px;
}

/* ---- Breadcrumb ---- */
.apage__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-ja);
  font-size: 14px;
  color: rgba(136, 104, 154, 0.6);
}

.apage__breadcrumb a {
  color: var(--clr-main);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.apage__breadcrumb a:hover {
  opacity: 0.6;
}

.apage__breadcrumb-sep {
  color: rgba(136, 104, 154, 0.4);
  font-size: 16px;
}

/* ---- Article Header ---- */
.apage__header {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.apage__date {
  font-family: var(--ff-ja);
  font-size: 18px;
  font-weight: 500;
  color: rgba(136, 104, 154, 0.5);
  letter-spacing: 0.07em;
}

.apage__title {
  font-family: var(--ff-ja);
  font-size: 40px;
  font-weight: 600;
  color: var(--clr-main);
  line-height: 1.4;
}

.apage__line {
  border: none;
  border-top: 1px solid var(--clr-main);
  opacity: 0.3;
  margin: 0;
}

/* ---- Article Body ---- */
.apage__body {
  display: flex;
  gap: 72px;
  align-items: center;
}

/* Text column */
.apage__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: var(--ff-ja);
  font-size: 16px;
  font-weight: 400;
  color: var(--clr-text);
  line-height: 2.1;
}

.apage__text p,
.apage__text li,
.apage__text h2,
.apage__text h3 {
  font-family: var(--ff-ja);
  color: var(--clr-text);
  line-height: 2.1;
}

.apage__text p {
  font-size: 16px;
  font-weight: 400;
}

.apage__text h2 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 8px;
}

.apage__text h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 4px;
}

/* Image column（右・縦並び） */
.apage__image {
  flex-shrink: 0;
  width: 460px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.apage__image-item img,
.apage__image-item figure img,
.apage__image-item * img {
  width: 100% !important;
  height: 360px !important;
  border-radius: 30px !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center !important;
}

.apage__image-item figure {
  margin: 0;
}

.apage__image-item figure {
  margin: 0;
}

/* 画像なしの場合：テキストを中央寄せ・最大幅を制限 */
.apage__body:not(:has(.apage__image)) .apage__text {
  max-width: 720px;
  margin: 0 auto;
}

/* ---- Back Link ---- */
.apage__back {
  padding-top: 16px;
}

.apage__back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-ja);
  font-size: 16px;
  font-weight: 500;
  color: var(--clr-main);
  text-decoration: none;
  transition: opacity 0.2s ease, gap 0.25s ease;
}

.apage__back-link:hover {
  opacity: 0.7;
}

.apage__back-link:hover .apage__back-arrow {
  transform: translateX(-4px);
}

.apage__back-arrow {
  display: inline-block;
  font-size: 18px;
  transition: transform 0.25s ease;
}

/* ---- Current nav link ---- */
.header__nav .is-current {
  color: var(--clr-main);
  font-weight: 600;
}


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

/* Tablet (≤960px) */
@media (max-width: 960px) {
  .apage {
    padding: 120px 0 80px;
  }

  .apage__title {
    font-size: 30px;
  }

  .apage__body {
    gap: 48px;
  }

  .apage__image {
    width: 320px;
  }
}

/* Tablet narrow (≤768px) */
@media (max-width: 768px) {
  .apage__body {
    flex-direction: column;
    gap: 40px;
  }

  .apage__image {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* Mobile (≤430px) */
@media (max-width: 430px) {
  .apage {
    padding: 80px 0 64px;
  }

  .apage__inner {
    gap: 40px;
  }

  .apage__title {
    font-size: 24px;
  }

  .apage__text p {
    font-size: 15px;
  }

  .apage__image {
    max-width: 100%;
  }

  .apage__image img {
    border-radius: 16px;
  }
}
