@charset "UTF-8";

/*///////////////////////////////////////////////
// ［Meetsでみぃつけた］－［詳細］ページ                     
///////////////////////////////////////////////*/

.stories-article-main {
  background-color: #f9f9f3;
}

.stories-article-main .content-breadcrumb [aria-current="page"] {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* コンテナ領域の微調整 */
.diary-detail-wrapper.detail-white-box {
  background-color: #FFFFFF !important;
  border-radius: 24px;
  padding: 0 45px 40px; 
  box-shadow: 0 4px 20px rgba(95, 92, 92, 0.04);
  box-sizing: border-box;
  max-width: 1000px;
  margin: 20px auto 30px;
  overflow: hidden;
}

/* タイトルヘッダ */
.article-title-header {
  background-color: #eaf2f8;
  margin: 0 -45px 35px;
  padding: 30px 45px 25px;
  border-radius: 24px 24px 0 0;
}

/* 日付サイズ拡大 */
.article-date {
  display: block;
  font-size: 18px;
  color: #333333;
  text-align: right;
  font-weight: 700;
  margin-bottom: 8px;
}

.article-title-header h2.article-title {
  font-size: 32px;
  color: #033824;
  line-height: 1.4;
  font-weight: 800;
  margin-bottom: 12px;
  text-align: left;
}

.article-author {
  font-size: 18px;
  color: #333333;
  font-weight: 700;
}

/* 記事本文エリア内の調整 */
.diary-content-image-wrapper {
  width: 100%;
  margin-bottom: 30px;
}

.diary-content-image-wrapper img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 15px;
  display: block;
}

.diary-text-paragraph {
  font-size: 24px;
  line-height: 1.8;
  color: #333333;
  margin-bottom: 24px;
  text-align: justify;
  position: relative;
}

.diary-text-paragraph.sun-editor-editable {
  min-height: 0;
  padding: 0;
  background: transparent;
  overflow-wrap: anywhere;
  font-family: "M PLUS Rounded 1c", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

.diary-text-paragraph.sun-editor-editable p,
.diary-text-paragraph.sun-editor-editable li,
.diary-text-paragraph.sun-editor-editable blockquote,
.diary-text-paragraph.sun-editor-editable th,
.diary-text-paragraph.sun-editor-editable td {
  font-size: inherit !important;
  line-height: inherit;
}

.diary-text-paragraph.sun-editor-editable > :first-child {
  margin-top: 0;
}

.diary-text-paragraph.sun-editor-editable > :last-child {
  margin-bottom: 0;
}

.diary-text-paragraph.sun-editor-editable a {
  color: #167447;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.diary-text-paragraph.sun-editor-editable img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 28px auto;
  border-radius: 14px;
}

.diary-text-paragraph.sun-editor-editable table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

/* JS無効時・shape-outside非対応時は本文下に表示する */
.diary-text-paragraph.sun-editor-editable::after {
  display: block;
  width: min(280px, 42%);
  aspect-ratio: 280 / 218;
  margin: 16px auto 0;
  background: url("../images/stories/senior_illust2.png") center / contain no-repeat;
  content: "";
}

.diary-text-paragraph.sun-editor-editable.is-measuring-illustration::after {
  content: none;
}

.diary-text-paragraph.sun-editor-editable > .story-trailing-empty {
  display: none;
}

@media (min-width: 751px) {
  .diary-text-paragraph.sun-editor-editable.has-shaped-illustration::after {
    content: none;
  }

  .diary-text-paragraph.sun-editor-editable.has-shaped-illustration > .story-last-paragraph {
    min-height: 218px;
  }

  .diary-text-paragraph.sun-editor-editable.has-shaped-illustration > .story-last-paragraph::before {
    display: block;
    width: 280px;
    height: var(--story-illustration-float-height, 218px);
    float: right;
    background: url("../images/stories/senior_illust2.png") right bottom / 280px 218px no-repeat;
    content: "";
    shape-outside: inset(calc(100% - 218px) 0 0);
    margin-left: 24px;
  }
}

.text-wrapper {
  margin-bottom: 40px;;
}

.diary-detail-body::after {
  content: "";
  display: block;
  clear: both;
}

/* 一覧に戻るボタン */
.btn-back-container {
  margin: 40px 0 60px;
  padding-top: 35px;
  border-top: 1px solid #c8c8c8; 
  display: flex;
  justify-content: center;
  width: 100%;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 290px;
  height: 60px;
  font-size: 22px;
  font-weight: 800;
  color: #22935e;
  text-decoration: none;
  background-color: #FFFFFF;
  border: 3px solid #22935e;
  border-radius: 12px;
  position: relative;
  padding-left: 22px;
  box-sizing: border-box;
  box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.btn-back::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 9px 6px 0;
  border-color: transparent #22935e transparent transparent;
}

.btn-back:hover {
  background-color: #f4f9f6;
  transform: translateY(-2px);
  box-shadow: 2px 5px 12px rgba(0, 0, 0, 0.2);
}

/* レスポンシブ表示 */
@media (max-width: 750px) {
  .stories-article-main .content-breadcrumb {
    flex-wrap: wrap;
  }

  .stories-article-main .content-breadcrumb > * {
    flex: 0 0 auto;
  }

  .stories-article-main .content-breadcrumb [aria-current="page"] {
    flex-basis: 100%;
  }

  .diary-detail-wrapper.detail-white-box {
    border-radius: 16px;
    padding: 0 16px 0px;
  }

  .article-title-header {
    margin: 0 -16px 20px;
    padding: 20px 16px 16px;
    border-radius: 16px 16px 0 0;
  }

  .article-date {
    font-size: 18px;
    margin-bottom: 4px;
  }

  .article-title-header h2.article-title {
    font-size: 24px;
  }

  .article-author {
    font-size: 18px;
  }

  .diary-text-paragraph {
    font-size: 18px !important;
    line-height: 1.4;
    margin-bottom: 9px;
  }

  .diary-text-wrapper {
    margin-bottom: 24px;
  }

  /* SP時は回り込みを行わず、最後の段落の下へ配置 */
  .diary-text-paragraph.sun-editor-editable::after {
    display: block;
    width: 200px;
    aspect-ratio: 280 / 218;
    margin: 12px auto 0;
    background: url("../images/stories/senior_illust2.png") center / contain no-repeat;
    content: "";
  }

  /* SP版 一覧に戻るボタン */
  .btn-back-container {
    margin: 30px 0 40px;
    padding-top: 25px;
  }

  .btn-back {
    width: 200px;
    height: 48px;
    font-size: 16px;
    border-radius: 12px;
    color: #22935e; 
    border: 2px solid #22935e;
    padding-left: 20px;
    box-shadow: none;
  }

  .btn-back::before {
    left: 24px;
    border-width: 6px 8px 6px 0;
    border-color: transparent #22935e transparent transparent;
  }
}
