@charset "utf-8";
/*
*******************************
2026.11.08 s.honma add スマホ対応（レスポンシブ）
前半：画面幅768px以下（スマホ）だけに効く。
後半：画面幅769px以上（PC）だけに効く。スマホと同じ見た目のヘッダー（1段）・検索窓・メニュー・ボタン。
basic.css の後に読み込むこと。
対象：共通ヘッダー、顧客詳細（customer_detail.html）ほか
*******************************
*/
/* 2026.11.08 s.honma デザイン刷新：書体（Google Fonts の Noto Sans JP） */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap");

/*
*******************************
2026.11.08 s.honma デザイン刷新：全画面共通（PC・スマホ）
色：紺 #2F4387（主）、濃い紺 #24366F、枠線 #D5DBE8、背景 #F4F6FA、赤 #C9302C
*******************************
*/
body, input, select, textarea, button {
	font-family: "Noto Sans JP", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, sans-serif;
}
#contents {
	color: #26304D;
}
#contents a {
	color: #2F4387;
}

/*---- ボタン：役割で3種類 ----*/
/* 普通のボタン：白地に紺の枠 */
#contents input.botton1,
#contents .button_area_all a,
#contents a.botton1,
#login-in input.botton1 {
	background: #FFF;
	background-image: none;
	border: 1px solid #2F4387;
	border-radius: 6px;
	color: #2F4387;
	text-shadow: none;
	font-weight: 500;
	text-decoration: none;
	transition: background-color .15s;
}
#contents input.botton1:hover,
#contents .button_area_all a:hover,
#contents a.botton1:hover,
#login-in input.botton1:hover {
	background: #EEF1FA;
	background-image: none;
	border-color: #2F4387;
}
/* 主ボタン（更新・登録・upload・login）：紺で塗りつぶし */
#contents input.botton1[value="更新"],
#contents input.botton1[value^="詳細登録"],
#contents input.botton1[value="upload"],
#login-in input.botton1[value="login"] {
	background: #2F4387;
	color: #FFF;
}
#contents input.botton1[value="更新"]:hover,
#contents input.botton1[value^="詳細登録"]:hover,
#contents input.botton1[value="upload"]:hover,
#login-in input.botton1[value="login"]:hover {
	background: #24366F;
}
/* 危ないボタン（削除など）：白地に赤い枠と赤い文字 */
#contents input.botton2 {
	background: #FFF;
	background-image: none;
	border: 1px solid #D9534F;
	border-radius: 6px;
	color: #C9302C;
	text-shadow: none;
	font-weight: 500;
	transition: background-color .15s;
}
#contents input.botton2:hover {
	background: #FCEBEB;
	background-image: none;
	border-color: #C9302C;
}

/* 2026.11.08 ヘッダーの「対応履歴」ボタンはスマホの顧客詳細だけで出す（下の768px以下で表示） */
.head_right .nav_history {
	display: none;
}
/* 右下の固定「更新」ボタンもスマホだけ（下の768px以下で表示） */
#float_update {
	display: none;
}

/*---- 2026.11.08 ファイルにカーソルを乗せると中身を表示（PCだけ。js/file-preview.js） ----*/
#fp_pop {
	position: fixed;
	z-index: 1000;
	left: -9999px;
	top: 0;
	width: 300px;
	box-sizing: border-box;
	padding: 8px;
	background: #FFF;
	border: 1px solid #D5DBE8;
	border-radius: 10px;
	box-shadow: 0 10px 28px rgba(31, 42, 77, 0.18);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .12s ease;
}
#fp_pop.fp_show {
	opacity: 1;
	visibility: visible;
}
#fp_pop img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 360px;
	object-fit: contain;
	border-radius: 6px;
	background: #F4F6FA;
}
#fp_pop.fp_loading img {
	min-height: 180px;
	background: #F4F6FA url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B9C3DA' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.6'/%3E%3Cpath d='M21 16l-5-5-8 8'/%3E%3C/svg%3E") no-repeat center / 40px 40px;
}
#fp_pop.fp_file,
#fp_pop.fp_noimg {
	width: 260px;
	display: flex;
	align-items: center;
	gap: 10px;
}
#fp_pop.fp_file img,
#fp_pop.fp_noimg img {
	display: none;
}
#fp_pop .fp_icon {
	display: none;
}
#fp_pop.fp_file .fp_icon,
#fp_pop.fp_noimg .fp_icon {
	display: flex;
	flex: 0 0 40px;
	height: 48px;
	align-items: flex-end;
	justify-content: center;
	padding-bottom: 6px;
	box-sizing: border-box;
	border-radius: 4px;
	background: #EEF1FA;
	color: #2F4387;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .03em;
}
#fp_pop .fp_icon[data-kind="PDF"] { background: #FCEBEB; color: #C9302C; }
#fp_pop .fp_icon[data-kind="Excel"] { background: #E3F2E8; color: #1E7B45; }
#fp_pop .fp_icon[data-kind="Word"] { background: #E6EEFB; color: #2B5BB5; }
#fp_pop .fp_cap {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	padding: 6px 2px 0;
	font-size: 12px;
	line-height: 1.5;
}
#fp_pop.fp_file .fp_cap,
#fp_pop.fp_noimg .fp_cap {
	padding-top: 0;
}
#fp_pop .fp_name {
	color: #1F2A4D;
	font-weight: 500;
	word-break: break-all;
}
#fp_pop .fp_sub {
	color: #6B7590;
	font-size: 11px;
}

/* 顧客詳細の TEL・MAIL・URL・MAP ボタン */
#contents .botton_rink {
	display: inline-block;
	padding: 0 10px;
	line-height: 24px;
	border: 1px solid #2F4387;
	border-radius: 6px;
	background: #FFF;
	background-image: none;
	color: #2F4387;
	font-size: 12px;
	font-weight: 500;
	text-decoration: none;
	text-shadow: none;
}
#contents .botton_rink:hover {
	background: #EEF1FA;
}

/* 履歴登録の「定型文言追加▼」 */
ul#datailnav {
	margin: 6px 0;
	padding: 0;
}
ul#datailnav > li {
	background: #EEF1FA;
	border: 1px solid #D5DBE8;
	border-radius: 6px;
}
ul#datailnav > li > a {
	color: #2F4387;
	font-weight: 500;
}
ul#datailnav li ul {
	border-left: none;
	box-shadow: 0 8px 20px rgba(20, 30, 70, 0.18);
	border-radius: 0 0 8px 8px;
	overflow: hidden;
}
ul#datailnav li ul li {
	background: #FFF;
	opacity: 1;
	border-bottom: 1px solid #F0F2F7;
	border-radius: 0;
}
ul#datailnav li ul li a:hover {
	background: #EEF1FA;
}

/*---- 見出し：斜線の画像をやめ、左に紺の線 ----*/
#main h1, #contents h1.all, #main_60p h1, #main_agree h1, #contents_confirmation h1,
#rightside h1, #rightside_40p h1, #ranking h1 {
	background: #FFF;
	background-image: none;
	border-top: none;
	border-bottom: 1px solid #E3E7F0;
	border-left: 4px solid #2F4387;
	border-radius: 0;
	color: #1F2A4D;
	font-weight: 500;
	text-align: left;
	letter-spacing: .02em;
}
#rightside h1, #rightside_40p h1 {
	padding: 10px 12px;
	height: auto;
	line-height: 1.4;
	font-size: 15px;
}
#main h2, #main_60p h2 {
	background: #FFF;
	background-image: none;
	border-top: none;
	border-bottom: 1px solid #E3E7F0;
	border-left: 4px solid #2F4387;
	color: #1F2A4D;
	font-weight: 500;
}

