/*このCSSへ全てまとめています*/


:root {
  --ink: #657075;
  --muted: #657075;
  --line: #d9e1dd;
  --paper: #fbfcfa;
  --soft: #edf4f0;
  --green: #14634f;
  --green-dark: #0d493a;
  --gold: #d6a637;
  --coral: #d96f4a;
  --blue: #477f99;
  --danger: #b53737;
  --shadow: 0 18px 45px rgba(18, 35, 31, .12);
}

html {
	font-size:62.5%;
}

body{
	color: #1C1C1C;
	font-family: 'Noto Sans JP', 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', 'YuGothic', 'Yu Gothic', 游ゴシック体, 游ゴシック, メイリオ, Meiryo, 'ＭＳ Ｐゴシック', Osaka, 'MS PGothic', Arial, Helvetica, Verdana, sans-serif;
	font-size: 1.4rem;
	line-height: 1.8;
	-webkit-text-size-adjust: 100%;
		-ms-text-size-adjust: 100%;
			text-size-adjust: 100%;
}
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(18, 35, 31, .1);
  background: rgba(251, 252, 250, .94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 42px;
  max-width: min(240px, 52vw);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #FFF;
  background: #FFE200;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 1.2rem;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 1.4rem;
}

.top-nav a,
.text-button {
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
}

.top-nav a:hover,
.text-button:hover {
  color: var(--green-dark);
  background: #FFEF72;
}

.danger-text {
  color: var(--danger);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(280px, 1.05fr);
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
  min-height: 440px;
  padding: clamp(42px, 7vw, 86px) clamp(18px, 4vw, 48px) 36px;
  background: linear-gradient(120deg, #f4f6f8 0%, #f9fafb 46%, #e8edf1 100%);
  overflow: hidden;
}

.hero h1,
.admin-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.12;
  letter-spacing: 0;
}
.Packs-title h3 {
	display: flex;
	border: 2px solid #0088DC;
	border-radius: 8px;
	background: #F6F5EE;
	margin: auto;
	padding: 5px 35px;
	font-size: 3.2rem;
	font-weight: 500;
	line-height: 1.6em;
	color: #0088dc;
	align-items: center;
	flex-wrap: wrap;
}
.Packs-title h3 > span:nth-of-type(1) {
	display: block;
	border: 1px solid #0088DC;
	background: #F6F5EE;
	margin: 0 10px;
	padding: 0 15px;
	font-size: 2.2rem;
	font-weight: 500;
	line-height: 1.5em;
}
.Packs-title h3 > span:nth-of-type(2) {
	display: block;
	margin: 0 10px;
}
.Packs-title h3.CarClassCode {
	padding: 5px 20px;
	font-size: 2.2rem;
	font-weight: 500;
	line-height: 2.2em;
}

.hero-copy {
  display: flex;
  flex-wrap: wrap;
	width: fit-content;
	margin: auto;
  align-items: center;
  gap: 12px;
}


.hero-copy .eyebrow {
  flex: 0 0 100%;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(280px, 1.05fr);
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
  min-height: 440px;
  padding: clamp(42px, 7vw, 42px) clamp(18px, 4vw, 48px) 36px;
  background: linear-gradient(120deg, #f4f6f8 0%, #f9fafb 46%, #e8edf1 100%);
  overflow: hidden;
}

.hero h1,
.admin-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero p {
  max-width: 620px;
  color: #0088DC;
  font-size: 1.8rem;
}

.eyebrow {
  margin: 0 0 10px;
  color: #0088DC;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.vehicle-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 310px;
}

.vehicle-visual img {
  position: relative;
  width: min(100%, 620px);
  height: auto;
  filter: drop-shadow(0 24px 30px rgba(18, 35, 31, .2));
    border-radius: 10px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px clamp(18px, 4vw, 48px) 72px;
}

.booking-form,
.admin-main {
  min-width: 0;
}

.form-section,
.admin-panel,
.estimate-card,
.guide-box {
	border: 1px solid #0088DC;
  border-radius: 8px;
  background: #FFF;
}

.form-section,
.admin-panel {
  margin-bottom: 18px;
  padding: clamp(18px, 3vw, 28px);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.section-title span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #0088DC;
  background: #FFE200;
  font-weight: 700;
}

.section-title h2 {
  margin: 0;
	color: #0088DC;
  font-size: 2.1rem;
}

.field-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px; */
	border-bottom: 1px solid #dce8f1;
	padding-bottom: 15px;
	margin-bottom: 10px;
}

