
/*==============================================================

星座一覧

==============================================================*/

.bg{
	background-image: url("/images/dailyhoro/bg1.jpg"); /* ← 画像パスを指定 */
	background-size: cover; /* 全体に拡大して表示 */ 
	background-position: center; /* 中央寄せ */ 
	padding: 20px 0px;
}

.bg p{
    color: #2e479e;
    text-align: center;
    font-size: 16px;
	font-weight: bold;
}

.list-container{
    margin: 15px;
}

.zodiac-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr); /* 常に3列 */
	gap: 10px;
	margin-bottom: 30px;
}

.zodiac-item {
	background: white;
	border: 3px solid #f7e6ff;
	border-radius: 20px;
	padding: 10px;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	aspect-ratio: 1 / 1.2; /* 幅に対して高さを自動調整 */
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1),   /* 下方向のやわらかい影 */
	0 2px 4px rgba(0, 0, 0, 0.06);  /* 細かい影で奥行き */
}

.zodiac-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
}
.zodiac-item:hover {
	border-color: #2e479e;
	transform: translateY(-8px) scale(1.02);
	box-shadow: 0 15px 30px rgba(253, 121, 168, 0.3);
}
.zodiac-item:active {
	transform: translateY(-5px) scale(1.01);
	box-shadow: 0 12px 25px rgba(253, 121, 168, 0.4);
}
.zodiac-item:hover::before, .zodiac-item:active::before {
	opacity: 1;
}
.zodiac-item.selected {
	border-color: #2e479e;
	background: linear-gradient(135deg, #2e479e 0%, #fdcb6e 100%);
	color: white;
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(253, 121, 168, 0.4);
}


/* 12星座イラスト設定 */

.zodiac-icon {
	width: 70%;      /* アイコンもセル幅に対して自動調整 */
	height: auto;
	border-radius: 50%;
	margin: 0 auto 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: calc(16px + 1vw); /* 文字サイズも画面幅に応じて変化 */
	background: #f8f9fa;
	transition: all 0.3s ease;
	overflow: hidden;
}

.zodiac-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}
.zodiac-item.selected .zodiac-icon {
	background: rgba(255, 255, 255, 0.9);
	border-color: rgba(255, 255, 255, 0.8);
	transform: scale(1.1);
}
.zodiac-name {
	font-weight: 700;
	font-size: 15px;
	margin-top: -8%;
    background: linear-gradient(to right, #6f1cff, #56ceff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.zodiac-period {
	font-size: 12px;
	opacity: 0.8;
	font-weight: 500;
	color: #333;
}
.zodiac-item.selected .zodiac-period {
	opacity: 0.9;
}


/*==============================================================

dailyhoro-show

==============================================================*/

/*タイトル*/
.zodiac-icon-show{
	width: 30%;
    height: auto;
    margin: auto;
}


.bg2 {
    background-image: url("/images/dailyhoro/bg3.jpg");
    background-size: 100% auto;  /* 横幅に合わせる、高さは自動 */
    background-repeat: repeat-y; /* 縦方向にリピート */
    background-position: top center;
    padding: 20px 0;
}



/* タブスタイル */
.tab-container {
	display: flex;
	background: #f8f9fa;
	margin: 0;
	border-bottom: 1px solid #e9ecef;
}
.tab-button {
	flex: 1;
	padding: 18px 20px;
	background: transparent;
	border: none;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	color: #666;
	transition: all 0.3s ease;
	position: relative;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}
.tab-button.active {
	color: #dc70db;
	background: white;
}
.tab-button.active::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, rgb(139, 161, 250), rgba(251, 213, 251, 1));
}
.tab-button:active {
	transform: scale(0.98);
}
/* 日付ヘッダー */
.date-header {
	text-align: center;
	font-size: 18px;
	font-weight: 600;
	color: #a058ff;
	margin: 20px 15px;
	padding: 12px 20px;
	background: lightpink;
	border-radius: 12px;
	border: 1px solid rgba(253, 121, 168, 0.2);
}
/* タブコンテンツ */
.tab-content {
	display: none;
	padding: 0 0 20px;
}
.tab-content.active {
	display: block;
	animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}
