@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Italiana&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
    --indigo-dark: #0d1117;
    --indigo-main: #1a237e;
    --indigo-accent: #5c6bc0;
    --indigo-light: #7986cb;
    --text-main: #ffffff;
    --text-sub: #9fa8da;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --danger-color: #ef5350;
}

/* =========================================
   Base & Layout
   ========================================= */
body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans JP', sans-serif;
    background: linear-gradient(135deg, var(--indigo-dark) 0%, var(--indigo-main) 100%);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

.bg-decoration {
    position: fixed;
    top: -150px; right: -150px;
    width: 60vw; height: 60vw;
    max-width: 800px; max-height: 800px;
    background: radial-gradient(circle, rgba(92, 107, 192, 0.25) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.container {
    width: min(90vw, 1100px);
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
    box-sizing: border-box;
}

/* =========================================
   Header & Logo
   ========================================= */
.main-header {
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    transition: transform 0.3s, opacity 0.3s;
    cursor: pointer;
}
.logo-link:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.logo-container {
    display: inline-block;
    position: relative;
    padding: 10px 0;
}

.logo-ruby {
    display: block;
    font-size: 0.9rem;
    color: var(--indigo-light);
    letter-spacing: 0.5em;
    margin-bottom: -5px;
    opacity: 0.8;
}

.logo-main {
    font-family: 'Italiana', serif;
    font-size: 4.5rem;
    font-weight: 400;
    margin: 0;
    line-height: 1;
    letter-spacing: 0.1em;
    background: linear-gradient(to bottom, #fff, #c5cae9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 20px rgba(92, 107, 192, 0.3);
}

.subtitle {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-sub);
    letter-spacing: 0.2em;
    opacity: 0.7;
    font-weight: 300;
}

/* =========================================
   Components (Card, Input, Button)
   ========================================= */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.input-group { margin-bottom: 20px; text-align: left; }
label { display: block; font-size: 0.85rem; color: var(--text-sub); margin-bottom: 8px; letter-spacing: 0.05em; }

input, select, textarea {
    width: 100%; padding: 14px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--indigo-accent);
    background: rgba(0, 0, 0, 0.4);
}
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

.btn-indigo {
    width: 100%; padding: 16px;
    background: var(--indigo-accent);
    color: white;
    border: none; border-radius: 10px;
    font-weight: 700; cursor: pointer;
    letter-spacing: 0.1em;
    transition: all 0.3s;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.btn-indigo:hover {
    background: var(--indigo-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(92, 107, 192, 0.4);
}

/* =========================================
   Timeline Layout
   ========================================= */
.timeline-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
    text-align: left;
    margin-top: 30px;
}

.trip-header { text-align: center; margin-bottom: 40px; }
.trip-header h2 { font-size: 2.5rem; margin: 0 0 10px 0; letter-spacing: 0.1em; }
.trip-header p { color: var(--text-sub); font-size: 1rem; }
.back-link {
    display: inline-block; margin-top: 10px; color: var(--text-sub);
    text-decoration: none; font-size: 0.9rem; border-bottom: 1px solid transparent;
    transition: 0.3s;
}
.back-link:hover { color: white; border-bottom-color: white; }

.sticky-form { position: sticky; top: 30px; }
.sticky-form h3 {
    margin-top: 0; color: var(--indigo-accent);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px; margin-bottom: 20px;
}

/* =========================================
   Timeline Items & Actions
   ========================================= */
.timeline-item {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 20px; padding: 25px;
    border-left: 4px solid var(--indigo-accent);
    position: relative; transition: background 0.3s;
}
.timeline-item:hover { background: rgba(255, 255, 255, 0.12); }

.time-disp {
    min-width: 70px; margin-right: 15px;
    font-weight: 700; color: var(--indigo-accent); font-size: 1.2rem;
    display: flex; flex-direction: column; text-align: center;
}
.day-label {
    font-size: 0.7rem; color: var(--text-sub); font-weight: normal;
    margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.05em;
}

.act-content { flex-grow: 1; overflow-wrap: break-word; }
.act-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.act-location {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.9rem; color: var(--indigo-light); text-decoration: none;
    background: rgba(0, 0, 0, 0.2); padding: 4px 10px;
    border-radius: 6px; margin-bottom: 8px; transition: 0.3s;
}
.act-location:hover { background: var(--indigo-accent); color: white; transform: translateX(3px); }
.act-memo {
    font-size: 0.9rem; color: var(--text-sub); white-space: pre-wrap;
    line-height: 1.6; margin-top: 5px;
    border-top: 1px dashed rgba(255,255,255,0.1); padding-top: 8px;
}

.act-actions { display: flex; flex-direction: column; gap: 8px; margin-left: 10px; flex-shrink: 0; }
.action-btn {
    width: 50px; height: 50px; border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1); background: rgba(255, 255, 255, 0.05);
    color: var(--text-sub); cursor: pointer; font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.edit-btn:hover { background: var(--indigo-accent); color: white; border-color: var(--indigo-accent); }
.delete-btn:hover { background: var(--danger-color); color: white; border-color: var(--danger-color); }

/* =========================================
   Modal & Footer
   ========================================= */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999; animation: fadeIn 0.3s ease-out;
}
.modal-content {
    width: 90%; max-width: 500px;
    background: #1a237e; border: 1px solid rgba(255,255,255,0.3);
}
.modal-actions { display: flex; gap: 15px; margin-top: 25px; }
.btn-cancel {
    width: 100%; padding: 16px; background: transparent;
    border: 1px solid rgba(255,255,255,0.3); color: var(--text-sub);
    border-radius: 10px; cursor: pointer; font-weight: bold;
    transition: 0.3s; margin-top: 10px;
}
.btn-cancel:hover { background: rgba(255,255,255,0.1); color: white; border-color: white; }

.main-footer {
    margin-top: 80px; padding: 40px 0; text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-sub); font-size: 0.8rem;
    position: relative; z-index: 10;
}
.footer-links { margin-bottom: 15px; }
.footer-links a {
    color: var(--text-sub); text-decoration: none; margin: 0 10px;
    opacity: 0.6; transition: opacity 0.3s; letter-spacing: 0.05em;
}
.footer-links a:hover { opacity: 1; color: white; text-decoration: underline; }
.copyright { margin: 0; opacity: 0.4; font-family: 'Italiana', serif; letter-spacing: 0.1em; font-size: 0.9rem; }

@keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

/* --- 時間入力の操作性向上 --- */
input[type="time"] {
    position: relative; /* 基準位置にする */
    min-height: 50px;   /* 指で押しやすい高さ確保 */
    cursor: pointer;    /* 指カーソルにする */
}

/* Chrome, Edge, Safari用：時計アイコンを全体に拡張して透明にする裏技 */
input[type="time"]::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* 透明にする */
    cursor: pointer;
}

/* 視覚的な「時計アイコン」を背景として自前で置く（藍色） */
input[type="time"] {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237986cb'%3e%3cpath d='M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 24px;
    padding-right: 45px; /* アイコンとかぶらないように */
}

/* --- アコーディオン展開ボタン --- */
.expand-section {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 30px;
}

.btn-expand {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-sub);
    border: 1px solid var(--glass-border);
    padding: 10px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-expand:hover {
    background: var(--indigo-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}