/*
Template:astra
Theme Name:astra_child
*/

html, body {
  overflow-x: hidden !important;
  width: 100%;
  position: relative;
}
#main, .wrapper, .elementor-section-wrap {
  overflow-x: hidden;
}

img {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    border: none !important;
}

/* ------------------------------------------ */
/* 汎用レイアウトとブレイクポイント */
/* ------------------------------------------ */

.br-pc { display:block; }
.br-sp { display:none; }
.br-none br { display:none; }

/* ------------------------------------------ */
/* マウスストーカー*/
/* ------------------------------------------ */

.cursor-stalker {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  background-color: rgba(138, 212, 201, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  filter: blur(5px);
}


/* ------------------------------------------ */
/* GSAP画像縮小設定 */
/* ------------------------------------------ */

.js-shrink-wrapper {
    width: 100%;
    height: 100vh;
    margin-top: 0vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.js-shrink-container {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    will-change: transform;
}

.js-shrink-mask {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
    will-change: width, height;
}

.js-shrink-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ============================= */
/* 動画 拡大スクロール */
/* ============================= */

/* ScrollTrigger のトリガー */
.js-grow-section {
  position: relative;
  width: 100%;
  height: 100vh;
}

/* pin 専用 */
.js-grow-pin {
  position: relative;
  width: 100%;
  height: 100vh;

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

  overflow: hidden;
}

/* GSAP で scale される要素（重要） */
.js-grow-mask {
  position: relative;

  /* ★ 最終サイズで固定 */
  width: 100vw;
  height: 100vh;

  overflow: hidden;

  will-change: transform;
  transform-origin: center center;
  transform: translateZ(0);
}

/* 動画本体 */
.js-grow-media {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}


/* ------------------------------------------ */
/* Lenis スムーズスクロール設定 */
/* ------------------------------------------ */

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ------------------------------------------ */
/* カーテンアニメーション設定 */
/* ------------------------------------------ */

.gsap-curtain-left,
.gsap-curtain-right {
    position: relative;
    display: block;
    overflow: hidden;
    line-height: 0;
    border-radius: 20px;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    transform: translateZ(0);
    isolation: isolate;
}

.gsap-generated-curtain {
    position: absolute;
    width: 100.5%;
    height: 100.5%;
    top: -1px;
    left: -1px;
    background-color: #fff;
    z-index: 10;
    pointer-events: none;

    will-change: clip-path;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.gsap-curtain-left img,
.gsap-curtain-right img {
    vertical-align: bottom;
    width: 100%;
    height: auto;
}

/* ------------------------------------------ */
/* 横スクロール設定 */
/* ------------------------------------------ */

.horizontal-scroll-section {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-color: #111;
    color: #fff;
}

.horizontal-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 50px;
    padding: 0 100px;
    will-change: transform;
}

/* マスターラッパー */
#pin-master-wrapper {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    z-index: 10;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

#pin-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    height: 100%;
    align-items: center;
    padding-left: 10vw;
    padding-right: 50vw; 
}

.pin-item {
    position: relative; 
    z-index: 1; 
    width: 350px;
    height: 600px;
    margin-right: 50px;
    flex-shrink: 0;
    background-color: transparent; 
    border-radius: 10px;
    padding: 0; 
    box-sizing: border-box;
    overflow: hidden;
    
    will-change: transform;
    transform-origin: center center;
    transition: transform 0.5s ease-out, box-shadow 0.5s ease-out;
}

.pin-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.pin-card-content {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.pin-card-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    background-color: rgba(0, 179, 121, 0.6);
    padding: 15px 0;
    margin: 0;
    z-index: 2;
    font-size: 1em;
}

/* ------------------------------------------ */
/* パーティクル設定 */
/* ------------------------------------------ */

.js-particle-bg {
  position: relative;
  z-index: 1; 
}


/* ------------------------------------------ */
/* WordPress/ブログ関連スタイル */
/* ------------------------------------------ */

/* サイドバー */
.sidebar {
    position: sticky;
    top: 10px;
}
.sidebar-main{
    margin-top:-75px;
}

/* お問い合わせボタン */
.wpcf7-form input[type="submit"],
.wpcf7-form input[type="button"] {
    background-color: #041C99;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
}
.wpcf7-form input[type="button"] {
    padding:15px 30px!important;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-form input[type="button"]:hover {
    background-color: #3C434A;
}

/* ブログ記事スタイル */
.single-kakomi{
    border:solid 1px #e6e6e6;
    position:relative;
	padding:1em;
}
.ast-taxonomy-container li, .single-cat li{
    list-style: none!important;
    background-color:#004DA0;
    position:absolute;
    top:0;
    right:0;
}
.ast-taxonomy-container a, .single-cat a{
    color:#fff;
    font-size:14px;
    padding:0.5em 1em!important;
    display:block;
}
.published {
    color:#8a8a8a!important;
    font-family: "Noto Sans JP";
    font-weight:400!important;
}
.wp-show-posts-terms{
    font-family: "Noto Sans JP";
}
.entry-meta{
    margin:-5px 0 2em 0;
}
.ast-single-post .entry-title {
    display: block !important;
}
.entry-title{
    font-size:21px!important;
	line-height:1.5em!important;
    margin-top:10px;
}

/* パンくずリスト */
.breadcrumbs, .breadcrumbs a{
    color:#3a3a3a;
    font-size:14px;
    font-family: "Noto Sans JP";
}
.breadcrumbs a:hover{
    color:#1967D2;
}

/* ページネーション */
.page-numbers {
    padding: 5px 15px;
    border: 1px solid #ccc;
    text-decoration: none;
    font-weight:bold;
}
.page-numbers:hover{
    background:#f4f4f4;
}

/* 単一記事の前後ナビゲーション */
.singlepost-pagination {
    font-weight:bold;
    line-height:2em;
    letter-spacing:1px;
    font-size:14px;
}
.singlepost-title {
    font-size:16px;
}
.entry-header{
    border-left:solid 3px #ccc;
    padding-left: 0.8em;
}

/* wp-show-posts のリスト表示 */
.info-top .wp-show-posts-inner{
    background:rgba(255,255,255,0);
    border-radius:7px;
}
.info-top .wp-show-posts-entry-header{
    padding:0 1em 0.5em 1em;
}
.info-top .wp-show-posts-image {
    overflow: hidden;
    border-radius: 7px 7px 0 0;
    margin-bottom: 10px;
}
.info-top .wp-show-posts-image img{
	width: 100%;
    height: auto;
    object-fit: cover;
    vertical-align: bottom;
    transition: transform .5s ease;
    border-radius:7px 7px 0 0;
}
.info-top .wp-show-posts-image:hover img {
    transform: scale(1.03);
}
.info-top { 
	.wp-show-posts-entry-title a { color: #fff !important; } 
	.wp-show-posts-entry-date { color: #fff !important; } 
	.wp-show-posts-terms a{ color: #fff !important; } 
	.wp-show-posts-separator {
    color: #fff !important;
}
.eventlist .wp-show-posts-single:nth-child(-n+2){
    margin-top:2em!important;
}
.wp-show-posts-image{
    margin-bottom:10px;
}
.wp-show-posts-image img{
    transition: transform .5s ease;
    border-radius:7px;
}
.wp-show-posts-image:hover img{
    transform: scale(1.03);margin-bottom:10px;
}
.wp-show-posts-entry-title a{
    font-weight:600;
	font-size:16px;
    color:#3a3a3a;
	line-height: 1.5 !important;
    display: block;
}

.wp-show-posts .wp-show-posts-entry-title a,
.wp-show-posts .wp-show-posts-entry-title {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    height: auto !important;
    max-height: none !important;
}

/* ニュースリスト表示 (横並び) */
.news .wp-show-posts-inner{
    display:flex;
    flex-direction:row-reverse;
    justify-content: flex-end;
}
.news .wp-show-posts-entry-title{
    margin:0 0 0 1em;
}
.news .wp-show-posts-entry-date{
    margin-left:1em;
    white-space:pre;
}
.news .wp-show-posts-terms{
    border:solid 1px #004DA0;
    background-color:#004DA0;
    border-radius: 30px;
    padding:0 7px 2px 7px;
    white-space:pre;
    text-align:center;
    margin-left:1em;
    font-size:12px;
}
.news .wp-show-posts-terms a{
    color:#fff!important;
}
.news .wp-show-posts-separator{
    display:none;
}
.news .wp-show-posts-single{
    padding:2em 1em 2em 1em!important;
    border-bottom:solid 1px #aaa!important;
    margin:0!important;
}
.news .wp-show-posts-single:hover{
    background-color:#F8F8F3;
}
.news .wp-show-posts-single:first-child {
    border-top:solid 1px #aaa!important;
    margin-top:1em!important;
}




/* ------------------------------------------ */
/* レスポンシブデザイン */
/* ------------------------------------------ */

@media screen and (max-width:980px) {
    .entry-title{
        margin-top:40px;
    }

    .sidebar-main{
        margin-top:0;
    }
    .breadcrumbs, .breadcrumbs a{
        font-size:13px;
    }
    
    .singlepost-title {
        font-size:13px;
    }
    .navbar-offcanvas .main-quad{
        background:#fff!important;
    }
    .single-kakomi{
        border-top: 1px solid #e6e6e6; border-bottom: 1px solid #e6e6e6;
        padding:0 0.5em 1em 0.5em;
        margin-top:-2em;
    }
        
    .news .wp-show-posts-entry-header{
        display:block;
    }
    .kotei{
        position: fixed;
        width: 100%;
        bottom: 0px;
        opacity: 0.9;
        z-index: 99;
    }
}

@media screen and (max-width:780px) {
    .br-pc { display:none; }
    .br-sp { display:block; }
	
	.cursor-stalker {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
        
    .wp-show-posts-columns .wp-show-posts-single {
        display: flex;
        width: 48%;
    }
    .wp-show-posts-columns .wp-show-posts-single:nth-child(odd) {
        margin-right:1%!important;
    }
    .wp-show-posts-columns .wp-show-posts-single:nth-child(even) {
        margin-left:1%!important;
    }
}