@charset "UTF8";

/* Article header */
.article__header {
    padding: 134px 7.6% 48px 7.6%;
}

/* works contents*/
.work01Contents {
    text-align: center;
}

.work01ttl {
    margin-top: 16px;
}

.work01ttl-txt {
    font-size: 1.4rem;
    line-height: 220%;
}

.work01ttl-date {
    color: #AAA;
    font-size: 1.6rem;
    font-weight: 500;
}

.work01Img {
    margin-top: 40px;
}

.work02Img {
    margin-top: 40px;
}

.work03Img {
    margin-top: 40px;
}

.work02Img img {
    width: 240px;
    height: 100%;
}

/* related */
.related {
    text-align: center;
    margin-top: 80px;
}

.relatedImgBox {
    margin-top: 30px;
}

.relatedTtl {
    font-family: 
         "shippori-mincho",
        sans-serif;
    font-size: 2.4rem;
    font-weight: 500;
}

.relatedImg img {
    width: 262px;
    height: 262px;
    object-fit: cover;
    margin: 0 auto;
    border-radius: 110px 110px 0 0;
}

.relatedImgBox .relatedImg:nth-child(3) img {
    /* object-position: [横の位置] [縦の位置]; */
    /* 縦の位置を50%より大きくすると画像が上に引き上げられ、写真の下の部分が見えるようになります */
    object-position: 50% 25%; /* 縦位置を65%の地点に設定 */
}

.slick-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 8px;
}

.slick-dots li{
    width:12px;
    height:12px;
}

.slick-dots li button{
    width:100%;
    height:100%;
    background:rgba(209, 191, 157, 0.40);
    border-radius:50%;
    color:transparent;     
    text-indent: -9999px;  /* 画面外に文字を飛ばす */
}

.slick-dots li.slick-active button{
    background:#D1BF9D;
    width: 100%;
    height: 100%;
}

.btnMore {
    font-size: 1.4rem;
    /* ★↓ 正しい line-height になっているか確認 ↓★ */
    line-height: 50px; /* または normal / 1.5 など適切な値 */
    width: 300px;
    position: relative;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    /* ★ クリック/タップ時の opacity 変化を滑らかにする transition を追加 ★ */
    transition: opacity 0.1s ease; /* 短めの transition */
}
  
.btnMore:before,
.btnMore:after {
    position: absolute;
    /* ★★★ top の値を調整 ★★★ */
    top: 42px; /* 例2: 固定ピクセル値 (ボタンの高さに合わせて調整) */

    /* あるいは bottom からの位置指定を試す (この場合 top と translateY は削除) */
    /* bottom: -8px; */ /* 例: ボタンの下端から 8px 下 */

    right: 22%; /* 水平位置もずれている場合は調整 */
    height: 1px;
    content: '';
    transition: transform 0.3s ease;
}
  
.btnMore:before { /* 矢印の線部分 */
    width: 160px;
    /* ★ top を使う場合 */
    transform: translateY(-50%) translateX(0px);
    /* ★ bottom を使う場合 (translateY は不要) */
    /* transform: translateX(0px); */
}
  
.btnMore:after { /* 矢印の先端部分 */
    width: 10px;
    /* ★ top を使う場合 */
    transform: translateY(-50%) translateX(0px) rotate(45deg);
    /* ★ bottom を使う場合 (translateY は不要) */
    /* transform: translateX(0px) rotate(45deg); */
    transform-origin: right center;
}

/* ★★★ スマホ用 クリック/タップ時の効果 ★★★ */
.btnMore:active {
    opacity: 0.7; /* ボタン全体（文字と矢印）を少し透過させる */
    /* transition は .btnMore 本体に指定済み */
}

/* 関連作品下のボタンレイアウト調整 */
.related__actions {
  display: flex; /* Flexboxを有効にする */
  flex-direction: column; /* ボタンを縦に並べる */
  gap: 60px;
  align-items: center; /* ボタンを水平方向の中央に揃える */
  margin-top: auto; /* 上の関連画像との全体の余白 */
  margin-bottom: 40px;
}

/* 一覧へ戻る */
.btnMoreBack {
    display: flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.3s ease;
}

.btnMoreBack:hover {
    opacity: 0.5;
}

.btnMoreBackTxt {
    font-size: 1.4rem;
}

.category {
    width: 20px;
    height: auto;
}

/* footer */
.spFooter-snsIcon {
    margin-bottom: 60px;
}

.footerAnime {
    position: relative;
}

@keyframes rotateAnimation {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }

/* =================================
   Works Detailページ コンテンツ アニメーション (works01/02と同じ)
   ================================= */

