/* Yu Mincho Font Styles */
h1,
h2 {
    font-family: "Yu Mincho", "游明朝", YuMincho, "Hiragino Mincho ProN", "Hiragino Mincho Pro", "HG明朝E", "ＭＳ Ｐ明朝", "MS PMincho", serif;
}

header .flex-shrink-0 span {
    font-family: "Yu Mincho", "游明朝", YuMincho, "Hiragino Mincho ProN", "Hiragino Mincho Pro", "HG明朝E", "ＭＳ Ｐ明朝", "MS PMincho", serif;
}

/* Variables */
:root {
    --text-primary: #1e293b;
    /* slate-800 */
    --text-secondary: #475569;
    /* slate-600 */
    --bg-base: #ffffff;
    --bg-surface: #ffffff;
    --bg-muted: #f1f5f9;
    /* slate-100 */
    --border-color: #e2e8f0;
    /* slate-200 */
    --brand-primary: #0ABAB5;
    /* Tiffany Blue */
    --brand-secondary: #f59e0b;
    /* amber-500 */
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-base);
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    font-size: 0.9375rem;
    /* 15px */
}

#app {
    margin: 0;
    padding: 0;
}

main {
    margin-top: 0;
    padding-top: 0;
}

/* Hero Background Image Animation */
.hero-bg-image {
    transition: opacity 4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
    background-attachment: scroll;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-bg-image-pc-2,
.hero-bg-image-sp-2 {
    opacity: 0;
}

/* Parallax Effect */
.hero-section {
    position: relative;
    overflow: hidden;
    margin-top: 0 !important;
    padding-top: 0 !important;
    top: 0;
}

/* Section Subtitle Font (Pinyon Script) */
.section-subtitle {
    font-family: "Pinyon Script", cursive;
    text-transform: capitalize;
    font-size: 0.875rem;
    /* 14px */
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    letter-spacing: 0.1em;
}

.section-title {
    font-size: 1.75rem;
    /* 28px */
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.section-title--compact {
    font-size: 1.5rem;
    /* 24px */
    font-weight: 500;
}

/* Swiper Navigation Buttons */
.swiper-nav-button {
    color: var(--text-secondary);
    background-color: transparent;
    width: 44px;
    height: 44px;
    transition: all 0.2s ease;
    --swiper-navigation-size: 28px;
    border-radius: 50%;
}

.swiper-nav-button:hover {
    background-color: var(--bg-muted);
    color: var(--brand-primary);
}

.swiper-button-disabled {
    opacity: 0.1;
    pointer-events: none;
}

/* Ad Banner Swiper */
.ad-banner-swiper .swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.8);
    width: 10px;
    height: 10px;
    opacity: 1;
}

.ad-banner-swiper .swiper-pagination-bullet-active {
    background-color: var(--brand-primary);
}

.faq-item .answer {
    transition: max-height 0.5s ease-out;
    max-height: 0;
    overflow: hidden;
}

.faq-item.open .answer {
    max-height: 500px;
    /* Adjust as needed */
    transition: max-height 0.5s ease-in;
}

.faq-item.open .icon {
    transform: rotate(45deg);
}

.announcement-tab {
    color: var(--text-secondary);
    transition: all 0.2s ease-in-out;
}

.announcement-tab.active-tab {
    color: var(--brand-primary);
    background-color: white;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

/* --- Auto Scroller for Partner Logos --- */
@keyframes scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-100% / 2));
    }
}

@keyframes scroll-right {
    from {
        transform: translateX(calc(-100% / 2));
    }

    to {
        transform: translateX(0);
    }
}

.scroller {
    overflow: hidden;
}

.scroller-inner {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
}

.scroller-inner.scroll-left {
    animation: scroll-left 120s linear infinite;
}

.scroller-inner.scroll-right {
    animation: scroll-right 120s linear infinite;
}

.scroller:hover .scroller-inner {
    animation-play-state: paused;
}