label {
	display: grid;
	gap: 8px;
	color: var(--muted);
	font-size: 1.4rem;
	font-weight: 700;
}

input,
select,
textarea {
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid #0088DC;
	border-radius: 6px;
	color: var(--ink);
	background: #FFF;
}

input:focus,
select:focus,
textarea:focus {
	outline: 3px solid rgb(20, 35, 99, 15%);
	border-color: var(--green);
}

input::placeholder,
select::placeholder,
textarea::placeholder {
	color: #D3D9D9;
	font-weight: 400;
}

.class-list,
.option-list {
	display: grid;
	gap: 12px;
}

.choice-card {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 14px;
	padding: 16px;
	border: 1px solid #0088DC;
	border-radius: 8px;
	background: #FFF;
	cursor: pointer;
}

.choice-card:has(input:checked) {
	border-color: #0088DC;
	background: #F2F5F8;
	box-shadow: inset 0 0 0 1px #0088DC;
}

.choice-card input {
	width: 20px;
	min-height: 20px;
	margin-top: 3px;
}

.choice-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: 1.8rem;
}

.choice-title strong {
  font-size: 1.8rem;
}

.choice-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-weight: 400;
}

.option-detail-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 8px;
  color: #006FB6;
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.option-detail-link:hover {
  color: #004F82;
}

.quantity-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 700;
}

.quantity-field input {
  width: 64px;
  min-height: 34px;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #FFF;
  font-size: 1.5rem;
}

.rate-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.rate-line span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #0D3549;
  background: #FFEF71;
  font-size: 1.4rem;
}

.agree {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.agree input {
  width: 18px;
  min-height: 18px;
}

.check-section {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  margin-top: 16px;
}

.check-section p {
  flex: 0 0 100%;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 1.4rem;
  font-weight: 800;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 7px;
  font-weight: 800;
}

.primary-action {
    margin-top: 5px !important;
    margin-bottom: 5px !important;
}
.primary-action {
	position: relative;
    top: 0 !important;
    background: #F9645E;
    border: 2px solid #BE235C !important;
    box-shadow: 0 5px 0 0 #BE235C !important;
	width: 100%;
    margin-top: 4px !important;
    margin-bottom: 4px !important;
    color: #FFF;
    transition: all 0.1s ease;
}
.primary-action:hover {
    top: 5px !important;
    border: 2px solid #BE235C !important;
    box-shadow: 0 0 0 0 #BE235C !important;
    margin-top: 4px !important;
    margin-bottom: 4px !important;
}
.secondary-action {
	position: relative;
    top: 0 !important;
    background: #F9645E;
    border: 2px solid #0088DC !important;
    box-shadow: 0 5px 0 0 #0088DC !important;
    margin-top: 4px !important;
    margin-bottom: 4px !important;
    color: #FFF;
    transition: all 0.1s ease;
}
.secondary-action:hover {
    top: 5px !important;
    border: 2px solid #0088DC !important;
    box-shadow: 0 0 0 0 #0088DC !important;
    margin-top: 4px !important;
    margin-bottom: 4px !important;
}


.primary-action.compact {
  width: auto;
}

.secondary-action {
  border: 1px solid var(--line);
  color: var(--green-dark);
  background: #FFF;
}

.secondary-action:hover {
  background: var(--soft);
}

.inline-policy-link {
  color: #0088DC;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-policy-link:hover {
  color: var(--danger);
}

.precheck-box {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  padding: 22px;
  border: 1px solid #0088DC;
  border-radius: 8px;
  background: #FFF;
}

.precheck-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #0088DC;
  font-size: 1.8rem;
  font-weight: 900;
}