/*---- 入力欄 ----*/
/* 2026.11.08 デザイン刷新2：うすい青灰色の面＋角丸8px。マウスを乗せると枠が濃く、入力中は白地＋紺の枠と光 */
#contents input[type="text"],
#contents input[type="number"],
#contents input[type="password"],
#contents input[type="email"],
#contents input[type="tel"],
#contents input[type="date"],
#contents select,
#contents textarea,
#login-in input[type="text"],
#login-in input[type="password"] {
	box-sizing: border-box;
	border: 1px solid #DCE2EE;
	border-radius: 8px;
	background-color: #F7F9FC;
	color: #1F2A4D;
	font-size: 14px;
	transition: border-color .15s, box-shadow .15s, background-color .15s;
}
#contents input[type="text"]:hover,
#contents input[type="number"]:hover,
#contents input[type="password"]:hover,
#contents input[type="email"]:hover,
#contents input[type="tel"]:hover,
#contents input[type="date"]:hover,
#contents select:hover,
#contents textarea:hover,
#login-in input[type="text"]:hover,
#login-in input[type="password"]:hover {
	border-color: #B9C3DA;
}
#contents input[type="text"]:focus,
#contents input[type="number"]:focus,
#contents input[type="password"]:focus,
#contents input[type="email"]:focus,
#contents input[type="tel"]:focus,
#contents input[type="date"]:focus,
#contents select:focus,
#contents textarea:focus,
#login-in input[type="text"]:focus,
#login-in input[type="password"]:focus {
	outline: none;
	border-color: #2F4387;
	background-color: #FFF;
	box-shadow: 0 0 0 3px rgba(47, 67, 135, 0.15);
}
/* 入力のヒント（[内容] など）はうすく */
#contents input::placeholder,
#contents textarea::placeholder,
#login-in input::placeholder {
	color: #A3ACC2;
	opacity: 1;
}
/* セレクト：ブラウザの矢印をやめ、細い紺の矢印に */
#contents select {
	-webkit-appearance: none;
	appearance: none;
	padding: 0 28px 0 10px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F4387' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 8px center;
	background-size: 14px 14px;
	cursor: pointer;
}
#contents select[multiple] {
	padding: 4px;
	background-image: none;
}
#contents .co_inp {
	padding: 0 10px;
}
#contents textarea {
	padding: 8px 10px;
	line-height: 1.6;
}
/* 注意事項（赤い文字の欄）は、面もほんのり赤く */
#contents textarea.red {
	background-color: #FDF6F6;
	border-color: #F0D4D4;
}
#contents textarea.red:focus {
	background-color: #FFF;
	border-color: #C9302C;
	box-shadow: 0 0 0 3px rgba(201, 48, 44, 0.12);
}
/* チェックボックス・ラジオは紺に */
#contents input[type="checkbox"],
#contents input[type="radio"],
#login-in input[type="checkbox"] {
	accent-color: #2F4387;
}
/* ファイル選択のボタン */
#contents input[type="file"]::file-selector-button {
	margin-right: 10px;
	padding: 6px 14px;
	border: 1px solid #2F4387;
	border-radius: 6px;
	background: #FFF;
	color: #2F4387;
	font-family: inherit;
	font-weight: 500;
	cursor: pointer;
}
#contents input[type="file"]::file-selector-button:hover {
	background: #EEF1FA;
}