.scroller-inner>* {
    flex-shrink: 0;
    width: 250px;
    /* Adjust card width as needed */
    margin: 0 0.5rem;
    /* gap between cards */
}

/* --- Top search form selects normalization --- */
.hero-search select {
    -webkit-appearance: none;
    /* iOS Safari */
    appearance: none;
    min-width: 0;
    /* prevent overflow in grid/flex */
}

/* --- Hide carousel arrows on small screens --- */
@media (max-width: 768px) {

    .swiper-button-prev,
    .swiper-button-next {
        display: none !important;
    }
}

@media (min-width: 640px) {
    .scroller-inner>* {
        width: 300px;
    }
}

.description-truncate {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tags-container {
    height: 80px;
    overflow: hidden;
}

/* --- For Beginners Page Styles --- */
.container {
    max-width: 1080px;
    margin-inline: auto;
    padding: 24px
}

.hero {
    display: grid;
    gap: 20px;
    padding: 28px;
    border-radius: 16px;
    /* background: linear-gradient(180deg, #f0fffc 0%, #ffffff 60%); */
    border: 1px solid var(--border-color)
}

.eyebrow {
    color: var(--brand-primary);
    font-weight: 700;
    letter-spacing: .06em;
    font-size: .9rem
}

/* Scoped h1 for beginners page if needed, but keeping global for now as per original */
.hero h1 {
    font-size: clamp(2.0rem, 2.8vw, 3.0rem) !important;
    line-height: 1.3;
    margin: 0;
    color: #0f172a;
    border-bottom: 3px solid var(--brand-primary);
    padding-bottom: 12px
}

.lead {
    color: #374151;
    margin: 8px 0 0
}

.hero .cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
    justify-content: center
}

/* 中央寄せ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent
}

.btn-primary {
    background: var(--brand-primary);
    color: #fff
}

nav.toc {
    margin: 28px 0;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #fff
}

nav.toc h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color)
}

nav.toc ol {
    margin: 0;
    padding: 12px 24px 16px 32px;
    list-style-type: decimal
}

nav.toc li::marker {
    color: #000;
    font-weight: 700
}

nav.toc a {
    color: var(--brand-primary);
    text-decoration: none
}

/* Section styles from for-beginners */
.for-beginners-section {
    margin: 40px 0
}

.for-beginners-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 10px;
    border-bottom: 2px solid var(--brand-primary);
    padding-bottom: 8px
}

.subtitle {
    color: var(--text-secondary);
    margin: 0 0 16px
}

.grid {
    display: grid;
    gap: 20px
}

@media(min-width:768px) {
    .grid-2 {
        grid-template-columns: 1.1fr .9fr
    }
}

.card {
    background: #eff8f7;
    border: 1px solid var(--brand-primary);
    padding: 20px
}

.card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--brand-primary)
}

.card p {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-top: 1.6rem
}

.card p+p {
    margin-top: 1.6rem
}

.card[style*="margin-top:18px"] {
    background: transparent;
    border: none
}

.card[style*="margin-top:18px"] li {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 1rem
}

ul.clean {
    margin: 0;
    padding-left: 0
}

ul.clean li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 1rem
}

ul.clean li b {
    color: var(--brand-primary);
    font-weight: 700;
    flex-shrink: 0;
    width: 30%;
    display: flex;
    justify-content: space-between;
    align-items: center
}

ul.clean li b span {
    flex: 1
}

/* 画像プレースホルダー */
figure {
    margin: 0;
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: #fff
}

.ph {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    background: no-repeat center center;
    background-size: cover;
    background-image: url("../assets/images/for-beginners/シンガポール.webp");
}

.ph--1 {
    background-image: url("../assets/images/for-beginners/シンガポール.webp");
}

.ph--2 {
    background-image: url("../assets/images/for-beginners/5つの魅力.webp");
}

.ph--3 {
    background-image: url("../assets/images/for-beginners/5つの魅力2.webp");
}

.ph--4 {
    background-image: url("../assets/images/for-beginners/インタビュー例.webp");
}