.precheck-heading::before {
  content: "";
  width: 6px;
  height: 28px;
  border-radius: 99px;
  background: #0088DC;
}

.precheck-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.precheck-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #0088DC;
  border-radius: 8px;
  background: #F2F5F8;
  color: #0088DC;
  font-weight: 800;
  text-decoration: none;
}

.precheck-link::after {
	content: "\f08e";
/*  content: "確認";
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: #FFF;
  color: #0088DC;
  font-size: 1.2rem;*/
}

.precheck-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.precheck-list .agree {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FFF;
}

.precheck-final {
  margin-top: 2px;
  padding: 16px;
  border: 2px solid #0088DC59;
  border-radius: 8px;
  background: #0088DC17;
}

.precheck-final .agree {
  margin: 0;
  font-weight: 900;
}

.precheck-status {
  min-height: 1.7em;
  margin: 0;
  color: var(--muted);
  font-size: 1.3rem;
}

.form-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.4rem;
}

.reservation-conflict {
  margin-top: 16px;
}

.availability-notice {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 122, 204, 0.22);
  border-radius: 8px;
  background: rgba(0, 122, 204, 0.06);
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
}

.availability-notice p {
  margin: 0;
}

.availability-notice p + p {
  margin-top: 3px;
}

.estimate-panel {
  position: sticky;
  top: 88px;
  align-self: start;
  display: grid;
  gap: 16px;
}

.estimate-card,
.guide-box {
  padding: 24px;
}

.estimate-card h2 {
	color: #0088DC;
  margin: 0 0 18px;
  font-size: 2.8rem;
}

.estimate-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.estimate-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #0088DC;
}

.estimate-card dt {
  color: var(--muted);
}

.estimate-card dd {
  margin: 0;
  text-align: right;
  font-weight: 800;
}

.total-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
}

.total-row strong {
  color: #0088DC;
  font-size: 3.4rem;
  line-height: 1;
}

.tax-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1.0rem;
  line-height: 1.5;
}

.spam-check-grid {
  margin-top: 18px;
}

.birthdate-fields {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.birthdate-fields label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.field-caption {
  display: grid;
  align-content: center;
  color: var(--ink);
  font-weight: 800;
}

.hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.guide-box h3 {
  margin: 0 0 10px;
}

.guide-box p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 1.4rem;
}

.admin-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px clamp(18px, 4vw, 48px) 72px;
}

.admin-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.admin-hero h1 {
	color: #0088DC;
  font-size: clamp(30px, 4vw, 48px);
}

.admin-actions {
  display: grid;
  grid-template-columns: 180px 180px 210px;
  gap: 12px;
}

.vehicle-link-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px clamp(18px, 4vw, 48px) 72px;
}

.vehicle-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.vehicle-link-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px clamp(18px, 4vw, 48px) 72px;
}

.vehicle-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.vehicle-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 86px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FFF;
}

.vehicle-link-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
}

.vehicle-link-card strong,
.vehicle-link-card span {
  display: block;
}

.vehicle-link-card strong {
  font-size: 2.2rem;.
}

.vehicle-link-card span {
  color: var(--muted);
  font-weight: 700;
}

.vehicle-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vehicle-badges span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #0088DC;
  background: #FFE200;
  font-weight: 800;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.summary-strip div {
  padding: 18px;
  border: 1px solid #0088DC;
  border-radius: 8px;
  background: #FFF;
}

.summary-strip span,
.summary-strip strong {
  display: block;
}

.summary-strip span {
  color: var(--muted);
  font-size: 1.3rem;
  font-weight: 700;
}

.summary-strip strong {
  margin-top: 4px;
  font-size: 2.4rem;
}

.schedule-board {
  min-width: 820px;
  overflow-x: auto;
}

.week-calendar {
  display: grid;
  grid-template-columns: 72px repeat(7, minmax(128px, 1fr));
  min-width: 1040px;
  overflow: hidden;
  border: 1px solid #dfe7ee;
  border-radius: 22px;
  background: #FFF;
}

