/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
  overflow-x: hidden; /* 画面全体の横スクロールを禁止 */
  width: 100%;        /* 幅を画面の100%に完全固定 */
  font-family: 'Noto Sans JP', sans-serif;
  background-color: #f0f2f5;
  color: #333;
  display: flex;
  justify-content: center;
  height: 100%;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

/* PC display: Fixed width to simulate a phone */
.phone-wrapper {
    width: 100%;
    max-width: 430px; 
    height:100svh;
    background-color: #f8faff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow-x: hidden; /* コンテナ内部の要素による横揺れも防ぐ */
}
/* PC・iPadではスマホ制限を解除 */
@media (min-width: 768px) {

	.phone-wrapper {
		max-width: none;
		width: 100%;
		height: auto;
		box-shadow: none;
	}

	.phone-container {
		max-width: 1200px;
		margin: 0 auto;
		padding: 40px 40px 120px;
	}

}

.phone-container {
	padding: 0px 20px 60px;
	display: flex;
	flex-direction: column;
}

/* Global Header */
.global-header {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 56px;
	min-height: 56px;
	margin-bottom: 8px;
	padding: 0;
}

.logo {
	position: static;
	transform: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.logo img {
	display: block;
	max-width: 160px;
	max-height: 36px;
	width: auto;
	height: auto;
}

.hamburger-menu {
  background: none;
  border: none;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
	right: 0;
}

/* Employee ID Card */
.id-card {
    background-color: #000000;
    border-radius: 16px;
    padding: 24px;
    color: white;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 110, 184, 0.3);
}

.card-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 16px;
}

.card-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid white;
    overflow: hidden;
    background-color: #eee;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    text-align: right;
}

.role {
    font-size: 14px;
    opacity: 0.9;
}

.name {
    font-size: 24px;
    font-weight: bold;
    margin-top: 4px;
}

.card-footer {
    text-align: right;
    margin-top: 24px;
}

.staff-id {
    font-size: 18px;
    font-weight: 500;
}

/* Navigation Menu */
.main-nav {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	width: 100%;
}

.nav-item {
	background-color: white;
	border: 1px solid #e5e7eb;
	border-radius: 5px;
	padding: 20px 12px;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 120px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.04);
	transition: transform 0.1s;
}

.nav-item:active {
    transform: scale(0.98);
}

