/* ===== Index page Mobile styles (max-width: 768px) ===== */
@media (max-width: 768px) {
  /* ===== Container ===== */
  .container {
    padding: 0;
  }

  /* ===== Hero section ===== */
  .hero-section {
    padding: 0;
    margin-bottom: 30px;
  }

  /* SP: 幅100%、高さは画像の比率に従う */
  .hero-carousel-inner {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
  }

  .hero-carousel-slide {
    width: 100%;
    height: 100%;
  }

  .hero-carousel-slide picture {
    width: 100%;
    height: 100%;
    display: block;
  }

  .hero-carousel-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
  }

  .hero-carousel-dots {
    display: none;
  }

  /* ===== Header ===== */
  .main-header {
    position: relative;
    padding: 0;
  }

  .main-title-wrapper {
    margin-bottom: 16px;
  }

  /* ===== Intro section ===== */
  .intro-section {
    padding: 0 30px;
    background-color: #fff;
  }

  .intro-block {
    padding: 24px 16px 32px;
    text-align: left;
    background-color: #fff;
  }
  .intro-section .intro-block {
    padding: 0;
  }

  .subtitle {
    font-size: 17px;
    margin-bottom: 12px;
    line-height: 1.6;
  }

  .main-title-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
  }

  .main-title {
    margin: 0;
    flex: 1;
    min-width: 0;
  }

  .main-title-line1 {
    display: block;
    font-size: 41px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
  }

  .main-title-line1 .main-title-line1-number {
    /*font-size: 48px;*/
    margin-right: 8px;
    font-family: 'FOT-Cezanne ProN', sans-serif;
  }

  .main-title-line2 {
    display: block;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
  }

  .lead {
    font-size: 15px;
    line-height: 1.8;
    margin-top: 22px;
  }

  /* ===== Artworks section ===== */
  .artworks-section {
    padding: 40px;
    background-color: #fff;
    max-width: 100%;
    margin: 0 auto;
  }


  .artworks-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .artwork-card {
    margin: 0;
  }

  .artwork-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
  }

  .artwork-card-link:hover {
    text-decoration: none;
    color: inherit;
    opacity: 0.5;
  }

  .artwork-card-media {
    position: relative;
    width: 100%;
  }

  /* PC版と同じレイアウト：画像サイズを等比例縮小 */
  /* PC: 571px × 425px → SP: 約272px × 203px (比例約0.477) */
  .artwork-card-media .card-img-placeholder {
    width: 100%;
    height: 0;
    padding-bottom: 74.43%; /* 425/571 ≈ 0.7443 */
    position: relative;
    overflow: hidden;
  }

  .artwork-card-media .card-img-placeholder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* PC版と同じ：タイトルを左上に絶対配置 */
  /* PC: 300px × 70px → モバイル：同じ比率で縮小 */
  .artwork-card-title {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    width: 192px;
    height: 50px;
    min-width: 140px;
    min-height: 35px;
    background-color: #FFFFFF;
    font-size: 20px;
    font-weight: 600;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    box-sizing: border-box;
  }

  /* PC版と同じ：ボタンを右下に絶対配置 */
  /* PC: 220px × 70px → モバイル：同じ比率で縮小 */
  .artwork-card .btn-wrapper {
    width: 180px;
    height: 50px;
    min-width: 110px;
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 0;
    right: 0;
    cursor: pointer;
    z-index: 1;
  }

  .artwork-card .btn-wrapper:hover .btn {
    background-color: #286045;
    transition: background-color 0.2s ease;
  }

  .artwork-card .btn {
    width: 100%;
    height: 100%;
    font-size: 15px;
    font-family: 'FOT-Cezanne ProN', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    background-color: #307B53;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
  }

  .artwork-card .btn-arrow::after {
    content: "";
    width: 5px; /* PC版6pxの約0.83倍 */
    height: 10px; /* PC版12pxの約0.83倍 */
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-image: url("../imgs/btn-arrow.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  /* ===== Video section ===== */
  .video-section {
    background-color: #e6f2ee;
    padding: 60px 30px;
    margin: 0;
    max-width: 100%;
  }

  .video-section .section-title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
  }

  .video-wrapper {
    position: relative;
    width: 100%;
  }

  .video-player {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    background-color: #1a1a1a;
    min-height: 180px;
  }

  .video-play-button img {
    width: 54px;
    height: 54px;
  }

  /* ===== Episode section ===== */
  .episode-section {
    padding: 60px 0;
    margin: 0;
    max-width: 100%;
  }

  .episode-section .section-title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
  }

  .episode-section .section-desc {
    font-size: 15px;
    text-align: left;
    margin-bottom: 24px;
    padding: 0 30px;
  }

  .episode-list {
    margin: 10px 30px;
    height: 409px;
    background-color: #E8E8E8;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
  }

  .episode-list-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    /* OverlayScrollbarsが管理するためoverflowは削除 */
    padding: 18px 0;
    background-color: #F0F1F1;
  }

  /* ===== OverlayScrollbars モバイルスタイル ===== */
  .os-scrollbar.os-scrollbar-vertical.os-theme-oisix {
    width: 20px !important;
    margin-right: 0;
  }

  .os-scrollbar.os-theme-oisix .os-scrollbar-track {
    background: #E8E8E8 !important;
    border-radius: 10px !important;
  }

  .os-scrollbar.os-theme-oisix .os-scrollbar-handle {
    background: #307B53 !important;
    border-radius: 10px !important;
    min-height: 30px !important;
  }

  .episode-list-inner[data-overlayscrollbars-viewport] {
    overflow-x: hidden !important;
    overflow-y: scroll !important;
    -webkit-overflow-scrolling: touch;
  }

  .episode-item {
    max-width: 80%;
    padding: 16px;
    background-color: #fff;
    border: 1px solid rgba(48, 123, 83, 0.3);
    border-radius: 12px;
    position: relative;
    transform: translateX(-10px);
  }

  .episode-text {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 8px;
    margin: 10px
  }

  .episode-author {
    display: block;
    margin-top: 8px;
    font-size: 15px;
    color: #307B53;
    text-align: right;
  }

  .episode-dot {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 8px;
    height: 8px;
    background-color: #307B53;
  }

  .episode-meta {
    font-size: 12px;
    margin-top: 8px;
  }

  /* ===== Column section ===== */
  .column-section {

    padding: 60px30px;
    margin: 0;
    max-width: 100%;
    width: 100%;
  }

  .column-section .section-title {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
  }

  .column-section .section-desc {
    font-size: 15px;
    text-align: left;
    margin-bottom: 24px;
    padding: 0 16px;
  }

  .column-list {
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
  }

  .column-entry {
    flex-direction: row;
    align-items: flex-start;
    padding: 0 16px;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    gap: 16px;
  }
  .column-entry .note-embed {
    height: 210px;
  }

  .column-content {
    flex: 1;
    min-width: 0;
    width: auto;
  }

  .column-title {
    font-size: 14px;
    font-weight: 600;
    color: #307B53;
    margin-bottom: 8px;
    line-height: 1.5;
  }

  .column-preview {
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 12px;
  }

  .column-meta {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .column-avatar {
    width: 40px;
    height: 40px;
  }

  .column-meta-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .column-stars {
    font-size: 12px;
  }

  .column-date {
    font-size: 12px;
  }

  .column-thumb-placeholder {
    width: 100px;
    height: 80px;
    flex-shrink: 0;
    font-size: 10px;
  }




  /* ===== Section titles general ===== */
  .section-title {
    font-size: 20px;
    margin-bottom: 24px;
  }

  .section-desc {
    font-size: 14px;
    line-height: 1.6;
  }

}