.week-timezone {
  display: flex;
  align-items: end;
  justify-content: center;
  min-height: 88px;
  padding: 0 8px 16px;
  border-right: 1px solid #dfe7ee;
  border-bottom: 1px solid #dfe7ee;
  color: #5f6872;
  font-size: 1.2rem;
  font-weight: 800;
}

.week-day-heading {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 88px;
  padding: 10px;
  border-right: 1px solid #dfe7ee;
  border-bottom: 1px solid #dfe7ee;
}

.week-day-heading span {
  color: #64707b;
  font-size: 1.3rem;
  font-weight: 800;
}

.week-day-heading strong {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #252b33;
  border-radius: 50%;
  font-size: 2.6rem;
  line-height: 1;
}

.week-day-heading.is-selected span,
.week-day-heading:first-of-type span {
  color: #376ad8;
}

.week-day-heading.is-selected strong {
  color: #FFF;
  background: #376ad8;
}

.week-all-day-label {
  display: grid;
  place-items: center;
  min-height: 96px;
  padding: 10px;
  border-right: 1px solid #dfe7ee;
  border-bottom: 1px solid #dfe7ee;
  color: #6a727b;
  font-size: 1.2rem;
  font-weight: 800;
}

.week-all-day-grid {
  position: relative;
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: repeat(7, minmax(128px, 1fr));
  grid-auto-rows: 28px;
  gap: 5px 8px;
  min-height: 96px;
  padding: 8px;
  border-bottom: 1px solid #dfe7ee;
  background-image: repeating-linear-gradient(to right, transparent 0, transparent calc((100% / 7) - 1px), #dfe7ee calc((100% / 7) - 1px), #dfe7ee calc(100% / 7));
}

.week-time-labels {
  grid-column: 1;
  display: grid;
  grid-template-rows: repeat(12, 60px);
  border-right: 1px solid #dfe7ee;
  background: #FFF;
}

.week-hour-label {
  padding: 0 8px;
  border-bottom: 1px solid #dfe7ee;
  color: #5f6872;
  font-size: 1.2rem;
  font-weight: 800;
  text-align: right;
  transform: translateY(-8px);
}

.week-hour-label:first-child {
  transform: none;
  padding-top: 10px;
}

.week-time-grid {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: repeat(7, minmax(128px, 1fr));
  min-height: 720px;
  background-image: repeating-linear-gradient(to bottom, #dfe7ee 0, #dfe7ee 1px, transparent 1px, transparent 60px);
}

.week-day-column {
  position: relative;
  min-height: 720px;
  border-right: 1px solid #dfe7ee;
}

.current-time-line {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  height: 2px;
  background: #e34b40;
}

.current-time-line i {
  position: absolute;
  left: -5px;
  top: -5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e34b40;
}

.week-event {
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  color: #FFF;
  background: #5f6368;
  text-align: left;
  box-shadow: 0 6px 14px rgba(29, 42, 58, .14);
}

.week-event:hover {
  filter: brightness(.92);
}

.all-day-event {
  min-width: 0;
  padding: 4px 9px;
  font-size: 1.2rem;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.timed-event {
  position: absolute;
  left: 8px;
  right: 8px;
  display: grid;
  align-content: start;
  gap: 2px;
  min-height: 34px;
  padding: 7px 9px;
}

.timed-event strong,
.timed-event span,
.timed-event small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.timed-event strong {
  font-size: 1.2rem;
}

.timed-event span,
.timed-event small {
  font-size: 1.1rem;
  opacity: .92;
}

.event-color-1 {
  background: #e8742a;
}

.event-color-2 {
  background: #5f6368;
}

.event-color-3 {
  background: #4a5fcb;
}

.event-color-4 {
  background: #cf2b22;
}

.week-empty-note {
  grid-column: 1 / -1;
  align-self: center;
  color: var(--muted);
  font-size: 1.3rem;
  font-weight: 700;
}

.month-calendar {
  min-width: 1020px;
  overflow: hidden;
  border: 1px solid #dfe7ee;
  border-radius: 22px;
  background: #FFF;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays span {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 8px 10px;
  border-right: 1px solid #dfe7ee;
  border-bottom: 1px solid #dfe7ee;
  color: #64707b;
  font-size: 1.3rem;
  font-weight: 800;
}

.calendar-day {
  min-height: 146px;
  padding: 8px;
  border-right: 1px solid #dfe7ee;
  border-bottom: 1px solid #dfe7ee;
  background: #FFF;
}

.calendar-day.is-blank {
  background: #f8fafc;
}

.calendar-day.has-booking {
  background: #FFF;
}

.calendar-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.calendar-date strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #252b33;
  font-size: 2.0rem;
  line-height: 1;
}

.calendar-date span,
.calendar-empty-small {
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 700;
}

.calendar-events {
  display: grid;
  gap: 6px;
}

.calendar-booking {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 7px 8px;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  color: #FFF;
  background: #5f6368;
  text-align: left;
  box-shadow: 0 6px 14px rgba(29, 42, 58, .14);
}

.calendar-booking:hover {
  filter: brightness(.92);
}

.calendar-booking span,
.calendar-booking strong,
.calendar-booking small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
    font-size: 1.2rem;
}

.calendar-booking span,
.calendar-booking small {
  font-size: 1.1rem;
}

.schedule-times {
  display: grid;
  grid-template-columns: 170px repeat(11, 1fr);
  min-width: 1040px;
  margin-bottom: 0;
  overflow: hidden;
  border: 1px solid #dfe7ee;
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  color: #64707b;
  background: #FFF;
  font-size: 1.2rem;
  font-weight: 700;
}

.schedule-times span {
  display: grid;
  place-items: center;
  min-height: 48px;
  border-right: 1px solid #dfe7ee;
}

.schedule-times::before {
  content: "";
}

.month-times {
  grid-template-columns: 170px repeat(var(--month-days), minmax(28px, 1fr));
  min-width: calc(170px + var(--month-days) * 28px);
}

.schedule-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  min-width: 1040px;
  min-height: 74px;
  border-right: 1px solid #dfe7ee;
  border-left: 1px solid #dfe7ee;
  border-bottom: 1px solid #dfe7ee;
  background: #FFF;
}