/*---- 対応履歴：種別・事故対応・共有のラベル ----*/
#rightside h2 {
	border-bottom: 1px solid #EEF0F5;
	border-left: 3px solid #2F4387;
	font-weight: 400;
	color: #26304D;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 6px;
}
#rightside h2.share {
	border-left-color: #378ADD;
}
.hx-type, .hx-tag {
	display: inline-block;
	padding: 0 7px;
	border-radius: 4px;
	font-size: 11px;
	line-height: 19px;
	font-weight: 500;
	white-space: nowrap;
	background: #EEF1FA;
	color: #2F4387;
}
.hx-type-1 { background: #EAF3DE; color: #27500A; }	/* 電話 */
.hx-type-2, .hx-type-3 { background: #EEEDFE; color: #3C3489; }	/* 訪問・来訪 */
.hx-type-5 { background: #E6F1FB; color: #0C447C; }	/* 郵送 */
.hx-type-6, .hx-type-4 { background: #E1F5EE; color: #085041; }	/* MAIL・FAX */
.hx-type-7 { background: #EAF3DE; color: #27500A; }	/* LINE */
.hx-type-8 { background: #E6F1FB; color: #0C447C; }	/* ZOOM/WEB面談 */
.hx-type-11, .hx-type-12 { background: #FAEEDA; color: #633806; }	/* お客様の声 */
.hx-tag-acc { background: #FCEBEB; color: #791F1F; }
.hx-tag-share { background: #E6F1FB; color: #0C447C; }
.hx-meta {
	font-size: 12px;
	color: #6B7390;
	font-weight: 400;
}

/*---- 満期まであと○日 ----*/
.hx-days {
	display: inline-block;
	margin-left: 4px;
	padding: 0 6px;
	border-radius: 4px;
	font-size: 11px;
	line-height: 18px;
	font-weight: 500;
	white-space: nowrap;
	background: #F1EFE8;
	color: #444441;
}
.hx-days-soon { background: #FCEBEB; color: #791F1F; }
.hx-days-near { background: #FAEEDA; color: #633806; }
.hx-days-past { background: #F1EFE8; color: #888780; }

/*---- ランク（O・A・B…）のバッジ ----*/
.hx-rank {
	display: inline-block;
	min-width: 20px;
	padding: 0 6px;
	border-radius: 10px;
	font-size: 12px;
	line-height: 20px;
	font-weight: 500;
	text-align: center;
	background: #EEF1FA;
	color: #2F4387;
}

@media screen and (max-width: 768px) {

	/*======== 全体 ========*/
	html, body {
		height: auto;
		-webkit-text-size-adjust: 100%;
	}
	body {
		overflow-x: hidden;
	}
	/* iPhoneで入力時に画面が拡大されないよう16px以上にする */
	#contents input[type="text"],
	#contents input[type="number"],
	#contents input[type="file"],
	#contents select,
	#contents textarea,
	#header input[type="text"] {
		font-size: 16px;
		box-sizing: border-box;
		max-width: 100%;
	}

	/*======== ヘッダー ========*/
	/* 2026.11.08 ヘッダーは2段：1段目 ロゴ＋検索窓、2段目 メニュー・ログアウト・設定 */
	#header {
		min-width: 0;
		height: auto;
		min-height: 50px;
		display: flow-root;
		background-size: auto 50px;
	}
	/* 1段目は ロゴ・検索窓・検索ボタン の中心を y=25px（50pxの真ん中）にそろえる
	   ロゴ画像(97x36)の文字は 9〜24px の位置なので、上に8px空けると中心が25px */
	h1.logo {
		padding: 8px 6px 0 6px;
	}
	h1.logo img {
		display: block;
		height: 36px;
		width: auto;
	}
	#header form {
		display: block;
	}
	.head_left {
		margin-left: 0;
		width: auto;
		height: 50px;
	}
	.head_left ul {
		margin: 9px 0 0 0;
		padding: 0;
	}
	/* 検索窓：高さ32px、文字は上下中央 */
	.head_left ul li input {
		margin: 0 0 0 2px;
		width: calc(100vw - 170px);   /* 2026.11.23 ロゴ(114px幅)に合わせて 153→170。前のロゴは97px幅 */
		min-width: 70px;
		height: 32px;
		padding: 0 8px;
		line-height: normal;
		border-radius: 4px 0 0 4px;
	}
	/* 検索ボタン：検索窓と同じ高さ32pxの正方形、虫めがねはCSSで描く */
	.head_left ul li input.btn_search {
		margin: 0;
		min-width: 0;
		padding: 0;
		width: 32px;
		height: 32px;
		border-left: 1px solid #DDD;
		border-radius: 0 4px 4px 0;
		background: #FFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F4387' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5'/%3E%3C/svg%3E") no-repeat center;
		background-size: 20px 20px;
	}
	/* 2段の画面は背景を単色にして、検索窓とボタンの間の線を消す */
	#header:has(.head_right) {
		background: #2F4387;
	}
	/* 2段目：3つのボタンを横一杯に均等に並べる */
	.head_right {
		float: none;
		clear: both;
		height: 50px;
		transition: height .25s ease, opacity .2s ease;
	}
	/* 2026.11.08 下にスクロールしたら2段目（メニュー・ログアウト・設定）を隠す。上にスクロールで戻す
	   class は js/menu-toggle.js が付け外しする */
	#header.nav-hidden .head_right {
		height: 0;
		opacity: 0;
		overflow: hidden;
		pointer-events: none;
	}
	.head_right ul {
		display: flex;
		width: 100%;
		margin: 0;
		padding: 0;
	}
	.head_right ul li {
		float: none;
		height: 50px;
		line-height: 50px;
		margin: 0;
	}
	/* 「ようこそ! ○○さん」は隠す */
	.head_right > ul > li:first-child {
		display: none;
	}
	.head_right > ul > li:nth-child(2) {
		flex: 1;
	}
	/* 2026.11.08 ボタンは画像を使わず、CSSのアイコン＋文字で表示 */
	.head_right > ul > li > ul > li {
		flex: 1;
		position: relative;
		margin: 0;
		background: #3A4F96;
		border-top: 1px solid rgba(255, 255, 255, 0.15);
		border-left: 1px solid rgba(255, 255, 255, 0.2);
		text-align: center;
	}
	.head_right > ul > li > ul > li:first-child {
		border-left: none;
	}
	.head_right > ul > li > ul > li:active,
	.head_right > ul > li > ul > li:focus-within {
		background: #4A60AA;
	}
	/* ボタン下の文字（タップの邪魔をしないよう pointer-events: none） */
	.head_right > ul > li > ul > li::after {
		position: absolute;
		left: 0;
		right: 0;
		bottom: 5px;
		color: #FFF;
		font-size: 10px;
		line-height: 12px;
		pointer-events: none;
	}
	.head_right > ul > li > ul > li:nth-child(1)::after { content: "メニュー"; }
	.head_right > ul > li > ul > li:nth-child(2)::after { content: "ログアウト"; }
	.head_right > ul > li > ul > li:nth-child(3)::after { content: "設定"; }
	/* 2026.11.08 スマホはログアウトを設定の中へ。ログアウトの場所に「対応履歴」（顧客詳細だけ） */
	.head_right > ul > li > ul > li:nth-child(2) { display: none; }
	.head_right > ul > li > ul > li:nth-child(3) { order: 3; }
	body.page-detail .head_right > ul > li > ul > li.nav_history {
		display: block;
		order: 2;
	}
	.head_right > ul > li > ul > li.nav_history::after { content: "対応履歴"; }
	.head_right .nav_history a.btn_history {
		display: block;
		height: 50px;
		background: no-repeat center 7px / 22px 22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 12a8.5 8.5 0 1 0 2.5-6M3.5 4v4h4'/%3E%3Cpath d='M12 8v4l3 2'/%3E%3C/svg%3E");
	}
	/* 旧画像は隠す */
	ul#settingnav > li > a img {
		display: none !important;
	}
	/* アイコン（白い線のSVG） */
	.head_right ul#settingnav > li > a,
	.head_right ul#settingnav > li > a:hover,
	.head_right ul li input.btn_logout {
		background-repeat: no-repeat;
		background-position: center 7px;
		background-size: 22px 22px;
	}
	/* メニュー：三本線 */
	.head_right > ul > li > ul > li:nth-child(1) ul#settingnav > li > a {
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E");
	}
	/* ログアウト：ドアと矢印 */
	.head_right ul li input.btn_logout {
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 4H5v16h5M14 8l4 4-4 4M18 12H9'/%3E%3C/svg%3E");
	}
	/* 設定：歯車 */
	.head_right > ul > li > ul > li:nth-child(3) ul#settingnav > li > a {
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white'%3E%3Ccircle cx='12' cy='12' r='8' stroke-width='4' stroke-dasharray='3 3.28'/%3E%3Ccircle cx='12' cy='12' r='5.5' stroke-width='2.5'/%3E%3C/svg%3E");
	}
	ul#settingnav {
		display: block;
		width: 100%;
	}
	ul#settingnav > li {
		width: 100%;
		height: 50px;
		border-bottom: none;
		background: none;
	}
	ul#settingnav > li > a,
	ul#settingnav > li > a:hover {
		height: 50px;
		line-height: 50px;
	}
	ul#settingnav > li > a:hover {
		background-color: transparent;
	}
	.head_right ul li input.btn_logout {
		width: 100%;
		background-color: transparent;
	}
	/* メニューの中身は2段目の下に横幅いっぱいで開く */
	ul#settingnav li:hover ul,
	ul#settingnav li:focus-within ul {
		display: block;
		position: fixed;
		top: 100px;
		left: 0;
		right: 0;
		width: 100%;
		margin: 0;
		border-left: none;
	}
	ul#settingnav li ul li {
		width: 100%;
		height: 44px;
		opacity: 1;
		text-align: left;
		border-left: none;
		border-bottom: 1px solid #DDD;
		background: #FFF;
	}
	/* 2026.11.22 s.honma :hover も同じ高さにする（Claude）
	   修正前：カーソルを合わせると basic.css の a:hover（高さ30px・下線）が効いて、文字が上にずれていた */
	ul#settingnav li ul li a,
	ul#settingnav li ul li a:hover {
		width: auto;
		height: 44px;
		line-height: 44px;
		padding-left: 14px;
		font-size: 15px;
		text-decoration: none;
	}
	ul#settingnav li ul li a:hover {
		background: #EEF1FA;
		color: #2E4284;
	}

	/*======== コンテンツ（顧客詳細） ========*/
	#contents {
		min-width: 0;
		position: static;
		padding-top: 50px;
		display: flex;
	}
	/* ヘッダーが2段の画面は100px下げる（ログイン画面は1段のまま） */
	body:has(#header .head_right) #contents {
		padding-top: 100px;
	}
	#contents {
		flex-direction: column;
	}
	/* 顧客情報 → 対応履歴 → 履歴登録 → fileshare の順に縦並び */
	#main {
		order: 1;
		width: 100%;
		min-height: 0;
	}
	#rightside {
		order: 2;
		position: static;
		width: 100%;
		border-left: none;
		margin-bottom: 40px;
	}
	#main h1, #contents h1.all {
		font-size: 16px;
		padding: 0 10px;
		margin: 0;
	}
	#rightside h1 {
		font-size: 16px;
		height: auto;
		padding: 8px 12px;	/* 2026.11.08 左の紺線に文字がくっつかないよう左右にも余白 */
		margin-top: 16px;
	}
	#contents #message {
		width: auto;
		margin: 10px;
		padding: 10px 12px 10px 42px;	/* 2026.11.09 左はiアイコンの分あける */
	}
	#contents #message::before {
		left: 11px;
	}

	/* 顧客情報の表：セルを1列に並べる（顧客詳細・新規顧客登録だけ） */
	.page-detail #main table,
	.page-detail #main table tbody,
	.page-detail #main table tr,
	.page-detail #main table td,
	.page-customer_new #contents table,
	.page-customer_new #contents table tbody,
	.page-customer_new #contents table tr,
	.page-customer_new #contents table td {
		display: block;
		width: 100% !important;
		box-sizing: border-box;
	}
	.page-detail #main table,
	.page-customer_new #contents table {
		table-layout: auto;
		border-left: none;
	}
	.page-detail #main table tr,
	.page-customer_new #contents table tr {
		height: auto !important;
	}
	.page-detail #main table td,
	.page-customer_new #contents table td {
		border-right: none;
		padding: 4px 6px;
	}
	/* 入力欄は横幅いっぱい（名前と敬称、内容と説明は並べたまま） */
	#main .w_90p,
	#main .w_70p,
	#main .w_98p,
	#main .w_95p,
	.page-customer_new #contents table .w_90p,
	.page-customer_new #contents table .w_70p,
	.page-customer_new #contents table .w_98p,
	.page-customer_new #contents table .w_95p {
		width: 100% !important;
	}
	#main input[name="NAME"],
	.page-customer_new #contents input[name="NAME"] { width: 74% !important; }
	#main input[name="SAMA"],
	.page-customer_new #contents input[name="SAMA"] { width: 24% !important; }
	#main .w_45p,
	.page-customer_new #contents table .w_45p { width: 60% !important; }
	#main .w_15p,
	.page-customer_new #contents table .w_15p { width: 36% !important; }
	#main select,
	#main .co_select,
	.page-customer_new #contents table select {
		max-width: 100%;
		height: 40px;   /* 2026.11.08 入力欄と同じ高さ */
		margin: 3px 2px;
	}
	#main select[name="P_MCD"],
	#main select[name="P_LANK"],
	.page-customer_new #contents select[name="P_MCD"],
	.page-customer_new #contents select[name="P_LANK"] {
		width: 100%;
	}
	/* 2026.11.08 高さを40pxにそろえる（枠の色は全画面共通の入力欄の指定を使う） */
	#main .co_inp,
	.page-customer_new #contents .co_inp {
		height: 40px;
		line-height: normal;
	}
	#contents span.flg {
		display: inline-block;
		margin: 4px 14px 4px 0;
	}
	/* TEL・MAIL・MAPボタンを押しやすく（2026.11.08 少し大きく） */
	#main .botton_rink {
		display: inline-block;
		box-sizing: border-box;
		min-width: 76px;
		height: 40px;
		line-height: 38px;
		padding: 0 14px;
		margin: 2px 4px;
		font-size: 14px;
		text-align: center;
		vertical-align: middle;
	}

	/* 2026.11.08 連絡先・契約情報（info）の1件
	   1段目：分類（せまく）＋内容（広く）で横幅いっぱい、高さをそろえる
	   2段目：説明（広く）＋TEL・MAPなどのボタン */
	#main td:has(> input[name^="VAL_"]),
	.page-customer_new #contents td:has(> input[name^="VAL_"]) {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 6px;
		padding-top: 4px;
		padding-bottom: 4px;
	}
	#main td:has(> input[name^="VAL_"]) > select,
	.page-customer_new #contents td:has(> input[name^="VAL_"]) > select {
		flex: 0 0 30%;
		width: 30%;
		max-width: none;
		height: 40px;
		margin: 0;
		box-sizing: border-box;
	}
	#main td:has(> input[name^="VAL_"]) > input[name^="VAL_"],
	.page-customer_new #contents td:has(> input[name^="VAL_"]) > input[name^="VAL_"] {
		flex: 1 0 calc(70% - 6px);   /* 分類30%＋すき間＋内容 でちょうど1段。説明は必ず2段目へ */
		min-width: 0;
		width: auto !important;
		height: 40px;
		line-height: normal;
		margin: 0;
		box-sizing: border-box;
	}
	#main td:has(> input[name^="VAL_"]) > input[name^="DESCRIPTION_"],
	.page-customer_new #contents td:has(> input[name^="VAL_"]) > input[name^="DESCRIPTION_"] {
		flex: 1 1 55%;
		min-width: 0;
		width: auto !important;
		height: 40px;
		line-height: normal;
		margin: 0;
		box-sizing: border-box;
	}
	#main td:has(> input[name^="VAL_"]) > br { display: none; }
	#main td:has(> input[name^="VAL_"]) > .botton_rink { flex: 0 0 auto; margin: 0; }
	#main td:has(> input[name^="VAL_"]) > span { flex: 0 0 auto; margin: 0 4px; }

	/* 2026.11.08 顧客詳細：下にスクロールしたら右下に「更新」ボタン（js/menu-toggle.js が出し入れ） */
	#float_update {
		display: block;
		position: fixed;
		right: 16px;
		bottom: calc(20px + env(safe-area-inset-bottom, 0px));
		z-index: 98;
		min-width: 88px;
		height: 48px;
		padding: 0 22px;
		border: none;
		border-radius: 24px;
		background: #2F4387;
		color: #FFF;
		font-size: 16px;
		font-weight: 500;
		letter-spacing: .1em;
		box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
		opacity: 0;
		transform: translateY(16px);
		pointer-events: none;
		transition: opacity .2s ease, transform .2s ease;
	}
	#float_update.show {
		opacity: 1;
		transform: none;
		pointer-events: auto;
	}
	#float_update:active {
		background: #4A60AA;
	}

	/* ファイルのドラッグ&ドロップ欄（スマホではファイル選択だけ） */
	#com_file_drag_drop_area,
	#team_file_drag_drop_area,
	#detail_file_drag_drop_area,
	#file_drag_drop_area {
		border-width: 1px !important;
		font-size: 12px;
	}
	#main .box_in .con {
		height: auto;
		max-height: 260px;
	}

	/* ボタン：押しやすい大きさ */
	#contents .button_area_all {
		padding: 10px 6px 0 6px;
	}
	/* inputボタンとリンク(a)ボタンの高さ・文字位置・書体をそろえる */
	#contents input.botton1,
	#contents input.botton2,
	#contents .button_area_all a,
	#contents a.botton1 {
		box-sizing: border-box;
		height: 40px;
		padding: 0 12px;
		line-height: 38px;
		font-size: 15px;
		font-family: inherit;
		vertical-align: middle;
		margin-bottom: 8px;
	}

	/*======== 対応履歴 ========*/
	.rightsidewrap {
		height: auto;
		max-height: 70vh;
		overflow: auto;
	}
	.rightsidewrap_inside {
		height: auto;
		margin-bottom: 0 !important;
	}
	#rightside h2 {
		font-size: 14px;
	}
	#rightside p {
		font-size: 15px;
		line-height: 1.6;
		word-break: break-all;
	}
	#rightside h2 input[type="checkbox"] {
		width: 20px;
		height: 20px;
		vertical-align: middle;
	}

	/*======== 対応履歴登録 ========*/
	#commentbox .fs_90 {
		padding: 6px;
	}
	#commentbox select {
		height: 2.2em;
		margin: 3px 2px;
		max-width: 100%;
	}
	#commentbox select[name="datail_charge"] {
		width: 100%;
	}
	#commentbox textarea {
		width: 100% !important;
		border: 1px solid #CCC;
	}
	#commentbox label {
		display: inline-block;
		padding: 6px 4px;
	}
	ul#datailnav li,
	ul#datailnav li a {
		height: 36px;
		line-height: 36px;
	}
	ul#datailnav li ul,
	ul#datailnav li ul li {
		width: 100%;
	}
	ul#datailnav li ul li a {
		width: auto;
	}
	ul#datailnav li:hover ul,
	ul#datailnav li:focus-within ul {
		width: 100%;
		top: 0;
	}

	/*======== トップ画面（index.html  body class="page-top"） ========*/
	/* お知らせ → 社員別LANK → フラグ別LANK → 取引額LANK・紹介件数・社内指標 の順 */
	.page-top #news {
		height: auto;
		max-height: 260px;
		padding: 6px 10px;
	}
	.page-top #news .list {
		display: flex;
		gap: 8px;
		padding: 6px 0;
		border-bottom: 1px solid #EEE;
		font-size: 15px; /* 2026.11.14 s.honma 14px → 15px（Claude） */
		line-height: 1.5;
	}
	.page-top #news .list .day,
	.page-top #news .list .title {
		display: block;
		padding: 0;
	}
	.page-top #news .list .day {
		flex: 0 0 auto;
		width: auto;
		color: #666;
	}
	.page-top #news .list .day span {
		padding: 0;
	}
	/* LANK表：7列を画面幅に収める（入りきらない時は表だけ横スクロール） */
	.page-top #main .box_in .con {
		height: auto;
		max-height: none;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	.page-top #main .box_in .con table {
		min-width: 340px;
		table-layout: fixed;
	}
	.page-top #main .list th {
		font-size: 12px; /* 2026.11.14 11px → 12px */
		line-height: 1.3;
		padding: 6px 1px;
		font-weight: normal;
		word-break: break-all;
	}
	.page-top #main .list td {
		font-size: 15px; /* 2026.11.14 14px → 15px */
		padding: 10px 1px;
	}
	/* 1列目（担当者・フラグ名）は広めに */
	.page-top #main .list th:first-child,
	.page-top #main .list td:first-child {
		width: 22%;
		font-size: 13px; /* 2026.11.14 12px → 13px */
		word-break: break-all;
	}
	/* 右側のランキングは縦1列に */
	.page-top #rightside {
		margin-top: 10px;
	}
	.page-top #ranking .box_in_50p {
		float: none;
		width: 100%;
		box-sizing: border-box;
		border-left: none;
	}
	.page-top #ranking .con {
		height: auto;
		max-height: 300px;
	}
	.page-top #ranking .con .list {
		display: flex;
		align-items: center;
		padding: 8px 10px;
		border-bottom: 1px solid #EEE;
		font-size: 15px; /* 2026.11.14 14px → 15px */
	}
	.page-top #ranking .con .list > div {
		float: none;
		padding: 0;
		margin: 0;
	}
	.page-top #ranking .con .list .no {
		flex: 0 0 24px;
		width: 24px;
	}
	.page-top #ranking .con .list .name,
	.page-top #ranking .con .list .m_name,
	.page-top #ranking .con .list .lank {
		flex: 1;
		width: auto;
		padding-right: 8px;
	}
	.page-top #ranking .con .list .num {
		flex: 0 0 auto;
		width: auto;
		text-align: right;
	}
	.page-top #rightside .h_170 {
		height: auto;
	}

	/*======== 一覧画面（表をカード表示に） ========
	  顧客一覧 customer / 満期管理 customer_info / 事故管理 customer_accident /
	  お客様の声 customers_voice / 顧客ファイルシェア filelist
	  ※ALL/UNIT/CHARGE で隠す行は style="display:none" が優先されるので !important は付けない */
	.page-customer_info #contents table.list,
	.page-customer #contents table.list,
	.page-customer_accident #contents table.list,
	.page-customers_voice #contents table.list,
	.page-filelist #contents table.list,
	.page-customer_info #contents table.list tbody,
	.page-customer #contents table.list tbody,
	.page-customer_accident #contents table.list tbody,
	.page-customers_voice #contents table.list tbody,
	.page-filelist #contents table.list tbody {
		display: block;
		width: auto;
		border: none;
	}
	/* 見出し行は隠す */
	.page-customer_info #contents table.list tr:first-child,
	.page-customer #contents table.list tr:first-child,
	.page-customer_accident #contents table.list tr:first-child,
	.page-customers_voice #contents table.list tr:first-child,
	.page-filelist #contents table.list tr:first-child {
		display: none;
	}
	/* 1件＝1枚のカード */
	.page-customer_info #contents table.list tr,
	.page-customer #contents table.list tr,
	.page-customer_accident #contents table.list tr,
	.page-customers_voice #contents table.list tr,
	.page-filelist #contents table.list tr {
		display: grid;
		gap: 2px 10px;
		margin: 8px;
		padding: 10px 12px;
		height: auto;
		background: #FFF;
		border: 1px solid #CCC;
		border-radius: 6px;
	}
	.page-customer_info #contents table.list td,
	.page-customer #contents table.list td,
	.page-customer_accident #contents table.list td,
	.page-customers_voice #contents table.list td,
	.page-filelist #contents table.list td {
		display: block;
		width: auto !important;
		min-width: 0;
		padding: 0;
		border: none;
		text-align: left;
		font-size: 16px; /* 2026.11.14 s.honma 文字が小さいので 14px → 16px（Claude） */
		line-height: 1.5;
		word-break: break-all;
	}
	.page-customer_info #contents table.list td p,
	.page-customer #contents table.list td p,
	.page-customer_accident #contents table.list td p,
	.page-customers_voice #contents table.list td p {
		margin: 0;
	}

	/* 満期管理・事故管理：NO｜会社名・名前｜LANK、その下に満期情報、基本情報 */
	.page-customer_info #contents table.list tr,
	.page-customer #contents table.list tr,
	.page-customer_accident #contents table.list tr {
		grid-template-columns: auto 1fr auto;
		grid-template-areas:
			"no co lk"
			"no nm lk"
			"in in in"
			"bs bs bs";
	}
	.page-customer_info #contents table.list td:nth-child(1),
	.page-customer #contents table.list td:nth-child(1),
	.page-customer_accident #contents table.list td:nth-child(1) { grid-area: no; color: #888; font-size: 13px; } /* 2026.11.14 12px → 13px */
	.page-customer_info #contents table.list td:nth-child(2),
	.page-customer #contents table.list td:nth-child(2),
	.page-customer_accident #contents table.list td:nth-child(2) { grid-area: co; font-weight: bold; font-size: 17px; } /* 2026.11.14 会社名を少し大きく */
	.page-customer_info #contents table.list td:nth-child(3),
	.page-customer #contents table.list td:nth-child(3),
	.page-customer_accident #contents table.list td:nth-child(3) { grid-area: nm; }
	.page-customer_info #contents table.list td:nth-child(4),
	.page-customer #contents table.list td:nth-child(4),
	.page-customer_accident #contents table.list td:nth-child(4) {
		grid-area: lk;
		align-self: start;
		padding: 0 8px;
		border-radius: 10px;
		background: #E6EAF7;
		color: #2E4284;
		font-size: 13px; /* 2026.11.14 12px → 13px */
	}
	.page-customer_info #contents table.list td:nth-child(5),
	.page-customer #contents table.list td:nth-child(5),
	.page-customer_accident #contents table.list td:nth-child(5) {
		grid-area: in;
		margin-top: 6px;
		padding-top: 6px;
		border-top: 1px dashed #DDD;
	}
	/* 2026.11.14 s.honma 一覧から電話をかけるので、電話番号・メールを押しやすいボタンにする（Claude） */
	.page-customer_info #contents table.list td:nth-child(5) a[href^="tel:"],
	.page-customer #contents table.list td:nth-child(5) a[href^="tel:"],
	.page-customer_accident #contents table.list td:nth-child(5) a[href^="tel:"],
	.page-customer_info #contents table.list td:nth-child(5) a[href^="mailto:"],
	.page-customer #contents table.list td:nth-child(5) a[href^="mailto:"],
	.page-customer_accident #contents table.list td:nth-child(5) a[href^="mailto:"] {
		display: inline-block;
		margin: 3px 0;
		padding: 7px 14px;
		border: 1px solid #C9D2EE;
		border-radius: 20px;
		background: #F2F5FC;
		line-height: 1.4;
		text-decoration: none;
	}
	.page-customer_info #contents table.list td:nth-child(5) a[href^="tel:"]::before,
	.page-customer #contents table.list td:nth-child(5) a[href^="tel:"]::before,
	.page-customer_accident #contents table.list td:nth-child(5) a[href^="tel:"]::before {
		content: "\260E\FE0E  ";
	}
	.page-customer_info #contents table.list td:nth-child(6),
	.page-customer #contents table.list td:nth-child(6),
	.page-customer_accident #contents table.list td:nth-child(6) {
		grid-area: bs;
		margin-top: 4px;
		color: #666;
		font-size: 14px; /* 2026.11.14 基本情報 12px → 14px */
	}
	/* 下の検索欄（満期日・契約始期日・検索文字）は折り返す */
	/* 入力欄の間の全角スペースや「～」は font-size:0 で消して2列にそろえる */
	.page-customer_info #contents .button_area_all,
	.page-customer #contents .button_area_all,
	.page-customer_accident #contents .button_area_all {
		display: flex !important;
		flex-wrap: wrap;
		justify-content: space-between;
		gap: 8px 0;
		padding: 10px 8px 20px 8px;
		font-size: 0;
	}
	.page-customer_info #contents .button_area_all input,
	.page-customer #contents .button_area_all input,
	.page-customer_accident #contents .button_area_all input {
		float: none;
		width: 49%;
		height: 40px;
		margin: 0;
	}
	.page-customer_info #contents .button_area_all input[type="text"],
	.page-customer #contents .button_area_all input[type="text"],
	.page-customer_accident #contents .button_area_all input[type="text"] {
		padding: 0 8px;
		border: 1px solid #BBB;
		border-radius: 4px;
	}

	/* お客様の声：会社名・名前、その下に 受付日時｜受付者、内容 */
	.page-customers_voice #contents table.list tr {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"nm nm"
			"dt by"
			"tx tx";
	}
	/* 2026.11.14 s.honma 受付日時・受付者 12px → 14px（Claude） */
	.page-customers_voice #contents table.list td:nth-child(1) { grid-area: dt; color: #666; font-size: 14px; }
	.page-customers_voice #contents table.list td:nth-child(1) br { display: none; }
	.page-customers_voice #contents table.list td:nth-child(2) { grid-area: nm; font-weight: bold; }
	.page-customers_voice #contents table.list td:nth-child(3) { grid-area: by; color: #666; font-size: 14px; text-align: right; }
	.page-customers_voice #contents table.list td:nth-child(4) {
		grid-area: tx;
		margin-top: 6px;
		padding-top: 6px;
		border-top: 1px dashed #DDD;
	}

	/* 顧客ファイルシェア：チェック｜会社名・名前｜NO、PASS、ファイル、メッセージ */
	/* 2026.11.21 s.honma 担当者・地域・最終更新日の列を追加（Claude）
	   列：1チェック 2NO 3名前 4担当者 5地域 6最終更新日 7PASS 8ファイル 9メッセージ */
	.page-filelist #contents table.list tr {
		grid-template-columns: auto auto auto 1fr auto;
		column-gap: 10px;
		grid-template-areas:
			"ck nm nm nm no"
			"ck mc ar dy dy"
			"ck ps ps ps ps"
			"fl fl fl fl fl"
			"ms ms ms ms ms";
	}
	.page-filelist #contents table.list td:nth-child(1) { grid-area: ck; }
	.page-filelist #contents table.list td:nth-child(1) input {
		width: 22px;
		height: 22px;
		margin: 0;
	}
	/* 2026.11.14 s.honma 文字が小さいので NO 12→13px、PASS 12→14px、ファイル 13→15px、メッセージ 12→14px（Claude） */
	.page-filelist #contents table.list td:nth-child(2) { grid-area: no; font-size: 13px; }
	.page-filelist #contents table.list td:nth-child(3) { grid-area: nm; font-weight: bold; }
	.page-filelist #contents table.list td:nth-child(4) { grid-area: mc; color: #666; font-size: 14px; }
	.page-filelist #contents table.list td:nth-child(5) { grid-area: ar; color: #666; font-size: 14px; }
	.page-filelist #contents table.list td:nth-child(6) { grid-area: dy; color: #666; font-size: 14px; }
	.page-filelist #contents table.list td:nth-child(6)::before { content: "更新 "; }
	.page-filelist #contents table.list td:nth-child(7) { grid-area: ps; color: #666; font-size: 14px; }
	.page-filelist #contents table.list td:nth-child(7)::before { content: "PASS: "; }
	.page-filelist #contents table.list td:nth-child(8) {
		grid-area: fl;
		margin-top: 6px;
		padding-top: 6px;
		border-top: 1px dashed #DDD;
		font-size: 15px;
	}
	.page-filelist #contents table.list td:nth-child(9) {
		grid-area: ms;
		margin-top: 4px;
		color: #666;
		font-size: 14px;
	}
	.page-filelist #contents table.list td:nth-child(9):empty { display: none; }
	/* メッセージに表などが入っていて幅が広い時は、この欄だけ横スクロール */
	.page-filelist #contents table.list td:nth-child(9) { overflow-x: auto; }

	/*======== 2026.11.14 s.honma 一覧のカード表示を追加（Claude） ========
	  メンバー member / 会社 company / おぢばがえり保険 管理 dansan_management
	  ※データ渡し customer_de-tawatashi は顧客一覧と同じ列なので body に page-customer を付けて共用 */
	/* メンバー・会社は古い作りで左メニューがあるので、スマホでは隠す（上のメニューを使う） */
	.page-member #leftside,
	.page-company #leftside {
		display: none;
	}
	.page-member #contents table.list,
	.page-company #contents table.list,
	.page-dansan #contents table.list,
	.page-member #contents table.list tbody,
	.page-company #contents table.list tbody,
	.page-dansan #contents table.list tbody {
		display: block;
		width: auto;
		border: none;
	}
	.page-member #contents table.list tr:first-child,
	.page-company #contents table.list tr:first-child,
	.page-dansan #contents table.list tr:first-child {
		display: none;
	}
	.page-member #contents table.list tr,
	.page-company #contents table.list tr,
	.page-dansan #contents table.list tr {
		display: grid;
		gap: 2px 10px;
		margin: 8px;
		padding: 10px 12px;
		height: auto;
		background: #FFF;
		border: 1px solid #CCC;
		border-radius: 6px;
	}
	.page-member #contents table.list td,
	.page-company #contents table.list td,
	.page-dansan #contents table.list td {
		display: block;
		width: auto !important;
		min-width: 0;
		padding: 0;
		border: none;
		text-align: left;
		font-size: 16px;
		line-height: 1.5;
		word-break: break-all;
	}
	.page-member #contents table.list td p { margin: 0; }

	/* メンバー・会社：NO｜会社名・名前、電話、メール、住所、プロフィール（業種） */
	.page-member #contents table.list tr,
	.page-company #contents table.list tr {
		grid-template-columns: auto 1fr;
		grid-template-areas:
			"no co"
			"no nm"
			"tl tl"
			"ml ml"
			"ad ad"
			"pr pr";
	}
	.page-member #contents table.list td:nth-child(1),
	.page-company #contents table.list td:nth-child(1) { grid-area: no; color: #888; font-size: 13px; }
	.page-member #contents table.list td:nth-child(2),
	.page-company #contents table.list td:nth-child(2) { grid-area: co; font-weight: bold; font-size: 17px; }
	.page-member #contents table.list td:nth-child(3),
	.page-company #contents table.list td:nth-child(3) { grid-area: nm; }
	.page-member #contents table.list td:nth-child(4),
	.page-company #contents table.list td:nth-child(4) {
		grid-area: tl;
		margin-top: 6px;
		padding-top: 6px;
		border-top: 1px dashed #DDD;
	}
	.page-member #contents table.list td:nth-child(5),
	.page-company #contents table.list td:nth-child(5) { grid-area: ml; }
	.page-member #contents table.list td:nth-child(6),
	.page-company #contents table.list td:nth-child(6) { grid-area: ad; margin-top: 4px; }
	.page-member #contents table.list td:nth-child(7),
	.page-company #contents table.list td:nth-child(7) { grid-area: pr; margin-top: 4px; color: #666; font-size: 14px; }
	.page-member #contents table.list td:empty,
	.page-company #contents table.list td:empty { display: none; }
	/* 電話番号・メールは押しやすいボタン（顧客一覧と同じ） */
	.page-member #contents table.list td a[href^="tel:"],
	.page-company #contents table.list td a[href^="tel:"],
	.page-member #contents table.list td a[href^="mailto:"],
	.page-company #contents table.list td a[href^="mailto:"] {
		display: inline-block;
		margin: 3px 0;
		padding: 7px 14px;
		border: 1px solid #C9D2EE;
		border-radius: 20px;
		background: #F2F5FC;
		line-height: 1.4;
		text-decoration: none;
	}
	.page-member #contents table.list td a[href^="tel:"]::before,
	.page-company #contents table.list td a[href^="tel:"]::before {
		content: "\260E\FE0E  ";
	}

	/* おぢばがえり保険 管理：NO｜団体名、各項目は「見出し：値」で並べる、最後に 表示・ダウンロード・削除 */
	.page-dansan #contents table.list td:nth-child(1)  { grid-area: no; color: #888; font-size: 13px; }
	.page-dansan #contents table.list td:nth-child(7)  { grid-area: gr; font-weight: bold; font-size: 17px; margin-bottom: 4px; }
	.page-dansan #contents table.list td:nth-child(2)  { grid-area: rg; }
	.page-dansan #contents table.list td:nth-child(3)  { grid-area: fr; }
	.page-dansan #contents table.list td:nth-child(4)  { grid-area: to; }
	.page-dansan #contents table.list td:nth-child(6)  { grid-area: fe; }
	.page-dansan #contents table.list td:nth-child(5)  { grid-area: ar; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
	.page-dansan #contents table.list td:nth-child(2)::before { content: "登録日："; color: #888; font-size: 14px; }
	.page-dansan #contents table.list td:nth-child(3)::before { content: "出発日："; color: #888; font-size: 14px; }
	.page-dansan #contents table.list td:nth-child(4)::before { content: "帰宅日："; color: #888; font-size: 14px; }
	.page-dansan #contents table.list td:nth-child(6)::before { content: "保険料："; color: #888; font-size: 14px; }
	.page-dansan #contents table.list td:nth-child(5)::before { content: "着金日："; color: #888; font-size: 14px; }
	.page-dansan #contents table.list td:nth-child(5) input[type="date"] {
		height: 38px;
		padding: 0 6px;
		font-size: 16px;
	}
	.page-dansan #contents table.list td:nth-child(5) input[type="submit"],
	.page-dansan #contents table.list td:nth-child(10) input[type="submit"] {
		height: 38px;
		margin: 0;
		padding: 0 14px;
		font-size: 15px;
	}
	/* 表示・ダウンロード・削除は1行に並べる */
	.page-dansan #contents table.list td:nth-child(8),
	.page-dansan #contents table.list td:nth-child(9),
	.page-dansan #contents table.list td:nth-child(10) {
		margin-top: 8px;
	}
	.page-dansan #contents table.list td { text-align: left !important; } /* te_c（中央寄せ）を打ち消す */
	.page-dansan #contents table.list td:nth-child(1) { text-align: right !important; } /* NO は右上 */
	.page-dansan #contents table.list tr {
		grid-template-areas:
			"gr gr gr no"
			"rg rg rg rg"
			"fr fr fr fr"
			"to to to to"
			"fe fe fe fe"
			"ar ar ar ar"
			"b1 b2 b3 .";
		grid-template-columns: auto auto auto 1fr;
	}
	.page-dansan #contents table.list td:nth-child(8)  { grid-area: b1; }
	.page-dansan #contents table.list td:nth-child(9)  { grid-area: b2; }
	.page-dansan #contents table.list td:nth-child(10) { grid-area: b3; }
	.page-dansan #contents table.list td:nth-child(8) a,
	.page-dansan #contents table.list td:nth-child(9) a {
		display: inline-block;
		padding: 8px 12px;
		border: 1px solid #C9D2EE;
		border-radius: 20px;
		background: #F2F5FC;
		text-decoration: none;
		font-size: 15px;
	}
	/* 合計・絞込欄 */
	.page-dansan #contents .button_area_all {
		padding: 10px 8px 20px 8px;
		font-size: 15px;
	}
	.page-dansan #contents .button_area_all input[type="date"] {
		width: 44%;
		height: 38px;
		margin: 4px 0;
		font-size: 16px;
	}
	.page-dansan #contents .button_area_all input[type="submit"] {
		display: block;
		width: 100%;
		height: 42px;
		margin: 8px 0 0 0;
	}
	.page-dansan #contents p.big { padding: 0 8px; }

	/* パスワード変更（change_pass.html）はログイン画面と同じ形 */
	.page-change_pass #login-in input[type="password"] {
		width: 100%;
		height: 44px;
		padding: 0 10px;
		font-size: 16px !important;
		border: 1px solid #BBB;
		border-radius: 4px;
		box-sizing: border-box;
	}

	/*======== ログイン（login.html） ========*/
	#login,
	#login-in {
		float: none;
		width: auto;
		height: auto;
		margin: 0;
		padding: 0 16px 30px 16px;
	}
	#login-in ul,
	#login-in li {
		float: none;
		display: block;
		width: auto;
		margin: 0;
		padding: 0;
		text-align: left;
	}
	#login-in ul {
		margin-top: 16px;
	}
	/* 項目名は入力欄の上に */
	#login-in li.w_120 {
		line-height: 1.6;
		margin-bottom: 4px;
	}
	#login-in input[name="MAIL"],
	#login-in input[name="PASS"] {
		width: 100%;
		height: 44px;
		padding: 0 10px;
		font-size: 16px !important;
		border: 1px solid #BBB;
		border-radius: 4px;
		box-sizing: border-box;
	}
	#login-in input[type="checkbox"] {
		width: 20px;
		height: 20px;
		vertical-align: middle;
	}
	#login-in li:has(#check) {
		display: flex;
		align-items: flex-start;
		gap: 8px;
	}
	#login-in label {
		line-height: 1.6;
	}
	/* login・resetは横に並べて押しやすく */
	#login-in ul:has(input[type="submit"]) {
		display: flex;
		gap: 10px;
	}
	#login-in ul:has(input[type="submit"]) li {
		flex: 1;
	}
	#login-in input.botton1 {
		float: none;
		width: 100%;
		height: 44px;
		margin: 0;
		font-size: 16px;
	}
	#login-in a {
		display: inline-block;
		padding: 8px 0;
	}

	/*======== fileshare ========*/
	#rightside #SHAREFILE textarea {
		width: 100% !important;
		box-sizing: border-box;
	}
	#rightside a {
		word-break: break-all;
	}
}

