/* ==========================================
   自炊の森 公式サイト CSS
   ========================================== */

/* ===== 2. 混雑状況 ===== */
.top-status-area.container {
    width: 94%;
    max-width: 1000px;
    margin: 30px auto 20px;
    padding: 0;
}

.status-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.vacant-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: var(--primary-blue);
    border: 2px solid var(--accent-blue);
    border-radius: 16px;
    padding: 10px 40px;
    max-width: 800px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.status-info {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.status-badge {
    flex-shrink: 0;
    background: var(--accent-blue);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: bold;
}

.count-num {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-blue);
    margin: 0 5px;
}

.vacant-status.is-warning {
    background: #fef08a;
    border-color: #facc15;
}
.vacant-status.is-warning .status-badge {
    background: #facc15;
    color: #713f12;
}
.vacant-status.is-warning .count-num {
    color: #854d0e;
}

.vacant-status.is-alert {
    background: #fef2f2;
    border-color: #ef4444;
    animation: pulse 2s infinite;
}

.vacant-status.is-alert .status-badge {
    background: #ef4444;
}

.vacant-status.is-alert .count-num {
    color: #b91c1c;
}

@keyframes pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.count-label,
.total-num,
.status-time {
    color: #4b5563;
    font-size: 1rem;
}

.status-time {
    display: block;
    font-size: 0.85rem;
    color: var(--text-sub);
    margin-top: -4px;
    line-height: 1;
}


/* ===== 3. お知らせ ===== */
.important-news-section {
    padding-bottom: 20px;
}

.info-list-item {
    border-bottom: 1px solid #eee;
    list-style: none !important;
}

.info-row-container {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 10px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
    gap: 10px;
}

.faq-question {
    padding: 0 10px !important;
    background: none !important;
}

.info-link-wrapper:hover {
    background-color: #fcfcfc;
}

.info-link-wrapper:hover .info-text {
    color: #d32f2f;
    text-decoration: underline;
}

.info-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    line-height: 1.4;
    margin-right: 10px;
    white-space: nowrap;
    vertical-align: middle;
    background-color: var(--primary-blue);
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
    flex-shrink: 0;
}

.info-tag.green {
    background-color: var(--primary-green);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
}

.info-tag.alert {
    background-color: #ffebee;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
}

.info-text {
    flex-grow: 1;
    font-size: 0.95rem;
}


/* ===== 4. 新刊入荷情報 ===== */
.new-arrivals-section {
    margin-bottom: 0 auto;
}

.new-arrivals-scroller {
    overflow-x: auto;
    background: #fdfdfd;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 10px;
}

.book-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
    width: max-content;
    align-items: flex-start;
}

.book-item {
    width: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.book-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: inherit;
}



.book-cover {
	position: relative;
    width: 120px;
    height: 170px;
    background-color: #eee;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.book-cover img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: 100%;
    display: block;
    z-index: 1;
}


.book-item p {
    margin: 4px 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-main);
}

.view-all-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 170px;
    background: var(--primary-blue);
    border: 1px dashed var(--accent-blue);
    border-radius: 6px;
    color: var(--accent-blue) !important;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    padding: 10px;
}

.view-all-card:hover {
    background: var(--accent-blue);
    color: #fff !important;
    border-style: solid;
}


/* ===== 5. サービス紹介（Hero） ===== */
.hero-container {
    text-align: center;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content {
    width: 100%;
}

.hero-pattern-1 {
    text-align: center;
}

.hero-label {
    font-size: 1rem;
    color: var(--text-sub);
    margin-bottom: 5px;
}

.hero-main {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 5px;
}

.hero-num {
    font-size: 80px;
    font-weight: 900;
    color: var(--theme-color);
    line-height: 1;
}

.hero-unit {
    font-size: 28px;
    font-weight: bold;
}

.hero-sub {
    font-size: 1.5rem;
    margin-top: 10px;
    font-weight: bold;
}

.hero-desc {
    margin-top: 15px;
    color: var(--text-sub);
    line-height: 1.6;
}

.highlight {
    color: #d32f2f;
    font-weight: 900;
}

.cut {
    color: var(--theme-color);
    font-size: 3.0rem;
    font-weight: 900;
}

/* サービス切り替えカード */
.service-selector {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px auto 50px;
    width: 100%;
    max-width: 960px;
}

.service-card {
    flex: 1;
    max-width: 460px;
    min-height: 100px;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.service-card.active {
    border-color: var(--theme-color) !important;
    background-color: var(--theme-bg) !important;
}

.service-card:not(.active):hover {
    border-color: #ccc;
    background-color: #fcfcfc;
}

.card-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--theme-color);
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 12px;
    border-bottom-left-radius: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2;
}

