/* Common styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: #f5f5f5;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    padding: 30px;
    margin: 0 0 30px 0;
    font-size: 32px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

h1::after {
    content: '✈️';
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 36px;
    opacity: 0.8;
}

@media (max-width: 600px) {
    h1 {
        font-size: 28px;
        padding: 25px;
    }
    
    h1::after {
        font-size: 30px;
        right: 20px;
    }
}

/* Form styles */
.form-group {
    margin-bottom: 30px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 20px;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 18px;
    transition: all 0.3s ease;
    background-color: white;
}

.form-control:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
    outline: none;
}

.form-control:hover {
    border-color: #4a90e2;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%234a90e2' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
    padding-right: 40px;
}

.submit-button {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 20px;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.submit-button:hover {
    background-color: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.submit-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Route button styles */
.top-share-container, .button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
}

.route-button, .flight-button {
    width: 320px;
    max-width: 90vw;
    margin: 0 auto;
    white-space: nowrap;
    font-size: 17px;
    padding-left: 0;
    padding-right: 0;
}

.route-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.route-button::before {
    content: '🚗';
    font-size: 20px;
}

.route-button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.route-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.flight-button {
    background-color: #a259e6;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.flight-button::before {
    content: '✈️';
    font-size: 20px;
}

.flight-button:hover {
    background-color: #7c3fa0;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .route-button, .flight-button {
        width: 100%;
        max-width: 100%;
    }
}

/* Result page styles */
.result-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.result-info {
    margin-bottom: 20px;
    text-align: left;
    padding: 20px;
}

.result-info p {
    font-size: 20px;
    line-height: 1.8;
    margin: 15px 0;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #4a90e2;
    transition: transform 0.2s ease;
}

.result-info p:hover {
    transform: translateX(5px);
}

.result-info p::before {
    margin-right: 10px;
    font-size: 24px;
}

.result-info p:nth-child(1)::before {
    content: '👤';
}

.result-info p:nth-child(2)::before {
    content: '🌏';
}

.result-info p:nth-child(3)::before {
    content: '🏙️';
}

.result-info p:nth-child(4)::before {
    content: '🎯';
}

.result-info p:nth-child(5)::before {
    content: '📍';
}

.result-info .introduction {
    font-size: 22px;
    line-height: 1.8;
    color: #333;
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    border-left: 4px solid #4a90e2;
    position: relative;
}

.result-info .introduction::before {
    content: '💫';
    font-size: 28px;
    position: absolute;
    left: -15px;
    top: -15px;
}

@media (max-width: 600px) {
    .result-info p {
        font-size: 18px;
        padding: 12px 15px;
    }
    
    .result-info .introduction {
        font-size: 20px;
        padding: 15px;
    }
}

.map-container {
    margin: 20px 0;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.map-container.visible {
    opacity: 1;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
    transition: all 1s ease-in-out;
}

.back-button, .share-button {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 15px 30px;
    margin: 15px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.back-button:hover, .share-button:hover {
    background-color: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.back-button:active, .share-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.introduction {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #4a90e2;
}

/* 使い方ガイドのスタイル */
.guide-container {
    margin: 20px auto;
    max-width: 600px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.guide-toggle {
    width: 100%;
    padding: 12px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.guide-toggle:hover {
    background-color: #45a049;
}

.guide-content {
    display: none;
    padding: 20px;
    background-color: #f9f9f9;
}

.guide-step {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.guide-icon {
    font-size: 24px;
    margin-right: 15px;
    min-width: 30px;
    text-align: center;
}

.guide-step p {
    margin: 0;
    font-size: 14px;
    color: #333;
}

/* アコーディオンが開いている時のスタイル */
.guide-content.active {
    display: block;
}

.spot-link {
    color: #0066cc;
    text-decoration: none;
    border-bottom: 1px dashed #0066cc;
    transition: color 0.3s ease;
}

.spot-link:hover {
    color: #004499;
    text-decoration: none;
}

.spot-link:active {
    color: #002266;
}

/* 更新履歴のスタイル */
.update-history {
    margin: 20px auto;
    max-width: 800px;
    padding: 0 20px;
}

.update-history details {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.update-history summary {
    cursor: pointer;
    font-weight: bold;
    color: #333;
    padding: 10px;
    outline: none;
}

.update-history .history-content {
    margin-top: 15px;
    padding: 10px;
    text-align: left;
}

.update-history ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.update-history li {
    margin-bottom: 10px;
    padding: 10px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.update-history .date {
    display: inline-block;
    min-width: 100px;
    color: #666;
    font-size: 0.9em;
}

.update-history .content {
    color: #333;
}

@media (max-width: 600px) {
    .update-history {
        padding: 0 10px;
    }
    
    .update-history summary {
        font-size: 16px;
    }
    
    .history-content .date {
        min-width: 80px;
        font-size: 12px;
    }
    
    .history-content .content {
        font-size: 14px;
    }
}