/* リセット & ベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #70ADC8;
    --primary-dark: #5A8FA8;
    --secondary-color: #EDC637;
    --success-color: #7BC0BC;
    --text-primary: #454545;
    --text-secondary: #757575;
    --border-color: #DBDBDB;
    --bg-light: #F4F3EF;
    --bg-white: #FFFFFF;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.15);
}

body {
    font-family: "Noto Sans JP", sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    line-height: 2.25;
    min-height: 100vh;
    padding: 20px 0;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* ナビゲーション */
.header-nav {
    background: #FFFFFF;
    padding: 12px 20px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.nav-btn {
    background: #2C4B9C;
    border: 1px solid #2C4B9C;
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.nav-btn:hover {
    background: #1f3a75;
    border-color: #1f3a75;
    transform: translateY(-1px);
}

.home-btn svg {
    flex-shrink: 0;
}

/* ヘッダー */
header {
    background-image: linear-gradient(rgba(112, 173, 200, 0.5), rgba(112, 173, 200, 0.5)), url('img/top.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: white;
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    will-change: auto;
}

h1 {
    font-size: 1.6rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    line-height: 1.5;
    margin-bottom: 12px;
}

.subtitle {
    font-size: 0.95rem;
    opacity: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    line-height: 1.6;
}

/* メインコンテンツ */
main {
    padding: 24px 20px;
}

.section-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

/* 出発地・目的地選択エリア */
.location-selection-wrapper {
    position: relative;
    margin-bottom: 24px;
}

/* 入れ替えボタン */
.swap-btn {
    position: absolute;
    left: calc(75% + 8px);
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border: none;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 10;
}

.swap-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* 方向選択 */
.direction-section {
    margin-bottom: 24px;
}

.toggle-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.toggle-btn {
    padding: 14px;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-btn:hover {
    border-color: var(--primary-color);
    background: rgba(33, 150, 243, 0.05);
}

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

/* 入力セクション */
.input-section {
    margin-bottom: 24px;
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
}

.input-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-white);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.3s;
}

.input-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* オートコンプリート */
.autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.input-autocomplete {
    width: 100%;
    padding: 14px 40px 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-white);
    color: var(--text-primary);
    transition: border-color 0.3s;
}

.input-autocomplete:focus {
    outline: none;
    border-color: var(--primary-color);
}

.input-autocomplete::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    background: var(--text-secondary);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.clear-btn:hover {
    background: var(--text-primary);
}

.clear-btn.hidden {
    display: none;
}

.suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border: 2px solid var(--primary-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    margin-top: -2px;
}

.suggestions-list.hidden {
    display: none;
}

.suggestion-group-title {
    padding: 8px 16px;
    background: var(--bg-light);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-color);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(33, 150, 243, 0.1);
}

.suggestion-item.active {
    background: rgba(33, 150, 243, 0.2);
}

.suggestion-item-main {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.suggestion-item-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* 時刻設定 */
.time-setting {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-group-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    align-items: start;
}

.radio-group-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-group-first-last {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 8px;
}

@media (max-width: 480px) {
    .radio-group-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.radio-label {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.time-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-white);
    transition: border-color 0.3s;
}

.time-input:disabled {
    background: var(--bg-light);
    cursor: not-allowed;
}

.time-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 検索ボタン */
.search-btn {
    width: 100%;
    padding: 16px;
    background: var(--secondary-color);
    color: #2C4B9C;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    margin-bottom: 24px;
}

.search-btn:hover {
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(237, 198, 55, 0.4);
}

.search-btn:active {
    opacity: 1;
}

/* 検索結果 */
.results-section {
    margin-bottom: 24px;
}

.results-section.hidden {
    display: none;
}

.save-image-notice {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF3D6 100%);
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid #EDC637;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.save-image-notice strong {
    color: #D97706;
}