.ph--5 {
    background-image: url("../assets/images/for-beginners/インタビュー例2.webp");
}

.ph--6 {
    background-image: url("../assets/images/for-beginners/シンガポール.webp");
}

.ph--7 {
    background-image: url("../assets/images/for-beginners/ベトナム.webp");
}

.ph--8 {
    background-image: url("../assets/images/for-beginners/寮.webp");
}

.ph--9 {
    background-image: url("../assets/images/for-beginners/5つの魅力3.webp");
}

.ph--10 {
    background-image: url("../assets/images/for-beginners/5つの魅力4.webp");
}

.ph--11 {
    background-image: url("../assets/images/for-beginners/5つの魅力5.webp");
}

.ph--12 {
    background-image: url("../assets/images/for-beginners/インタビュー例3.webp");
}

.ph--13 {
    background-image: url("../assets/images/for-beginners/インタビュー例4.webp");
}

.ph--14 {
    background-image: url("../assets/images/for-beginners/タイ.webp");
}

.ph--15 {
    background-image: url("../assets/images/for-beginners/マレーシア.webp");
}

figcaption {
    font-size: .9rem;
    color: #475569;
    padding: 10px 12px;
    background: #f9fafb;
    border-top: 1px dashed var(--border-color)
}

/* メリット：画像→文面→画像→文面… */
.merits {
    display: grid;
    gap: 24px
}

.merit-row {
    display: grid;
    gap: 14px
}

@media(min-width:900px) {
    .merit-row {
        grid-template-columns: 1.05fr 1fr;
        align-items: start
    }
}

.merit-row.reverse {
    direction: rtl
}

.merit-row.reverse>* {
    direction: ltr
}

.merit-text {
    background: #fff;
    border-radius: 14px;
    padding: 16px
}

.merit-text h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 6px;
    background: #eff8f7;
    border-left: 4px solid var(--brand-primary);
    padding: 8px 12px;
    color: var(--brand-primary)
}

.merit-text p {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-top: 1.6rem
}

.merit-text p+p {
    margin-top: 1.6rem
}

/* インタビュー */
.stack {
    display: grid;
    gap: 20px
}

.stack .block {
    display: grid;
    gap: 10px
}

@media(min-width:840px) {
    .stack .block {
        grid-template-columns: 1fr 1.2fr;
        align-items: start
    }
}

.stack .card h3 {
    margin-top: 0
}

/* 国エリア */
.country {
    display: grid;
    gap: 16px
}

@media(min-width:840px) {
    .country {
        grid-template-columns: 1fr 1.1fr
    }
}

.country h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 1rem;
    background: #eff8f7;
    border-left: 4px solid var(--brand-primary);
    padding: 8px 12px
}

.country p {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 1rem
}

/* CTA */
.cta-band {
    display: grid;
    gap: 12px;
    align-items: center;
    grid-template-columns: 1fr;
    padding: 16px;
    border: 1px solid var(--brand-primary);
    background: #eff8f7;
    text-align: center
}


.cta-band h3 {
    margin: 0;
    font-size: 1.6rem
}

.cta-band .btn {
    padding: 16px 24px;
    font-size: 1.2rem
}

/* FAQ 表示調整 */
details {
    background: #fff;
    border: 1px solid var(--brand-primary);
    margin: 10px 0
}

summary {
    cursor: pointer;
    padding: 16px 20px;
    font-weight: 700;
    background: var(--brand-primary);
    color: #fff;
    font-size: 1.1rem
}

details[open] summary {
    border-bottom: 1px solid var(--border-color)
}

.a {
    padding: 16px 24px;
    color: #374151;
    font-size: 1.1rem
}

/* Flow timeline */
.flow-steps {
    list-style: none;
    margin: 0;
    padding: 0
}

.flow-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 20px;
    margin: 18px 0;
    align-items: start;
    min-height: 80px
}

.flow-step__icon {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 9999px;
    background: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff
}