.service-card.active .card-badge { opacity: 1; }

.card-icon {
    font-size: 2.8rem;
    margin-right: 20px;
    opacity: 0.3;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.service-card.active .card-icon {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

.card-main {
    font-weight: 800;
    font-size: 1.3rem;
    color: #999;
}

.service-card.active .card-main {
    color: var(--theme-color) !important;
}

/* Hero パネル */
div.hero-pane         { display: none; width: 100%; }
div.hero-pane.active  { display: block !important; animation: fadeIn 0.6s ease; }

.hero-image-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.hero-image-wrapper img {
    width: 100%;
    max-width: 1000px;
    border-radius: 12px;
    display: block;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

/* アピールポイント */
div.appeal-pane        { display: none; width: 100%; margin-top: 30px; }
div.appeal-pane.active { display: block !important; animation: fadeIn 0.6s ease; }

.appeal-inner {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: nowrap;
}

.appeal-inner.improved {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.appeal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 5px;
}

.appeal-item {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    border: 1px solid #eee;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
}

.appeal-item:nth-child(2) {
    border: 2px solid var(--theme-color);
    background: var(--theme-bg);
    transform: scale(1.05);
}

.appeal-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.appeal-icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
}

.appeal-label {
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1.2;
    margin-bottom: 10px;
}

.appeal-text {
    display: block;
    width: 100%;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.6;
    margin-top: 10px;
    font-size: 0.95rem;
    color: var(--text-sub);
    font-weight: normal;
}

.appeal-text strong {
    color: var(--theme-color);
    font-size: 1.1rem;
}

.appeal-divider {
    width: 1px;
    height: 40px;
    background-color: #eee;
    align-self: center;
}

.appeal-highlight {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 1.05rem;
    color: var(--text-main);
    white-space: nowrap;
}

.appeal-highlight span:first-child {
    color: var(--theme-color);
    font-weight: 900;
    font-size: 1.2rem;
}

.status-green {
    background-color: var(--green-bg);
    color: var(--green-text);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 1.05rem;
    margin-left: 8px;
    font-weight: bold;
    display: inline-block;
}

/* CTAボタンエリア */
.hero-actions-section {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.hero-btns a {
    min-width: 200px;
    padding: 15px 25px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* 裁断代行ヒーローコピー */
.hero-copy-main {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 15px;
}

.hero-copy-main br {
    display: block;
}


/* ===== 6. ご利用の流れ ===== */
.steps-pane        { display: none; }
.steps-pane.active { display: block !important; animation: fadeIn 0.6s ease; }

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 0;
}

.step-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s ease;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
}

.step-card .num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background-color: var(--theme-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.step-card h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-main);
    line-height: 1.2;
}

.step-card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-sub);
}


/* ===== 7. 料金シミュレーター ===== */
#calc-section {
    scroll-margin-top: 100px;
}

.calc-box {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    margin: 0 auto 40px;
    max-width: 900px;
}

.calc-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-end;
}

.calc-inputs .input-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.input-group select,
.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
}

#calc-btn {
    flex: 0 0 100%;
    margin-top: 10px;
    padding: 15px;
    font-size: 1.1rem;
    height: 52px;
}

.calc-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* JSの display:none をCSSより優先させる */
#calc-results-scan[style*="display: none"],
#calc-results-cut-instore[style*="display: none"],
#calc-results-cut-mail[style*="display: none"],
#calc-results-scan[style*="display:none"],
#calc-results-cut-instore[style*="display:none"],
#calc-results-cut-mail[style*="display:none"] {
    display: none !important;
}

