* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #303047;
  background: #faf9fd;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.9;
}

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


/* HEADER */

.site-header {
  background: rgba(255,255,255,.97);
}

.header-inner {
  max-width: 1220px;
  min-height: 78px;
  margin: auto;
  padding: 0 32px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.moon-mark {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #d7c0ed;
  position: relative;
}

.moon-mark::after {
  content: "";
  position: absolute;
  width: 27px;
  height: 27px;
  left: 10px;
  top: -2px;
  border-radius: 50%;
  background: #fff;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 23px;
  font-weight: 400;
}

.brand-text small {
  color: #9895aa;
  font-size: 7px;
  letter-spacing: .27em;
}

.main-nav {
  display: flex;
  gap: 34px;
}

.main-nav a {
  color: #55556a;
  font-size: 13px;
}


/* HERO */

.hero {
  min-height: 330px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;

  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(197,202,243,.68),
      transparent 40%
    ),
    radial-gradient(
      circle at 88% 18%,
      rgba(242,214,231,.62),
      transparent 40%
    ),
    linear-gradient(
      130deg,
      #eff1fc,
      #fbf9fc 50%,
      #faedf4
    );
}

.hero-en {
  color: #705fc8;
  font-family: Arial, sans-serif;
  font-size: 13px;
  letter-spacing: .3em;
}

.hero h1 {
  margin: 4px 0 0;

  color: #2d2e49;

  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;

  font-size: 48px;
  font-weight: 400;
  letter-spacing: .06em;
}

.hero-line {
  display: block;

  width: 48px;
  height: 2px;

  margin: 17px auto 18px;

  background: #b594e2;
}

.hero p {
  margin: 0;

  color: #65657a;

  font-size: 14px;
  line-height: 1.8;
  letter-spacing: .04em;
}


/* CONTENT */

.content {
  max-width: 1080px;
  margin: -28px auto 0;
  padding: 0 25px 55px;

  position: relative;
}

.page-info {
  margin-bottom: 15px;
  padding-right: 5px;

  color: #9a96a9;

  font-family: Arial, sans-serif;
  font-size: 11px;
  letter-spacing: .17em;

  text-align: right;
}

.post-list {
  display: grid;
  gap: 25px;
}

.post-card {
  padding: 30px;

  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;

  background: #fff;

  border: 1px solid #ebe9f1;
  border-radius: 11px;

  box-shadow:
    0 14px 40px rgba(70,64,102,.07);
}

