@charset "UTF-8";

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

html,
body {
    overflow-x: clip;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header,
footer {
    width: 100%;
    background-color: #fff;
    color: #333;
}

main {
    width: 100%;
    flex: 1;
    background: url(../images/bg_pattern.png);
    background-attachment: fixed;
    display: flex;
    align-items: flex-start;
}

.contents-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    border-bottom: 1px solid #ddd;
}

.contents-main-left {
    flex: 1;
    background-color: transparent;
    align-self: stretch;
}
.contents-main-right {
    flex: 1;
    background-color: transparent;
    align-self: stretch;
}

.contents-main-wrap {
    width: 655px;
    padding: 0 15px;
    background-color: #ddd;
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

.contents-main-wrap .contents-main {
    flex: 1;
}

.contents-main {
    width: 100%;
    background-color: #fff;
    padding: 20px;
}

.contents-main>div {
    /* 必要に応じて追加 */
}

.fixed-menu {
    position: sticky;
    top: 0;
    background-color: #fff;
    padding: 20px;
    max-width: 250px;
}

.fixed-menu ul {
    list-style: none;
}

.fixed-menu li {
    margin-bottom: 10px;
}

.fixed-menu a {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 10px;
    background-color: #f5f5f5;
    margin-top: 10px;
    border-top: 3px solid #ddd;
    border-bottom: 3px solid #ddd;
    border-radius: 0;
    transition: background-color 0.3s;
}

.fixed-menu a:hover {
    background-color: #e8e8e8;
}

/* ハンバーガーメニュー */
.hamburger-btn {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.hamburger-btn span {
    display: block;
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: #333;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-btn span:nth-child(1) {
    top: 15px;
}

.hamburger-btn span:nth-child(2) {
    top: 24px;
}

.hamburger-btn span:nth-child(3) {
    top: 33px;
}

.hamburger-btn.active span:nth-child(1) {
    top: 24px;
    transform: translateX(-50%) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    top: 24px;
    transform: translateX(-50%) rotate(-45deg);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

.mobile-menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 400px;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    margin-bottom: 20px;
    text-align: center;
}

.mobile-menu a {
    color: #333;
    text-decoration: none;
    font-size: 24px;
    display: block;
    padding: 10px;
    background-color: #f5f5f5;
    margin-top: 10px;
    border-top: 3px solid #ddd;
    border-bottom: 3px solid #ddd;
    border-radius: 0;
    transition: background-color 0.3s;
}

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

/* フォーム用スタイル (apply.html用) */
.form-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    color: #333;
    line-height: 1.5;
}

.form-title span {
    font-size: 16px;
    display: block;
    margin-bottom: 10px;
}

.form-row {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.form-row:last-child {
    border-bottom: none;
}

.form-label {
    width: 150px;
    font-weight: bold;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    color: #fff;
    margin-left: 5px;
}

.badge.required {
    background-color: #ff4444;
}

.badge.optional {
    background-color: #888;
}

.form-input {
    flex: 1;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input,
.input-group select {
    flex: 1;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 5px;
}

.note {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.date-select {
    display: flex;
    gap: 10px;
    align-items: center;
}

.date-select select {
    width: auto;
    min-width: 80px;
}

.checkbox-group {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 10px 0;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

.submit-btn-wrap {
    text-align: center;
    margin-top: 30px;
}

.submit-btn {
    background-color: #ff4444;
    color: #fff;
    border: none;
    padding: 15px 60px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover {
    background-color: #cc0000;
}

/* 固定ボタン（デフォルトは非表示） */
.fixed-bottom-btn {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

.fixed-bottom-btn img {
    width: 100%;
    display: block;
}

@media screen and (max-width: 767px) {
    main {
        display: block;
    }

    .contents-wrap {
        width: 100%;
        padding: 0;
    }

    .contents-main-left,
    .contents-main-right {
        display: none;
    }

    .contents-main-wrap {
        width: 100%;
        padding: 0;
    }

    .hamburger-btn,
    .mobile-menu-overlay {
        display: block;
    }

    .form-row {
        flex-direction: column;
    }

    .form-label {
        width: 100%;
        margin-bottom: 10px;
    }

    .input-group {
        flex-direction: column;
    }

    /* 固定ボタン（携帯サイズのみ） */
    .fixed-bottom-btn {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        /* 高さを固定 */
        z-index: 999;
        background-color: #fff;
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
        align-items: center;
        padding: 5px 0;
    }

    .fixed-bottom-btn a {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
        padding: 0 2px;
    }

    .fixed-bottom-btn img {
        width: auto;
        height: 100%;
        max-width: 100%;
        object-fit: contain;
    }

    .postal-code-group {
        flex-direction: column;
    }

    .search-address-btn {
        width: 100%;
        margin-top: 10px;
    }
}

/* 郵便番号検索 */
.postal-code-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.postal-code-group input {
    flex: 1;
    margin-bottom: 0;
}

.search-address-btn {
    background-color: #4CAF50;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.search-address-btn:hover {
    background-color: #388E3C;
}

.search-address-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.postal-message {
    font-size: 12px;
    margin-top: 5px;
    display: none;
}