/* common */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@200..900&display=swap');


html::-webkit-scrollbar {
  display: none;
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Serif JP", sans-serif, "メイリオ", Meiryo, "MS Pゴシック", "MS PGothic";
  font-weight: 400;
  font-style: normal;
  background-color: #f9fcfd;
  color: #161616;
}

/* loading */
.loading-wrapper{
  width: 400px;
  height: 400px;
}
#loading {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 99;
  background: #faf7ed;
  text-align: center;
}

#loading_logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#loading .kvArea {
  width: 100%;
}

#loading .kvArea .img_box {
  margin: auto;
  max-width: 50%;
  height: auto;
}

.fadeUp {
  animation-name: fadeUpAnime;
  animation-duration: 1.2s;
  animation-delay: 1.2s;
  animation-fill-mode: forwards;
  opacity: 1;
}

@keyframes fadeUpAnime {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-100px);
  }
}

/* header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 98;
  width: 100vw;
  position: fixed;
  top: 0;
}


.logo {
  height: 100px;
  width: 100px;
  margin: 20px 20px;
}

.sns {
  height: 50px;
  width: 50px; 
}
/* 右側グループ（SNS + ハンバーガー） */
.right-group {
  display: flex;
  align-items: center;
  gap: 1rem; /* SNSアイコンとハンバーガーの間隔 */
}

.logo a :hover {
  cursor: pointer;
  transition-duration: .4s;
  transform: scale(1.1);
  -webkit-transform: scale(1.1);
  -moz-transform: scale(1.1);
  -ms-transform: scale(1.1);
  -o-transform: scale(1.1);
}

/* Hamburger button */
.hamburger {
  width: 30px;
  height: 24px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 98;
  margin: 20px 20px;
}

.line {
  display: block;
  height: 1px;                  
  border-radius: 1px;
  position: absolute;
  left: 0;
  width: 100%;
  top: 50%;
  transition: all 0.3s ease;
  transform-origin: center;
}
.line.-before{
  background: #fff;   
}
.line.-after{
  background: #000;   
}


.line.bottom {
  transform: translateY(6px);
}

.hamburger.open .line.top {
  transform: rotate(45deg);
}

.hamburger.open .line.bottom {
  transform: rotate(-45deg);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #678092;
  display: none;
  flex-direction: column;
  justify-content: center;
  padding-left: 2rem; /* 左寄せの余白 */
  z-index: 97;     
}

.nav.open {
  display: flex;
}

.nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav li {
  text-align: left;
  margin-bottom: 3rem; /* 行間を大きく取る */
}
.nav li a {
  display: block;             /* ← 行全体がクリック可能に */
  width: 100%;                /* ← 親要素の幅にフィット */
  padding: 1.5rem 0;    
  position: relative;
  color: #fff;
  font-size: 2rem;              /* ← 大きく！ */
  text-decoration: none;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.5s ease forwards;
  line-height: 1.8; /* 行の高さを広めに */
  letter-spacing: 0.1em; 
}
.nav li a:hover {
  background: radial-gradient(
    ellipse at right center,
    #B7A5B7 0%,
    transparent 75%
  );
  background-size: 250% 100%;
  background-repeat: no-repeat;
  cursor: pointer;
}
.nav li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 100%;
  width: 100vw;         /* ← 画面幅いっぱいにラインを表示 */
  height: 1px;
  background: #fff;
  transition: left 0.4s ease;
}
.nav li a span{
  font-size: 1rem;
}
/* アンダーラインが流れる */
.nav li a.animate-underline::after {
  left: 0;                       /* 右→左へスライド表示 */
}

/* メニュー出現アニメーション */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* scroll logo change */
.header-logo.-before.headerLogoScroll {
  display: none;
}

.header-logo.-after {
  display: none;
}

.header-logo.-after.headerLogoScroll {
  display: block;
}
.line.headerLogoScroll .-before{
  display: none;
}
.line.headerLogoScroll .-after{
  display: block;
}