.res-item,
.res-highlight {
    padding: 15px;
    border-radius: 10px;
    background: #f9f9f9;
    text-align: center;
}

.res-highlight {
    background: var(--theme-bg);
    color: var(--theme-color);
}

.res-item p,
.res-highlight p {
    font-size: 1.4rem;
    font-weight: bold;
    margin: 0;
    transition: all 0.5s ease;
}

.update-flash {
    color: var(--accent-blue);
    transform: scale(1.05);
}

#book-type option[style*="display: none"] {
    display: none !important;
}

.calc-results-2col {
    grid-template-columns: repeat(2, 1fr);
}

.calc-results-breakdown {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 16px 20px;
    animation: fadeIn 0.3s ease;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.breakdown-row:last-of-type {
    border-bottom: none;
}

.breakdown-label {
    color: var(--text-sub);
}

.breakdown-val {
    font-weight: bold;
    color: var(--text-main);
    white-space: nowrap;
    margin-left: 12px;
}

.breakdown-approx {
    color: var(--text-sub);
    font-weight: normal;
}

.breakdown-total {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 2px solid var(--border-color) !important;
    border-bottom: none !important;
}

.breakdown-total .breakdown-label {
    font-weight: bold;
    color: var(--text-main);
    font-size: 1rem;
}

.breakdown-total .breakdown-val {
    font-size: 1.4rem;
    color: var(--theme-color);
}

.breakdown-note {
    font-size: 0.8rem;
    color: var(--text-sub);
    margin: 10px 0 0;
    padding-top: 8px;
    border-top: 1px dashed var(--border-color);
}


/* ===== 8. FAQ ===== */
.faq-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    overflow: hidden;
}

.faq-question {
    padding: 15px 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    transition: background 0.3s;
}

.faq-question:hover { background: #fcfcfc; }

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--accent-blue);
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    background: #fafafa;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 20px 20px;
}


/* ===== 9. Bottom CTA ===== */
.bottom-cta {
    padding: 50px 0;
    margin-bottom: 20px;
    background-color: #f4f7fa;
}

.cta-card {
    background: #fff;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-card h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.cta-card p {
    color: var(--text-sub);
    margin-bottom: 35px;
    font-size: 1.1rem;
}

.cta-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btns .btn-primary,
.cta-btns .btn-secondary-outline {
    min-width: 260px;
    height: 60px;
    font-size: 1.1rem;
}

.access-map {
    margin: 30px auto;
    width: 100%;
    max-width: 700px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.access-map iframe {
    display: block;
}

.cta-info-flex {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    margin-top: 20px;
    text-align: left;
}

.cta-info-flex .status-container {
    flex: 1;
    max-width: 450px;
}

.cta-info-flex .vacant-status {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px;
    margin: 0;
}

.business-hours {
    flex: 1;
    max-width: 450px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.business-hours .info-label {
    display: inline-block;
    background: var(--text-main);
    color: #fff;
    padding: 2px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    border: none;
}

.business-hours .info-value {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-main);
    margin: 0 20px;
}

/* ===== 料金シミュレーター補足テキスト ===== */
.calc-notes {
    max-width: 900px;
    margin: -20px auto 40px;
    padding: 0 30px;
    box-sizing: border-box;
}

.calc-note-pane         { display: none; }
.calc-note-pane.active  { display: block; animation: fadeIn 0.4s ease; }

.calc-notes p,
.calc-notes li {
    font-size: 0.82rem;
    color: var(--text-sub);
    margin: 0;
    line-height: 1.7;
}

.calc-notes ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
}

.calc-notes li::before {
    content: "※ ";
    color: var(--text-sub);
}


/* ===== チェックリスト ===== */
.checklist-section { padding: 40px 0; }

.checklist-lead {
    text-align: center;
    color: var(--text-sub);
    margin: -10px 0 30px;
    font-size: 0.95rem;
    padding: 0 20px;
}