.flow-step__icon svg {
    width: 26px;
    height: 26px
}

.flow-step:not(:last-child) .flow-step__icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 56px;
    transform: translateX(-50%);
    width: 0;
    height: calc(100% + 18px);
    border-left: 2px dashed var(--brand-primary)
}

.flow-step__title {
    margin: 0 0 6px;
    font-weight: 700;
    color: var(--brand-primary);
    font-size: 1.2rem
}

.flow-step__desc {
    margin: 0;
    background: #eff8f7;
    border: 1px solid #aceae2;
    padding: 8px 12px
}

@media(min-width:900px) {
    .flow-step {
        grid-template-columns: 64px 1fr
    }

    .flow-step__icon {
        width: 64px;
        height: 64px
    }

    .flow-step:not(:last-child) .flow-step__icon::after {
        top: 64px
    }
}

footer {
    margin: 52px 0 24px;
    color: #6b7280;
    font-size: .9rem
}

/* --- Legal Pages (Terms, Privacy) --- */
body.page-terms,
body.page-privacy {
    background-color: #f1f5f9;
    /* slate-100 */
}

.terms-content h2,
.privacy-content h2 {
    color: var(--brand-primary);
    border-bottom: 2px solid var(--brand-primary);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.terms-content h3,
.privacy-content h3 {
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.terms-content p,
.privacy-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.terms-content ol,
.privacy-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.terms-content li,
.privacy-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.terms-content .article-number,
.privacy-content .article-number {
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 0.5rem;
}

/* --- Partners Page Styles --- */
.filter-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    font-size: 0.8125rem;
    /* 13px */
    transition: all 0.2s ease;
    cursor: pointer;
    color: var(--text-secondary);
    background-color: white;
    font-weight: 500;
}

.cta-band {
    display: grid;
    gap: 12px;
    align-items: center;
    grid-template-columns: 1fr;
    padding: 16px;
    border: 1px solid var(--brand-primary);
    background: #eff8f7;
    text-align: center
}


.cta-band h3 {
    margin: 0;
    font-size: 1.6rem
}

.cta-band .btn {
    padding: 16px 24px;
    font-size: 1.2rem
}

/* FAQ 表示調整 */
details {
    background: #fff;
    border: 1px solid var(--brand-primary);
    margin: 10px 0
}

summary {
    cursor: pointer;
    padding: 16px 20px;
    font-weight: 700;
    background: var(--brand-primary);
    color: #fff;
    font-size: 1.1rem
}

details[open] summary {
    border-bottom: 1px solid var(--border-color)
}

.a {
    padding: 16px 24px;
    color: #374151;
    font-size: 1.1rem
}

/* Flow timeline */
.flow-steps {
    list-style: none;
    margin: 0;
    padding: 0
}

.flow-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 20px;
    margin: 18px 0;
    align-items: start;
    min-height: 80px
}

.flow-step__icon {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 9999px;
    background: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff
}

.flow-step__icon svg {
    width: 26px;
    height: 26px
}

.flow-step:not(:last-child) .flow-step__icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 56px;
    transform: translateX(-50%);
    width: 0;
    height: calc(100% + 18px);
    border-left: 2px dashed var(--brand-primary)
}

.flow-step__title {
    margin: 0 0 6px;
    font-weight: 700;
    color: var(--brand-primary);
    font-size: 1.2rem
}

.flow-step__desc {
    margin: 0;
    background: #eff8f7;
    border: 1px solid #aceae2;
    padding: 8px 12px
}

@media(min-width:900px) {
    .flow-step {
        grid-template-columns: 64px 1fr
    }

    .flow-step__icon {
        width: 64px;
        height: 64px
    }

    .flow-step:not(:last-child) .flow-step__icon::after {
        top: 64px
    }
}

footer {
    margin: 52px 0 24px;
    color: #6b7280;
    font-size: .9rem
}

/* --- Legal Pages (Terms, Privacy) --- */
body.page-terms,
body.page-privacy {
    background-color: #f1f5f9;
    /* slate-100 */
}