/* video | MV */
.mainVisual {
    display: block;
    overflow: hidden;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100vh;
}

.video {
    position: absolute; /* 動画が必ずmainVisual内に収まるように */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
}



/* scroll-down */
.scroll-down {
  position: relative;
  width: 100%;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
}

.scroll-down:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80%;
  background: linear-gradient(180deg, rgba(#f9fcfd, 0) 0, rgba(#f9fcfd, .8) 80%, rgba(#f9fcfd, .8) 100%);
}

.scroll-down a {
  display: inline-block;
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 13px;
  padding: 10px 10px 110px;
  color: #f9fcfd;
  /* font-size: clamp(1.1rem, calc(0.9rem + 0.625vw), 1.6rem); */
  line-height: 0;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  writing-mode: vertical-lr;
  transition: .2s;
  overflow: hidden;
  margin: 0 30px 0 auto;
  -webkit-transition: .2s;
  -moz-transition: .2s;
  -ms-transition: .2s;
  -o-transition: .2s;
}

.scroll-down a:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 2px;
  height: 100px;
  background: #9e9c9c;
}

.scroll-down a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 2px;
  height: 100px;
  background: #f9fcfd;
}

.scroll-down a:hover {
  opacity: .5;
}

#scroll-down a:after {
  animation: sdl01 1.5s cubic-bezier(1, 0, 0, 1) infinite;
}

@keyframes sdl01 {
  0% {
    transform: scale(1, 0);
    transform-origin: 0 0;
  }

  50% {
    transform: scale(1, 1);
    transform-origin: 0 0;
  }

  50.1% {
    transform: scale(1, 1);
    transform-origin: 0 100%;
  }

  100% {
    transform: scale(1, 0);
    transform-origin: 0 100%;
  }
}

/* read */
.read h2{
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  letter-spacing: 0.3em;
  text-shadow: 2px 2px 5px rgba(11, 25, 45, 0.8); /* ドロップシャドウ */
}
.read p{
  line-height: 2.5;
  letter-spacing: 0.1em;
  text-shadow: 2px 2px 5px rgba(11, 25, 45, 0.8); /* ドロップシャドウ */
}
.read_content {
  background: linear-gradient(to bottom, #0B192D, #182F53);
  overflow: hidden;
  height: 100%;
  position: relative;
  padding: 8rem 2em;
}

.read {
  position: relative;
  z-index: 2;
  width: 60%;
  height: 100%;
  padding: 10rem 2em;
  color: #fff;
}

.read_image {
  position: absolute;
  top: 10%;
  right: 0;
  width: 60%;  /* ← 被らせるため広めに */
  height: 70%;
  z-index: 1;
  overflow: hidden;
}

.img_wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/top_ph_01.webp'); /* 実画像パス */
  background-size: cover;
  background-position: center;
  transform: translateY(0);
  transition: transform 0.1s ease-out;
  will-change: transform;
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0B192D; /* 透かし用の色 */
  opacity: 0.5; /* 透過率 */
  z-index: 2; /* 画像の上に表示される */
}

/* === モバイル用スタイル === */
@media screen and (max-width: 767px) {
  .read {
    width: 100%;
    padding: 0;
  }
}

/* Read　設置ボタン */
.button_link_content{
  padding-top: 8rem;
}
.button_link a {
  font-size: 14px;
  letter-spacing: 0.1em;
  color: #fff;
  font-weight: 400;
  border: 1px solid #fff;
  display: block;
  position: relative;
  box-sizing: border-box;
  max-width: 300px;
  text-align: center; 
  padding: 30px 64px;
  margin: 30px;
  margin-inline: auto;
  text-decoration: none;
  cursor: pointer;
  z-index:999;
  transition: all 0.3s;
}

.button_link a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -30px;
  width: 60px;
  height: 1px;
  background: #fff;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
}

.button_link a:hover::after {
  animation: OutIn-Line 700ms;
  transition: all 0.3s;
}

