*{margin:0; padding:0}
html, body{margin:0; padding:0}
body{

  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  line-height: 1.6;
}

/*===========ヘッダー============= */

header{
	padding: 20px 20px 0;
	margin-bottom: 50px;
}

.logo{
	font-family: "Slackside One", cursive;
	font-size:24px;
	font-weight:bold;
}

.intro{
	height:300px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	box-sizing: border-box;
	padding:20px;
	text-align:right;
}

.intro h2{
	font-size:28px;
}

.intro p{
	font-size: 14px;
	margin-top:10px;
}



/*===========メイン============= */
/* 全体レイアウト */
main {
    width: 100%;
    max-width: 1000px; /* 一般的かつ実用的な幅 */
    margin: 0 auto;    /* 左右中央揃え */
    padding: 20px;
    box-sizing: border-box;
}

.introduction,
.logics{
	text-align:center;
	font-size: 14px;
}

.logics{
	margin-top:40px;
	
}

/* フォーム・都道府県セクション */
.forms h3 {
    font-size: 1.1rem;
    margin: 30px 0 15px;
    padding-left: 10px;
    border-left: 4px solid #333; /* 控えめなアクセント */
}

.forms ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;       /* 横並び */
    flex-wrap: wrap;     /* 折り返し許可 */
    justify-content: flex-start; /* ★ 左寄せに固定 */
    gap: 10px;           /* ★ ボタン間の隙間を固定（例: 10px） */
}

.pref {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    /* 計算式：(100% - (隙間の数 * gapの幅)) / 1行の個数 
       1行に7個並べる場合、隙間は6つ。
    */
    width: calc((100% - (6 * 10px)) / 7); 
    
    margin-bottom: 10px; /* 行間の余白 */
    padding: 18px 0;
    border: 1px solid #ddd;
    background-color: #f8f9fa;
    color: #333;
    font-size: 0.9rem;
    box-sizing: border-box;
    border-radius: 6px;
    transition: all 0.2s ease;
}

/* ホバー時の挙動：過剰な装飾はせず、明度のみで変化 */
.pref:hover {
    background-color: #5BC8AC;
    border-color: #5BC8AC;
    color:#fff;
}

/* スマートフォン対応（1000px以下の場合の考慮） */
@media (max-width: 768px) {
    .pref {
        min-width: calc(33.33% - 10px); /* 3列 */
        font-size: 0.85rem;
    }
}

/*===========モーダル============= */
.city-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999;
}

.city-modal.is-open {
	display: block;
}

.city-modal_overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(2px);
}

.city-modal__content {
	position: relative;
	max-width: 1000px;
	width: calc(100% - 32px);
	margin: 40px auto;
	background: #fff;
	border-radius: 12px;
	padding: 32px 24px 24px;
	z-index: 1;

	max-height: 80vh;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}

.city-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 40px;
	height: 40px;
	border: none;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.city-modal__body {
	flex: 1;
	overflow-y: auto;
	margin-top: 12px;
	padding-right: 4px;
}

.city-modal__body ul {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.city-modal__body li {
	padding: 12px 14px;
	border: 1px solid #ddd;
	border-radius: 8px;
	cursor: pointer;
	box-sizing: border-box;
}

.city-modal__body li:hover {
	background: #f7f7f7;
}


/*===========フッター============= */
footer{
	background:#5BC8AC;
	text-align:center;
	margin-top:50px;
	padding:30px 0;

}

.site-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px; /* 各グループ間の余白 */
    padding: 20px 0;
    align-items: start;
}

/* 各グループ内のテキスト装飾 */
.source-group {
    font-size: 0.85rem;
}

.source-group p {
    margin-bottom: 10px;
    line-height: 1.4;
}

.source-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.source-group li {
    margin-bottom: 6px;
    line-height: 1.5;
}

.source-group a {
    color: #333;
    text-decoration: none;
}

.source-group a:hover {
    text-decoration: underline;
}