.terms-content h2,
.privacy-content h2 {
    color: var(--brand-primary);
    border-bottom: 2px solid var(--brand-primary);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.terms-content h3,
.privacy-content h3 {
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.terms-content p,
.privacy-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.terms-content ol,
.privacy-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.terms-content li,
.privacy-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.terms-content .article-number,
.privacy-content .article-number {
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 0.5rem;
}

/* --- Partners Page Styles --- */
.filter-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    font-size: 0.8125rem;
    /* 13px */
    transition: all 0.2s ease;
    cursor: pointer;
    color: var(--text-secondary);
    background-color: white;
    font-weight: 500;
}

.filter-tag:hover {
    background-color: var(--bg-muted);
    border-color: #d1d5db;
}

.filter-tag.active {
    background-color: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

/* --- Job Detail Page Styles --- */
.prose {
    line-height: 1.8;
}

.prose h2 {
    font-size: 1.25rem;
    font-weight: 700;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--brand-primary);
    margin-bottom: 1.5rem;
}

.prose p,
.prose ul {
    margin-bottom: 1.5rem;
}

.prose ul {
    list-style-type: none;
    padding-left: 0;
}

.prose li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
}

.prose li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.4rem;
    width: 1rem;
    height: 1rem;
    background-color: var(--brand-primary);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center / contain;
}

/* Lightbox for gallery */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* --- Job Form Styles --- */
.page-job-form {
    font-size: 1rem;
}

.page-header {
    padding: 1rem 1rem 1.5rem;
}

.page-header h1 {
    font-size: 1.5rem;
    line-height: 1.3;
    margin: 0 0 0.5rem 0;
}

.page-header p {
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

.form-container {
    padding: 1rem;
}

.form-wrapper {
    padding: 1.25rem;
    border-radius: 0.75rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--brand-primary);
    border-bottom: 2px solid var(--brand-primary);
    padding-bottom: 0.625rem;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary);
    margin-bottom: 0.625rem;
    line-height: 1.5;
}

.form-label .required {
    color: #ef4444;
    margin-left: 0.25rem;
    font-size: 0.875rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 0.625rem;
    font-size: 1rem;
    transition: all 0.2s;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    min-height: 44px;
    line-height: 1.5;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23334155' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(10, 186, 181, 0.15);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    padding: 0.875rem 1rem;
    line-height: 1.6;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: 0.5rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 9999px;
    background: var(--bg-surface);
    cursor: pointer;
    transition: all 0.2s;
    min-height: 44px;
    font-size: 0.9375rem;
    -webkit-tap-highlight-color: rgba(10, 186, 181, 0.1);
}

.chip:active {
    border-color: var(--brand-primary);
    background: #f0fdfa;
    transform: scale(0.98);
}

.chip input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

.upload-area {
    border: 2px dashed #c4b5fd;
    border-radius: 0.75rem;
    padding: 1.25rem 1rem;
    text-align: center;
    background: #fafaff;
    transition: all 0.2s;
}

.upload-area:active {
    background: #f5f3ff;
    border-color: var(--brand-primary);
}

.upload-area p {
    margin: 0 0 0.75rem 0;
    font-size: 0.875rem;
    line-height: 1.5;
    font-weight: 600;
    color: #6d28d9;
}

.upload-area input[type="file"] {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    width: 100%;
    padding: 0.5rem;
    min-height: 44px;
}

.btn-submit {
    width: 100%;
    padding: 1.125rem 1.5rem;
    background: var(--brand-primary);
    color: #ffffff;
    border: none;
    border-radius: 0.625rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 52px;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
}