@keyframes OutIn-Line {
    0% {
        -webkit-transform: scale3d(1,1,1);
        transform: scale3d(1,1,1);
        -webkit-transform-origin: 100% 0;
        transform-origin: 100% 0
    }

    50% {
        -webkit-transform: scale3d(0,1,1);
        transform: scale3d(0,1,1);
        -webkit-transform-origin: 100% 0;
        transform-origin: 100% 0
    }

    50.1% {
        -webkit-transform: scale3d(0,1,1);
        transform: scale3d(0,1,1);
        -webkit-transform-origin: 0 0;
        transform-origin: 0 0
    }

    100% {
        -webkit-transform: scale3d(1,1,1);
        transform: scale3d(1,1,1);
        -webkit-transform-origin: 0 0;
        transform-origin: 0 0
    }
}

/* scroll fade animation */
.fadeIn_up {
  opacity: 0;
  transform: translate(0, 50%);
  transition: 2s;
}

.fadeIn_up.is-show {
  transform: translate(0, 0);
  opacity: 1;
}

.imgBox {
  text-align: center;
}

.imgBox img {
  max-width: 100%;
  vertical-align: top;
}

/* scroll bar */
.scroll_bar {
  position: relative;
  width: 100%;
}

.scroll_bar_navi {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 10px;
  background-color: #f6bfbc;
  animation: meter linear;
  animation-timeline: scroll();
}

@keyframes meter {
  0% {
    background-color: #f6bfbc;
    width: 0;
  }

  100% {
    background-color: #89c3eb;
    width: 100%;
  }
}


/* roses */
#roses {
  background-color: #F6F6F6; /* 他セクションとの背景統一 */
  padding: 8rem 2em; /* .read_contentと同じ余白 */
}

.roses_section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 1rem; /* .read とバランスを取った padding */
  box-sizing: border-box;
}

/* セクション見出しのデザインを調整 */
.roses_section > h2 {
  font-size: 1.25rem; 
  text-align: center;
  margin-bottom: 5rem; /* 下部余白を調整 */
  letter-spacing: 1em; /* 文字間隔を調整 */
  color:  #333;
}

/* roseアイテムが中央揃えになるように調整 */
.bl_media_container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.bl_media_item {
  flex: 1 1 100%; /* 幅100%で折り返し */
  background-color: #fff;
  border-radius: 8px; /* 角を丸める */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* ボックスシャドウで浮き上がらせる */
  overflow: hidden; /* 画像やテキストが枠からはみ出さないように */

}
.bl_media_itemWrapper {
  width: 100%;
  padding: 0;
  margin: 2rem 0; /* 上下に余白を追加 */
}


.bl_media_item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover; /* 任意：枠にフィットさせたい場合 */
  aspect-ratio: 1 / 1;
  transition: transform 0.3s ease; /* ズームエフェクト */
}
.bl_media_item img:hover {
  transform: scale(1.05); /* 画像がホバー時に少しズーム */
}

.bl_media_item_text_original {
  font-weight: bold; /* 太字 */
  letter-spacing: 0.1em; /* 文字間隔の調整 */
  color: #777; /* テキストの色を指定（他のテキストと統一） */
  padding: 0.75rem 1.5rem; /* 上下に0.5rem、左右に1.5remの余白 */
  border: 0.5px solid #777; /* ボーダーの色を文字色と一致させる */
  border-radius: 50px; /* 楕円形にするために丸みを加える */
  display: inline-block; /* インライン要素として表示 */
  text-align: center; /* テキストを中央揃え */
  margin-bottom: 1rem; /* 下部に余白を追加 */
  font-size: 0.875rem; 
}