/*
*******************************
2026.11.08 s.honma add PC画面（769px以上）もスマホと同じ見た目にする
ヘッダーは1段（56px）：ロゴ｜検索窓｜（右）ようこそ｜メニュー・ログアウト・設定
*******************************
*/
@media screen and (min-width: 769px) {

	/*======== ヘッダー ========*/
	/* ヘッダーのある画面は単色の紺（下のグレーの線なし） */
	#header:has(.head_right) {
		background: #2F4387;
	}
	/* ロゴ画像(97x36)の文字（9〜24px）の中心を、ヘッダー56pxの真ん中に合わせる */
	h1.logo {
		padding: 11px 6px 0 12px;
	}
	h1.logo img {
		display: block;
		height: 36px;
		width: auto;
	}

	/* 検索窓＋検索ボタン（高さ32px、ヘッダーの真ん中） */
	.head_left {
		margin-left: 28px;
		width: auto;
	}
	.head_left ul {
		margin: 12px 0 0 0;
		padding: 0;
	}
	.head_left ul li input {
		box-sizing: border-box;
		margin: 0;
		width: 320px;
		height: 32px;
		padding: 0 10px;
		border: 0;
		border-radius: 4px 0 0 4px;
		font-size: 14px;
		line-height: normal;
	}
	.head_left ul li input.btn_search {
		margin: 0;
		padding: 0;
		width: 32px;
		height: 32px;
		border: 0;
		border-left: 1px solid #DDD;
		border-radius: 0 4px 4px 0;
		background: #FFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F4387' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5'/%3E%3C/svg%3E") no-repeat center;
		background-size: 20px 20px;
		cursor: pointer;
	}
	.head_left ul li input.btn_search:hover {
		background-color: #EEF1FA;
	}

	/* 右側：ようこそ｜3つのボタン */
	.head_right ul {
		margin: 0;
		padding: 0;
	}
	.head_right > ul > li {
		height: 56px;
		line-height: 56px;
		margin-right: 0;
	}
	.head_right > ul > li:first-child {
		margin-right: 16px;
		color: #E6EAF7;
		font-size: 13px;
	}
	.head_right > ul > li > ul {
		display: flex;
	}
	/* ボタン1つ分（画像を使わず、白い線のアイコン＋文字） */
	.head_right > ul > li > ul > li {
		float: none;
		position: relative;
		width: 72px;
		height: 56px;
		line-height: 56px;
		margin: 0;
		background: #3A4F96;
		border-left: 1px solid rgba(255, 255, 255, 0.2);
		text-align: center;
	}
	.head_right > ul > li > ul > li:hover,
	.head_right > ul > li > ul > li:focus-within {
		background: #4A60AA;
	}
	.head_right > ul > li > ul > li::after {
		position: absolute;
		left: 0;
		right: 0;
		bottom: 7px;
		color: #FFF;
		font-size: 10px;
		line-height: 12px;
		pointer-events: none;
	}
	.head_right > ul > li > ul > li:nth-child(1)::after { content: "メニュー"; }
	.head_right > ul > li > ul > li:nth-child(2)::after { content: "ログアウト"; }
	.head_right > ul > li > ul > li:nth-child(3)::after { content: "設定"; }
	/* 旧画像は隠す */
	ul#settingnav > li > a img {
		display: none !important;
	}
	.head_right ul#settingnav {
		display: block;
		width: 100%;
	}
	.head_right ul#settingnav > li {
		float: none;
		width: 100%;
		height: 56px;
		margin: 0;
		border-bottom: none;
		background: none;
	}
	/* アイコン */
	.head_right ul#settingnav > li > a,
	.head_right ul#settingnav > li > a:hover,
	.head_right ul li input.btn_logout {
		display: block;
		width: 100%;
		height: 56px;
		line-height: 56px;
		background-color: transparent;
		background-repeat: no-repeat;
		background-position: center 9px;
		background-size: 22px 22px;
	}
	.head_right > ul > li > ul > li:nth-child(1) ul#settingnav > li > a {
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E");
	}
	.head_right ul li input.btn_logout {
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 4H5v16h5M14 8l4 4-4 4M18 12H9'/%3E%3C/svg%3E");
	}
	.head_right > ul > li > ul > li:nth-child(3) ul#settingnav > li > a {
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white'%3E%3Ccircle cx='12' cy='12' r='8' stroke-width='4' stroke-dasharray='3 3.28'/%3E%3Ccircle cx='12' cy='12' r='5.5' stroke-width='2.5'/%3E%3C/svg%3E");
	}

	/* メニューの中身：ボタンの真下に、白いパネルで開く */
	ul#settingnav li:hover ul,
	ul#settingnav li:focus-within ul {
		display: block;
		position: absolute;
		top: 56px;
		left: auto;
		right: 0;
		width: 260px;
		margin: 0;
		padding: 6px 0;
		border: none;
		border-radius: 0 0 8px 8px;
		background: #FFF;
		box-shadow: 0 8px 20px rgba(20, 30, 70, 0.22);
	}
	ul#settingnav li ul li {
		float: none;
		width: auto;
		height: 40px;
		line-height: 40px;
		margin: 0;
		opacity: 1;
		background: #FFF;
		border: none;
		text-align: left;
	}
	ul#settingnav li ul li a,
	ul#settingnav li ul li a:hover {
		display: block;
		width: auto;
		height: 40px;
		line-height: 40px;
		padding: 0 18px;
		color: #2E3A60;
		font-size: 14px;
		text-decoration: none;
	}
	ul#settingnav li ul li a:hover {
		background: #EEF1FA;
		color: #2E4284;
	}

	/*======== ボタン：inputボタンとリンク(a)ボタンの高さ・文字位置・書体をそろえる ========*/
	#contents input.botton1,
	#contents input.botton2,
	#contents .button_area_all a,
	#contents a.botton1 {
		box-sizing: border-box;
		height: 32px;
		padding: 0 14px;
		line-height: 30px;
		font-size: 13px;
		font-family: inherit;
		vertical-align: middle;
		cursor: pointer;
	}
}