.schedule-row:last-child {
  border-radius: 0 0 22px 22px;
  overflow: hidden;
}

.month-row {
  min-width: calc(170px + var(--month-days, 31) * 28px);
}

.schedule-label {
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 12px;
  border-right: 1px solid #dfe7ee;
}

.schedule-label strong {
  font-size: 1.4rem;
}

.schedule-label span {
  color: var(--muted);
  font-size: 1.2rem;
}

.schedule-label small {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.4;
}

.schedule-track {
  position: relative;
  min-height: 74px;
  background-image: repeating-linear-gradient(to right, transparent 0, transparent calc((100% / 11) - 1px), #dfe7ee calc((100% / 11) - 1px), #dfe7ee calc(100% / 11));
}

.month-track {
  background-image: repeating-linear-gradient(to right, #eef4f1 0, #eef4f1 1px, transparent 1px, transparent calc(100% / var(--month-days)));
}

.schedule-booking {
  position: absolute;
  top: 12px;
  bottom: 12px;
  display: grid;
  align-content: center;
  min-width: 92px;
  padding: 8px 10px;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  color: #FFF;
  background: #5f6368;
  text-align: left;
  box-shadow: 0 6px 14px rgba(29, 42, 58, .14);
}

.schedule-booking:hover {
  filter: brightness(.92);
}

.schedule-booking strong,
.schedule-booking span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.schedule-booking span {
  font-size: 1.2rem;
  opacity: .9;
}

.month-booking {
  min-width: 56px;
}

.empty-slot {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 1.3rem;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 1.3rem;
}

td small,
td span {
  color: var(--muted);
}

.row-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
	justify-content: flex-end;
  gap: 8px;
}

.return-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #FFF;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.availability-form {
  display: grid;
  gap: 18px;
}

