/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

/* ===== Hero ===== */
.hero-container{
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 100vh;
  overflow: hidden;
}

/* 背景画像3枚を重ねる */
.hero-container .hero-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroFade 18s infinite;
}

/* 2枚目・3枚目は開始をずらす */
.hero-container .hero-bg:nth-of-type(2){ animation-delay: 6s; }
.hero-container .hero-bg:nth-of-type(3){ animation-delay: 12s; }

/* フェード */
@keyframes heroFade{
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  33%  { opacity: 1; }
  43%  { opacity: 0; }
  100% { opacity: 0; }
}

/* うっすら暗幕（任意） */
.hero-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.25);
}

/* 文字など */
.hero-inner{
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px;
}

.hero-title{
  font-size: clamp(36px, 5vw, 86px);
  font-weight: 800;
  letter-spacing: .06em;
  color: #fff;
  text-shadow: 0 8px 28px rgba(0,0,0,.35);
  margin: 0;
}

.hero-catchcopy{
  font-size: clamp(14px, 1.6vw, 26px);
  color: rgba(255,255,255,.9);
  margin: 14px 0 0;
  text-shadow: 0 6px 18px rgba(0,0,0,.30);
}

/* 横はみ出し保険 */
body{ overflow-x: hidden; }

/* トップページ：ページタイトル（HOME）を消す */
.home .entry-title{
  display:none;
}

/* トップページ：投稿日・更新日を消す */
.home .post-date,
.home .post-update{
  display:none;
}

/* トップページ：ヘッダー全体を消す */
.home #header-container,
.home .header-container,
.home .site-header{
  display:none;
}

/* トップページ：ヒーロー直前の余白を詰める */
.home #content{
  padding-top:0;
  margin-top:0;
}

/* =========================
   Scroll（アイコン＋文字）参考サイト寄せ
   ========================= */

/* aタグ全体を下中央に固定（アイコンも文字もクリック対象） */
.home .hero-scroll{
  position: absolute;
  left: 50%;
  bottom: 26px;              /* 下からの距離：好みで調整 */
  transform: translateX(-50%);
  z-index: 5;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;

  text-decoration: none !important;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* hoverでちょい明るく */
.home .hero-scroll:hover{
  opacity: .95;
}

/* アイコン丸 */
.home .hero-scroll .hero-scroll-icon{
  margin: 0;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* アイコン本体 */
.home .hero-scroll .hero-scroll-icon i{
  font-size: 28px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

/* Scroll文字 */
.home .hero-scroll .hero-scroll-text{
  margin: 0;
  font-size: 12px;
  letter-spacing: .18em;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
  opacity: .9;
}

/* ふわっと上下アニメ（全体を動かすので transform 競合しない） */
.home .hero-scroll{
  animation: hero-bob 1.6s ease-in-out infinite;
}

@keyframes hero-bob{
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(8px); }
}

/* タイトルとサブタイトルの行間を微調整（ゆとり戻す） */
.home .hero-inner .hero-title{
  line-height: 1.15 !important;
  margin-bottom: 14px !important;
}

.home .hero-inner .hero-catchcopy{
  margin-top: 0 !important;
  line-height: 1.4 !important;
}


@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@600;700&display=swap');

.hero-title{
  font-family: "Shippori Mincho", serif;
}

/* ===== HOME: Cocoonの「コンテンツ先頭余白」を完全に潰す ===== */

/* 1) #content自体の上余白（参考CSSにも padding-top:24px があるので最優先） */
body.front-top-page #content.content{
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* 2) content-in / wrap / main の上余白（wrapが犯人になりやすい） */
body.front-top-page #content-in.content-in.wrap,
body.front-top-page main#main.main{
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* 3) articleヘッダー（タイトル・日付）領域の“余白”も含めて消す */
body.front-top-page article.article > .article-header{
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 4) article / entry-content の先頭要素が勝手に持つ上マージンを潰す */
body.front-top-page article.article,
body.front-top-page .entry-content{
  margin-top: 0 !important;
  padding-top: 0 !important;
}
body.front-top-page .entry-content > :first-child{
  margin-top: 0 !important;
}

/* 5) 念押し：ヒーローを必ず先頭に吸着 */
body.front-top-page .entry-content > .hero-container:first-child{
  margin-top: 0 !important;
}
body{ margin:0!important; }

.hero-container{
  min-height:100.5vh;
}
/* ヒーロー上に出る“線”の定番原因をトップだけ無効化 */
.home #content,
.home #content-in,
.home #main{
  background: transparent !important;
  box-shadow: none !important;
}
/* wrap系の上padding/余白も念のため潰す */
.home #content-in.wrap,
.home main#main.main{
  padding-top: 0 !important;
  margin-top: 0 !important;
}
/* トップページだけ：上の1px押し下げ要因を潰す */
.home #content,
.home #content-in,
.home main#main{
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}
