/* 全体レイアウト */
.area-selector {
    max-width: 600px;
    margin: 0 auto;
    font-family: sans-serif;
    background:#f0f6fb;
    padding-bottom:1rem;
    position: relative;
    overflow: hidden;
    min-height: 285px;
}

.hidden {
    pointer-events: none;
    opacity: 0;
    transform: translateX(-100%);
    z-index: 0;
}

.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
    pointer-events: auto;
}

.area-selector h2 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    background: #005bac;
    padding: 12px;
    border-radius: 8px 8px 0 0;
    margin-bottom: 1rem !important;
    text-align: center;
}

.area-selector ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
    border-radius: 0 0 8px 8px;
    margin: 0;
    list-style: none;
}

#step1 li{ padding:12px; }

.area-selector li {
    background: #ffffff;
    border: 1px solid #005bac;
    border-top:0;
    font-size: 1rem;
    font-weight: bold;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0;
    padding-left:0.8rem;
}

.area-selector li a{
    display:block;
    padding:12px;
    text-decoration:none;
    color:#555;
    position:relative;
}

#step1 li::after,
.area-selector li a::after{
    content: ">";
    color: #005bac;
    position: absolute;
    top: 7px;
    right: 15px;
    font-size: 1.4rem;
    font-weight: bold;
}

.area-selector li:nth-child(2n){ border-left:0;}

.area-selector li:hover {
    background: #e6f0ff;
    border-color: #0073e6;
}

#back-button {
    display: inline-block;
    padding: 2px 16px;
    background: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    font-size: 1rem;
    top: 5px;
    right: 10px;
    color: #005bac;
}

#back-button:hover { background: #bbb;}
#step2.pref-step{position:relative;}
.area-selector_midashi::before{content:none!important}
.area-step_midashi{
    background-color: #005bac;
    color: white;
    margin-bottom: 0 !important;
    font-size: 1em !important;
    height: 2.5em;
    line-height: 2.5em !important;
    padding: 0 !important;
    padding-left: 1rem !important;
}

.area-selector ul {grid-template-columns: 1fr 1fr;}

.area-step{
    transition: transform 0.3s ease, opacity 0.3s ease;
    width: 94%;
    margin:auto;
    position: absolute;
    top: 94px;
    left: 11px;
}
.pref-step {
    transition: transform 0.3s ease, opacity 0.3s ease;
    width: 94%;
    margin:auto;
    position: absolute;
    top: 0;
    left: 0;
}

.area-step.active,
.pref-step.active {
    transform: translateX(0);
    opacity: 1;
    z-index: 1;
}

.area-step.hidden,
.pref-step.hidden {
    transform: translateX(-100%);
    opacity: 0;
    z-index: 0;
}

/*  PCビュー用のスタイル */
.pref-link-wrapper{
    padding:1rem 5em;
    background-color: #f0f6fb;
}
.pref-link-list dl {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.pref-link-list dt {
    margin-right: 1em;
    white-space: nowrap;
    min-width: 7em;
    padding-right:5px;
    border-right:2px dotted #a6a6a6;
}

.pref-link-list dd {
    margin: 0;
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}



.pref-link-list-header{
    margin-bottom:0 !important;
    text-align:center;
    position: relative;
    padding: 0 5.5em;
}

.pref-link-list-header span{
    font-size:1rem !important;
    font-weight:600 !important;
}
.pref-link-list-header p{
    font-weight:700;
    font-size:1.5rem;
}

.pref-link-list-header::before{
    position: absolute !important;
    top: 50%;
    left: 2em !important;
    right: auto;
    bottom: auto !important;
    display: block !important;
    width: 3em !important;
    height: 1px !important;
    pointer-events: none !important;
    content: "" !important;
    background: currentColor;
    border: none !important;
}
.pref-link-list-header::after{
    position: absolute;
    top: 50%;
    left: auto;
    right: 2em;
    bottom: auto;
    display: block;
    width: 3em;
    height: 1px;
    pointer-events: none;
    content: "";
    background: currentColor;
    border: none;
    line-height: 1.5
}

.absence_note{
    background-color: #f0f6fb;
    padding: 1rem;
    padding-top: 0;
    font-size: 12px;
    line-height: 1.2;
}
.absence_note a{
    color:#005bac;
}