@charset "utf-8";
/* CSS Document */

/***************************************/

/* --- トップページ専用レイアウト --- */

/***************************************/



/* Chrome/Edgeでスクロールバーそのものを目立たなくする */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: #fff; /* 背景と同じ白にすれば、バーが出ていても目立ちません */
}
::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 6px;
}

.home-layout {
	display: flex;
	align-items: stretch; /* これで左と右の高さが同じになる */
	gap: 0px;
	max-width: 950px;
	margin-top: 10px;
	margin-right: auto;
	margin-left: auto;
	margin-bottom: 20px;
}
.home-menu {
	flex-shrink: 0;
	/* 背景と高さ */
	background-image: url(../img/bg_topmenu@2x.png);
	background-size: cover;
	background-position: center;
	border-bottom-left-radius: 6px;
	border-top-left-radius: 6px;
	padding: 20px 0;
}
/* メニューの見た目 */
.home-menu-list {
	list-style: none;
	padding: 0;
	position: relative;
}

/* --- 1. トップページ限定のPCメニュー色（ハンバーガーには影響させない） --- */
.page-index .home-menu .menu-text {
	color: #fff;
	height: auto !important;
	padding-top: 20px;
	padding-bottom: 20px;
}

/* --- 3. ロールオーバー時：オレンジ変化エフェクト --- */
.page-index .menu-text {	
	font-family: 'M PLUS 1', sans-serif;
	font-weight: 400;
	color: #fff /* 通常時は白文字 */
	font-size: 0.8rem;
	display: block;
	transition: all 0.3s ease; /* ふんわり変化する設定 */
	text-decoration: none;	
	height: 43px;
	background-image: none;	
}
.page-index .menu-text:hover {
	color: #fff;
	/* 横・縦・ぼかし範囲・色の順 */
	text-shadow: 0 0 8px #FF8C00, 0 0 12px #FF4500;
	text-decoration: none;
}

.home-menu-list > li > a {
	position: relative; /* 擬似要素を重ねるための基準 */
	display: block;
	padding-right: 20px;
	padding-left: 20px;
	font-family: 'M PLUS 1', sans-serif;
	font-size: 1rem;
	transition: 0.3s;
	z-index: 1; /* テキストを上に表示 */
	display: block !important;
}

/* 擬似要素で背景画像を作成 */
.home-menu-list > li > a::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url(../img/bg_hover@2x.png); /* 画像のパス */
	background-size: cover;
	background-repeat: no-repeat;
	opacity: 0; /* 最初は透明 */
	transition: opacity 0.4s ease; /* ふんわり表示 */
	z-index: -1; /* テキストの背面に配置 */
	border-radius: 4px;
}

/* ホバー時に透過度を1にする（ふんわり現れる） */
.home-menu-list > li > a:hover::before {
    opacity: 1;
}




/* 句集メニュー（ad）の領域 */
.home-menu-list li.ad {
	position: relative;
}
/* サブメニューの初期状態（隠す） */
.accordion-sub {
	/* 最初は高さ0、透明度0で隠す */
	max-height: 0;
	opacity: 0;
	visibility: hidden;
	overflow: hidden; /* これが重要：はみ出た分を見せない */
	position: absolute;
	top: 0px;
	left: 100%;
	z-index: 100;
	background: #fff;
	border-left-color: #ccc;
	border-right-color: #ccc;
	border-top-color: #ccc;
	border-left-style: solid;
	border-right-style: solid;
	border-top-style: solid;
	border-left-width: 1px;
	border-right-width: 1px;
	border-top-width: 1px;
	/* アニメーション設定：下に伸びる速さ */
	transition: max-height 0.4s ease-out, opacity 0.3s ease;
	width: 150px;
	
}
	
/* カーソルを乗せたら表示 */
.home-menu-list li.ad:hover .accordion-sub {
	max-height: 150px; /* 内容の合計高さ以上の値を指定すれば、自然に伸びる */
	opacity: 1;
	visibility: visible;
	display: block;	
}
/* サブメニュー内のリンク */
.home-menu-list .accordion-sub li a {
	padding-right: 15px;
	padding-left: 15px;
	font-size: 0.9rem;
	text-decoration: none;
	text-align: center;
	border-bottom: 1px solid #ccc;
}


.home-menu-list .accordion-sub li a.menu-text {
	color: #333 !important;	
	}

.home-menu-list .accordion-sub li a:hover {
	background-color: #D0DBFB;
	color: #FFFFFF !important;
}



/* メイン画像 */
.home-visual {
	flex: 1;
	overflow-x: hidden;
}
.home-visual img {
	width: 100%; /* PDFに合わせて高さを固定 */
	object-fit: cover;
	border-bottom-right-radius: 6px;
	border-top-right-radius: 6px;
	overflow-y: hidden;
}
.catch-copy {
	font-size: 0.9rem;
	color: #666;
	text-align: right;
}

/* --- 1. トップページ限定：非表示ルール --- */
.page-index .pc-menu, 
.page-index #c_footer .logo {
    display: none !important;
}


/* レスポンシブ：スマホ時は縦並びに */
@media screen and (max-width: 768px) {
.home-layout {
	padding: 0 10px;
	display: block !important; /* Flexboxを解除 */
	margin-top: 30px;
}

.home-menu {
    display: none !important;
}
.page-index .sp-side-menu .sp-menu-inner ul {
        display: block !important;
    }
	
/* メイン画像を正方形（アスペクト比1:1）にする */

 .home-visual {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important; /* これで強制的に正方形になる */
    overflow: hidden !important;
    margin: 10px 0 !important;
    position: relative !important;
  }

  /* 画像をその枠いっぱいに広げてトリミング */
  .home-visual img {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important; /* 歪ませずに正方形にトリミング */
	display: block !important;
	border-top-left-radius: 6px;
	border-bottom-left-radius: 6px;
  }

.catch-copy {
	margin-top: 10px;
	font-size: 0.9rem;
	color: #666;
	text-align: left !important;
	line-height: 2;
	padding-left: 1em;
}

}

@media screen and (min-width: 960px) {
  
 .page-index #header {
	margin-left: auto;   /* 中央寄せを維持 */
    margin-right: auto;  /* 中央寄せを維持 */    
    position: relative;  /* 相対位置指定 */
    left: -2px;          /* これで見た目だけ左に2px移動 */
}
}