* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 背景キャンバス */
#bg-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* ルート背景をhtmlに移動し、canvasをその上・コンテンツの下に配置 */
html {
    background: linear-gradient(45deg, #f4e8ff, #ddf3ff);
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

body {
    font-family: 'Hiragino Sans', 'Yu Gothic UI', 'Meiryo UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background: transparent;
    /* 固定フォームのスペースを確保 */
    padding-right: 320px;
}

/* 固定登録フォーム */
.fixed-registration-form {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    z-index: 1001;
    padding: 0;
    overflow: hidden;
    overflow-y: auto;
}

/* モバイル用右上ロゴ */
.mobile-logo {
    display: none;
    position: fixed;
    top: 16px;
    left: 20px;
    height: 40px;
    z-index: 1100;
}

.form-header {
    color: #333;
    margin-top: 20px;
    padding: 15px 20px;
    text-align: center;
    position: relative;
}

.form-header::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%) rotate(-1deg);
    bottom: 15px;
    width: 250px;
    height: 0.8em;
    background: linear-gradient(90deg, rgba(255, 235, 59, 0.9), rgba(249, 208, 72, 0.9));
    border-radius: 6px;
    z-index: 0;
    filter: blur(0.2px);
}

.form-header h2 {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0;
    position: relative;
    z-index: 1; /* マーカーの上にテキストを表示 */
}

.registration-form {
    padding: 20px;
}

.registration-form .form-group {
    margin-bottom: 30px;
}

.required-label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    position: relative;
}

.required-label::before {
    content: "必須";
    background: #007bff;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 8px;
    font-weight: normal;
}

.name-inputs {
    display: flex;
    gap: 8px;
}

.name-inputs input {
    flex: 1;
}

.birth-inputs {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.birth-col {
    display: flex;
    flex-direction: column;
}

.birth-col:first-child {
    flex: 3;
}

.birth-col:nth-of-type(2), .birth-col:nth-of-type(3) {
    flex: 2;
}

.birth-label {
    font-size: 0.8rem;
    color: #666;
}

.birth-inputs input {
    width: 80px;
    text-align: center;
}

.birth-inputs span {
    font-size: 0.9rem;
    color: #666;
    margin: 0 2px;
}

.registration-form input[type="text"],
.registration-form input[type="email"],
.registration-form input[type="tel"] {
    width: 100%;
    height: 45px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.registration-form input[type="text"]:focus,
.registration-form input[type="email"]:focus,
.registration-form input[type="tel"]:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

.privacy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 15px 0;
    font-size: 0.9rem;
}

.privacy-checkbox input[type="checkbox"] {
    margin: 0;
    margin-top: 2px;
}

.privacy-checkbox label {
    margin: 0;
    line-height: 1.4;
    color: #666;
}

.privacy-link {
    color: #007bff;
    text-decoration: underline;
}

.privacy-link:hover {
    color: #0056b3;
}

.search-button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.registration-button {
    width: 100%;
    background: #e74c3c;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.registration-button:hover {
    background: #c0392b;
}

.registration-button:active {
    transform: translateY(1px);
}

.registration-button:disabled {
    background: #e9e3e3;
    color: #848282;
    cursor: not-allowed;
}

/* ボタン内スピナー */
.registration-button .loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: text-top;
    margin: 0 8px 0 0;
}

.registration-button.is-loading {
    cursor: wait;
}

/* ハンバーガー＆モバイルメニュー */
.mobile-topbar {
    display: none;
}

.hamburger-button {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    display: none; /* デスクトップでは非表示 */
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    z-index: 1100;
}

