/*
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; }

/* ------------------------------------------ */
/* 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;
	align-items: flex-end;
}

.js-shrink-media {
  position: relative;
  top: auto;
  left: auto;
  transform: none;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: bottom;
}

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

/* 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;
    -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: #000;
    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;
}


/* ------------------------------------------ */
/* テキスト＆画像アニメーション設定 */
/* ------------------------------------------ */

.gsap-line-mask,
.gsap-media-mask {
  overflow: hidden;
}

.gsap-text-inner,
.gsap-media-inner {
  will-change: transform, opacity;
}


/* ------------------------------------------ */
/* 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;
	margin-top:27px;
}
.single-watches .single-kakomi {
    border: none !important;
    position: static !important;
    padding: 0 !important;
	margin: 0 !important;
}
.ast-taxonomy-container li, .single-cat li{
    list-style: none!important;
    background-color:#000;
    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;
}
.nav-previous{
	margin-left:1em;
}
.nav-next{
	margin-right:1em;
}
.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.9);
}
.info-top .wp-show-posts-entry-header{
    padding:0 1em 0.5em 1em;
}
.info-top .wp-show-posts-image {
    overflow: hidden;
    margin-bottom: 10px;
}
.info-top .wp-show-posts-image img{
	width: 100%;
    height: auto;
    object-fit: cover;
    vertical-align: bottom;
    transition: transform .5s ease;
}
.info-top .wp-show-posts-image:hover img {
    transform: scale(1.03);
}
.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;
}
.wp-show-posts-image:hover img{
    transform: scale(1.03);margin-bottom:10px;
}
.wp-show-posts-entry-title a{
	font-size:16px;
    color:#fff;
	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;
    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;
    }
	.nav-previous{
	margin-left:0;
}
	.nav-next{
	margin-right:0;
}
}

/* ===================================================
   お問い合わせフォーム：完全網羅ダークテーマ化
   =================================================== */

/* 1. フォーム内のすべての枠・セル・見出しの背景を黒に統一 */
.mw_wp_form,
.wpcf7,
form,
form table,
form tr,
form th,
form td,
form dl,
form dt,
form dd,
form div,
form section,
form label {
  background-color: #000000 !important;
  background-image: none !important;
  color: #ffffff !important;
}

/* 2. 左側の項目名・「※必須」テキストをくっきり白文字にする */
form th,
form dt,
form label,
form span,
form .required,
form .must,
form [class*="required"],
form [class*="must"] {
  color: #ffffff !important;
  background-color: transparent !important;
}

/* 3. 右側の入力ボックス（テキスト枠・テキストエリア）の背景を黒・文字を白にする */
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="number"],
form textarea,
form select {
  background-color: #000000 !important;
  background-image: none !important;
  color: #ffffff !important;
  border: 1px solid #444444 !important; /* 境界が分かる上品なグレー枠 */
}

/* 4. 入力欄のプレースホルダー（入力例） */
form input::placeholder,
form textarea::placeholder {
  color: #777777 !important;
}

/* 5. テーブルや区切り線を細い線で整える */
form table {
  border-collapse: collapse !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}
form th,
form td,
form dt,
form dd {
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* 6. 上部のステップバー（1, 2, 3 の丸枠を黒背景＆白枠で保護） */
[class*="step"] li,
[class*="step"] span,
[class*="step"] [class*="num"],
[class*="step"] [class*="circle"],
.flow li,
.flow span {
  background-color: #000000 !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

[class*="step"] [class*="num"],
[class*="step"] [class*="circle"],
[class*="step"] span:first-child {
  border: 1px solid #ffffff !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  position: relative !important;
  z-index: 2 !important;
}

/* ===================================================
   パンくずリスト：テキスト・リンク・区切り文字を白に統一
   =================================================== */

/* 1. 一般的なパンくずリストのコンテナおよびテキスト全体 */
.breadcrumb,
.breadcrumbs,
.breadcrumb-trail,
.c-breadcrumb,
[class*="breadcrumb"],
[class*="breadcrumbs"],
[aria-label="breadcrumb"],
[aria-label="Breadcrumb"] {
  color: #ffffff !important;
}

/* 2. パンくず内のリンク（HOMEなど）、リスト項目、全子要素 */
.breadcrumb a,
.breadcrumbs a,
.breadcrumb li,
.breadcrumbs li,
.breadcrumb span,
.breadcrumbs span,
[class*="breadcrumb"] a,
[class*="breadcrumb"] li,
[class*="breadcrumb"] span,
[aria-label*="readcrumb"] a,
[aria-label*="readcrumb"] span,
[aria-label*="readcrumb"] li {
  color: #ffffff !important;
  text-decoration: none !important;
}

/* 3. リンクにマウスを乗せたときのスタイル（ほんのり薄いグレーにする場合） */
.breadcrumb a:hover,
.breadcrumbs a:hover,
[class*="breadcrumb"] a:hover {
  color: #cccccc !important;
  text-decoration: underline !important;
}

/* 4. パンくずの区切り記号（「>」や「/」などの擬似要素）も白にする */
.breadcrumb li:after,
.breadcrumbs li:after,
[class*="breadcrumb"] li:after,
.breadcrumb li:before,
.breadcrumbs li:before,
[class*="breadcrumb"] li:before {
  color: rgba(255, 255, 255, 0.6) !important;
}