.results-title {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.results-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.route-card {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s;
}

.route-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.route-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.route-time {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.route-duration {
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: white;
    padding: 4px 12px;
    border-radius: 12px;
}

.route-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.route-step {
    display: flex;
    gap: 12px;
    position: relative;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    z-index: 1;
    background: white;
}

.step-icon.departure {
    background: var(--success-color);
    color: white;
}

.step-icon.bus {
    background: var(--primary-color);
    color: white;
}

.step-icon.ferry {
    background: var(--secondary-color);
    color: white;
}

.step-icon.arrival {
    background: var(--text-secondary);
    color: white;
}

.step-icon.notice {
    background: #f0f8ff;
    color: #2C4B9C;
    border: 2px solid #2C4B9C;
}

.step-content {
    flex: 1;
    padding-bottom: 12px;
}

.step-notice-message {
    font-size: 0.9rem;
    color: #2C4B9C;
    background: #f0f8ff;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #2C4B9C;
    line-height: 1.6;
}

.notice-step {
    margin-top: 8px;
}

.step-time {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.step-location {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.step-detail {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.step-line {
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: -12px;
    width: 2px;
    background: var(--border-color);
}

.route-step:last-child .step-line {
    display: none;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

/* 注意事項 */
.notes-section {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.notes-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.notes-list {
    list-style: none;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.notes-list li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.notes-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.ferry-status-note {
    color: var(--text-secondary);
}

.ferry-status-link {
    color: #1DA1F2;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.ferry-status-link:hover {
    color: #0d8bd9;
    text-decoration: underline;
}

/* フッター */
footer {
    background: var(--bg-light);
    padding: 16px 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
}

.footer-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

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

    .container {
        border-radius: 0;
    }

    h1 {
        font-size: 1.2rem;
    }

    .subtitle {
        font-size: 0.85rem;
    }

    main {
        padding: 20px 16px;
    }

    .toggle-buttons {
        gap: 8px;
    }

    .toggle-btn {
        padding: 12px;
        font-size: 0.95rem;
    }
}

/* ローディングアニメーション */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* しまバスフリーパスセクション */
.bus-pass-section {
    margin-top: 32px;
    padding: 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px solid var(--secondary-color);
}

.section-title-accent {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bus-pass-intro {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.app-download {
    margin-bottom: 24px;
}

.app-download h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.download-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.download-buttons a {
    display: block;
    width: 135px;
}

.download-buttons img {
    width: 100%;
    height: auto;
    transition: transform 0.3s;
}

.download-buttons img:hover {
    transform: scale(1.05);
}

.advance-notice {
    margin-top: 16px;
    padding: 12px 16px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #856404;
}

.advance-notice strong {
    color: #664d03;
}

.usage-guide h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.guide-details {
    background: white;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
}

.guide-details summary {
    font-weight: 600;
    color: var(--primary-dark);
    cursor: pointer;
    user-select: none;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-details summary::-webkit-details-marker {
    display: none;
}

.guide-details summary::before {
    content: '▶';
    display: inline-block;
    transition: transform 0.3s;
}

.guide-details[open] summary::before {
    transform: rotate(90deg);
}

.guide-steps {
    margin-top: 16px;
    padding-left: 20px;
    list-style: decimal;
}

.guide-steps li {
    margin-bottom: 20px;
    line-height: 1.8;
}

.guide-steps strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 8px;
}

.step-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 8px 0;
    padding-left: 12px;
    border-left: 3px solid var(--secondary-color);
}

.selection-list {
    list-style: none;
    padding-left: 16px;
    margin: 12px 0;
}

.selection-list li {
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.selection-list li strong {
    white-space: nowrap;
}

.selection-list li::before {
    content: '✓';
    color: var(--success-color);
    font-weight: bold;
    margin-right: 8px;
}

.guide-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px auto 0;
    box-shadow: var(--shadow);
    display: block;
}

@media (max-width: 768px) {
    .guide-image {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .guide-image {
        max-width: 200px;
    }
}

/* ルートヘッダー料金表示 */
.route-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.route-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.route-fare-badge {
    background: linear-gradient(135deg, #E8F8F5 0%, #D5F4E6 100%);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #2C7A73;
    border: 1px solid #7BC0BC;
    white-space: nowrap;
}

/* ステップ内料金ヒント */
.step-fare-hint {
    display: inline-block;
    background: #FFF4E0;
    color: #D4A017;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 4px;
    font-weight: 600;
}

/* 料金内訳セクション（下部） */
.fare-breakdown-section {
    margin-top: 16px;
    padding: 16px;
    background: #F8F9FA;
    border-radius: 8px;
    border: 1px solid #E0E0E0;
}

.fare-breakdown-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.fare-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #E8E8E8;
    font-size: 0.9rem;
}

.fare-breakdown-item:last-of-type {
    border-bottom: none;
}

.fare-breakdown-name {
    color: var(--text-secondary);
}

.fare-breakdown-price {
    font-weight: 600;
    color: var(--text-primary);
}

.fare-breakdown-note {
    font-size: 0.75rem;
    color: #7BC0BC;
    margin-top: 4px;
    padding-left: 12px;
}

.fare-breakdown-note-inline {
    font-size: 0.75rem;
    color: #7BC0BC;
    margin-top: 2px;
    padding: 4px 8px;
    background: #F0F9F8;
    border-radius: 4px;
    display: inline-block;
}

.fare-breakdown-separator {
    height: 1px;
    background: #D0D0D0;
    margin: 12px 0;
}

.fare-savings-box {
    background: linear-gradient(135deg, #E8F8F5 0%, #D5F4E6 100%);
    padding: 10px 12px;
    border-radius: 6px;
    margin: 12px 0;
    border: 1px solid #7BC0BC;
}

.fare-breakdown-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 0;
    margin-top: 12px;
    border-top: 2px solid #D0D0D0;
    font-weight: 700;
    font-size: 1.15rem;
    color: #E67E22;
}

.fare-contact-notice {
    background: #FFF9E6;
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid #EDC637;
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin-top: 16px;
}

/* JAL MaaSセクション */
.jal-maas-section {
    margin-top: 32px;
    padding: 24px;
    background: linear-gradient(135deg, #f0f6ff 0%, #e3f2fd 100%);
    border-radius: 12px;
    border: 2px solid #2C4B9C;
}

.jal-maas-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.jal-maas-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.jal-logo {
    max-width: 200px;
    height: auto;
}

.jal-maas-intro {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
    text-align: center;
}

.miles-info {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 16px 0;
}

.miles-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.miles-icon {
    font-size: 1.3rem;
}

.miles-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

.miles-text strong {
    color: #2C4B9C;
    font-size: 1rem;
    font-weight: 700;
}

.jal-purchase-btn-wrapper {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}

.jal-purchase-btn {
    display: inline-block;
    background: #2C4B9C;
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(44, 75, 156, 0.3);
}

.jal-purchase-btn:hover {
    background: #1f3a75;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(44, 75, 156, 0.4);
}

.jal-usage-guide {
    background: white;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #2C4B9C;
}

.jal-guide-text {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-primary);
}

/* 画像保存ボタン */
.save-image-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #70ADC8 0%, #5A8FA8 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 12px;
    width: 100%;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(112, 173, 200, 0.3);
}

.save-image-btn:hover {
    background: linear-gradient(135deg, #5A8FA8 0%, #4A7A8A 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(112, 173, 200, 0.4);
}

.save-image-btn:active {
    transform: translateY(0);
}

.save-image-btn svg {
    width: 18px;
    height: 18px;
}

/* ============================
   ドラム式ピッカーUI
   ============================ */

/* 検索カード */
.search-card {
    background: var(--bg-white);
    padding: 24px 20px;
    margin: 0;
}

/* 時刻設定表示エリア */
.time-display-area {
    text-align: center;
    margin: 32px 0 24px;
}

.time-settings-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: inline-block;
}

.time-settings-btn:active {
    opacity: 0.7;
}

.time-mode-label {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    letter-spacing: 0.05em;
}

.time-settings-detail {
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
    display: none;
    margin-top: 8px;
}

/* 検索ボタンコンテナ（中央配置） */
.search-btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}

/* 大きな円形検索ボタン */
.search-btn-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success-color) 0%, #5FA8A4 100%);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(123, 192, 188, 0.4);
    position: relative;
}

.search-btn-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(123, 192, 188, 0.5);
}

.search-btn-circle:active {
    transform: scale(0.95);
}

.search-btn-text {
    color: white;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

/* 日付情報表示 */
.date-info-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 12px;
    font-size: 0.9rem;
}

.current-date {
    color: var(--text-primary);
    font-weight: 500;
}

.day-type-badge {
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.day-type-badge.weekday {
    background: rgba(112, 173, 200, 0.15);
    color: var(--primary-color);
}

.day-type-badge.weekend {
    background: rgba(237, 198, 55, 0.15);
    color: #b8941f;
}

/* 時刻設定モーダル */
.time-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.time-modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ピッカー形式モーダル */
.modal-content-picker {
    position: relative;
    background: #1a1a1a;
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 600px;
    animation: slideUp 0.3s;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    padding-bottom: env(safe-area-inset-bottom);
}

.modal-header-picker {
    display: flex;
    justify-content: flex-end;
    padding: 16px 20px 8px;
}

.modal-close-picker {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #999;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close-picker:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
}

/* タブ切り替え */
.picker-tabs {
    display: flex;
    gap: 8px;
    padding: 0 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.picker-tab {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #999;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.picker-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ccc;
}

.picker-tab.active {
    background: var(--success-color);
    color: white;
    font-weight: 600;
}

/* ピッカーコンテンツ */
.picker-content {
    padding: 24px 20px;
}

/* ドラム式ピッカー */
.drum-picker-container {
    position: relative;
    display: flex;
    gap: 8px;
    height: 240px;
    margin-bottom: 24px;
}

/* 中央のハイライトバー */
.picker-highlight-bar {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 48px;
    background: rgba(123, 192, 188, 0.15);
    border-top: 1px solid rgba(123, 192, 188, 0.3);
    border-bottom: 1px solid rgba(123, 192, 188, 0.3);
    pointer-events: none;
    z-index: 1;
}

/* ドラム列 */
.drum-column {
    flex: 1;
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 20%,
        black 80%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 20%,
        black 80%,
        transparent 100%
    );
}

/* ドラムスクロールエリア */
.drum-scroll {
    padding: 96px 0;
    overflow-y: scroll;
    height: 100%;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.drum-scroll::-webkit-scrollbar {
    display: none;
}

/* ドラムアイテム */
.drum-item {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
    font-size: 1.1rem;
    color: #666;
    transition: all 0.3s;
    cursor: pointer;
}

.drum-item.active {
    color: #fff;
    font-weight: 600;
    font-size: 1.2rem;
}

.drum-item.today {
    color: var(--success-color);
}

/* 日付列の特別スタイル */
#drum-date .drum-item {
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.drum-date-inline {
    display: flex;
    align-items: center;
    gap: 6px;
}

.drum-date-main {
    font-size: 1rem;
}

.drum-date-sub {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* 曜日の色 */
.drum-date-sub.saturday {
    color: #4A90E2;
}

.drum-date-sub.sunday {
    color: #E74C3C;
}

/* アクティブ時のスタイル */
.drum-item.active .drum-date-main {
    font-size: 1.1rem;
}

.drum-item.active .drum-date-sub {
    font-size: 0.95rem;
    opacity: 1;
}

.drum-item.active .drum-date-sub.saturday {
    color: #5FA8E8;
}

.drum-item.active .drum-date-sub.sunday {
    color: #FF6B6B;
}

/* モーダルフッター（ピッカー用） */
.modal-footer-picker {
    padding: 16px 20px 24px;
}

.modal-apply-btn-picker {
    width: auto;
    max-width: 200px;
    margin: 0 auto;
    display: block;
    padding: 14px 48px;
    background: linear-gradient(135deg, var(--success-color) 0%, #5FA8A4 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    box-shadow: 0 4px 16px rgba(123, 192, 188, 0.3);
}

.modal-apply-btn-picker:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 192, 188, 0.4);
}

.modal-apply-btn-picker:active {
    transform: translateY(0);
}

/* レスポンシブ調整（ドラムピッカー用） */
@media (min-width: 768px) {
    .modal-content-picker {
        border-radius: 24px;
        max-width: 480px;
    }

    .time-modal {
        align-items: center;
    }
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
    .miles-info {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .jal-logo {
        max-width: 160px;
    }
}