.bl_media_item_features {
  width: 100%;
  margin-bottom: 1em;
  padding: 1rem;
  box-sizing: border-box;
}
.bl_media_item_features_toggle {
  all: unset;
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 1em;
  color: #777;
  font-size: 1.1rem;
  border: none;
  outline: none;
  cursor: pointer;
  text-align: left;
  width: 100%; /* 幅を100%に設定 */
  box-sizing: border-box;
  border-top: 0.5px solid #777;  /* 左上のボーダー */
  border-right: 0.5px solid transparent;  /* 右側のボーダーは透明 */
  border-bottom: 0.5px solid #777;  /* 右下のボーダー */
}

.bl_media_item_features_toggle:hover {
  background-color: #f1e7e7;
  border: none;
  outline: none;
}

.bl_media_item_features_ico {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
  border: none;
  outline: none;
  box-shadow: none;
}
.bl_media_item_features_label{
  border: none;
  outline: none;
  box-shadow: none;
  color: #333;
}

.bl_media_item_features_content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  background-color: #fff;
  padding: 0 1em;
  border-radius: 0 0 5px 5px;
}

.bl_media_item_features_content.open {
  max-height: 300px;
  padding: 1em;
}

.bl_media_item_features_content ul {
  list-style-type: none; /* デフォルトのリストマーカーを無効にする */
  padding: 0; /* パディングをリセット */
  margin: 0; /* マージンをリセット */
}

.bl_media_item_features_content li {
  padding: 1rem 0; /* 各リストアイテムに上下のパディング */
  font-size: 1rem;
  color: #777; /* 基本的なテキストカラー */
  border-bottom: 1px dotted #ccc; /* 淡いグレーの点線で区切り */
  text-align: left; /* テキストを左寄せに */
  padding-left: 1.5rem; /* 左側に余白を追加 */
  display: flex; /* Flexboxを使用してタイトルと内容を並べる */
  flex-direction: column; /* 縦並びにする */
}

.bl_media_item_features_content li span.feature_title {
  font-weight: bold; /* 特徴名を強調 */
  color: #174e6e; /* 強調色を変更 */
  margin-bottom: 0.5rem; /* タイトルと内容の間に余白を追加 */
  margin-right: 1rem; /* タイトルの右側に余白を追加 */
  display: inline-block; /* インライン要素として扱い、横並びを可能にする */
}

.bl_media_item_features_content li p {
  margin: 0; /* 余計なマージンを削除 */
  padding-left: 1.5rem; /* 左側に余白を追加してタイトルと揃える */
}

.bl_media_item_text {
  padding: 1.5rem;
  text-align: center;
}

.bl_media_item_text h2 {
  font-size: 1.2rem;
  margin: 1rem 0;
  color: #333;
}


.bl_media_item_text p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1.5rem;
  letter-spacing:0.1em;
  line-height: 1.5;
}



.bl_media_item_link {
  width: 100%;
  text-align: center;
  margin: 2rem 0;
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.bl_media_item_button {
  display: flex;
  /*フレックスボックスを使って左右配置*/justify-content: space-between;
  /*左右に寄せて間隔を空ける*/align-items: center;
  padding: 0.8rem 2rem;
  position: relative;
  color: #777;
  text-decoration: none;
  font-weight: bold;
  border-radius:  100%;
  transition: all 0.3s ease;
  z-index: 1;
  -webkit-border-radius:  100%;
  -moz-border-radius:  100%;
  -ms-border-radius:  100%;
  -o-border-radius:  100%;
}

.bl_media_item_button::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #f0f0f0;
  transition: all 0.3s ease;
  z-index: -1;
}

.bl_media_item_button:hover {
  transform: scale(1.05);
}

.bl_media_item_button:hover::before {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, #9dc7e5, #ecd4ec); 
}

.bl_media_item_button_text {
  position: relative;
  z-index: 1;
  margin-right: 10px; /* テキストと矢印の間隔 */
  line-height: 3;
  border-bottom: 0.5px solid #c5c3c3;
  font-size: 0.875rem; 
}

.c-linkarrow__arrow {
  font-size: 1.5rem;
  margin-left: auto; /* 矢印を右寄せ */
  transition: transform 0.3s ease-in-out;
}

