:root{color-scheme:light;--ink:#203b36;--muted:#62736e;--green:#235c51;--line:#dfe6e2;--paper:#fff;--bg:#f3f6f3;--accent:#e7b47a;font-family:"Yu Gothic UI","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;color:var(--ink);background:var(--bg);font-size:16px}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:1px solid var(--line);border-radius:9px;background:white;color:var(--ink);padding:10px 16px;min-height:44px;font-weight:600}button:hover{background:#edf3ef}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #cf9a55;outline-offset:3px}a{color:inherit}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#17473e}.quiet{background:transparent}.danger{color:#a13737}.small{font-size:.875rem;padding:7px 12px}.icon-button{font-size:1.5rem;line-height:1;border:0;background:transparent}.site-header{max-width:1200px;margin:auto;padding:26px 40px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:1.3rem;font-weight:700;letter-spacing:.05em}.brand-mark{display:grid;place-items:center;width:46px;height:46px;background:var(--green);color:white;border-radius:14px 14px 14px 3px;font-size:1.5rem}.brand small{display:block;font-size:.75rem;color:var(--muted);font-weight:400;letter-spacing:.02em;margin-top:3px}.backup-actions{display:flex;gap:8px}.backup-actions button{font-size:.875rem}main{max-width:1120px;margin:0 auto;padding:20px 0 56px}.hero{position:relative;overflow:hidden;background:var(--green);color:white;border-radius:20px;padding:44px;margin-bottom:32px}.hero:after{content:"";position:absolute;width:270px;height:270px;border:45px solid #ffffff0c;border-radius:50%;right:-35px;top:-75px;pointer-events:none}.eyebrow{font-size:.875rem;letter-spacing:.15em;margin:0 0 12px;color:#d2e4da}h1{font-size:clamp(1.6rem,4vw,2.25rem);margin:0 0 12px;line-height:1.5;overflow-wrap:anywhere}p{line-height:1.8}.hero p:last-child{color:#e0ece5;margin-bottom:0}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:24px 0 20px}h2{font-size:1.25rem;margin:0}h3{font-size:1.1rem;margin:0 0 12px}.count{font-size:.875rem;color:var(--muted);margin-left:10px;font-weight:400}.trip-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.trip-card{background:white;border:1px solid var(--line);border-radius:15px;padding:24px;display:flex;flex-direction:column;gap:14px;box-shadow:0 5px 18px #203b3604}.trip-card .card-label{color:var(--green);font-size:.875rem;letter-spacing:.04em}.trip-card h3{font-size:1.3rem;overflow-wrap:anywhere;margin:0}.trip-card p{color:var(--muted);margin:0;font-size:.9rem}.trip-card button{margin-top:auto;align-self:start}.trip-card .destination{padding:14px 0;border-top:1px solid var(--line)}.empty{background:white;border:1px dashed #becdc4;border-radius:14px;text-align:center;padding:48px 24px;color:var(--muted)}.empty h3{color:var(--ink)}.empty p{margin:8px 0 20px}.back{margin-bottom:20px}.detail-hero{margin-bottom:24px}.detail-top{display:flex;justify-content:space-between;gap:16px;align-items:start}.detail-top button{background:#ffffff15;border-color:#ffffff55;color:white;position:relative;z-index:1}.trip-meta{display:flex;gap:12px 28px;flex-wrap:wrap;color:#dfebe4}.trip-note{white-space:pre-wrap;border-top:1px solid #ffffff33;padding-top:16px;margin-top:20px;overflow-wrap:anywhere}.tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);margin-bottom:26px;overflow:auto;padding-bottom:12px}.tab{border-color:transparent;background:transparent;white-space:nowrap;flex:1}.tab[aria-selected=true]{background:#e0ebe3;color:var(--green);border-color:#b8cfc2}.panel{min-height:260px}.panel-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px;flex-wrap:wrap}.panel-toolbar label{display:flex;align-items:center;gap:12px}.entry-list{display:grid;gap:12px}.entry{background:white;border:1px solid var(--line);border-radius:12px;padding:20px;display:flex;align-items:start;gap:20px}.entry-time{font-size:1.15rem;color:var(--green);font-weight:700;min-width:65px}.entry-body{flex:1;min-width:0}.entry h3{margin-bottom:6px;overflow-wrap:anywhere}.entry p{font-size:.9rem;color:var(--muted);margin:3px 0;white-space:pre-wrap;overflow-wrap:anywhere}.entry-actions{display:flex;gap:6px;flex-wrap:wrap}.badge{display:inline-block;background:#edf3ef;color:var(--green);font-size:.875rem;padding:3px 10px;border-radius:5px;margin-bottom:8px}.packing-add{display:flex;gap:10px;margin-bottom:20px}.packing-add input{flex:1;min-width:0}.packing-row{align-items:center}.packing-row label{display:flex;align-items:center;gap:14px;flex:1;overflow-wrap:anywhere;min-width:0}.packing-row input{width:21px;height:21px;accent-color:var(--green);flex-shrink:0}.packing-row .done{text-decoration:line-through;color:var(--muted)}.progress{height:6px;border-radius:4px;background:#e0e8e2;margin:12px 0 24px;overflow:hidden}.progress span{display:block;height:100%;background:var(--green)}.total{background:#e5ede7;padding:24px;border-radius:12px;margin-bottom:22px;display:flex;justify-content:space-between;align-items:center}.total strong{font-size:1.8rem}.amount{font-weight:700;white-space:nowrap}.detail-footer{display:flex;justify-content:flex-end;margin-top:38px}footer{text-align:center;padding:20px 20px 32px;color:var(--muted);font-size:.875rem}input,textarea,select{border:1px solid #b9c9c0;border-radius:8px;padding:11px 12px;background:white;color:var(--ink);min-height:44px;max-width:100%}select{appearance:none;padding-right:35px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23235c51' stroke-width='2'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}textarea{resize:vertical;min-height:95px}dialog{border:0;border-radius:18px;padding:28px;width:min(600px,calc(100% - 28px));max-height:90dvh;color:var(--ink);box-shadow:0 25px 80px #132f3333}dialog::backdrop{background:#122b2866}.dialog-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{display:flex;flex-direction:column;gap:7px;font-size:.875rem;font-weight:600}.field.full{grid-column:1/-1}.required{color:var(--muted);font-size:.75rem;margin-left:7px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.error{color:#a13737;font-size:.875rem}.notification{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#203b36;color:white;border-radius:10px;padding:12px 20px;box-shadow:0 4px 20px #0002;z-index:5;max-width:calc(100% - 28px);width:max-content;font-size:.9rem}.notification.is-error{background:#8c3030} [hidden]{display:none!important}
.map-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.map-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border:1px solid #b8cfc2;border-radius:8px;background:#edf3ef;color:var(--green);font-size:.875rem;font-weight:600;text-decoration:none}.map-link:hover{background:#e0ebe3}.map-help{font-size:.875rem;color:var(--muted);margin:0 0 18px}
.time-calculator{grid-column:1/-1;min-width:0;border:1px solid var(--line);border-radius:10px;background:#edf3ef;padding:16px}.time-calculator p{font-size:.875rem;overflow-wrap:anywhere}.time-calculator .field{margin-bottom:14px}.time-calculator select{width:100%;min-width:0}.time-calculator p:last-child{margin-bottom:0}@media(max-width:540px){.time-calculator button{width:100%}}
.detail-navigation{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.detail-tools{display:flex;gap:10px;flex-wrap:wrap}.duplicate-help{grid-column:1/-1;background:#edf3ef;border-radius:8px;padding:14px 16px;font-size:.875rem;overflow-wrap:anywhere}.duplicate-help p{margin:0}.duplicate-help p+p{margin-top:10px}
@media screen and (max-width:540px){.detail-tools{width:100%;margin-bottom:20px}.detail-tools .back{flex:1;margin-bottom:0}.dialog-actions{flex-wrap:wrap}.dialog-actions button{flex:1}}
.weather-symbol{display:inline-block;font-size:1.8rem;line-height:1.3;vertical-align:middle;margin-right:10px;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.weather-search{display:flex;align-items:flex-end;gap:12px;margin:20px 0 8px}.weather-search label{display:flex;flex-direction:column;gap:8px;flex:1;font-size:.875rem;font-weight:600}.weather-search input{width:100%}.weather-help,.weather-feedback{font-size:.875rem;color:var(--muted);line-height:1.8}.weather-feedback:empty{display:none}.weather-feedback.error{color:#a13737}.weather-candidates{list-style:none;padding:0;display:grid;gap:10px;margin:18px 0 26px}.weather-candidates li,.weather-location{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid var(--line);border-radius:12px;padding:18px;background:white;overflow-wrap:anywhere}.weather-candidates li>div,.weather-location>div{min-width:0}.weather-candidates small{display:block;color:var(--muted);margin-top:6px;font-size:.875rem}.weather-candidates button,.weather-location button{flex-shrink:0}.weather-location{background:#e5ede7;margin-top:26px}.weather-location h3{margin:0 0 6px}.weather-location p{margin:0;font-size:.875rem;color:var(--muted)}.weather-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}.weather-day{padding:22px;border:1px solid var(--line);border-radius:12px;background:white}.weather-day h3{font-size:1rem;border-bottom:1px solid var(--line);padding-bottom:12px}.weather-condition{font-size:1.2rem;font-weight:700;margin:12px 0}.weather-condition small{display:block;font-size:.875rem;font-weight:400;color:var(--muted)}.weather-values{display:flex;flex-wrap:wrap;gap:16px;margin:16px 0 0}.weather-values dt{font-size:.875rem;color:var(--muted)}.weather-values dd{margin:5px 0 0;font-weight:700;font-size:1.1rem}.weather-unavailable{font-size:.875rem;color:var(--muted);margin-bottom:0}.weather-pagination{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:14px;margin-top:22px}.weather-source{font-size:.875rem;margin-top:26px}.weather-source a{color:var(--green)}button:disabled{cursor:wait;opacity:.65}
@media(max-width:640px){.weather-grid{grid-template-columns:1fr}.weather-search{align-items:stretch;flex-direction:column}.weather-candidates li,.weather-location{align-items:flex-start;flex-direction:column}.weather-candidates button{align-self:flex-end}.weather-location button{align-self:stretch}}
.print-sheet{display:none;background:white;color:#20312c;padding:40px;border:1px solid var(--line);border-radius:12px;overflow-wrap:anywhere}
.print-preview{display:block}.print-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:20px;margin-bottom:24px}.print-toolbar h1{font-size:1.35rem;margin:0}.print-toolbar p{font-size:.875rem;color:var(--muted);margin:6px 0 0}
.print-heading{border-bottom:2px solid #355d50;padding-bottom:18px;margin-bottom:24px}.print-heading h1{font-size:1.9rem}.print-brand{letter-spacing:.15em;font-size:.875rem;margin:0 0 10px;color:#355d50}.print-basics{margin:16px 0 0}.print-basics div{display:flex;gap:16px;margin-top:8px}.print-basics dt{font-weight:700;flex:0 0 64px}.print-basics dd{margin:0;min-width:0}
.print-sheet h2{font-size:1.2rem;margin:0 0 14px}.print-sheet h3{font-size:1rem;margin:16px 0 10px}.print-trip-note{margin-bottom:26px;padding:18px;background:#f3f6f3;border:1px solid #dfe6e2;border-radius:8px}.print-trip-note p{margin:0}.preserve-lines{white-space:pre-wrap}.print-day{margin-top:30px}.print-day>h2{padding-bottom:10px;border-bottom:1px solid #869c92}.print-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:.875rem;line-height:1.7}.print-table th,.print-table td{border:1px solid #b8c8bf;padding:10px;text-align:left;vertical-align:top;overflow-wrap:anywhere}.print-table th{background:#edf3ef}.print-time{width:12%}.print-place{width:26%}.print-transport{width:17%}.print-duration{width:15%}.print-memo{width:30%}.print-reservation{border-left:3px solid #9bb5a6;padding:8px 14px;margin-bottom:12px}.print-reservation h4{font-size:.95rem;margin:0 0 5px}.print-reservation p{font-size:.875rem;margin:3px 0}.print-empty,.print-footnote{font-size:.875rem;color:#58675f}.print-footnote{border-top:1px solid #b8c8bf;margin-top:28px;padding-top:14px}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media screen and (max-width:540px){.print-sheet{padding:18px 12px}.print-heading h1{font-size:1.5rem}.print-table th,.print-table td{padding:6px 4px;font-size:.75rem}.print-toolbar>.primary{width:100%}}
/* 印刷時は行程表だけを出力。通常画面のタブや入力・地図ボタンを隠します。 */
@page{size:A4 portrait;margin:15mm}
@media print{
  :root{font-size:11pt;color:#000;background:#fff}body{margin:0;background:#fff;color:#000}
  body>.site-header,body>footer,body>.notification,body>dialog{display:none!important}
  #app{max-width:none;margin:0;padding:0}
  #app>.hero,#app>.tabs,#app>.panel,#app>.detail-footer,#app>.detail-navigation,#app>.print-toolbar{display:none!important}
  #app>.print-sheet{display:block!important;border:0;border-radius:0;padding:0;margin:0;box-shadow:none;color:#000}
  .print-sheet h1,.print-sheet h2,.print-sheet h3,.print-sheet h4{break-after:avoid}
  .print-heading,.print-reservation,.print-table tr{break-inside:avoid}
  .print-table thead{display:table-header-group}
  .print-table{font-size:9pt}.print-table th,.print-table td{padding:7px;border-color:#888}
  .print-trip-note{background:transparent;border-color:#aaa}
  .print-sheet button,.print-sheet input,.print-sheet select,.print-sheet textarea{display:none!important}
  .print-empty,.print-footnote,.print-brand{color:#333}
}
@media(max-width:1200px){main{margin:0 32px}.site-header{padding-inline:32px}}
@media(max-width:800px){.trip-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.site-header{align-items:start}.backup-actions{flex-direction:column}.hero{padding:30px}.entry{gap:12px;flex-wrap:wrap}.entry-actions{margin-left:auto}.detail-top{flex-direction:column}}
@media(max-width:540px){main{margin:0 18px;padding-top:8px}.site-header{padding:20px 18px;gap:10px}.brand{font-size:1.1rem;gap:8px}.brand small{font-size:.65rem}.brand-mark{width:38px;height:42px}.backup-actions button{font-size:.75rem;min-height:36px;padding:6px 9px}.hero{padding:26px 22px;border-radius:14px;margin-bottom:26px}.hero:after{right:-160px}.trip-grid{grid-template-columns:1fr}.section-heading{align-items:center}.section-heading h2{font-size:1.1rem}.section-heading button{padding:10px 12px;font-size:.875rem}.count{margin-left:5px}.trip-meta{gap:8px;flex-direction:column}.tab{padding:10px 12px;flex:none}.tabs{gap:3px}.entry{padding:16px}.entry-time{min-width:55px}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}dialog{padding:20px}.total{padding:20px}.total strong{font-size:1.45rem}.packing-add button{padding-inline:12px}.panel-toolbar label{flex-wrap:wrap}.entry-actions{width:100%;justify-content:flex-end}.packing-row{flex-wrap:nowrap}.packing-row button{padding:7px 10px}.detail-footer{margin-top:28px}}

/* 冒頭の枠だけ横幅を半分にします。スマートフォンでは読みやすい幅を保ちます。 */
.intro-hero {
  width: 50%;
  margin-inline: auto;
  /* 読み込めないときは既存の緑色の背景と文章が残ります。 */
  background-color: var(--green);
  background-image: url("./assets-images/travel-boutou.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.intro-hero::after { display: none; }
.intro-hero h1, .intro-hero p {
  position: relative;
  text-shadow: 0 1px 4px #000, 0 0 8px rgba(0, 0, 0, .7);
}
@media(max-width:540px) { .intro-hero { width: 100%; } }

/* 基本情報は全幅のまま写真を背景にし、読み込めない場合は緑色を表示します。 */
@media screen {
  .detail-hero {
    background-color: var(--green);
    background-image: url("./assets-images/travel-kihonjyouhou.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .detail-hero::after { display: none; }
  .detail-hero h1, .detail-hero p, .detail-hero .trip-meta,
  .detail-hero .detail-top button {
    text-shadow: 0 1px 4px #000, 0 0 8px rgba(0, 0, 0, .7);
  }
}

/* 背景写真は画面表示だけに適用し、印刷用の白背景を維持します。 */
@media screen {
  :root { background: #1b3029; }
  body {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100svh;
  }
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    /* 写真をそのまま表示します。画像がなくても背景色が残ります。 */
    background-color: #1b3029;
    background-image: url("./assets-images/travel-bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  /* 本文を写真より手前に置き、背景がボタン操作を妨げないようにします。 */
  body > .site-header, body > #app, body > footer {
    position: relative;
    z-index: 1;
  }
  .site-header .brand, body > footer { color: #fff; }
  .site-header .brand small { color: #e0ebe5; }
  .backup-actions .quiet {
    color: #fff;
    border-color: rgba(255, 255, 255, .55);
    background: rgba(10, 25, 21, .35);
  }
  .backup-actions .quiet:hover { background: rgba(255, 255, 255, .18); }
  #app {
    padding: 28px;
    background: transparent;
  }
  /* 写真の上に直接載る案内・見出しだけを明るくし、カード内の文字色は保ちます。 */
  .section-heading h2, .section-heading .count, .panel-toolbar,
  .weather-search label, .weather-help, .map-help,
  .weather-feedback:not(.error), .weather-pagination > span,
  .print-toolbar h1, .print-toolbar p, .weather-source a { color: #fff; }
  #app > .tabs .tab:not([aria-selected="true"]),
  .detail-navigation .quiet, .print-toolbar > .quiet,
  #detail-panel > .tabs .quiet, .weather-pagination .quiet {
    color: #fff;
    border-color: rgba(255, 255, 255, .55);
    background: rgba(10, 25, 21, .35);
  }
  .detail-footer .danger, #detail-panel > .error,
  .weather-feedback.error { color: #ffd0ca; }
  .site-header .brand, body > footer, .section-heading h2,
  .panel-toolbar, .weather-search label, .weather-help, .map-help,
  .weather-feedback, .weather-pagination > span, .weather-source a,
  .print-toolbar h1, .print-toolbar p {
    text-shadow: 0 1px 3px rgba(0, 0, 0, .9);
  }
}
@media screen and (max-width:540px) {
  body::before { background-position: 60% center; }
  #app { padding: 16px; }
}