/*
*******************************
2026.11.08 s.honma デザイン刷新：画面ごと（PC・スマホ共通）
*******************************
*/
/* 背景を薄いグレーにして、内容を白いカードに */
body.page-detail, body.page-customer_new, body.page-top, body.page-login,
body.page-customer, body.page-customer_info, body.page-customer_accident,
body.page-customers_voice, body.page-filelist {
	background: #F4F6FA;
}
/* ログイン画面のヘッダーも単色の紺（下のグレーの線なし） */
.page-login #header {
	background: #2F4387;
}
/* 内容が body の外まで伸びる画面でも、下まで同じ背景にする */
html:has(> body.page-detail), html:has(> body.page-customer_new), html:has(> body.page-top), html:has(> body.page-login),
html:has(> body.page-customer), html:has(> body.page-customer_info), html:has(> body.page-customer_accident),
html:has(> body.page-customers_voice), html:has(> body.page-filelist) {
	background: #F4F6FA;
}

/*---- 一覧（顧客一覧・満期管理など）の表：見出し行と、マウスを乗せた行 ----*/
#contents table.list {
	border-collapse: collapse;
	background: #FFF;
}
#contents table.list th {
	background: #EEF1FA;
	color: #1F2A4D;
	font-weight: 500;
	border-color: #E3E7F0;
}
#contents table.list td {
	border-color: #E3E7F0;
}
#contents table.list tr:hover td {
	background: #F7F9FD;
}

