/* 
  Good Homestay - LP Common Style
  Shared aesthetics across all landing pages
*/

:root {
    --primary-color: #006ebc;
    --primary-light: #e6f1f8;
    --accent-color: #FFB803; /* Registration Yellow */
    --accent-hover: #e5a503;
    --text-color: #333333;
    --text-light: #666666;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --container-width: 1100px;
    --container-narrow: 800px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style-position: inside;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.container--narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: 60px 0; /* 100pxから半分程度に縮小 */
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn--primary {
    background-color: var(--primary-color);
    color: white;
}

.btn--primary:hover {
    background-color: #005a9c;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 110, 188, 0.3);
}

.btn--accent {
    background-color: var(--accent-color);
    color: var(--text-color);
}

.btn--accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 184, 0, 0.4);
}

.btn--large {
    padding: 18px 45px;
    font-size: 1.1rem;
}

/* Header Component (Parts) */
.header {
    background-color: var(--bg-white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.container--header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo img {
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Mobile Adjustments (768px or less) */
@media (max-width: 768px) {
    /* Logo Centering & Removing Header Button */
    .container--header {
        justify-content: center;
    }
    
    .header__cta {
        display: none;
    }

    .header {
        padding: 10px 0; /* ヘッダー自体の余白を詰める */
    }

    /* Floating Button for Mobile */
    .floating-cta {
        display: block;
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 400px;
        z-index: 1001;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .floating-cta--hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(-50%) translateY(30px);
    }

    .btn--floating {
        display: block;
        width: 100%;
        padding: 15px;
        text-align: center;
        font-weight: 800;
        font-size: 1.1rem;
        box-shadow: 0 10px 30px rgba(255, 184, 3, 0.4);
        border-radius: 50px;
    }
}

/* Hide floating button on Desktop */
@media (min-width: 769px) {
    .floating-cta {
        display: none;
    }
}

/* Values Component */
.values__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.value-card {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    text-align: center;
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-card__icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.value-card__icon img {
    height: 50px;
    width: auto;
}

/* Content Box Styling */
.content-box h3 {
    margin-top: 40px; /* 上を広めに */
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Table Style (Compensation) */
.compensation__notes {
    margin: 40px 0 50px;
    list-style: disc;
    list-style-position: inside;
    color: var(--text-color);
    padding-left: 0;
}

.compensation__notes li {
    margin-bottom: 15px;
    font-weight: 500;
}

.compensation__notes li:last-child {
    margin-bottom: 0;
}

.table-container {
    background-color: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 40px; /* 確実に余白を作るためのマージン */
}

.table-container:last-child {
    margin-bottom: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background-color: var(--primary-color);
    color: white;
    text-align: left;
    padding: 20px;
    font-size: 1.1rem;
}

td {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

/* Testimonials Component */
.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.testimonial-card {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.testimonial-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.testimonial-card__name {
    font-weight: 700;
    color: var(--primary-color);
}

.testimonial-card__stars {
    color: var(--accent-color);
    font-size: 0.8rem;
}

/* Form Styling */
.form-container {
    background-color: var(--bg-white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

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

.form__group {
    margin-bottom: 25px;
}

.form__group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.form__group input,
.form__group select,
.form__group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 110, 188, 0.1);
}

/* Spinner Animation */
.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 4px solid rgba(0, 110, 188, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Validation Styles */
.just-validate-error-label {
    font-size: 0.85rem;
    margin-top: 5px;
    font-weight: 600;
}

.just-validate-error-field {
    border-color: #e53935 !important;
}

/* Footer Component */
.footer {
    position: relative;
    padding: 80px 0 30px;
    color: white;
    overflow: hidden;
}

.footer__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.footer__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer__content {
    text-align: center;
}

.footer__logo img {
    height: 50px;
    margin: 0 auto 30px;
    filter: brightness(0) invert(1);
}

.footer__links {
    margin-bottom: 30px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer__copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Common Responsive */
@media (max-width: 992px) {
    .testimonials__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

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

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

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

    .form-container {
        padding: 40px 20px;
        margin-left: -20px;
        margin-right: -20px;
        border-radius: 0;
        box-shadow: none;
    }

    .form__row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
