/* --- 共通設定 (継承) --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333333;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Header & Footer (共通) */
.site-header {
    width: 100%;
    background-color: #ffffff;
    color: #333333; 
    padding: 15px 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
    position: sticky;
    top: 0;
    z-index: 100; 
}
.header-content {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
}
.site-header h1 {
    margin: 0;
    font-size: 1.6em;
    color: #1abc9c;
}
.site-header .subtitle {
    color: #7f8c8d;
    margin: 0;
    font-size: 0.85em;
}

.page-footer {
    width: 100%;
    background-color: #2c3e50;
    color: #ffffff;
    padding: 50px 0 20px 0;
    margin-top: auto;
}
.footer-content {
    width: 90%;
    max-width: 900px;
    margin: 0 auto; 
}
.footer-row {
    display: flex;
    justify-content: flex-start;
    gap: 100px; 
    margin-bottom: 50px;
}
.footer-section { flex: 0 0 auto; }
.section-title {
    color: #1abc9c;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 18px;
}
.footer-section ul { list-style: none; padding: 0; margin: 0; }
.footer-section li { margin-bottom: 12px; }
.footer-section a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.footer-section a:hover { color: #1abc9c; }
.copyright {
    text-align: center;
    font-size: 0.85rem;
    color: #95a5a6;
    border-top: 1px solid #34495e;
    padding-top: 25px;
    width: 100%;
}

/* Container */
.container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    width: 90%;
    max-width: 900px;
    margin: 0 auto 40px auto;
    box-sizing: border-box;
}

/* Breadcrumbs */
.breadcrumbs {
    width: 100%;
    padding: 0 0 15px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #eeeeee;
}
.breadcrumbs-content { font-size: 0.85em; color: #555555; }
.breadcrumbs a { color: #555555; text-decoration: none; }
.breadcrumbs a:hover { color: #1abc9c; text-decoration: underline; }
.current-page { color: #95a5a6; }

/* Section Styles */
.section-heading {
    font-size: 1.4em;
    color: #34495e;
    border-left: 5px solid #16a085;
    padding-left: 12px;
    margin: 0 0 15px 0;
}
.description-text { font-size: 0.9em; color: #555555; margin-bottom: 20px; }

.usage-caution-area { margin-top: 30px; }
.usage-caution-title { font-size: 1.3em; color: #2c3e50; margin-bottom: 10px; }
.usage-caution-list { font-size: 0.9em; color: #555555; padding-left: 20px; }

/* --- 独自スタイル: 空港比較ツール用 --- */

/* Radio Selection Cards */
.airport-selector {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.radio-card {
    flex: 1;
    background-color: #f8f9fa;
    border: 2px solid #dddddd;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.radio-card:hover { border-color: #1abc9c; background-color: #e8f8f5; }
.radio-card.active {
    border-color: #16a085;
    background-color: #e8f8f5;
    box-shadow: 0 0 0 1px #16a085;
}
.radio-card input { position: absolute; opacity: 0; }
.pair-title {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.1em;
    display: block;
    margin-bottom: 5px;
}
.pair-detail {
    font-size: 0.85em;
    color: #7f8c8d;
}

/* Checkbox Style */
.setting-row { margin-bottom: 30px; text-align: center; }
.checkbox-container {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    color: #34495e;
    user-select: none;
}
.checkbox-container input { display: none; }
.checkmark {
    width: 20px;
    height: 20px;
    background-color: #eee;
    margin-right: 10px;
    border-radius: 4px;
    position: relative;
    transition: 0.2s;
}
.checkbox-container input:checked + .checkmark { background-color: #1abc9c; }
.checkbox-container input:checked + .checkmark:after {
    content: "";
    position: absolute;
    left: 7px; top: 3px;
    width: 5px; height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.note {
    font-size: 0.8em;
    color: #e74c3c;
    font-weight: normal;
    margin-left: 10px;
}

/* Inputs Grid */
.comparison-grid {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.input-card {
    flex: 1;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eeeeee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.airport-name {
    text-align: center;
    margin: 0 0 20px 0;
    color: #16a085;
    font-size: 1.2em;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8f8f5;
}
.input-group { margin-bottom: 15px; }
.input-group label {
    display: block;
    font-weight: bold;
    font-size: 0.9em;
    margin-bottom: 5px;
    color: #555555;
}
.sub-label {
    font-size: 0.8em;
    font-weight: normal;
    color: #95a5a6;
}
.input-row { display: flex; gap: 10px; }
.input-row input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95em;
    width: 100%; /* For responsive */
}
.input-row.single-col { align-items: center; }
.input-row .prefix {
    font-size: 0.85em;
    width: 100px;
    color: #555555;
}
.separator {
    border: 0;
    border-top: 1px dashed #ddd;
    margin: 20px 0;
}
.mt-2 { margin-top: 10px; }

/* Result Section */
.result-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}
.result-summary {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 10px;
}
.result-box {
    flex: 1;
    background: #fff;
    border: 2px solid #e8f8f5;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.result-header {
    background-color: #e8f8f5;
    padding: 10px;
    font-weight: bold;
    color: #2c3e50;
}
.result-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 結果行のレイアウト */
.res-row {
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: nowrap;
    width: 100%;
}
.res-row:last-child { margin-bottom: 0; }

.res-label {
    font-size: 0.85em;
    color: #7f8c8d;
    margin-right: 15px;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 60px;
    text-align: right;
}

.res-val-group {
    text-align: left;
    white-space: nowrap;
}

.res-value { font-size: 1.5em; font-weight: bold; }
.res-value.price { color: #e74c3c; }
.res-value.time { color: #3498db; }

.res-unit {
    font-size: 0.85em;
    color: #555;
    margin-left: 2px;
}

.res-sub-unit {
    display: inline-block;
    font-size: 0.75em;
    color: #95a5a6;
    margin-left: 5px;
    font-weight: normal;
}

/* 宿泊注記 */
.stay-note {
    font-size: 0.8em;
    color: #e67e22; /* Warning Orange */
    margin-top: 5px;
    margin-bottom: 15px;
    padding: 8px;
    background-color: #fffaf0;
    border-radius: 4px;
    text-align: left;
    line-height: 1.4;
    border: 1px solid #fae5d3;
}

/* --- 比較メッセージ --- */
.diff-message {
    margin-top: auto; /* 枠の下部に寄せる */
    padding: 12px;
    background-color: #f1f9f7; /* 薄いミントグリーン */
    border: 1px solid #1abc9c;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1.5;
    text-align: center;
}

.vs-badge {
    align-self: center;
    font-weight: bold;
    color: #95a5a6;
    font-style: italic;
    font-size: 1.2em;
}

/* Responsive */
@media (max-width: 768px) {
    .container { width: 95%; padding: 15px; }
    .comparison-grid { flex-direction: column; }
    .input-row { flex-direction: column; gap: 5px; }
    .input-row.single-col { flex-direction: row; }
    
    .result-summary { flex-direction: column; gap: 20px; }
    .vs-badge { display: none; }
    
    .res-row { justify-content: space-between; padding: 0 10px; box-sizing: border-box; }
    .res-label { text-align: left; }
    .res-val-group { text-align: right; }
}