.btn-submit:active:not(:disabled) {
    background: #0891b2;
    transform: scale(0.98);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.alert {
    padding: 1rem;
    border-radius: 0.625rem;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.alert strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1.5px solid #6ee7b7;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1.5px solid #fca5a5;
}

.loading-spinner {
    display: inline-block;
    width: 1.125rem;
    height: 1.125rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.note {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 0.375rem;
    line-height: 1.5;
}

.link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--brand-primary);
    color: #ffffff;
    font-weight: 700;
    border-radius: 0.625rem;
    text-decoration: none;
    min-height: 44px;
    font-size: 0.9375rem;
    transition: all 0.2s;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
}

.link-button:active {
    background: #0891b2;
    transform: scale(0.98);
}

.salary-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0.5rem;
}

.fieldset-group {
    border: 1.5px solid var(--border-color);
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(10, 186, 181, 0.15);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    padding: 0.875rem 1rem;
    line-height: 1.6;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: 0.5rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 9999px;
    background: var(--bg-surface);
    cursor: pointer;
    transition: all 0.2s;
    min-height: 44px;
    font-size: 0.9375rem;
    -webkit-tap-highlight-color: rgba(10, 186, 181, 0.1);
}

.chip:active {
    border-color: var(--brand-primary);
    background: #f0fdfa;
    transform: scale(0.98);
}

.chip input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

.upload-area {
    border: 2px dashed #c4b5fd;
    border-radius: 0.75rem;
    padding: 1.25rem 1rem;
    text-align: center;
    background: #fafaff;
    transition: all 0.2s;
}

.upload-area:active {
    background: #f5f3ff;
    border-color: var(--brand-primary);
}

.upload-area p {
    margin: 0 0 0.75rem 0;
    font-size: 0.875rem;
    line-height: 1.5;
    font-weight: 600;
    color: #6d28d9;
}

.upload-area input[type="file"] {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    width: 100%;
    padding: 0.5rem;
    min-height: 44px;
}

.btn-submit {
    width: 100%;
    padding: 1.125rem 1.5rem;
    background: var(--brand-primary);
    color: #ffffff;
    border: none;
    border-radius: 0.625rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 52px;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
}

.btn-submit:active:not(:disabled) {
    background: #0891b2;
    transform: scale(0.98);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.alert {
    padding: 1rem;
    border-radius: 0.625rem;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.alert strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1.5px solid #6ee7b7;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1.5px solid #fca5a5;
}

.loading-spinner {
    display: inline-block;
    width: 1.125rem;
    height: 1.125rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.note {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 0.375rem;
    line-height: 1.5;
}

.link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--brand-primary);
    color: #ffffff;
    font-weight: 700;
    border-radius: 0.625rem;
    text-decoration: none;
    min-height: 44px;
    font-size: 0.9375rem;
    transition: all 0.2s;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
}

.link-button:active {
    background: #0891b2;
    transform: scale(0.98);
}

.salary-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0.5rem;
}

.fieldset-group {
    border: 1.5px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.fieldset-group legend {
    font-weight: 700;
    color: var(--text-primary);
    padding: 0 0.5rem;
    font-size: 0.9375rem;
}

@media (min-width: 640px) {
    .page-header {
        padding: 1.5rem 1.5rem 2rem;
    }

    .page-header h1 {
        font-size: 1.875rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .form-container {
        padding: 1.5rem;
    }

    .form-wrapper {
        padding: 2rem;
    }

    .form-section h2 {
        font-size: 1.25rem;
    }

    .form-label {
        font-size: 0.9375rem;
    }

    .chips {
        gap: 0.75rem;
    }

    .chip {
        padding: 0.625rem 1.125rem;
        min-height: auto;
    }

    .upload-area {
        padding: 1.5rem;
    }

    .upload-area p {
        font-size: 0.9375rem;
    }

    .salary-row {
        grid-template-columns: 120px 1fr;
    }
}

@media (min-width: 768px) {
    .grid-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

/* --- Announcement Detail Page Styles --- */
.page-announcement .prose h2 {
    margin-top: 2.5rem;
}

.page-announcement .prose a {
    color: var(--brand-primary);
    text-decoration: underline;
}

.page-announcement .prose a:hover {
    opacity: 0.8;
}