.footer-bottom{
	display:flex;
	flex-direction:column;
	align-items:center;
	gap:10px;
	margin-top:20px;
}

.footer-links{
	display:flex;
	gap:20px;
}

.footer-bottom .copyright{
	color:#fff;
}


/*===========free レポート============= */

:root {
  --bg-main: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --text-main: #1e293b;
  --text-sub: #64748b;
  --accent: #2563eb; /* 鮮やかなブルー */
  --danger: #ef4444;
}

main{
	font-size:14px;
}

main ul{
	list-style: none;
	padding:0;
	margin:0;
}


.scores-total{
	font-size:60px;
	text-align:center;
	margin-bottom:50px;
}

.scores{
	margin:50px;
	text-align:center;
	font-size:40px;

}

main h4{
	text-align:center;
	margin-top:40px;
}



/* ------- report header --------*/
.top-score{
	background: rgba(91, 200, 172, 1);
}

.report-header{
	font-size:16px;
	font-weight: bold;

}

.address-list {
	list-style: none;
	padding: 1.5rem;
	background: #ffffff;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
}

.address-list li {
	display: flex;
}

.address-list li:last-child {
    margin-bottom: 0;
}

.label {
	width: 100px;      /* ここで幅を固定することでコロンの位置が揃う */
	font-size: 16px;
	position: relative;
}

/* ラベルの後にコロンを自動でつける */
.label::after {
	content: "：";
	position: absolute;
}

.value {
	font-size: 16px;
}

.total-score{
	font-size:160px;
	text-align:center;
	font-weight:bold;
}

.header-notice{
	text-align:center;
	magin:0;
	padding:0;
}

.score-comment{
	margin-top:50px;
}

/* 各セクションを独立したカードにする */
.blocks {
	background: var(--card-bg);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 2rem;
	margin-bottom: 2rem;
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
	transition: transform 0.2s ease;
}


.top-score{
	background: rgba(91, 200, 172, 0.05);
}



/* タイトルの装飾（線ではなく余白とフォントサイズで表現） */
main h2 {
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

main h2::before {
	content: "";
	display: inline-block;
	width: 4px;
	height: 1.2em;
	background: var(--accent);
	border-radius: 2px;
}


/* グリッドレイアウトの導入 */
.hazards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.hazards {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

/* チャートエリアの背景 */
canvas {
	background: #ffffff;
	padding: 10px;
	border-radius: 8px;
	max-height: 300px;
}

/* 凡例（explains）の整理 */
.explains {
	background:#f5f5f5;
	padding: 20px;
	margin: 40px 50px 0;
	border-radius:10px;
}

.explains-title{
	font-weight:bold;
	margin-bottom:10px;

}
.explains-sub{
	font-size:12px;
	color:#333;
}


/* ------- 河川名 --------*/
.report-detail-rv {
	display: flex;
	justify-content: center; /* 左右中央揃え */
	margin: 1.5rem 0;
}

.river-list {
	list-style: none;
	padding: 0;
	margin: 0;
	text-align: left; /* リスト内テキストは左揃え */
	max-width: 800px; /* 必要に応じて調整 */
}

.river-item {
	padding: 8px 0;
	line-height: 1.6;
	border-bottom: 1px solid #f0f0f0;
	display: block; /* 1行として表示 */
}

/* 2km超のグレーアウト */
.river-item.out-of-range {
	color: #999;
}

.rv-name {
	font-weight: 600;
}

.rv-note {
	font-size: 0.85em;
	display: inline-block;
	margin-left: 0.5em;
}

/* 最後の項目のボーダーを消す */
.river-item:last-child {
	border-bottom: none;
}



/*===========免責事項============= */
.disclaimer h2{
	margin-bottom:12px;
}

.disclaimer h3{
	margin-top:30px;
	margin-bottom:12px;

}

.disclaimer p{
	font-size:14px;
}

.disclaimer ul li{
	font-size:14px;
	margin-left:40px;
	padding-left:10px;
}