.fortune-card {
    margin: 0 15px 15px;
    background: #ffffffe0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(253, 121, 168, 0.1);
    font-family: -apple-system, BlinkMacSystemFont,
               "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3",
               "Hiragino Sans", "ヒラギノ角ゴシック",
               "Yu Gothic", "游ゴシック体",
               "Meiryo", "メイリオ",
               sans-serif;
}

.fortune-card.main {
    background: linear-gradient(135deg, #4164dfed 0%, #f998e9cc 100%);
    color: white;
    margin-bottom: 10px;
    margin-top: 10px;
}

.fortune-card.sub {
	width: 85%;
	margin: 10px auto;
}
.card-header {
	padding: 20px 20px 15px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.fortune-card:not(.main) .card-header {
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.card-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
}
.title-text {
	font-size: 18px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 8px;
}
.rank-badge {
	background: rgba(255, 255, 255, 0.95);
	color: #2e479e;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 700;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	white-space: nowrap;
}
.fortune-card:not(.main) .rank-badge {
    background: #4465dadb;
    color: white;
}
.stars {
    text-align: center;
    font-size: 30px;
    letter-spacing: 2px;
}
.star-filled {
	color: #fdcb6e;
	text-shadow: 0 0 8px rgba(253, 203, 110, 0.6);
}
.star-empty {
	color: rgba(255, 255, 255, 0.3);
}
.fortune-card:not(.main) .star-filled {
	color: #fdcb6e;
	text-shadow: none;
}
.fortune-card:not(.main) .star-empty {
	color: #ddd;
}
.card-content {
    padding: 5px 20px 10px;
}
.fortune-text {
	font-size: 15px;
	line-height: 1.7;
	text-align: left;
}
.fortune-card:not(.main) .fortune-text {
	color: #333;
}
.lucky-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0px 15px 10px;
}
.lucky-item {
    background: linear-gradient(135deg, #fffbf0 0%, #ffdf8c 100%);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(253, 121, 168, 0.1);
}
.lucky-label {
	font-size: 13px;
	color: #666;
	margin-bottom: 6px;
	font-weight: 600;
}
.lucky-value {
	font-size: 16px;
	font-weight: 700;
	color: #2d3436;
}
.back-btn {
	margin: 30px 15px 20px;
	padding: 18px;
	background: linear-gradient(135deg, #2e479e 0%, #fdcb6e 100%);
	color: white;
	border: none;
	border-radius: 14px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	display: block;
	text-align: center;
	box-shadow: 0 4px 15px rgba(253, 121, 168, 0.3);
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.top{
    text-align: center;
    text-decoration: underline;
    font-size: 16px;
    margin: 30px;
    line-height: 2;
}

/*==============================================================

共通設定

==============================================================*/

.mt-10{
	margin-top: 10px !important; 
}

.fs20 {
    font-size: 20px !important;
}

/*==============================================================

毎日無料占い　おび

==============================================================*/

.lead-dailyhoro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-image: url("/images/dailyhoro/bg1.jpg");
  background-size: cover;
  background-position: center;
  text-align: center;
  padding: 7px 10px;
  font-size: 13px;
  font-family: sans-serif;
  color: #28282c;
}

.lead-dailyhoro:hover{
	opacity: 0.7;
}

/* 左の画像アイコン */
.lead-dailyhoro .horo-icon {
  width: 1.8em;  /* 文字とほぼ同じ高さ */
  height: 1.8em;
  vertical-align: middle;
  object-fit: contain;
}

/* CSSで作る右向き矢印 */
.lead-dailyhoro .horo-arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-top: 2px solid #28282c;
  border-right: 2px solid #28282c;
  transform: rotate(45deg);
  margin-left: 3px;
  transition: transform 0.2s ease;
}