.icon-box {
	color: #000000;
	font-size: 30px;
	width: auto;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.nav-label {
	color: #000000;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	padding: 0;
	line-height: 1.4;
	flex-grow: 0;
}

/* Bottom Bar */
.bottom-bar-container {
	position: static;
	width: 100%;
	max-width: 100%;
	padding: 24px 0 0;
	margin-top: 24px;
	left: auto;
	bottom: auto;
	transform: none;
	z-index: auto;
}

.bottom-bar {
	background: transparent;
	border-radius: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 8px 0;
	box-shadow: none;
	width: 100%;
  border-top: 1px solid #e5e7eb;
}

.home-btn {
	color: #333;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	padding: 4px 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: transparent;
	border: none;
}

.action-btns {
    display: flex;
    gap: 8px;
}

.action-btns {
	display: none;
}

.rotate-icon {
    transform: rotate(180deg);
}

/************************************/
/* attendance-monthly */
/************************************/
.header-logo-group {
    display: flex;
    flex-direction: column;
}
.logo-main {
    font-family: 'Playfair Display', serif; 
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.5px;
}
.logo-sub {
    font-size: 11px;
    font-weight: 500;
    color: #333;
    margin-top: 4px;
}

.user-info-bar {
    background-color: #000000;
    border-radius: 8px;
    padding: 16px 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.user-info-bar .staff-id {
    font-size: 16px;
}
.profile-text {
    text-align: right;
}
.profile-text .role {
    font-size: 12px;
    margin-bottom: 2px;
}
.profile-text .name {
    font-size: 18px;
    font-weight: bold;
}

.page-title {
    font-size: 20px;
    font-weight: bold;
    color: #111;
    margin-bottom: 16px;
}

.filter-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}
.select-box {
    position: relative;
    background-color: white;
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.custom-select {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    font-size: 18px;
    font-family: inherit;
    color: #111;
    padding-right: 20px;
    cursor: pointer;
    outline: none;
}
.select-box::after {
    content: '▼';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #111;
    pointer-events: none;
}
.filter-text {
    font-size: 16px;
    font-weight: bold;
    color: #111;
}
.btn-display {
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px; /* 少し高さを出す */
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-left: auto;
}

.summary-cards {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}
.summary-card {
    flex: 1;
    background-color: white;
    border-radius: 12px;
    padding: 16px 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.summary-label {
    font-size: 11px;
    color: #666;
    margin-bottom: 12px;
}
.summary-value {
    font-size: 18px;
    font-weight: bold;
    color: #111;
}

.table-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 30px;
}
.attendance-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
    min-width: 400px;
}
.attendance-table th, 
.attendance-table td {
    padding: 12px 10px;
    text-align: center;
}
.attendance-table th {
    font-size: 12px;
    font-weight: bold;
    color: #111;
  border-bottom: 1px solid #e5e5e5;
}
.attendance-table td {
    font-size: 14px;
    color: #111;
  border-bottom: 1px solid #e5e5e5;
}
.attendance-table th:first-child,
.attendance-table td:first-child {
    text-align: left;
}

/************************************/
/* salary-slips */
/************************************/
.salary-list {
    width: 100%;
    box-sizing: border-box;
    margin-top: 30px;
    margin-bottom: 40px;
}

.salary-header {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    font-size: 13px;
    font-weight: bold;
    color: #111;
    margin-bottom: 20px;
    padding: 0 12px;
}

.salary-row {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 24px;
    padding: 0 12px;
}

.col-month {
    width: 60px;
    text-align: left;
    font-size: 15px;
    font-weight: 500;
    color: #111;
}

.col-action-head {
    flex-grow: 1;
    text-align: center;
}

.col-action {
    display: flex;
    gap: 12px;
    flex-grow: 1;
    justify-content: center;
    min-width: 0;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 0;
    width: 120px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 110, 184, 0.2);
    transition: opacity 0.2s;
}

.btn-action:active {
    opacity: 0.8;
}

/************************************/
/* contracts */
/************************************/
.contract-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.contract-item {
    background-color: white;
    border-radius: 8px;
    padding: 16px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: transform 0.1s, box-shadow 0.2s;
}

.contract-item:active {
    transform: scale(0.98);
}

.contract-icon {
    color: #000000;
    font-size: 20px;
}

.contract-title {
    color: #000000;
    font-size: 16px;
    font-weight: bold;
}

/************************************/
/* contract-detail */
/************************************/
.document-description {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-top: 16px;
    margin-bottom: 30px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.document-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 50px;
}

.doc-action-btn {
  flex: 1;
  background-color: white;
  border-radius: 8px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  color: #000000;
  transition: transform 0.1s, box-shadow 0.2s;
  text-decoration: none;
}

.doc-action-btn:active {
    transform: scale(0.98);
}

.doc-action-btn i {
    font-size: 28px;
}

.doc-action-btn span {
    font-size: 15px;
    font-weight: bold;
}
/* プレビュー・ダウンロードボタンの下線を消す */
.doc-action-btn:hover {
	text-decoration: none !important;
}

.doc-action-btn:focus {
	text-decoration: none !important;
}

.center-circle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.circle-action-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #000000;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 110, 184, 0.2);
    transition: transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    text-decoration: none !important;
}

.circle-action-btn:active {
    transform: scale(0.95);
}

.circle-action-btn:hover {
	text-decoration: none !important;
}

.circle-action-btn i {
	text-decoration: none;
}

