@charset "utf-8";

/* .hero */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  color: #333;
  text-align: center;
  overflow: hidden; /* スクロールを防止 */
}

/* 動画 */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 動画が画面いっぱいに広がる */
  transform: translate(-50%, -50%);
  z-index: 0; /* 背景として配置 */
  display: block;
}

.hero::before {
  content: "";
  width: 100%;
  height: 100%;
  opacity: .1;
  display: block;
  background-image: url(../img/halftone1.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.hero::after {
  content: "";
  width: 100%;
  height: 100%;
  opacity: .5;
  display: block;
  background-color: black;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.hero-content {
  width: 100%;
  height: 100%;
  z-index: 9999;
  position: absolute;
  color: #fff;
}

.hero-title {
  color: #ece7dc;
  font-family: "Libre Baskerville", serif;
  font-size: 64px;
  position: absolute;
  top: 40%;
  left: 0;
  right: 0;
}

.hero-cpName {
  font-size: 14px;
  display: block;
  padding-top: 14px;
}

.scroll-indicator {
  position: absolute;
  bottom: 5%;
  text-align: center;
  width: 100%;
  z-index: 99999;
}

.scroll-indicator p {
  color: #ece7dc;
  padding-bottom: 20px;
}

.scroll-indicator .line {
  width: 1px;
  height: 100px;
  margin: auto;
  overflow: hidden;
  position: relative;
}

.scroll-indicator .line::after {
  background-color: #ece7dc;
  content: "";
  width: 1px;
  height: 100px;
  display: block;
  position: absolute;
  top: -100px;
  left: 0;
  animation: scroll;
  animation-duration: 1.5s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

@keyframes scroll {
  0% {
    top: -100px;
  }
  50% {
    top: 0px;
  }
  100% {
    top: 100px;
  }
}




/* .about */
.about {
  display: flex;
  align-items: center;
  justify-content: space-around;
  text-align: center;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.about-contents {
  font-size: 12px;
  text-align: center;
  display: inline-block;
  z-index: 99999; 
  position: relative;
  letter-spacing: 1px;
}

.about-contents p {
  line-height: 2.2;
  /* ▼ 初期は見えない（JSでは触らない） */
  visibility: hidden;
}

/* 行ラップ用spanの初期状態（JSではstyleを付けない） */
.about-contents p .line {
  opacity: 0;
  display: inline-block;
}

.about-contents-btn {
  border: 1px solid #ece7dc;
  display: block;           /* レイアウト安定のため常にblock */
  width: 60%;
  margin: auto;
  margin-top: 30px;
  padding: 14px;
  transition: .5s;

  /* ▼ 初期は透明＆クリック不可（JSではdisplayを触らない） */
  opacity: 0;
  pointer-events: none;
}

.about-contents-btn:hover {
  background-color: #ece7dc;
  color: #053456;
}

.floating-image {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  z-index: 9;
}


/* NEWS */
.news {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.news .title {
  position: relative;
  bottom: 20px;
}

.news .title .head {
  text-align: center;
  font-size: 60px;
  font-weight: bold;
  letter-spacing: 8px;
}

.news .title .txt {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  letter-spacing: 1px;
}

.news-attention{
  width: 70%;
  margin: 10px auto 24px;
  padding: 16px 20px;
  background: #ece7dc;
  color: #053456;
  border: 1px solid #053456;
  border-radius: 12px;
  line-height: 1.7;
}

.news-attention .label{
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: bold;
}

.news-attention p{
  margin-top: 8px;
  font-size: 12px;
}

.news-grid {
  width: 70%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.news-item {
  width: calc(20% - 30px);
  transition: .5s;
  text-align: center;
}
.news-item:hover { opacity: .5; }

.news-item a { display: block; }

.news-item img {
  width: 100%;
  display: block;
  margin: 0 auto; 
}


.news-item font {
  display: block;
  text-align: center;
  padding: 8px 0 0;
  line-height: 1.6;
  font-size: 12px;
}

.news-attention .attn-open{
  display: none; /* PCでは非表示、SPで表示 */
}



/* .topMenu */
.topMenu {
  display: flex;
}

.topMenu .img {
  width: 50%;
  height: 100vh;
  padding: 20px;
}

.topMenu .img img {
  border-radius: 20px;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.topMenu .contents {
  width: 50%;
  height: 100%;
  padding: 20px;
}

.topMenu .contents .title {
  font-size: 82px;
  font-weight: bold;
  letter-spacing: 5px;
  margin-top: 80px;
}

.title .char {
  opacity: 0; 
  position: relative; 
  left: -15px;
  display: inline-block; 
  transition: opacity 0.5s ease, transform 0.5s ease;
}


.topMenu .contents .txt {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.8;
  padding-left: 5px;
}

.topMenu .contents ul {
  margin-top: 40px;
}

.topMenu .contents ul li {
  padding: 10px;
  padding-left: 5px;
  font-size: 36px;
  /* font-weight: bold; */
  transition: .5s;
  position: relative;
  margin-bottom: 5px;
  letter-spacing: 2px;
}

/* .topMenu .contents ul li::before {
  content: "ONLINE STORES";
  height: 100%;
  width: 0%;
  position: absolute;
  background-color: #ece7dc;
  color: #053456;  top: 0;
  left: 0;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-right: 0px;
  padding-left: 0px;
  overflow: hidden;
  transition: .5s;
} */

.topMenu .contents ul li:hover {
  background-color: #ece7dc;
  color: #053456;  padding-left: 15px;
}

.topMenu .contents ul li:hover::before {
  width: 100%;
  padding-left: 5px;
  padding-right: 10px;
}


/* メディアクエリ - トップページ */
@media screen and (max-width: 768px) {
  .hero {
    padding: 0;
  }
  
  .hero-title {
    font-size: 20px;
  }
  
  .hero-cpName {
    font-size: 12px;
    padding-top: 10px;
  }
  
  section.about {
    padding: 20px;
  }
  
  .about-contents {
    text-align: left;
  }
  
  .about-contents-btn {
    text-align: center;
  }

  .only-pc{
    display: none !important;
  }

  .only-sp{
    display: inline-flex !important;
  }

  .news-attention{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: .5rem;
    width: 90%;
  }

  .news-attention p{ font-size: 11px; line-height: 1.6; }

  .news-attention .attn-open{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
    line-height: 1;
    border: 1px solid #053456;
    border-radius: 6px;
    background: transparent;
    color: #053456;
    transition: background-color .2s ease, color .2s ease, transform .06s ease;
  }


  .news-grid .news-item:nth-child(n+7) { display: none !important; }

  .news .title { bottom: 10px; }
  .news .title .head { font-size: 20px; }
  .news .title .txt { margin-top: 8px; font-size: 12px; }

  .news-grid {
    width: 90%;
    justify-content: flex-start;
    column-gap: 10px;
    row-gap: 8px;
    gap: 8px;
  }

  .news-item {
    flex: 0 0 calc((100% - 10px) / 2);
  }

  .news-item br { display: none; }

  .news-item font {
    padding-top: 4px;
    line-height: 1.4;
  }

  /* モーダル（サイトトーンに合わせた軽量版） */
  .attn-modal{
    position: fixed;
    inset: 0;
    display: none;
    z-index: 999999; /* fullPage等より上 */
  }
  .attn-modal.is-open{ display: block; }
  .attn-modal[aria-hidden="true"]{ display: none; }

  .attn-modal__backdrop{
    position: absolute; inset: 0;
    background: rgba(0,0,0,.5);
  }

  .attn-modal__dialog{
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    background: #ece7dc;
    color: #053456;
    width: min(680px, 90vw);
    max-height: 80vh;
    overflow: auto;
    border-radius: 12px;
    padding: 20px 20px 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
  }

  .attn-modal__close{
    position: absolute;
    top: 8px; right: 12px;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #053456;
  }

  .attn-modal h3{
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .5px;
  }

  .attn-modal__body p{
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.7;
  }
  
  .topMenu {
    flex-direction: column-reverse;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }
  
  .topMenu .img, .topMenu .contents {
    padding: 0px;
  }
  
  .topMenu .img {
    width: 100%;
    height: auto;
  }
  
  .topMenu .contents {
    width: 100%;
    height: auto;
    padding: 20px 0;
  }
  
  .topMenu .contents .title {
    font-size: 42px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-top: 0;
    padding-left: 5px;
  }
  
  .topMenu .contents .txt {
    font-size: 12px;
  }
  
  .topMenu .contents ul {
    margin-top: 20px;
  }
  
  .topMenu .contents ul li {
    padding: 5px;
    font-size: 18px;
    margin-bottom: 0;
  }
  
  .store {
    gap: 20px;
  }
}

/* SPのモーダル微調整 */
@media (max-width: 768px){
  .attn-modal__dialog{
    width: 92vw;
    max-height: 84vh;
    padding: 16px 14px 14px;
  }
  .attn-modal h3{ font-size: 16px; margin-bottom: 6px; }
  .attn-modal__body p{ font-size: 13px; line-height: 1.6; }
}

/* フォーカス時の見やすさ */
.attn-modal__close:focus,
.news-attention .attn-open:focus{
  outline: 2px solid #053456;
  outline-offset: 2px;
}

/* 必要なら：モーダル中は背面スクロール禁止 */
body.no-scroll{ overflow: hidden; }

/* === NEWS: 高さが低い端末向けの“さらにコンパクト”モード === */
@media (max-height: 765px) {
  /* タイトル・注意喚起をさらに縮める */
  .news .title { bottom: 6px; }
  .news .title .head { font-size: 18px; letter-spacing: 6px; }
  .news .title .txt { margin-top: 6px; font-size: 11px; }

  .news-attention{
    width: 90%;
    margin: 6px auto 10px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .news-attention .label{ font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .news-attention .attn-open{ padding: 5px 8px; font-size: 11px; }

  /* タイル群をさらに密に＋表示件数を 4 件までに */
  .news-grid{
    width: 90%;
    justify-content: flex-start;
    column-gap: 8px;   /* 横間隔 */
    row-gap: 6px;      /* 縦間隔 */
    gap: 6px;          /* 互換用 */
    margin: 0 auto;
  }
  .news-item{
    /* 2カラム（横ギャップ8pxを1本引いて均等割） */
    flex: 0 0 calc((100% - 8px) / 2);
  }
  .news-grid .news-item:nth-child(n+5){ display: none !important; } /* ← 上位4件のみ */

  /* 画像と文字の間をさらに詰める */
  .news-item br{ display: none; }
  .news-item font{ padding-top: 2px; font-size: 11px; line-height: 1.35; }

  /* 縦長画像で高さが暴れないように統一 */
  .news-item img{ aspect-ratio: 1 / 1; object-fit: cover; }
}

/* さらに背の低い端末（例: 横向き等）では 2 件だけに */
@media (max-height: 580px) {
  .news-grid .news-item:nth-child(n+3){ display: none !important; } /* 上位2件のみ */
}