/*---- 顧客詳細・新規登録：表の枠線をやめる ----*/
.page-detail #main table, .page-customer_new #contents table {
	border: none;
}
.page-detail #main table td, .page-customer_new #contents table td {
	border: none;
	padding: 3px 6px;
}

/* 対応履歴の本文 */
#rightside .rightsidewrap_inside p {
	color: #26304D;
	line-height: 1.7;
}
.rightsidewrap {
	border-bottom: none;
}


/*======== PC（769px以上） ========*/
@media screen and (min-width: 769px) {

	/*---- 顧客詳細：左＝顧客情報、右＝対応履歴 を白いカードに ----*/
	.page-detail #main {
		box-sizing: border-box;
		width: calc(70% - 18px);
		margin: 12px 0 16px 12px;
		min-height: 0;
		padding-bottom: 12px;
		background: #FFF;
		border: 1px solid #E3E7F0;
		border-radius: 10px;
		overflow: hidden;
	}
	.page-detail #main h1 {
		margin-top: 0;
	}
	.page-detail #rightside {
		box-sizing: border-box;
		top: 68px;
		right: 12px;
		width: calc(30% - 18px);
		background: #FFF;
		border: 1px solid #E3E7F0;
		border-radius: 10px;
		overflow: hidden;
		padding-bottom: 12px;
	}
	.page-detail #rightside h1 {
		margin-top: 0;
	}
	.page-detail #rightside h1 ~ h1 {
		margin-top: 12px;
		border-top: 1px solid #E3E7F0;
	}

	/*---- 新規登録・一覧画面：表を白いカードに ----*/
	.page-customer_new #contents > table,
	.page-customer #contents table.list,
	.page-customer_info #contents table.list,
	.page-customer_accident #contents table.list,
	.page-customers_voice #contents table.list,
	.page-filelist #contents table.list {
		box-sizing: border-box;
		width: calc(100% - 24px);
		margin: 0 12px;
		border: 1px solid #E3E7F0;
	}
	.page-customer_new #contents h1.all,
	.page-customer #contents h1.all,
	.page-customer_info #contents h1.all,
	.page-customer_accident #contents h1.all,
	.page-customers_voice #contents h1.all,
	.page-filelist #contents h1.all {
		margin: 12px 12px 8px;
		border: 1px solid #E3E7F0;
		border-left: 4px solid #2F4387;
		border-radius: 0 8px 8px 0;
	}

	/* 会社名・名前の列が細くなりすぎないようにする */
	.page-customer #contents table.list td:nth-child(2),
	.page-customer_info #contents table.list td:nth-child(2),
	.page-customer_accident #contents table.list td:nth-child(2) {
		min-width: 160px;
	}
	.page-customer #contents table.list td:nth-child(3),
	.page-customer_info #contents table.list td:nth-child(3),
	.page-customer_accident #contents table.list td:nth-child(3) {
		min-width: 90px;
	}

	/*---- トップ（ダッシュボード）：各ブロックを白いカードに、数字を大きく ----*/
	.page-top #main {
		box-sizing: border-box;
		width: calc(70% - 18px);
		margin-left: 12px;
		min-height: 0;
	}
	.page-top #main .box_in {
		box-sizing: border-box;
		margin: 12px 0;
		background: #FFF;
		border: 1px solid #E3E7F0;
		border-radius: 10px;
		overflow: hidden;
	}
	.page-top #main .box_in h1 {
		margin: 0;
	}
	.page-top #news .list {
		display: flex;
		gap: 12px;
		padding: 6px 4px;
		border-bottom: 1px solid #F0F2F7;
	}
	.page-top #news .list .day {
		flex: 0 0 auto;
		color: #6B7390;
		padding: 0;
	}
	.page-top #news .list .title {
		padding: 0;
	}
	.page-top #main .box_in .con {
		height: auto;
		max-height: 420px;
	}
	.page-top #main .list table {
		border: none;
	}
	.page-top #main .list th {
		background: #EEF1FA;
		color: #1F2A4D;
		font-weight: 500;
		font-size: 12px;
		border-color: #E3E7F0;
	}
	.page-top #main .list td {
		font-size: 15px;
		font-weight: 500;
		border-color: #F0F2F7;
	}
	.page-top #main .list tr:hover td {
		background: #F7F9FD;
	}
	.page-top #main .list td:first-child {
		font-size: 13px;
		font-weight: 400;
	}
	.page-top #rightside {
		box-sizing: border-box;
		top: 68px;
		right: 12px;
		width: calc(30% - 18px);
		border-left: none;
	}
	.page-top #ranking {
		background: transparent;
	}
	.page-top #ranking .box_in_50p,
	.page-top #ranking > .con {
		float: none;
		box-sizing: border-box;
		width: 100%;
		margin: 0 0 12px;
		background: #FFF;
		border: 1px solid #E3E7F0;
		border-radius: 10px;
		overflow: hidden;
	}
	.page-top #ranking > h1 {
		margin: 0;
		border: 1px solid #E3E7F0;
		border-left: 4px solid #2F4387;
		border-bottom: none;
		border-radius: 0 10px 0 0;
	}
	.page-top #ranking > .con {
		border-radius: 0 0 10px 10px;
		height: auto;
	}
	.page-top #ranking .box_in_50p h1 {
		margin: 0;
	}
	.page-top #ranking .con {
		height: auto;
		max-height: 320px;
	}
	.page-top #ranking .con .list {
		display: flex;
		align-items: center;
		padding: 8px 12px;
		border-bottom: 1px solid #F0F2F7;
	}
	.page-top #ranking .con .list > div {
		float: none;
		padding: 0;
		margin: 0;
	}
	.page-top #ranking .con .list .no {
		flex: 0 0 26px;
		width: 26px;
		color: #2F4387;
		font-weight: 700;
	}
	.page-top #ranking .con .list .name,
	.page-top #ranking .con .list .m_name,
	.page-top #ranking .con .list .lank {
		flex: 1;
		width: auto;
		padding-right: 8px;
	}
	.page-top #ranking .con .list .num {
		flex: 0 0 auto;
		width: auto;
		font-size: 15px;
		font-weight: 700;
		color: #1F2A4D;
	}

	/*---- ログイン：真ん中に白いカード ----*/
	.page-login #contents h1.all {
		display: none;
	}
	.page-login #login {
		float: none;
		box-sizing: border-box;
		width: 400px;
		margin: 60px auto 40px;
		padding: 28px 32px 20px;
		background: #FFF;
		border: 1px solid #E3E7F0;
		border-radius: 12px;
		box-shadow: 0 10px 30px rgba(20, 30, 70, 0.08);
	}
	.page-login #login::before {
		content: "ログイン";
		display: block;
		margin-bottom: 4px;
		font-size: 20px;
		font-weight: 500;
		color: #1F2A4D;
	}
	.page-login #login-in,
	.page-login #login-in ul,
	.page-login #login-in li {
		float: none;
		display: block;
		width: auto;
		height: auto;
		margin: 0;
		padding: 0;
		text-align: left;
	}
	.page-login #login-in ul {
		margin-top: 16px;
	}
	.page-login #login-in li.w_120 {
		line-height: 1.6;
		margin-bottom: 4px;
		font-size: 13px !important;
		color: #4A5272;
	}
	.page-login #login-in input[name="MAIL"],
	.page-login #login-in input[name="PASS"] {
		width: 100%;
		height: 42px;
		padding: 0 12px;
		font-size: 15px !important;
	}
	.page-login #login-in li:has(#check) {
		display: flex;
		align-items: flex-start;
		gap: 8px;
		font-size: 12px;
		color: #4A5272;
		line-height: 1.6;
	}
	.page-login #login-in ul:has(input[type="submit"]) {
		display: flex;
		gap: 10px;
	}
	.page-login #login-in ul:has(input[type="submit"]) li {
		flex: 1;
	}
	.page-login #login-in input.botton1 {
		float: none;
		width: 100%;
		height: 42px;
		margin: 0;
		font-size: 15px;
	}
	.page-login #login-in a {
		font-size: 13px;
	}
	.page-login #contents #message {
		box-sizing: border-box;
		width: 400px;
		margin: 24px auto 0;
		border-radius: 8px;
	}
}