.bl_media_item_button:hover .c-linkarrow__arrow {
  transform: translateX(5px) scale(1.2);
}

.roses_color{
    display: inline-block; /* spanはインライン要素なので、ブロック化が必要 */
    width: 50px;           /* 幅を指定 */
    height: 50px;          /* 高さを指定 */
    line-height: 50px;     /* テキストを中央に */
    text-align: center;    /* テキストを中央に */
    border-radius: 50%;    /* 丸くする */
}

/* タブレット用のレスポンシブ (768px ～ 1024px) */
@media screen and (min-width: 768px) and (max-width: 1024px) {

  /* bl_media_item を 2列に配置 */
  .bl_media_container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2列に変更 */
    gap: 2rem;
  }

  /* roses_section のパディング調整 */
  .roses_section {
    padding: 5rem 1rem; /* 上下の余白を縮めて、バランスを取る */
  }

  /* セクションタイトルの文字サイズ調整 */
  .roses_section > h2 {
    font-size: 1.5rem; /* タブレットでは少し大きめに */
  }

  /* bl_media_item のマージン調整 */
  .bl_media_itemWrapper {
    margin: 1.5rem 0; /* 上下の余白を調整 */
  }

  /* bl_media_item の余白調整 */
  .bl_media_item {
    padding: 1rem; /* 余白調整 */
  }

  /* .bl_media_item_text の調整 */
  .bl_media_item_text {
    padding: 1rem;
  }

  /* bl_media_item_features_content の最大高さ調整 */
  .bl_media_item_features_content.open {
    max-height: 350px; /* 開いたときの高さを調整 */
  }
}

/* PC用のレスポンシブ (1024px 以上) */
@media screen and (min-width: 1024px) {

  /* bl_media_item を 3列に配置 */
  .bl_media_container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3列に変更 */
    gap: 2rem;
  }

  /* roses_section のパディング調整 */
  .roses_section {
    padding: 6rem 2rem; /* より広い余白に調整 */
  }

  /* セクションタイトルの文字サイズ調整 */
  .roses_section > h2 {
    font-size: 1.75rem; /* PCでは大きめ */
  }

  /* bl_media_itemWrapper のマージン調整 */
  .bl_media_itemWrapper {
    margin: 2rem 0; /* 上下の余白を調整 */
  }

  /* bl_media_item の余白調整 */
  .bl_media_item {
    padding: 1.5rem; /* 余白を広めに調整 */
  }

  /* .bl_media_item_text の調整 */
  .bl_media_item_text {
    padding: 1.5rem;
  }

  /* bl_media_item_features_content の最大高さ調整 */
  .bl_media_item_features_content.open {
    max-height: 400px; /* 開いたときの高さを調整 */
  }
}


/* footer */
footer {
  font-size: .6rem;
  text-align: center;
  padding: 20em 2em 5em  2em;
  background-size: cover;
  background-image: url(../images/top_ph_02.webp);
  background-repeat: no-repeat;
  color: #fff;
}

.copy {
  font-size: .8rem;
  margin-top: 1em;
}

.footer_sns {
  width: 29px;
  height: 29px;
  cursor: pointer;
  margin-bottom: 2em;
}

/*MV 切り替え*/
@media(width < 1080px) {
  .pc-video {
    display: none;
  }

  .sp-video {
    display: block;
  }

  /*logo*/
  .logo {
    height: 80px;
    width: 80px;
    margin: 20px 20px;
    float: left;

  }

  .sns {
    height: 40px;
    width: 40px;
    float: right;
  }

  /* read */
  .read h2{
    font-size: 1.6rem;
  }

  .sp-only {
    display: block;
  }

  .pc-only {
    display: none;
  }


}

/* cookie */
#ga-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #f1f1f1;
  color: #333;
  padding: 15px 20px;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

#ga-close-btn {
  background-color: #ccc;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 13px;
  border-radius: 4px;
}

#ga-close-btn:hover {
  background-color: #aaa;
}