.post-image {
  min-height: 230px;

  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.post-image img {
  display: block;

  max-width: 100%;
  max-height: 430px;

  width: auto;
  height: auto;

  border-radius: 7px;

  object-fit: contain;
}

.post-content {
  min-width: 0;
}

.post-content time {
  display: block;

  margin-bottom: 8px;

  color: #7767ca;

  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
}

.post-content h2 {
  margin: 0;

  color: #292b46;

  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;

  font-size: 23px;
  font-weight: 400;

  line-height: 1.6;
}

.title-line {
  display: block;

  width: 45px;
  height: 2px;

  margin: 15px 0 20px;

  background: #bd9ce5;
}

.post-body {
  color: #505166;

  font-size: 14px;

  line-height: 1.95;

  overflow-wrap: anywhere;
}

.post-body a {
  color: #6654c4;
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* PAGINATION */

.pagination {
  margin-top: 38px;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;

  gap: 7px;
}

.page-number,
.page-arrow {
  min-width: 42px;
  height: 42px;

  padding: 0 13px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #fff;

  border: 1px solid #ddd9e8;
  border-radius: 100px;

  color: #6558b8;

  font-size: 13px;
}

.page-number.current {
  color: #fff;
  border-color: #7566cd;
  background: #7566cd;
}

.dots {
  color: #aaa6b6;
}


/* BACK */

.back-area {
  margin-top: 38px;
  text-align: center;
}

.back-button {
  min-height: 52px;

  padding: 0 31px;

  display: inline-flex;
  align-items: center;

  border: 1px solid #7566cd;
  border-radius: 100px;

  color: #6456bd;

  font-size: 13px;
}


/* FOOTER */

footer {
  padding: 28px 20px;

  text-align: center;

  background:
    linear-gradient(
      100deg,
      #f1f1ff,
      #faf8ff,
      #f3edfb
    );
}

.footer-moon {
  width: 28px;
  height: 28px;

  margin: 0 auto 6px;

  border-radius: 50%;

  background: #9486df;

  position: relative;
}

.footer-moon::after {
  content: "";

  position: absolute;

  width: 25px;
  height: 25px;

  left: 10px;
  top: -2px;

  border-radius: 50%;

  background: #f8f6ff;
}

.footer-brand {
  font-family: "Yu Mincho", serif;
  font-size: 20px;
}

.footer-brand small {
  display: block;

  color: #9996aa;

  font-family: Arial, sans-serif;
  font-size: 6px;
  letter-spacing: .27em;
}

footer p {
  margin: 9px 0 0;

  color: #9290a2;

  font-family: Arial, sans-serif;
  font-size: 10px;
}


/* MOBILE */

@media (max-width: 780px) {

  .header-inner {
    padding: 16px 17px;

    flex-direction: column;

    gap: 15px;
  }

  .brand-text strong {
    font-size: 20px;
  }

  .main-nav {
    width: 100%;

    gap: 5px;

    justify-content: space-between;
  }

  .main-nav a {
    font-size: 10px;
  }

  .hero {
    min-height: 285px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .post-card {
    padding: 20px;

    grid-template-columns: 1fr;

    gap: 22px;
  }

  .post-image {
    min-height: 0;
  }

  .post-image img {
    max-height: none;
  }

  .post-content h2 {
    font-size: 20px;
  }

  .post-body {
    font-size: 13px;
  }

  .page-info {
    padding-right: 2px;
  }
}

/* Original image link */
.original-image-link {
  display: block;
  max-width: 100%;
  cursor: zoom-in;
}

.original-image-link img {
  transition: opacity .2s ease;
}

.original-image-link:hover img {
  opacity: .88;
}

/* Direct Wave title search */
.dw-search {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
  padding: 22px;
  margin-bottom: 28px;
  background: #fff;
  border: 1px solid #e9e5f2;
  border-radius: 15px;
}
.dw-search-field { flex: 1 1 280px; min-width: 0; }
.dw-sort-field { flex: 0 1 170px; }
.dw-search label {
  display: block;
  margin-bottom: 9px;
  font-size: 13px;
  color: #5b5273;
}
.dw-search input,
.dw-search select {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid #dad4e9;
  border-radius: 9px;
  background: #fff;
  color: #302945;
  font: inherit;
  font-size: 14px;
}
.dw-search-button {
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 25px;
  background: #7462cc;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.dw-search-reset {
  align-self: center;
  color: #7565bb;
  font-size: 13px;
}
.dw-no-results {
  padding: 45px 16px;
  text-align: center;
  color: #79718c;
}
@media(max-width:600px) {
  .dw-search { padding:17px; gap:13px; }
  .dw-search-field,.dw-sort-field { flex:1 1 100%; }
  .dw-search-button { flex:1 1 100%; }
}

/* Direct Wave: compact right-aligned search */
.dw-search {
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 10px 0;
  margin: 0 0 18px auto;
  border: 0;
  background: transparent;
  border-radius: 0;
  width: fit-content;
  max-width: 100%;
}

.dw-search label {
  display: none;
}

.dw-search-field {
  flex: 0 1 250px;
  width: 250px;
  min-width: 0;
}

.dw-sort-field {
  flex: 0 0 145px;
  width: 145px;
}

.dw-search input,
.dw-search select {
  height: 40px;
  min-height: 40px;
  padding: 7px 11px;
  font-size: 13px;
}

.dw-search-button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 17px;
  font-size: 13px;
  white-space: nowrap;
}

.dw-search-reset {
  white-space: nowrap;
  font-size: 12px;
}

@media (max-width: 600px) {
  .dw-search {
    width: 100%;
    gap: 6px;
    padding: 8px 0;
    flex-wrap: nowrap;
  }

  .dw-search-field {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .dw-sort-field {
    flex: 0 0 98px;
    width: 98px;
  }

  .dw-search input,
  .dw-search select {
    font-size: 12px;
    padding: 6px;
  }

  .dw-search-button {
    padding: 0 11px;
    font-size: 12px;
  }
}


/* mrs-clip-square-images-20261119 */
main img,
main picture,
main picture img,
article img {
    border-radius: 0 !important;
}


/* mrs-clip-original-image-shape-20261119 */

/* Images: preserve original proportions and square corners */
main article img,
main article picture,
main article picture img,
main .post img {
    border-radius: 0 !important;
    clip-path: none !important;
    object-fit: contain !important;
    aspect-ratio: auto !important;
    height: auto !important;
    max-width: 100% !important;
}

/* Remove rounded clipping on image containers */
main article :is(a, div, figure, picture):has(> img),
main article :is(a, div, figure):has(> picture),
main .post :is(a, div, figure, picture):has(> img) {
    border-radius: 0 !important;
    clip-path: none !important;
    overflow: visible !important;
    aspect-ratio: auto !important;
}


/* mrs-clip-photo-first-layout-20261119 */

/* Title and date across the entire card */
.post-card {
    display: grid;
    grid-template-columns:
        minmax(0, 7fr) minmax(0, 3fr);
    column-gap: 22px;
    row-gap: 12px;
    padding: 22px;
    align-items: start;
}

.post-card .post-header {
    grid-column: 1 / -1;
    grid-row: 1;
    min-width: 0;
}

.post-card .post-header h2 {
    margin: 0 0 6px;
    color: #292b46;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.4;
}

.post-card .post-header time {
    display: block;
    margin-bottom: 5px;
    color: #77758a;
    font-size: 12px;
}

.post-card .post-header .title-line {
    display: none;
}

/* Large photo with original proportions */
.post-card .post-image {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    min-height: 0;
    display: block;
    overflow: visible;
    border-radius: 0;
}

.post-card .post-image .original-image-link {
    display: block;
    width: fit-content;
    max-width: 100%;
    overflow: visible;
    border-radius: 0;
}

.post-card .post-image img {
    display: block;
    width: auto;
    height: auto !important;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
    object-position: left top;
    aspect-ratio: auto;
    border-radius: 0 !important;
    clip-path: none !important;
}

/* Smaller text area */
.post-card .post-content {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    padding: 0;
}

.post-card .post-body {
    font-size: 12.5px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

/* Small screens: title, image, body */
@media (max-width: 800px) {
    .post-card {
        grid-template-columns: minmax(0, 1fr);
        padding: 16px;
        gap: 12px;
    }

    .post-card .post-header {
        grid-column: 1;
        grid-row: 1;
    }

    .post-card .post-image {
        grid-column: 1;
        grid-row: 2;
    }

    .post-card .post-content {
        grid-column: 1;
        grid-row: 3;
    }

    .post-card .post-header h2 {
        font-size: 18px;
    }

    .post-card .post-body {
        font-size: 13px;
    }
}


/* mrs-clip-narrow-text-20261119 */

/* Wider photo area, narrower text area */
@media (min-width: 801px) {
    .post-card {
        grid-template-columns:
            minmax(0, 8fr) minmax(0, 2fr);
        column-gap: 18px;
    }

    .post-card .post-body {
        font-size: 14px;
        line-height: 1.65;
    }
}

/* Mobile: retain the original text size */
@media (max-width: 800px) {
    .post-card .post-body {
        font-size: 14px;
        line-height: 1.65;
    }
}


/* mrs-clip-equal-columns-20261119 */

/* Desktop: photo 50%, text 50% */
@media (min-width: 801px) {
    .post-card {
        grid-template-columns:
            minmax(0, 1fr) minmax(0, 1fr) !important;
        column-gap: 18px;
    }

    .post-card .post-body {
        font-size: 14px;
        line-height: 1.65;
    }
}

/* Mobile: title, photo, text vertically */
@media (max-width: 800px) {
    .post-card {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .post-card .post-body {
        font-size: 14px;
    }
}


/* mrs-clip-body-font-16px-20261119 */
.post-card .post-body {
    font-size: 16px !important;
    line-height: 1.7;
}


/* mrs-clip-body-font-18px-dark-20261119 */
.post-card .post-body {
    font-size: 18px !important;
    color: #222222 !important;
    font-weight: 500 !important;
    line-height: 1.75 !important;
}


/* mrs-clip-title-24px-20261119 */
.post-card .post-header h2 {
    font-size: 24px !important;
    font-weight: 700;
    line-height: 1.4;
}

@media (max-width: 800px) {
    .post-card .post-header h2 {
        font-size: 21px !important;
    }
}


/* mrs-clip-title-bold-28px-20261119 */
.post-card .post-header h2 {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #202040 !important;
    line-height: 1.4 !important;
    letter-spacing: 0.02em;
}

@media (max-width: 800px) {
    .post-card .post-header h2 {
        font-size: 24px !important;
    }
}


/* mrs-clip-fullwidth-title-20261119 */

/* Title uses full width of the article card */
.post-card .post-header {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0;
}

.post-card .post-header h2 {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere;
    font-size: 28px !important;
    font-weight: 800 !important;
}

@media (max-width: 800px) {
    .post-card .post-header h2 {
        font-size: 24px !important;
    }
}


/* mrs-clip-photo-text-45-55-20261119 */

/* Desktop: photo 45%, article text 55% */
@media (min-width: 801px) {
    .post-card {
        grid-template-columns:
            minmax(0, 45fr) minmax(0, 55fr) !important;
        column-gap: 18px;
    }
}

/* Mobile: retain vertical layout */
@media (max-width: 800px) {
    .post-card {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}


/* mrs-clip-body-font-20px-20261119 */
.post-card .post-body {
    font-size: 20px !important;
    color: #222222 !important;
    font-weight: 500 !important;
    line-height: 1.75 !important;
}


/* mrs-clip-title-divider-20261119 */

/* Thin divider between title and photo/article */
.post-card .post-header {
    border-bottom: 1px solid #d8d8df !important;
    padding-bottom: 14px !important;
    margin-bottom: 4px !important;
}


/* mrs-clip-date-font-16px-20261119 */
.post-card .post-header time {
    font-size: 16px !important;
    line-height: 1.5 !important;
}


/* mrs-clip-compact-page-heading-20261119 */

/* Compact only the page heading, not individual post titles */
.dw-hero,
.page-hero,
.page-header {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    margin-bottom: 12px !important;
}

.dw-hero h1,
.page-hero h1,
.page-header h1 {
    margin-top: 0 !important;
    margin-bottom: 6px !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

.dw-hero hr,
.page-hero hr,
.page-header hr {
    display: none !important;
}


/* mrs-clip-hero-compact-20261119 */

/* Shorten the top page heading */
.hero {
    min-height: 150px !important;
    padding: 12px 20px !important;
}

/* Remove the line below the heading */
.hero-line {
    display: none !important;
}

/* Tighten vertical spacing */
.hero h1 {
    margin: 0 !important;
    line-height: 1.25 !important;
}

.hero p {
    margin-top: 4px !important;
    line-height: 1.5 !important;
}


/* mrs-clip-search-position-20261119 */

/* Keep the search box below the hero text */
.content {
    margin-top: 12px !important;
}

/* Maintain spacing on smaller screens */
@media (max-width: 800px) {
    .content {
        margin-top: 16px !important;
    }
}
