@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap");

:root {
  --font: 'Noto Sans JP', '游ゴシック', 'Yu Gothic', YuGothic, 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', 'メイリオ', Meiryo, 'ＭＳ Ｐゴシック', sans-serif;
  --font-min: 'Noto Sans JP';
  --font-en: 'Roboto', sans-serif;
  --bg-color: #fff;
  --text-color: #000;
  --main-color: red;
  --w: 0;
  --w-pc: 1366;
  --w-sp: 375;
}

body.front-page, 
body.custom-background.front-page {
  background: #f7faf9 !important;
}

@media print, screen and (min-width: 768px) {
  :root {
    --w: var(--w-pc);
  }

  .u-sp {
    display: none;
  }

  .l-wrapper {
    overflow: clip;
  }

  .l-inner {
    position: relative;
    margin: 0 auto;
    max-width: min(1200px, 1200 / var(--w) * 100vw);
  }

  .c-card {
    display: flex;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
    width: min(160px, 160 / var(--w) * 100vw);
    height: min(80px, 80 / var(--w) * 100vw);
    margin: min(20px, 20 / var(--w) * 100vw);
    margin-top: min(100px, 100 / var(--w) * 100vw);
    padding: min(16px, 16 / var(--w) * 100vw);
    padding-top: min(12px, 12 / var(--w) * 100vw);
    border-radius: min(8px, 8 / var(--w) * 100vw);
    z-index: 10;
    color: #333;
    background: #fff;
    background-color: #f55;
  }

  .c-pagelink-offset {
    position: absolute;
    top: max(-100px, -100 / var(--w) * 100vw);
    left: 0;
  }

  .pl-index-mv {
    margin: 0 -20px;
    height: 600px;
    background-image: url("/wp-content/themes/affinger-child/images/20260529-mv.webp");
    background-size: cover;
    background-position: center;

    h1,
    p {
      margin: 0;
    }

    ._inner {
      height: 100%;
      margin: 0 auto;
      max-width: 1060px;
    }

    ._texts {
      height: 100%;
      width: 500px;
      text-align: left;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 20px;
    }

    p._en {
      font-size: 12px;
      letter-spacing: 0.08em;
      font-weight: 900;
      color: #247c72;
    }

    h1 {
      font-size: 62px;
      line-height: 1.16;
      font-weight: 900;
      color: #15202d;
    }

    p._lead {
      font-size: 17px;
      line-height: 2;
      font-weight: 500;
      color: #4d5b6b;
    }

    ._btns {
      margin-top: 10px;
    }
  }

  .c-btn-more {
    display: inline;
    padding: 16px 22px;
    background: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 900;
    color: #247c72;
    border: 1px solid #000;
    text-decoration: none;
  }

  .c-post-card-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin: 32px 0;

    &[class*="is-col"] {
      flex-direction: row;
      flex-wrap: wrap;

      .c-post-card {
        flex-direction: column;
        gap: 0;

        ._thumb {
          flex: none;
          width: 100%;
          margin-bottom: 14px;
        }
      }
    }

    &.is-col2 .c-post-card {
      flex: 0 0 calc((100% - 32px) / 2);
    }

    &.is-col3 .c-post-card {
      flex: 0 0 calc((100% - 64px) / 3);
    }

    &.is-col4 .c-post-card {
      flex: 0 0 calc((100% - 96px) / 4);
    }
  }

  .c-post-card {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    text-decoration: none;
    color: inherit;

    ._thumb {
      flex: 0 0 220px;
      width: 220px;
      aspect-ratio: 4 / 3;
      border-radius: 4px;
      background: #eee;
      overflow: hidden;

      ._img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }

    ._body {
      flex: 1 1 auto;
      min-width: 0;
      text-align: left;
    }

    ._date {
      margin-bottom: 4px;
      font-size: 13px;
      color: #999;
    }

    ._title {
      margin-bottom: 10px;
      font-size: 18px;
      font-weight: 700;
      line-height: 1.5;
      color: #222;
      transition: color 0.2s ease;
    }

    ._excerpt {
      font-size: 14px;
      line-height: 1.9;
      color: #999;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    &:hover ._title {
      color: var(--main-color, #c00);
    }
  }

  h2.wp-block-heading {
    margin-left: -50px !important;
    padding-left: 50px !important;
  }
}

@media screen and (max-width: 767px) {
  :root {
    --w: var(--w-sp);
  }

  .u-pc {
    display: none;
  }

  .l-wrapper {
    overflow: clip;
  }

  .c-pagelink-offset {
    position: absolute;
    top: calc(-100 / var(--w) * 100vw);
    left: 0;
  }

  .c-post-card-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 24px 0;
  }

  .c-post-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-decoration: none;
    color: inherit;

    ._thumb {
      flex: 0 0 110px;
      width: 110px;
      aspect-ratio: 4 / 3;
      border-radius: 4px;
      background: #eee;
      overflow: hidden;

      ._img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }

    ._body {
      flex: 1 1 auto;
      min-width: 0;
      text-align: left;
    }

    ._date {
      margin-bottom: 2px;
      font-size: 12px;
      color: #999;
    }

    ._title {
      margin-bottom: 6px;
      font-size: 17px;
      font-weight: 700;
      line-height: 1.5;
      color: #222;
    }

    ._excerpt {
      font-size: 15px;
      line-height: 1.7;
      color: #999;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
  }

  .pl-index-mv {
    margin: 0 -20px;
    padding: 20px 0 0 0 ;
    height: 130vw;
    background-image: url("/wp-content/themes/affinger-child/images/20260529-mv-sp.webp");
    background-size: cover;
    background-position: center;

    h1,
    p {
      margin: 0;
    }

    ._inner {
      height: 100%;
      max-width: 100%;
      padding: 0 20px;
    }

    ._texts {
      height: 100%;
      width: 100%;
      text-align: left;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    p._en {
      font-size: 10px;
      letter-spacing: 0.08em;
      font-weight: 900;
      color: #247c72;
    }

    h1 {
      font-size: 36px;
      line-height: 1.2;
      font-weight: 900;
      color: #15202d;
    }

    p._lead {
      font-size: 16px;
      line-height: 1.8;
      font-weight: 500;
      color: #4d5b6b;
    }

    ._btns {
      margin-top: 6px;
    }
  }
  .c-btn-more {
    display: inline;
    padding: 12px 16px;
    background: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 900;
    color: #247c72;
    border: 1px solid #000;
    text-decoration: none;
  }
}

.st-widgets-title {
  margin-top: 20px;
  background: transparent !important;

  &::before {
    width: 2px !important;
  }
}

@media print, screen and (min-width: 768px) {
  .st-eyecatch img{
    border-radius: 10px 10px 0 0 !important;
  }
}

/* 言語別の表示切替（body の is-ja / is-en と組み合わせる） */
body.is-ja .pl-index-mv ._texts.is-en {
  display: none;
}
body.is-en .pl-index-mv ._texts.is-ja {
  display: none;
}