/************************************/
/* attendance-break */
/************************************/
/* 日付入力欄のスタイル調整 */
.date-input-box {
    flex-grow: 1;
    background-color: white;
    border-radius: 8px;
    padding: 10px 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.custom-date-input {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 20px;
    font-weight: bold;
    width: 100%;
    color: #111;
    outline: none;
    text-align: center;
}

/* セクション小見出し */
.section-sub-title {
    font-size: 16px;
    font-weight: bold;
    color: #111;
    margin-bottom: 16px; /* 【修正】マージン調整 */
    margin-top: 0;
}

/* 【修正】白背景のカードラッパー（勤務状況・休憩追加を囲む） */
.status-section, 
.break-control-section {
    background-color: white;
    border-radius: 12px;
    padding: 24px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 24px;
}

/* 勤務状況カード (親要素に背景を移したため透過に) */
.status-card {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}
.status-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0; /* 【修正】余白を広げる */
    border-bottom: 1px solid #f0f0f0;
}
.status-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.status-row:first-child {
    padding-top: 0;
}
.status-label {
    font-size: 14px;
    color: #111; /* 【修正】濃く */
    font-weight: bold; /* 【修正】太字に */
}
.status-value {
    font-size: 15px;
    color: #333; /* 【修正】細字に */
    font-weight: normal;
}

/* 休憩操作グループ */
.break-input-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.break-input-group:last-child {
    margin-bottom: 0;
}
.time-display {
    flex: 1; /* 【修正】ボタンと幅を半々に */
    background-color: #f0f2f5;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    font-size: 16px;
    font-weight: normal; /* 【修正】細字に */
    color: #111;
}
.btn-break-action {
    flex: 1; /* 【修正】時間と幅を半々に */
    width: auto;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 0;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,110,184,0.2);
}
.btn-break-action:active {
    opacity: 0.8;
}

/* 登録済み休憩一覧セクション */
.break-list-section {
    margin-top: 32px;
    margin-bottom: 50px; /* ボトムバー考慮 */
}

/* 登録済み休憩一覧テーブル */
.break-table {
    width: 100%;
    border-collapse: collapse;
    background-color: transparent; /* 【修正】親のグレー背景に合わせる */
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}
.break-table th, 
.break-table td {
    padding: 14px 4px;
    text-align: left;
    border-bottom: 1px solid #e0e4e8; /* 【修正】罫線を引く */
}
.break-table th {
    font-size: 13px;
    color: #111;
    font-weight: bold;
    background-color: transparent; /* 【修正】透過 */
    border-bottom: 1px solid #ccc; /* ヘッダー下は少し濃く */
}
.break-table td {
    font-size: 14px;
    color: #111;
    font-weight: normal;
}
/* 操作カラムだけ右寄せ */
.break-table th:last-child,
.break-table td:last-child {
    text-align: center;
    width: 90px;
}

/* 削除ボタン（小） */
.btn-delete-small {
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 0;
    width: 40px;
    font-size: 14px;
    font-weight: normal;
    cursor: pointer;
    display: inline-block;
}

/* 休憩登録ボタンをアクティブ（青背景）にするための追加指定 */
.action-btn.active {
    background-color: #fff;
    color: #000000;
}

/* --- attendance-break 休憩時間のセレクトボックス化 --- */
.time-select-wrapper {
    flex: 1;
    position: relative;
    background-color: #f0f2f5;
    border-radius: 8px;
}

.custom-time-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    padding: 12px 24px 12px 12px; /* 右側に▼アイコン用の余白 */
    font-size: 16px;
    font-family: inherit;
    color: #111;
    outline: none;
    text-align: center;
    text-align-last: center; /* iOS/ブラウザによってテキストを中央に寄せる */
    cursor: pointer;
}

/* プルダウンの▼アイコン */
.time-select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #555;
    pointer-events: none;
}

/* ===============================
   ヘッダー右スライドメニュー
================================ */

/* メニュー表示中に背景スクロールを止める処理 */
body.is-header-menu-open {
	overflow: hidden;
}