.availability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.availability-grid fieldset {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.availability-grid legend {
  padding: 0 6px;
  color: var(--green-dark);
  font-weight: 800;
}

.weekday-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.weekday-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #FFF;
  font-weight: 800;
}

.availability-form textarea {
  min-height: 96px;
  resize: vertical;
}

.compact-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.small-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--green-dark);
  background: #FFF;
  font-weight: 800;
}

.small-button:hover {
  background: var(--soft);
}

.small-button.danger {
  color: var(--danger);
}

.report-actions {
  justify-content: flex-end;
  margin: -8px 0 12px;
}

.monthly-report-table {
  min-width: 760px;
}

.confirmation-main {
  max-width: 960px;
}

.confirm-list {
  display: grid;
  gap: 0;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #FFF;
}

.confirm-list div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.confirm-list div:last-child {
  border-bottom: 0;
}

.confirm-list dt,
.confirm-list dd {
  margin: 0;
  padding: 12px 14px;
}

.confirm-list dt {
  color: var(--muted);
  background: var(--soft);
  font-weight: 800;
}

.confirm-list dd {
  font-weight: 700;
}

.confirm-actions {
  justify-content: flex-end;
}

.conflict-panel {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #e2a900;
  border-radius: 8px;
  background: #FFFaf0;
}

.conflict-title {
  margin: 0 0 12px;
  color: #9a5b00;
  font-size: 1.5rem;
  font-weight: 800;
}

.conflict-list {
  margin-bottom: 12px;
}

.conflict-message {
  margin: 0;
  color: #E31616;
	font-size: 1.8rem;
  font-weight: 800;
}

.completion-panel h1 {
  margin-top: 0;
}

.edit-panel[hidden] {
  display: none;
}

.option-editor {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.option-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #FFF;
}

.option-chip input {
  width: 18px;
  min-height: 18px;
}

.option-chip span {
  color: var(--muted);
  font-size: 1.2rem;
}

.option-chip .quantity-field {
  margin-top: 0;
}

.option-chip .quantity-field input {
  width: 56px;
  min-height: 30px;
}

.edit-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0;
  padding: 16px;
  border-radius: 8px;
  background: var(--soft);
}

.edit-total strong {
  color: var(--coral);
  font-size: 2.8rem;
}