/* キーフレーム定義 (他と同じでOK) */
@keyframes fadeInUpWorksDetailItem {
from {
    opacity: 0;
    transform: translateY(30px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}

/* アニメーション対象要素の初期状態 */
/* works03 の主要なコンテンツブロックに適用 */
.work01Img,
.work02Img,
.work03Img,
.related {
opacity: 0; /* 最初は透明 */
}

/* JSでクラスが付与されたらアニメーション開始 */
.work01Img.fade-in-visible-works-detail,
.work02Img.fade-in-visible-works-detail,
.work03Img.fade-in-visible-works-detail,
.related.fade-in-visible-works-detail {
opacity: 1; /* 不透明に戻す */
animation: fadeInUpWorksDetailItem 0.8s ease-out forwards; /* アニメーション実行 */
}

/* =========================
works03 PC
========================= */
@media screen and (min-width: 769px){
    .main {
        padding: 0; /* main要素の共通paddingをリセット */
    }

    .article__header {
        padding: 240px 0 80px 12%;
    }

    /* main */
    .work01Img img {
        width: 700px;
        height: 100%;
    }

    .work01ttl,
    .work01Img {
        margin-top: 30px;
    }

    .work01ttl-txt {
        font-size: 1.8rem;
        font-weight: 400;
        line-height: 40px;
    }
    
    .work01ttl-date {
        font-size: 2rem;
        font-weight: 400;
    }

    .work01Contents_box {
        display: flex;
        flex-direction: row-reverse;
        gap: 60px;
        justify-content: center;
        margin-right: 4%;
    }

    .work02Img,
    .work03Img {
        margin-top: 80px;
    }

    .work02Img img {
        width: 400px;
        height: 100%;
    }

    .work03Img {
        width: 600px;
        height: 100%;
    }

    .homeval02-box {
        display: flex;
        gap: 80px;
        justify-content: center;
        margin-left: 8%;
    }

    .related {
        margin-top: 124px;
    }

    .relatedTtl {
        font-size: 3.2rem;
        font-weight: 400;
    }
    
    .relatedImgBox {
        margin-top: 50px;
        display: flex;
        justify-content: center;
        gap: 30px;
    }

    .relatedImg {
        display: block;
        width: 262px;  /* 幅を明示的に指定 */
        height: 262px; /* 高さを明示的に指定 */
        overflow: hidden; /* はみ出した画像を隠す */
    }
    
    .relatedImg img {
        width: 100%; /* 親要素(.relatedImg)の幅いっぱいに表示 */
        height: 100%; /* 親要素(.relatedImg)の高さいっぱいに表示 */
        object-fit: cover; /* アスペクト比を保ちつつ、要素を完全に覆う */
        vertical-align: middle; /* 画像の下の余白対策（念のため）*/
        transition: transform .3s ease-in-out; /* ズームアニメーションを滑らかに */
        border-radius: 162px 162px 0 0;
    }


     /* =================================
   Related Items アニメーション (PC用)
   ================================= */

    /* アニメーションの定義 */
    @keyframes fadeInUpRelated {
    from {
        opacity: 0;
        transform: translateY(30px); /* 少し下からスタート */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
    }

    /* アニメーションを適用する前の初期状態（非表示） */
    /* このクラスをJSで最初に追加します */
    .relatedImg.animate-hidden {
    opacity: 0;
    }

    /* アニメーションをトリガーするクラス */
    /* このクラスをJSで画面内に入ったら追加します */
    .relatedImg.is-visible {
    animation: fadeInUpRelated 1.2s ease-out forwards;
    }
    
    .btnMore:before {
        width: 105px; /* PCでの幅 */
        /* PC用に transition の設定を変える必要は通常ない */
    }

    .btnMore--workPC {
        font-size: 1.6rem;
        height: 50px; /* PCでも高さを維持する場合 */
        line-height: 50px; /* ★ height と同じ値にする */
        transition: opacity 0.3s ease;
    }

    .btnMore--workPC:hover {
        opacity: 0.5;
    }

    .btnMore:before,
    .btnMore:after {
        right: 18%; /* 水平位置もずれている場合は調整 */
        top: 46px;
    }

    .btnMore:before {
        width: 181px;
        /* transform: translateY(-50%); */
    }

    .btnMore:hover:before {
        /* 例: PCではもう少し大きく動かす */
        transform: translateY(-50%) translateX(8px);
    }

    .btnMore:hover:after {
        /* ★ PC用の translateX の値 (rotate は維持) */
        transform: translateY(-50%) translateX(8px) rotate(45deg);
        transform-origin: right center; /* 念のため維持 */
    }

    /* ================================================= */
    /* ▼▼▼ ボタンのホバーアニメーションPC ▼▼▼ */
    /* ================================================= */

    /* --- 右向き矢印のホバー --- */
    
    /* 線の部分（右へ移動） */
    .btnMore:hover:before {
        transform: translateY(-50%) translateX(8px);
    }
    /* 先端の部分（右へ移動しつつ、角度を維持） */
    .btnMore:hover:after {
        transform: translateY(-50%) translateX(8px) rotate(45deg);
    }

    /* 一覧へ戻る */
    .btnMoreBackTxt {
        font-size: 1.6rem;
    }

    .category {
        width: 24px;
        height: auto;
    }

} /* PC 769px