.hamburger-button span {
    display: block;
    width: 22px;
    height: 2px;
    background: #666;
    margin: 3px 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

.hamburger-button.active span:nth-child(1) { 
    transform: translateY(8px) rotate(45deg) scale(1.2);
    background: #e74c3c;
}
.hamburger-button.active span:nth-child(2) { 
    opacity: 0; 
    transform: scaleX(0);
}
.hamburger-button.active span:nth-child(3) { 
    transform: translateY(-8px) rotate(-45deg) scale(1.2);
    background: #e74c3c;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(8px) saturate(140%);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 80px 20px 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1099;
}

.mobile-menu a {
    display: block;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.mobile-menu a:hover {
    background-color: #f8f9fa;
}

.mobile-menu .mobile-cta {
    background: #e74c3c;
    color: #fff;
    text-align: center;
    border: none;
    padding: 10px;
    margin-top: 20px;
    border-radius: 8px;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

body.no-scroll {
    overflow: hidden;
}

/* ヘッダー */
.header {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    position: fixed;
    width: calc(100% - 360px); /* 固定フォームのスペースを引く */
    top: 20px;
    left: 20px; /* 左端に配置 */
    z-index: 1000;
    border-radius: 33px;
}

.header-container {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
    margin-right: 10px;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav a {
    text-decoration: none;
    color: #5f5f5f;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: #e74c3c;
}

.cta-button {
    display: none;
}

/* ヒーローセクション */
.hero {
    padding: 120px 0 80px;
    margin-top: 80px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 0 30px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-cta {
    display: none;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    width: 90%;
    object-fit: cover;
    border-radius: 15px;
    animation: floatY 6s ease-in-out infinite;
}

@keyframes floatY {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* セクション共通スタイル */
.section {
    margin-bottom: 100px;
    padding: 0 0 80px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
}

.section-header {
    width: 50%;
    background: linear-gradient(135deg, #B3A9EA 0%, #8FB8E3 100%);
    border-bottom-right-radius: 50px;
    color: white;
    padding: 20px 40px;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
}

.section-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 選ばれる理由セクション */
#features {
    margin-right: 50px;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
}

#features .container {
    max-width: 1500px;
    padding: 0 20px;
}

#features .section-header {
    text-align: center;
    padding-left: 0;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.feature-card {
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 30px;
    margin-right: 15%;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card:nth-child(even) {
    flex-direction: row-reverse;
    margin-right: 0;
    margin-left: 15%;
}

.feature-card:nth-child(even) .feature-icon {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.feature-card:nth-child(even) .feature-description {
    padding: 20px 0 20px 40px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.feature-header {
    width: 100%;
    height: 40px;
    display: flex;
    position: relative;
}

.feature-card:nth-child(even) .feature-header {
    flex-direction: row-reverse;
}

.blank {
    width: calc(100% - 400px);;
    height: 100%;
    background-color: #ffffffcc;
    border-top-right-radius: 20px;
    position: relative;
}

.feature-card:nth-child(even) .blank {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 20px;
}

.blank::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    bottom: 0;
    right: -20px;
    background-color: #ffffffcc;
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1" preserveAspectRatio="none"><defs><mask id="m"><rect width="1" height="1" fill="white"/><circle cx="1" cy="0" r="1" fill="black"/></mask></defs><rect width="1" height="1" fill="white" mask="url(%23m)"/></svg>');
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    -webkit-mask-position: right bottom;
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1" preserveAspectRatio="none"><defs><mask id="m"><rect width="1" height="1" fill="white"/><circle cx="1" cy="0" r="1" fill="black"/></mask></defs><rect width="1" height="1" fill="white" mask="url(%23m)"/></svg>');
    mask-repeat: no-repeat;
    mask-size: 100% 100%;
    mask-position: right bottom;
}

.feature-card:nth-child(even) .blank::before {
    right: auto;
    left: -20px;
    background-color: #ffffffcc;
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1" preserveAspectRatio="none"><defs><mask id="m"><rect width="1" height="1" fill="white"/><circle cx="0" cy="0" r="1" fill="black"/></mask></defs><rect width="1" height="1" fill="white" mask="url(%23m)"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1" preserveAspectRatio="none"><defs><mask id="m"><rect width="1" height="1" fill="white"/><circle cx="0" cy="0" r="1" fill="black"/></mask></defs><rect width="1" height="1" fill="white" mask="url(%23m)"/></svg>');
}

.feature-header-content {
    width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -50%;
    right: 0;
}

.feature-card:nth-child(even) .feature-header-content {
    right: auto;
    left: 0;
}

.feature-number {
    background: #7A9DB7;
    color: white;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #7A9DB7;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    background: #ffffffcc;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.feature-icon img {
    height: 120px;
    object-fit: cover;
}

.feature-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.feature-description {
    color: #666;
    line-height: 1.6;
    padding: 20px 40px 20px 0;
    background-color: #ffffffcc;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.feature-description strong {
    color: #e74c3c;
    text-decoration: underline;
    font-size: 1.2rem;
}

/* 案件検索セクション */
.search-form {
    background: #ffffffcc;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-top: 40px;
}

.search-form-description {
    color: #e74c3d;
    margin-bottom: 15px;
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group select {
    padding: 12px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
}

.form-price-group {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.form-price-group .form-group {
    width: 50%;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.checkbox-item label {
    font-weight: 300;
    margin-bottom: 0;
}



.search-button {
    background: #e74c3c;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    flex: 1;
    max-width: 250px;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.2);
}

.search-button:hover {
    background: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.clear-button {
    background: #6c757d;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    flex: 1;
    max-width: 180px;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.2);
}

.clear-button:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

/* 注力案件セクション */
.projects-container {
    margin-top: 40px;
}

.projects-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
}

.project-title {
    font-size: 1.2rem;
    font-weight: bold;
    padding-left: 10px;
    margin-bottom: 15px;
    color: #333;
    border-left: 5px solid;
    border-image: linear-gradient(135deg, #B3A9EA, #8FB8E3);
    border-image-slice: 1;
}

.project-salary {
    font-size: 1.8rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 15px;
    display: block;
    max-width: 100%;
    white-space: normal; /* 改行を許可 */
    word-break: break-all; /* 長文でもはみ出さない */
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.project-detail {
    display: flex;
    align-items: flex-start; /* アイコンを上揃え */
    gap: 8px;
    color: #666;
}

.project-detail img {
    width: 16px;
    height: 16px;
    margin-top: 4px;
}

.apply-button {
    background: #e74c3c;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    margin-top: auto;
    align-self: stretch;
}

.apply-button:hover {
    background: #c0392b;
}

/* ご利用の流れセクション */
.flow-steps {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.flow-step {
    background-color: #ffffffcc;
    border-radius: 15px;
    padding: 20px;
    flex: 1;
    text-align: center;
    position: relative;
}

.flow-step:not(:last-child)::after {
    content: "›";
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    font-size: 5rem;
    background: linear-gradient(135deg, #B3A9EA 0%, #8FB8E3 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.step-number {
    background: linear-gradient(135deg, #B3A9EA 0%, #8FB8E3 100%);
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 100;
    padding: 3px 20px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

.step-number span {
    font-size: 1rem;
    background-color: #fff;
    color: #9fb0e6;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
}


.step-title {
    font-weight: bold;
    margin: 10px 0;
    color: #333;
}

.step-description {
    color: #666;
    font-size: 0.9rem;
    text-align: left;
}

.step-icon {
    height: 80px;
    margin: 0 auto 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon img {
    height: 100%;
    object-fit: cover;
}

/* よくある質問セクション */
.faq-container {
    margin-top: 40px;
}

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.faq-question {
    padding: 15px 20px;
    background: #59819E;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: bold;
    border-radius: 10px;
}

.faq-question::before {
    content: "Q";
    background: #fff;
    color: #59819E;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.faq-answer {
    padding: 0 20px 0 65px;
    color: #666;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    position: relative;
}

.faq-answer::before {
    content: "A";
    background: #59819E;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 20px;
    top: 18px;
    font-weight: bold;
}

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

/* FAQ お問い合わせCTA */
.faq-contact-cta {
    margin-top: 50px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.faq-contact-cta p {
    margin: 0;
    color: #546e7a;
}

/* フッター */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 10px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 0 20px;
}

.footer-left .logo {
    margin-bottom: 20px;
}

.footer-left .logo img {
    height: 30px;
}

.footer-address {
    line-height: 1.6;
    margin-bottom: 20px;
}

.contact-button {
    width: 250px;
    background: #e74c3c;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.contact-button:hover {
    background: #c0392b;
}

.footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.footer-nav h3 {
    margin-bottom: 15px;
    color: #ecf0f1;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 8px;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #e74c3c;
}

.footer-copy {
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 30px;
    padding: 10px 20px 0;
    text-align: center;
    color: #bdc3c7;
    font-size: 0.5rem;
}

/* ==========================
   スクロール・リビール演出
   ========================== */
/* 初期状態（非表示） */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms ease, transform 700ms ease, filter 700ms ease;
    filter: blur(6px);
}

/* 表示状態 */
.reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
}

/* バリエーション */
.reveal.fade-up { transform: translateY(24px); }
.reveal.fade-down { transform: translateY(-24px); }
.reveal.fade-left { transform: translateX(24px); }
.reveal.fade-right { transform: translateX(-24px); }
.reveal.zoom-in { transform: scale(0.96); }
.reveal.zoom-out { transform: scale(1.06); }

/* 微妙な遅延を付けるユーティリティ */
.reveal.delay-100 { transition-delay: 100ms; }
.reveal.delay-200 { transition-delay: 200ms; }
.reveal.delay-300 { transition-delay: 300ms; }
.reveal.delay-400 { transition-delay: 400ms; }
.reveal.delay-500 { transition-delay: 500ms; }
.reveal.delay-600 { transition-delay: 600ms; }
.reveal.delay-700 { transition-delay: 700ms; }
.reveal.delay-800 { transition-delay: 800ms; }
.reveal.delay-900 { transition-delay: 900ms; }

/* 低モーション設定の配慮 */
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal.is-visible {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
    }
}

/* プロジェクトスライダー */
.projects-slider-container {
    position: relative;
    margin: 40px 0;
}

.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    padding: 30px 20px;
    overflow: hidden;
}

.projects-slider {
    display: flex;
    overflow: visible;
    width: 100%;
    max-width: 1200px;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
}

.project-card {
    flex: 0 0 calc(33.333% - 14px);
    background: #ffffffcc;
    border-radius: 15px;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 280px;
    display: flex;
    flex-direction: column; /* ボタンを最下部へ */
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.slider-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 90px;
    background: linear-gradient(135deg, #B3A9EA 0%, #8FB8E3 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-navigation:hover {
    transform: translateY(-50%) scale(1.2);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: linear-gradient(135deg, #B3A9EA 0%, #8FB8E3 100%);
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(0, 0, 0, 0.6);
}

/* 応募モーダル */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    display: flex;
    opacity: 0;
    visibility: hidden;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.is-open { 
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: min(720px, 92vw);
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.is-open .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #B3A9EA 0%, #8FB8E3 100%);
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: #fff;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #fff;
}

.apply-form-wrapper {
    padding: 10px 20px 20px 20px;
}

.selected-project-label {
    color: #333;
    margin: 10px 20px 0 20px;
    padding: 8px 20px;
    border-radius: 6px;
    background: #f5f5ff;
    border-left: 4px solid #a3afe7;
}

.selected-project-label strong {
    font-weight: bold;
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
    body {
        padding-right: 0;
    }

    .header {
        width: 90%;
        left: 50%;
        transform: translateX(-50%);
    }

    .fixed-registration-form {
        position: unset;
        width: 100%;
        height: auto;
        padding: 50px;
        margin-bottom: 100px;
        overflow: unset;
        box-shadow: unset;
    }

    .form-header h2 {
        font-size: 1.3rem;
    }

    .form-header::after {
        width: 300px;
    }

    .cta-button {
        display: inline-block;
        background: #e74c3c;
        color: white;
        padding: 8px 24px;
        border: none;
        border-radius: 33px;
        font-weight: bold;
        cursor: pointer;
        transition: background 0.3s;
    }

    .cta-button:hover {
        background: #c0392b;
    }

    .hero-cta {
        display: inline-block;
        background: #e74c3c;
        color: white;
        padding: 15px 70px;
        border: none;
        border-radius: 28px;
        font-size: 1.1rem;
        font-weight: bold;
        cursor: pointer;
        transition: background 0.3s;
    }

    .hero-cta:hover {
        background: #c0392b;
    }
    
    .project-card {
        flex: 0 0 calc(33.333% - 14px);
        min-width: 250px;
    }
}


@media (max-width: 1000px) {
    .header { display: none; }
    .mobile-topbar {
        position: fixed;
        top: 15px;
        left: 50%;
        transform: translateX(-50%);
        width: 95%;
        height: 50px;
        border-radius: 32px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
        background: rgba(255, 255, 255, 0.5);
        backdrop-filter: blur(10px) saturate(140%);
        -webkit-backdrop-filter: blur(10px) saturate(140%);
        border-bottom: 1px solid rgba(0,0,0,0.06);
        z-index: 1100;
    }
    body { padding-top: 64px; }
    .mobile-logo {
        display: block;
        position: static;
        height: 36px;
        z-index: 1;
    }
    .hamburger-button {
        display: flex;
        position: static;
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* タブレット対応 */
@media (max-width: 1024px) and (min-width: 769px) {
    .form-header h3 {
        font-size: 1rem;
    }
    
    .registration-form {
        padding: 15px;
    }
    
    .registration-form .form-group {
        margin-bottom: 12px;
    }
    
    .birth-inputs input {
        width: 50px;
    }
}

/* 検索結果表示スタイル */
.search-loading {
    text-align: center;
    padding: 40px 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6c5ce7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


body.search-results-body {
    padding-right: 0;
}

body.search-results-body .section {
    margin-bottom: 0;
}

/* ソート機能のスタイル */
.sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-controls label {
    font-weight: bold;
    color: #333;
    font-size: 0.9rem;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.sort-select:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

.sort-select:hover {
    border-color: #bbb;
}

.search-error {
    background: #ffe6e6;
    border: 1px solid #ff6b6b;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    color: #d63031;
}

.search-results {
    margin: 20px 0;
}

.search-results-header {
    margin-bottom: 20px;
}

.search-results-header h3 {
    color: #2d3436;
    font-size: 24px;
    font-weight: 600;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.search-result-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.result-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 12px;
}

.result-salary {
    font-size: 20px;
    font-weight: 700;
    color: #6c5ce7;
    margin-bottom: 16px;
}

.result-details {
    margin-bottom: 20px;
}

.result-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.detail-label {
    color: #636e72;
    font-weight: 500;
}

.detail-value {
    color: #2d3436;
    font-weight: 600;
}

.result-apply-button {
    width: 100%;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.result-apply-button:hover {
    background: linear-gradient(135deg, #5f3dc4, #9775fa);
    transform: translateY(-1px);
}

.search-results-container {
    margin: 20px 0;
}

.project-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.1);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-color: rgba(108, 92, 231, 0.3);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
}

.project-id {
    font-size: 12px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.project-price {
    font-size: 18px;
    font-weight: 700;
    color: #6c5ce7;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-title {
    font-size: 20px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 12px;
    line-height: 1.4;
}

.project-summary {
    color: #636e72;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #6c5ce7;
}

.detail-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.detail-value {
    font-size: 14px;
    color: #2d3436;
    font-weight: 600;
}

.requirements {
    margin-bottom: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #6c5ce7;
}

.requirements h4 {
    font-size: 14px;
    font-weight: 600;
    color: #6c5ce7;
    margin-bottom: 8px;
}

.requirements p {
    font-size: 14px;
    color: #495057;
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
}

.btn-apply {
    width: 100%;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.btn-apply:hover {
    background: linear-gradient(135deg, #5f3dc4, #9775fa);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.btn-apply:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
}

mark {
    background: #ffbbbb;
    padding: 2px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {

    .fixed-registration-form {
        padding: 20px 100px;
    }

    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav {
        gap: 20px;
    }

    .hero {
        padding: 0 0 80px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        position: relative;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    /* ヒーロー領域を重ねる（テキストを前面） */
    .hero-content,
    .hero-image {
        grid-column: 1 / -1;
        grid-row: 1 / 2;
        position: relative;
    }

    .hero-content { z-index: 2; }

    .hero-content p {
        color: #252525;
    }

    .hero-image { 
        z-index: 1;
        opacity: 0.2;
    }

    .hero-image img {
        width: 70%;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        max-height: 85vh;
    }

    .flow-steps {
        flex-direction: column;
    }

    .flow-step {
        margin-bottom: 20px;
    }

    .flow-step:not(:last-child)::after {
        content: "";
        right: 50%;
        top: auto;
        bottom: -15px;
        transform: translateX(50%);
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-nav {
        grid-template-columns: 1fr;
    }

    .section-header {
        width: 90%;
    }

    .section-title {
        font-size: 1.2rem;
    }

    #features {
        margin-right: 20px;
    }

    .feature-card {
        padding: 0;
        margin-right: 0;
    }

    .feature-card:nth-child(even) {
        margin-left: 0;
    }

    .feature-header-content {
        width: 280px;
        top: -5px;
    }

    .feature-header-content span {
        font-size: .8rem;
    }

    .feature-title {
        font-size: 1.2rem;
    }

    .feature-number {
        width: 35px;
        height: 35px;
        margin-right: 5px;
    }

    .blank {
        width: calc(100% - 280px);
    }

    .search-button-group {
        flex-direction: column;
        gap: 12px;
        margin-top: 25px;
    }

    .search-button,
    .clear-button {
        width: 100%;
        max-width: none;
        min-width: auto;
    }

    .faq-contact-cta {
        justify-content: center;
    }
}

@media (max-width: 500px) {
    .section-subtitle {
        font-size: .9rem;
    }

    .feature-card, .feature-card:nth-child(even) {
        flex-direction: column;
    }

    .feature-icon {
        padding: 20px;
        border-bottom-left-radius: 0px;
        border-top-left-radius: 50px;
    }

    .feature-card:nth-child(even) .feature-icon {
        border-top-right-radius: 50px;
        border-bottom-right-radius: 0px;
        border-top-left-radius: 0px;
        border-bottom-left-radius: 0px;
    }

    .feature-header {
        height: auto;
    }

    .feature-header-content {
        width: 100%;
        position: unset;
        background-color: #ffffffcc;
    }

    .blank {
        display: none;
    }

    .feature-description {
        padding: 20px;
        border-top-right-radius: 0px;
        border-bottom-right-radius: 50px;
    }

    .feature-card:nth-child(even) .feature-description {
        padding: 20px;
        border-top-right-radius: 0px;
        border-bottom-right-radius: 0px;
        border-top-left-radius: 0px;
        border-bottom-left-radius: 50px;
    }

    .fixed-registration-form {
        padding: 20px;
    }

    .selected-project-label {
        margin: 10px 0 0 0;
    }

    .registration-form {
        padding: 20px 0;
    }
}


/* Project card responsive */
@media (max-width: 900px) {
    .project-card {
        flex: 0 0 calc(50% - 14px);
        min-width: 220px;
    }
    
    .slider-navigation {
        font-size: 60px;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
}

@media (max-width: 600px) {
    .project-card {
        flex: 0 0 calc(50% - 10px);
        min-width: 200px;
    }
    
    .slider-wrapper {
        padding: 20px 10px;
    }
}

/* 500px以下は1枚表示 */
@media (max-width: 500px) {
    .project-card {
        flex: 0 0 100%;
        min-width: 180px;
    }
}