@media (max-width: 900px) {
  .site-header,
  .admin-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .layout {
    grid-template-columns: 1fr;
  }

  .layout {
    padding-top: 28px;
  }

  .booking-form {
    display: contents;
  }

  .estimate-panel {
    position: static;
    order: 5;
  }

  .booking-form .form-section {
    order: 1;
  }

  .booking-form .primary-action {
    order: 6;
  }

  .booking-form .form-note {
    order: 7;
  }

  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-actions {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .vehicle-link-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .precheck-links {
    grid-template-columns: 1fr;
  }

  .precheck-box {
    padding: 16px;
  }

  .site-header {
    gap: 10px;
    padding: 12px 14px;
  }

  .brand-fallback {
    font-size: 1.4rem;
  }

  .top-nav {
    width: 100%;
    overflow-x: auto;
    gap: 6px;
    font-size: 1.2rem;
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
  }

  .field-grid,
  .summary-strip {
    grid-template-columns: 1fr;
  }

  .birthdate-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-caption {
    grid-column: 1 / -1;
  }

  .choice-title,
  .estimate-card dl div,
  .total-row,
  .edit-total {
    align-items: flex-start;
    flex-direction: column;
  }

  .confirm-list div {
    grid-template-columns: 1fr;
  }

  .estimate-card dd {
    text-align: left;
  }

  .admin-main {
    padding: 18px 10px 48px;
  }

  .admin-hero {
    gap: 16px;
    margin-bottom: 14px;
    padding: 18px 14px;
  }

  .admin-hero h1 {
    font-size: 3.4rem;
  }

  .admin-panel {
    padding: 14px 10px;
  }

  .section-title {
    gap: 8px;
    margin-bottom: 12px;
  }

  .section-title span {
    width: 30px;
    height: 30px;
    font-size: 1.3rem;
  }

  .section-title h2 {
    font-size: 1.9rem;
  }

  .schedule-board {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
  }

  .schedule-board::after {
    content: "横にスクロールできます";
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 1.0rem;
    font-weight: 700;
    text-align: right;
  }

  .week-calendar {
    grid-template-columns: 46px repeat(7, minmax(86px, 1fr));
    min-width: 650px;
    border-radius: 14px;
  }

  .week-timezone {
    min-height: 62px;
    padding: 0 4px 10px;
    font-size: 1.0rem;
  }

  .week-day-heading {
    min-height: 62px;
    gap: 2px;
    padding: 6px 4px;
  }

  .week-day-heading span {
    font-size: 1.0rem;
  }

  .week-day-heading strong {
    width: 34px;
    height: 34px;
    font-size: 2.0rem;
  }

  .week-all-day-label {
    min-height: 68px;
    padding: 6px 4px;
    font-size: 1.0rem;
  }

  .week-all-day-grid {
    grid-template-columns: repeat(7, minmax(86px, 1fr));
    grid-auto-rows: 22px;
    gap: 4px;
    min-height: 68px;
    padding: 6px;
  }

  .week-time-labels {
    grid-template-rows: repeat(12, 44px);
  }

  .week-hour-label {
    padding: 0 4px;
    font-size: 1.0rem;
    transform: translateY(-6px);
  }

  .week-hour-label:first-child {
    padding-top: 8px;
  }

  .week-time-grid {
    grid-template-columns: repeat(7, minmax(86px, 1fr));
    min-height: 528px;
    background-image: repeating-linear-gradient(to bottom, #dfe7ee 0, #dfe7ee 1px, transparent 1px, transparent 44px);
  }

  .week-day-column {
    min-height: 528px;
  }

  .all-day-event {
    padding: 3px 5px;
    font-size: 1.0rem;
  }

  .timed-event {
    left: 3px;
    right: 3px;
    min-height: 26px;
    padding: 4px 5px;
    border-radius: 4px;
  }

  .timed-event strong {
    font-size: 1.0rem;
  }

  .timed-event span,
  .timed-event small {
    font-size: 0.9rem;
  }

  .current-time-line i {
    left: -4px;
    top: -4px;
    width: 9px;
    height: 9px;
  }

  .month-calendar,
  .schedule-times,
  .schedule-row {
    min-width: 650px;
  }

  .month-calendar,
  .schedule-times {
    border-radius: 14px 14px 0 0;
  }

  .schedule-row:last-child {
    border-radius: 0 0 14px 14px;
  }

  .calendar-weekdays span {
    min-height: 36px;
    padding-inline: 6px;
    font-size: 1.0rem;
  }

  .calendar-day {
    min-height: 96px;
    padding: 5px;
  }

  .calendar-booking {
    padding: 5px 6px;
    font-size: 10rem;
  }

  .calendar-date strong {
    width: 28px;
    height: 28px;
    font-size: 1.6rem;
  }

  .schedule-times {
    grid-template-columns: 96px repeat(11, 58px);
    font-size: 1.0rem;
  }

  .schedule-times span {
    min-height: 36px;
  }

  .schedule-row {
    grid-template-columns: 96px minmax(638px, 1fr);
    min-height: 58px;
  }

  .schedule-label {
    padding: 8px 8px 8px 0;
  }

  .schedule-label strong {
    font-size: 1.1rem;
  }

  .schedule-label small,
  .schedule-label span {
    font-size: 0.9rem;
  }

  .schedule-track {
    min-height: 58px;
  }

  .schedule-booking {
    top: 8px;
    bottom: 8px;
    min-width: 58px;
    padding: 5px 6px;
    border-radius: 4px;
  }

  .schedule-booking strong,
  .schedule-booking span {
    font-size: 1.0rem;
  }
}