/* 背景オーバーレイ */
.header-menu-overlay {
	position: fixed;
	inset: 0;
	z-index: 998;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

/* 背景オーバーレイ表示 */
.header-menu-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

/* 右側スライドメニュー本体 */
.header-slide-menu {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 999;

	width: min(320px, 86vw);
	height: 100vh;

	background: #fff;
	box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);

	transform: translateX(100%);
	transition: transform 0.25s ease;

	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

/* メニューを開いた状態 */
.header-slide-menu.is-open {
	transform: translateX(0);
}

/* メニューリスト */
.header-slide-menu-list {
	list-style: none;
	margin: 0;
	padding: 20px 20px 20px;
}

/* メニュー項目 */
.header-slide-menu-list li {
	margin: 0;
	border-bottom: 1px solid #eee;
}

/* メニューリンク */
.header-slide-menu-list a {
	display: block;
	padding: 16px 0;
	color: inherit;
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
}

/* メニューリンク hover */
.header-slide-menu-list a:hover {
	opacity: 0.7;
}

/************************************/
/* employee-login */
/************************************/

/**
 * ログイン画面中央配置
 */
.login-section {
	display: flex;
	align-items: center;
	justify-content: center;

	padding: 20px 0;
}

/**
 * ログインカード（他画面カードと統一）
 */
.login-card {

	background-color: white;

	border-radius: 12px;

	padding: 24px 20px;

	box-shadow: 0 2px 8px rgba(0,0,0,0.04);

	width: 100%;
	max-width: 360px;

	margin: 0 auto;
}

/**
 * ログイン説明文
 */
.login-description {
	font-size: 14px;
	color: #666;
	margin-bottom: 20px;
}

/**
 * フォームグループ
 */
.portal-login-form .form-group {
	margin-bottom: 18px;
}

/**
 * ラベル
 */
.portal-login-form label {
	display: block;
	font-size: 14px;
	font-weight: bold;
	margin-bottom: 6px;
	color: #111;
}

/**
 * 入力欄（既存UIと統一）
 */
.portal-login-form .form-control {

	width: 100%;

	background-color: #f0f2f5;

	border: none;

	border-radius: 8px;

	padding: 12px;

	font-size: 16px;

	color: #111;

	outline: none;
}

/**
 * ログインボタン
 */
.login-submit-button {

	width: 100%;

	background-color: #000000;

	color: white;

	border: none;

	border-radius: 8px;

	padding: 14px 0;

	font-size: 16px;

	font-weight: bold;

	cursor: pointer;

	box-shadow: 0 2px 6px rgba(0,110,184,0.2);
}

/**
 * ボタン押下時
 */
.login-submit-button:active {
	opacity: 0.85;
}

/**
 * エラー表示
 */
.notice.notice--error {

	background-color: #fff0f0;

	border-radius: 8px;

	padding: 12px;

	font-size: 14px;

	color: #c62828;

	margin-bottom: 16px;
}

/* QR読込画面全体を制御する処理 */
.theme-qr-scan {
	width: 100%;
	max-width: 430px;
	margin: 0 auto;
	padding: 24px 18px;
}

/* QR読込画面ヘッダーを制御する処理 */
.theme-qr-scan__header {
	margin-bottom: 20px;
	text-align: center;
}

/* QR読込タイトルを制御する処理 */
.theme-qr-scan__title {
	margin: 0 0 10px;
	font-size: 24px;
	font-weight: 700;
}

/* QR読込説明文を制御する処理 */
.theme-qr-scan__lead {
	margin: 0;
	font-size: 14px;
	line-height: 1.8;
	color: #555;
}

/* QR読込カードを制御する処理 */
.theme-qr-scan__card {
	padding: 20px;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* QR読込開始ボタンを制御する処理 */
.theme-qr-scan__button {
	display: block;
	width: 100%;
	padding: 14px 16px;
	border: none;
	border-radius: 999px;
	background: #222;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}

/* QR読込カメラエリアを制御する処理 */
.theme-qr-scan__camera-area {
	margin-top: 18px;
}

/* QR読込カメラ枠を制御する処理 */
.theme-qr-scan__camera-frame {
	width: 100%;
	max-width: 320px;
	margin: 0 auto;
	overflow: hidden;
	border-radius: 18px;
	background: #111;
}

/* QR読込カメラ映像を制御する処理 */
.theme-qr-scan__video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

/* QR読込canvasを非表示にする処理 */
.theme-qr-scan__canvas {
	display: none !important;
}

/* QR読込メッセージを制御する処理 */
.theme-qr-scan__message {
	margin: 14px 0 0;
	font-size: 13px;
	line-height: 1.7;
	text-align: center;
	color: #555;
}

/* 休憩なしボタンの左右余白調整 */
.btn-break-action.no-break {
	padding-left: 10px;
	padding-right: 10px;
}

/* iPad・PCで店舗QR関連ページを表示したとき、三点メニューと下部メニューを非表示にする処理 */
@media (min-width: 768px) {
	body.page-store-qr .hamburger-menu,
	body.page-store-qr .header-menu-overlay,
	body.page-store-qr .header-slide-menu,
	body.page-store-qr .bottom-bar-container,
	body.parent-pageid-store-qr .hamburger-menu,
	body.parent-pageid-store-qr .header-menu-overlay,
	body.parent-pageid-store-qr .header-slide-menu,
	body.parent-pageid-store-qr .bottom-bar-container {
		display: none !important;
	}
}

/* iPad・PCの店舗QRページでは下部メニューを非表示にする処理 */
@media (min-width: 768px) {
	.bottom-bar-container.is-store-qr-page {
		display: none !important;
	}
}

/* 店舗QR専用テンプレートの画面全体を制御する処理 */
.store-qr-template {
	margin: 0;
	background: #f8faff;
}

/* 店舗QR専用ページを中央表示する処理 */
.store-qr-only-page {
	min-height: 100svh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
}

/* 店舗QR専用コンテンツ幅を制御する処理 */
.store-qr-only-container {
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
	text-align: center;
}

/* 店舗QR専用ページでは不要な共通UIを非表示にする処理 */
.store-qr-template .global-header,
.store-qr-template .header-slide-menu,
.store-qr-template .header-menu-overlay,
.store-qr-template .bottom-bar-container {
	display: none !important;
}

/* 店舗QR専用テンプレートでQRコードだけを大きく中央表示する処理 */
.gtep-part-store-qr-only {
	width: 100%;
	min-height: 100svh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

/* 店舗QR専用テンプレート内のQR画像を大きく表示する処理 */
.gtep-part-store-qr-only img {
	width: min(70vw, 520px);
	height: auto;
	display: block;
	margin: 0 auto;
}

/* 店舗QR既存ショートコード側の余計なテキストを非表示にする処理 */
.gtep-part-store-qr-only .qr-description {
	display: none !important;
}
.gtep-store-qr-wrapper {
	box-shadow: none !important;
}

/* 店舗QRトップページをフル幅にする処理 */
.store-qr-template .store-qr-only-page {
	width: 100%;
	min-height: 100svh;
	padding: 40px 24px;
	background: linear-gradient(180deg, #f8faff 0%, #eef2f7 100%);
}

/* コンテンツを画面いっぱいに広げる処理 */
.store-qr-template .store-qr-only-container {
	width: 100%;
	max-width: none;   /* ← ここ重要 */
	margin: 0;
	border-radius: 0;  /* ← カード感消す */
	padding: 32px;
	background: transparent; /* ← 背景も外す */
	box-shadow: none;  /* ← 影も外す */
}

/* 店舗QRトップページのタイトルを整える処理 */
.store-qr-page-title {
	font-size: 32px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 28px;
	padding-bottom: 18px;
	border-bottom: 1px solid #e6eaf0;
	text-align: center;
	color: #111111;
}

/* 店舗QRトップページ本文を読みやすくする処理 */
.store-qr-template .store-qr-only-container p {
	font-size: 16px;
	line-height: 1.9;
	color: #333333;
	margin-bottom: 18px;
}

/* 店舗QRトップページ内リンクをボタン風に整える処理 */
.store-qr-template .store-qr-only-container a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	border-radius: 10px;
	background: #000000;
	color: #ffffff;
	font-weight: 700;
	text-decoration: none;
	transition: opacity 0.2s, transform 0.1s;
}

.store-qr-template .store-qr-only-container a:active {
	transform: scale(0.98);
	opacity: 0.85;
}

/* 店舗QRトップページ内のリストをカード風に整える処理 */
.store-qr-template .store-qr-only-container ul {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	margin: 24px 0 0;
	padding: 0;
}

.store-qr-template .store-qr-only-container li {
	background: #f8faff;
	border: 1px solid #e6eaf0;
	border-radius: 16px;
	padding: 18px;
}

/* スマホ表示時の余白を調整する処理 */
@media (max-width: 767px) {
	.store-qr-template .store-qr-only-page {
		padding: 24px 16px;
	}

	.store-qr-template .store-qr-only-container {
		border-radius: 18px;
		padding: 24px 18px;
	}

	.store-qr-page-title {
		font-size: 24px;
	}
}

/**
 * 社員チャット専用テンプレートの画面全体を整える処理
 */
body.gtip-chat-app-template {
	margin: 0;
	padding: 0;
	background: #f4f6f8;
	overflow: hidden;
	overscroll-behavior: none;
	touch-action: pan-y;
}

/**
 * チャット専用画面では通常ページ余白を消す処理
 */
.gtip-chat-app-main {
	width: 100%;
	height: 100dvh;
	margin: 0;
	padding: 0;
	overflow: hidden;
}

/**
 * チャット画面内のタイトル余白を抑える処理
 */
body.gtip-chat-app-template .gtec-chat-app {
	height: 100dvh;
	max-width: 480px;
}

/**
 * チャット専用画面のロゴヘッダーを表示する処理
 */
.gtip-chat-page-header {
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #ffffff;
	border-bottom: 1px solid #e5e7eb;
	flex: 0 0 56px;
}

.gtip-chat-logo-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.gtip-chat-logo {
	display: block;
	width: auto;
	height: auto;
	max-height: 32px;
	max-width: none;
}

.gtip-chat-logo-text {
	font-size: 16px;
	font-weight: 700;
	color: #111827;
}

/**
 * ロゴヘッダー分を差し引いてチャット本体を表示する処理
 */
body.gtip-chat-app-template .gtec-chat-app {
	height: calc(100dvh - 56px);
}

/* 社員プロフィール編集ページ */
.employee-profile-page {
	width: 100%;
	min-height: 100dvh;
	/*padding: 16px 14px 88px;*/
	background: #f5f7fb;
	box-sizing: border-box;
}
.gtep-front-profile-section-title {
	margin: 24px 0 12px;
	padding: 0 0 8px;
	border-bottom: 1px solid #e2e8f0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	color: #0f172a;
}
.employee-profile-page * {
	box-sizing: border-box;
}

.employee-profile-container {
	width: 100%;
	max-width: 560px;
	margin: 0 auto;
}

.employee-profile-hero,
.employee-profile-card {
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.employee-profile-hero {
	margin-bottom: 14px;
	padding: 18px 16px;
}

.employee-profile-hero__label {
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	color: #64748b;
}

.employee-profile-hero__title {
	margin: 0;
	font-size: 22px;
	color: #0f172a;
}

.employee-profile-hero__text,
.employee-profile-card__note {
	font-size: 13px;
	line-height: 1.7;
	color: #64748b;
}

.employee-profile-card__header {
	padding: 16px;
	border-bottom: 1px solid #edf2f7;
}

.employee-profile-card__title {
	margin: 0;
	font-size: 17px;
	color: #0f172a;
}

.employee-profile-form-area {
	padding: 16px;
}

.employee-profile-form-area p,
.employee-profile-form-area .gtep-profile-field {
	margin: 0 0 14px;
}

.employee-profile-form-area label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 700;
	color: #334155;
}

.employee-profile-form-area input,
.employee-profile-form-area select,
.employee-profile-form-area textarea {
	width: 100%;
	max-width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid #d7dee8;
	border-radius: 12px;
	font-size: 16px;
	background: #fff;
}

.employee-profile-form-area button,
.employee-profile-form-area input[type="submit"] {
	width: 100%;
	min-height: 48px;
	margin-top: 18px;
	border: 0;
	border-radius: 999px;
	background: #0f172a;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
}

.employee-profile-form-area .gtep-profile-updated,
.employee-profile-form-area .gtep-profile-message {
	margin-bottom: 14px;
	padding: 12px 14px;
	border: 1px solid #bbf7d0;
	border-radius: 12px;
	background: #f0fdf4;
	color: #166534;
}
.gtep-front-profile-field {
	margin-bottom: 18px;
}
.gtep-front-profile-field input {
	margin-top: 6px;
}

/* プロフィール機密情報の表示ボタン */
.gtep-front-reveal-encrypted-profile,
.gtep-reveal-encrypted-profile {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	min-height: 0 !important;
	height: auto !important;

	padding: 4px 10px !important;
	margin-left: 6px;

	font-size: 11px !important;
	line-height: 1.2;
	white-space: nowrap;

	background: #f3f4f6 !important;
	color: #333 !important;
	border: 1px solid #d1d5db !important;
	border-radius: 4px;
	box-shadow: none !important;
}

/* hover */
.gtep-front-reveal-encrypted-profile:hover,
.gtep-reveal-encrypted-profile:hover {
	background: #e5e7eb !important;
	color: #111 !important;
	border-color: #c7ccd1 !important;
}

/* スマホ */
@media (max-width: 768px) {
	.gtep-front-reveal-encrypted-profile {
		padding: 5px 10px !important;
		font-size: 11px !important;
	}
}

/* プロフィールの日付入力 */
.employee-profile-form-area input[type="date"],
.gtep-front-profile-form input[type="date"] {
	width: 180px !important;
	max-width: 100%;
	box-sizing: border-box;
}

@media (max-width: 768px) {
	.employee-profile-form-area input[type="date"],
	.gtep-front-profile-form input[type="date"] {
		width: 160px !important;
		font-size: 16px; /* iPhoneズーム防止 */
	}
}
/* 郵便番号入力幅 */
#front_gtep_postal_code {
	width: 120px !important;
	max-width: 100%;
	box-sizing: border-box;
}
/* 携帯番号入力幅 */
#front_gtep_company_mobile,
#front_gtep_personal_mobile {
	width: 180px !important;
	max-width: 100%;
	box-sizing: border-box;
}

/* プロフィール編集 ラベル強調 */
.employee-profile-form-area .gtep-front-profile-form label,
.employee-profile-form-area .gtep-front-profile-label {
	font-size: 15px;
	font-weight: 700;
	color: #1f2937;
	letter-spacing: 0.02em;
	display: block;
	margin-bottom: 8px;
}
/* プロフィール編集 フロント側セクション見出し */
.employee-profile-form-area .gtep-front-profile-section-title {
	position: relative;
	margin: 28px 0 14px;
	padding: 10px 14px 10px 16px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	color: #1f2937;
	background: linear-gradient(135deg, #f8fafc 0%, #eef4ff 100%);
	border: 1px solid #dbe7f5;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

/* 左アクセント */
.employee-profile-form-area .gtep-front-profile-section-title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 10px;
	bottom: 10px;
	width: 4px;
	border-radius: 4px;
	background: #3b82f6;
}

/* 社員証カードの背景画像を表示する */
.id-card {
	background-size: cover !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
}
/* 背景画像が内側要素で隠れないようにする */
.id-card .card-body,
.id-card .card-footer {
	background: transparent !important;
}
.gtep-profile-card-bg-preview {
	width: 100%;
	max-width: 280px;
	aspect-ratio: 16 / 9;
	margin: 8px 0 10px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid #e5e7eb;
	background: #f9fafb;
}
.gtep-profile-card-bg-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
/* プロフィール編集：背景画像削除 */
.gtep-profile-card-bg-delete {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 8px 0 0;
	padding: 8px 12px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #f9fafb;
	color: #374151;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	vertical-align: middle;
}
.gtep-profile-card-bg-delete input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin: 0;
	padding: 0;
	flex-shrink: 0;
	vertical-align: middle;
	accent-color: #64748b;
}
.gtep-profile-card-bg-delete:hover {
	background: #f3f4f6;
	border-color: #d1d5db;
}
.gtep-profile-message-error {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-radius: 10px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
	font-size: 14px;
	font-weight: 700;
}

/* チャットの通知設定 */
.employee-profile-chat-notification {
	padding: 20px;
	margin-bottom: 28px;
}
.employee-profile-chat-notification h3 {
	margin: 0 0 14px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
}
.employee-profile-chat-notification label:not(.button) {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	line-height: 1.4;
	cursor: pointer;
  margin-bottom: 20px;
}
.employee-profile-chat-notification .button {
	display: inline-block;
	width: auto;
	padding: 10px 18px;
	font-size: 14px;
	line-height: 1.4;
}
.employee-profile-chat-notification input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin: 0;
	flex: 0 0 16px;
}