.checklist-pane         { display: none; }
.checklist-pane.active  { display: block; animation: fadeIn 0.4s ease; }

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.checklist-rules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.checklist-card,
.checklist-rules-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px 20px;
}

.checklist-card-header,
.checklist-rules-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.checklist-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background-color: var(--theme-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.checklist-card-header h3,
.checklist-rules-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-main);
}

.checklist-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-main);
}

.check-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: var(--accent-blue);
    font-size: 0.75rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.check-icon.check-info {
    background: var(--green-bg);
    color: var(--green-text);
    font-style: normal;
    font-weight: bold;
}

.check-icon.check-warn {
    background: #fff8e1;
    color: #f57f17;
    font-style: normal;
    font-weight: bold;
}

.checklist-legal {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.checklist-legal-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    font-size: 0.88rem;
    color: var(--text-sub);
    cursor: pointer;
    background: #fafafa;
    user-select: none;
    transition: background 0.2s;
}

.checklist-legal-toggle:hover { background: #f3f3f3; }

.legal-chevron {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.checklist-legal.open .legal-chevron { transform: rotate(180deg); }

.checklist-legal-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 18px;
    font-size: 0.85rem;
    color: var(--text-sub);
    line-height: 1.7;
    background: #fafafa;
}

.checklist-legal.open .checklist-legal-body {
    max-height: 200px;
    padding: 14px 18px;
}


/* ===== 宅配折りたたみ（ご利用の流れ内） ===== */
.delivery-accordion {
    margin-top: 20px;
}

.delivery-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 18px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.92rem;
    color: var(--text-main);
    font-weight: 500;
    text-align: left;
    transition: background 0.2s, border-color 0.2s;
    font-family: inherit;
}

.delivery-toggle:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.delivery-toggle[aria-expanded="true"] {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
    background: #f0f0f0;
}

.delivery-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.delivery-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--primary-blue);
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
    white-space: nowrap;
    flex-shrink: 0;
}

body.mode-cutting .delivery-badge {
    background: var(--primary-green);
    color: var(--accent-green);
    border-color: var(--accent-green);
}

.delivery-chevron {
    font-size: 0.72rem;
    color: var(--text-sub);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.delivery-toggle[aria-expanded="true"] .delivery-chevron {
    transform: rotate(180deg);
}

.delivery-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    border: 1px solid var(--border-color);
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    padding: 0 18px;
    box-sizing: border-box;
}

.delivery-body.open {
    max-height: 600px;
    padding: 20px 18px;
}

.delivery-steps {
    margin-bottom: 0;
}

/* ご利用の流れ内 注意点リスト */
.steps-notes {
    margin-top: 16px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 18px;
}

.steps-notes-delivery {
    margin-top: 16px;
    margin-bottom: 0;
}

.steps-notes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.steps-notes-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-main);
}

@media (max-width: 768px) {
    .steps-notes {
        padding: 12px 14px;
    }
}

/* ============================================================
   weeklyvacant_widget.css
   週間空き状況 — トリガーボタン & モーダルパネル
   旧 weeklyvacant.php のデザインを継承
   ============================================================ */

/* ----- トリガーボタン ----- */
.vacancy-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.vacancy-trigger-btn:hover {
  background: #f5f5f5;
}

.vacancy-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.vacancy-dot--open   { background: royalblue; }
.vacancy-dot--busy   { background: gold; border: 1px solid #bbb; }
.vacancy-dot--closed { background: darkgray; }
.vacancy-dot--full   { background: #F22; }


/* ----- オーバーレイ ----- */
.vacancy-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.40);
  z-index: 9998;
  align-items: center;
  justify-content: center;
}
.vacancy-overlay.open {
  display: flex;
}


/* ----- パネル本体 ----- */
.vacancy-panel {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #ddd;
  padding: 20px 24px;
  width: min(540px, 95vw);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  z-index: 9999;
}

.vacancy-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.vacancy-panel__title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  margin: 0;
}
.vacancy-panel__header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.vacancy-panel__updated {
  font-size: 11px;
  color: #888;
}

.vacancy-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.1s;
}
.vacancy-close-btn:hover {
  background: #f0f0f0;
}