/*======== スマホ（768px以下） ========*/
@media screen and (max-width: 768px) {
	/* 顧客詳細：顧客情報・対応履歴を白いカードに */
	.page-detail #main,
	.page-detail #rightside,
	.page-customer_new #contents > table {
		box-sizing: border-box;
		width: auto !important;
		margin: 8px;
		background: #FFF;
		border: 1px solid #E3E7F0;
		border-radius: 10px;
		overflow: hidden;
	}
	/* トップ：ブロックごとに白いカード */
	.page-top #main .box_in,
	.page-top #ranking .box_in_50p,
	.page-top #ranking > .con {
		box-sizing: border-box;
		margin: 8px;
		width: auto;
		background: #FFF;
		border: 1px solid #E3E7F0;
		border-radius: 10px;
		overflow: hidden;
	}
	.page-top #ranking > h1 {
		margin: 8px 8px 0;
		border-radius: 0 10px 0 0;
	}
	.page-top #ranking > .con {
		margin-top: 0;
		border-radius: 0 0 10px 10px;
	}
	/* ログイン：白いカード */
	.page-login #login {
		margin: 16px;
		padding: 8px 0 4px;
		background: #FFF;
		border: 1px solid #E3E7F0;
		border-radius: 12px;
	}
	/* 一覧カードの中のランクは、カード側のバッジをそのまま使う */
	.hx-rank {
		padding: 0;
		background: none;
		min-width: 0;
	}
	/* 一覧カードをマウス・タップで少し強調 */
	.page-customer #contents table.list tr:hover td,
	.page-customer_info #contents table.list tr:hover td,
	.page-customer_accident #contents table.list tr:hover td,
	.page-customers_voice #contents table.list tr:hover td,
	.page-filelist #contents table.list tr:hover td {
		background: transparent;
	}
}
