:root{font-family:"Yu Gothic UI","Yu Gothic","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;color:#243a34;background:#f4f2ea;font-synthesis:none;font-size:16px;line-height:1.7;--green:#244f45;--muted:#66736c;--line:#d9ded4;--paper:#fffefa;--red:#a54132;--hold:#856022}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;min-height:44px;padding:9px 19px;border:1px solid #acbcb0;border-radius:6px;background:transparent;color:var(--green);font-weight:600}button:hover{background:#e9eee5}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #a46135;outline-offset:3px}input,select,textarea{width:100%;min-width:0;border:1px solid #aab6ac;background:#fffefa;color:#243a34;border-radius:5px;padding:11px 13px;min-height:48px}input[type=radio],input[type=checkbox]{width:19px;min-height:19px;accent-color:var(--green);margin:0 8px 0 0;vertical-align:middle}a{color:var(--green)}p{margin:0 0 18px}h1,h2,h3{font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-weight:600;line-height:1.4}h1{font-size:32px;margin:6px 0 12px;outline:none}h2{font-size:23px;margin:30px 0 14px}h3{font-size:19px}small{font-size:12px;font-weight:400}fieldset{border:0;padding:0;margin:0 0 30px;min-width:0}legend{font-weight:700;margin:0 0 13px;padding:0}legend small{margin-left:10px;color:var(--muted)}.app-shell{max-width:1280px;margin:auto;padding:0 42px}.masthead{height:109px;border-bottom:1px solid #c7d1c5;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;gap:15px;align-items:center;border:0;padding:0;text-align:left;background:transparent}.brand:hover{background:transparent}.brand span:last-child{display:flex;flex-direction:column}.brand small{font-size:11px;letter-spacing:.12em}.brand strong{font-family:"Yu Mincho",serif;font-size:25px;font-weight:600;letter-spacing:.06em}.brand-seal{display:grid;place-items:center;width:43px;height:48px;border:1px solid var(--red);color:var(--red);font-family:serif;font-size:28px;border-radius:2px}.masthead-meta{display:flex;align-items:center;gap:25px;font-size:12px;color:var(--muted)}.masthead-meta button{font-size:13px;border:0;text-decoration:underline;padding:0}.workspace{display:grid;grid-template-columns:190px minmax(0,1fr);gap:48px;padding:42px 0 56px;min-height:75vh}.sidebar{padding-top:5px}.eyebrow{font-size:11px;color:var(--muted);letter-spacing:.15em;font-weight:700;margin-bottom:10px}.sidebar nav{display:flex;flex-direction:column;gap:7px}.sidebar nav button{border:0;text-align:left;font-size:14px;padding:11px 12px;font-weight:500}.sidebar nav button span{font-size:11px;color:#829083;letter-spacing:.07em;margin-right:13px}.sidebar nav button[aria-current]{background:#e0e8dc;color:#244f45;font-weight:700}.sidebar-note{border-top:1px solid var(--line);padding:28px 12px;margin-top:32px;color:#66736c;font-family:"Yu Mincho",serif}.tiny-grid{font-size:35px;color:#9da98f}.sidebar-note small{font-family:sans-serif;line-height:2}main{min-width:0;background:var(--paper);border:1px solid var(--line);padding:36px 40px 42px;border-radius:3px;box-shadow:0 3px 18px #26372904}section{min-width:0}.context-bar{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;font-size:12px;color:#596d5f;border-bottom:1px solid var(--line);padding-bottom:15px;margin-bottom:26px}.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:24px}.section-heading>button{font-size:13px;white-space:nowrap}.muted{color:var(--muted);font-size:14px}.method-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.method-option{position:relative;border:1px solid var(--line);border-radius:5px;padding:19px 16px 20px;display:flex;flex-direction:column;align-items:flex-start;gap:11px;cursor:pointer;font-size:13px;color:#5f7066;min-height:230px}.method-option input{position:absolute;top:17px;right:8px}.method-option strong{font-family:"Yu Mincho",serif;font-size:24px;color:#344f42}.method-option .eyebrow{margin:0}.method-option.chosen{border:2px solid #406c52;padding:18px 15px 19px;background:#f0f4ea}.method-option.chosen:after{content:"";height:3px;width:28px;background:#50704f;position:absolute;bottom:16px;left:16px}.use-options{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:10px}.use-options label{flex:1;min-width:max-content;border:1px solid var(--line);padding:12px 15px;border-radius:5px;cursor:pointer;font-size:14px}.use-options label.chosen{background:#edf2e9;border-color:#6b8367}.notice{background:#f1f3eb;border-left:3px solid #70876d;padding:16px 19px;font-size:14px;margin:22px 0;overflow-wrap:anywhere}.notice.hold{background:#f8f1e0;border-color:#b38b47}.notice.error{background:#fff0ea;border-color:var(--red);color:#833d2c}.notice button{display:block;margin-top:12px}.notice ul{padding-left:20px;margin-bottom:0}.actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:24px}.primary{background:var(--green);color:#fffefa;border:1px solid var(--green);padding:13px 25px;min-width:160px}.primary:hover{background:#346759}.primary span{margin-left:24px}.text-button{border-color:transparent;padding:9px 4px;text-decoration:underline;text-underline-offset:5px;font-size:14px}.fields{display:grid;gap:18px;margin-bottom:17px}.fields.two{grid-template-columns:repeat(2,minmax(0,1fr))}.field{display:block;min-width:0;margin-bottom:17px}.field>span:first-child{display:flex;gap:9px;align-items:baseline;margin-bottom:8px;font-size:14px;font-weight:600}.field small{color:var(--muted)}.field-error{display:block;color:var(--red);font-size:13px;margin-top:7px}[aria-invalid=true]{border-color:var(--red)}.summary-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:6px 0 18px;margin-bottom:12px;font-size:14px}.summary-row button{font-size:13px;white-space:nowrap}.check{font-size:14px}details{border-top:1px solid var(--line);padding:15px 0;margin:12px 0}summary{cursor:pointer;font-size:14px;font-weight:600;min-height:32px}details[open]>summary{margin-bottom:17px}pre{max-width:100%;overflow-x:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:#f3f3ed;padding:15px;font-size:13px}dl{display:grid;grid-template-columns:minmax(110px,1fr) 2fr;gap:8px 15px;font-size:14px}dt{color:var(--muted)}dd{margin:0;overflow-wrap:anywhere}.form-summary{margin-top:25px;border-top:1px solid var(--line);padding-top:20px}.form-summary small{color:#64735e;font-weight:700;letter-spacing:.1em}.form-summary p{margin-top:8px;font-size:14px}.link-row{display:flex;gap:20px;flex-wrap:wrap}.unit-input{display:flex;gap:10px;align-items:center;max-width:280px}.direction-preview{background:#eff3e8;padding:20px;display:flex;flex-direction:column;gap:8px;margin:24px 0}.direction-preview strong{font-family:"Yu Mincho",serif;font-size:24px}.result-summary{border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:20px;font-size:14px}.tabs{display:flex;border-bottom:1px solid var(--line);gap:5px;margin:24px 0 18px}.tabs button{border:0;border-radius:0;padding:11px 17px;white-space:nowrap}.tabs button[aria-selected=true]{border-bottom:3px solid var(--green)}.tabs button span{font-size:11px;background:#eaf0e3;padding:3px 7px;border-radius:12px;margin-left:7px}.confirmation{display:flex;gap:18px;flex-wrap:wrap;font-size:13px;color:var(--muted);margin-bottom:22px}.result-card{padding:23px 24px;border:1px solid var(--line);border-left:3px solid #637e54;margin-bottom:16px;border-radius:3px}.result-card.status-除外{border-left-color:#a3aaa0}.result-card.status-保留{border-left-color:#bd964f}.result-top{display:flex;align-items:center;flex-wrap:wrap;gap:13px;font-size:12px}.result-top strong{font-size:17px;font-weight:500;margin-left:auto}.badge{font-size:11px;display:inline-block;padding:3px 9px;border-radius:3px;background:#e5efdd;color:#345a39;white-space:nowrap}.badge.status-除外{background:#eeeee7;color:#62695f}.badge.status-保留{background:#f5ebd2;color:#80632b}.result-card h2{margin:14px 0 10px;font-size:25px}.result-card p{font-size:14px;margin-bottom:9px}.result-card .actions{margin-top:17px}.priority-note{color:#4f6c39}.empty{padding:30px 0;color:#58685b}.empty h2{font-size:20px;margin-top:0}.quiet-note{font-size:12px;color:#778174;border-top:1px solid var(--line);padding-top:21px;margin-top:30px}.pagination{display:flex;align-items:center;justify-content:space-between;gap:9px;font-size:12px}.pagination button{font-size:12px;padding:6px 12px}.calendar-strip{display:flex;gap:14px;flex-wrap:wrap;align-items:center;padding:15px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:24px 0;font-size:14px}.calendar-strip strong{font-family:"Yu Mincho",serif;font-size:20px}.original-table{background:#f7f5eb;border:1px solid #d5d8c9;padding:22px 30px;font-family:"Yu Mincho",serif;font-size:23px;letter-spacing:.12em}.original-table p{margin-bottom:6px}.source-line{font-size:12px;color:#667362;overflow-wrap:anywhere;margin:12px 0 17px;line-height:1.9}.board-caption{text-align:center;color:var(--muted);font-size:12px;margin-bottom:13px}.board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid #a3b39e;border-left:1px solid #a3b39e;margin:0 auto 25px;max-width:620px}.palace{display:flex;flex-direction:column;align-items:center;gap:2px;border:0;border-right:1px solid #a3b39e;border-bottom:1px solid #a3b39e;border-radius:0;padding:13px 6px;min-height:152px;background:#faf9f1;font-size:12px;font-weight:400;color:#465743}.palace.selected{background:#e8efdf;box-shadow:inset 0 0 0 2px #50704f}.palace-title{display:flex;justify-content:space-between;width:100%;padding:0 7px;font-size:13px;font-weight:700}.palace-title small{font-size:11px;color:#77836d}.celestial{font-family:"Yu Mincho",serif;font-size:28px;font-weight:600;color:#31574e}.palace-door{font-size:15px}.palace-door small{font-size:11px}.table-scroll{max-width:100%;overflow-x:auto;margin:18px 0}table{border-collapse:collapse;width:100%;font-size:13px;text-align:left}th,td{padding:10px 12px;border:1px solid var(--line);vertical-align:top;min-width:75px}th{background:#edf1e7;font-weight:600}.step summary{display:flex;justify-content:space-between}.check-row{padding:12px 0;border-bottom:1px solid #ebeee6;font-size:14px}.check-row>span{float:right;font-size:12px;margin-left:12px}.check-row>strong{font-weight:500}.cell-summary{font-size:14px;background:#f0f3e8;padding:16px}.inline-form{display:flex;gap:10px}.chips{display:flex;flex-wrap:wrap;gap:7px;margin:18px 0 25px}.chips button{border-radius:20px;font-size:12px;min-height:34px;padding:5px 13px}.chips button[aria-pressed=true]{background:var(--green);color:white}.reading-list{border-top:1px solid var(--line)}.reading-link{display:flex;justify-content:space-between;align-items:center;width:100%;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:17px 6px;text-align:left}.reading-link small{display:block;color:#6d7a65;margin-bottom:5px}.reading-link strong{font-family:"Yu Mincho",serif;font-size:19px;font-weight:600}.reading-paper h2{font-size:27px}.article p{white-space:pre-wrap;font-size:15px;line-height:1.95}.article pre{font-family:monospace;font-size:12px}.system-info{margin-top:35px;color:var(--muted);font-size:13px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}progress{display:block;width:100%;height:10px;accent-color:var(--green);margin:15px 0}footer{border-top:1px solid #c7d1c5;padding:23px 0;display:flex;justify-content:space-between;font-size:11px;color:#74806e;gap:15px}
@media(max-width:960px){.app-shell{padding:0 24px}.workspace{grid-template-columns:150px minmax(0,1fr);gap:24px}main{padding:28px 24px}.method-options{grid-template-columns:1fr}.method-option{min-height:0;padding:19px 20px}.method-option.chosen{padding:18px 19px}.method-option.chosen:after{display:none}.method-option strong{font-size:23px}.sidebar nav button{padding-left:6px;font-size:13px}.sidebar nav button span{margin-right:7px}}
@media(max-width:640px){.app-shell{padding:0 16px}.masthead{height:90px;gap:10px}.brand{gap:10px}.brand-seal{width:33px;height:39px;font-size:23px}.brand strong{font-size:20px}.brand small{font-size:9px;letter-spacing:0}.masthead-meta>span{display:none}.masthead-meta button{font-size:11px}.workspace{display:block;padding:14px 0 25px}.sidebar{padding:0;margin-bottom:14px}.sidebar>.eyebrow,.sidebar-note{display:none}.sidebar nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px}.sidebar nav button{display:flex;flex-direction:column;align-items:center;padding:8px 1px;font-size:10px;min-height:53px}.sidebar nav button span{margin:0;font-size:10px}main{padding:24px 18px}.section-heading{margin-bottom:21px;display:block}.section-heading>button{margin-top:8px}.section-heading h1{font-size:27px}.use-options{display:block}.use-options label{display:block;margin-bottom:8px;font-size:14px}.method-option{gap:6px}.fields.two{grid-template-columns:1fr;gap:0}.field{margin-bottom:18px}.summary-row{display:block}.summary-row button{margin-top:13px}.tabs{gap:0}.tabs button{flex:1;font-size:13px;padding:10px 6px}.tabs button span{font-size:10px;margin-left:4px;padding:3px 5px}.result-card{padding:18px 16px}.result-top{gap:9px}.result-top strong{margin-left:0;width:100%;font-size:18px}.actions{gap:9px}.actions>button{flex:1}.actions .text-button{font-size:12px}.result-card .actions{display:flex;flex-direction:column;align-items:stretch}.result-card h2{font-size:24px}.original-table{font-size:18px;letter-spacing:.05em;padding:20px 13px}.palace{min-height:139px;padding:9px 2px;font-size:10px}.palace-title{padding:0 4px;font-size:11px}.palace-title small{font-size:9px}.celestial{font-size:24px}.palace-door{font-size:13px}.palace-door small{font-size:9px}.palace>small{font-size:10px}dl{grid-template-columns:1fr;gap:2px}dd{margin-bottom:13px}.context-bar{font-size:11px}.reading-link strong{font-size:17px}.reading-paper h2{font-size:24px}.article p{font-size:14px}.pagination{flex-wrap:wrap;justify-content:center}.check-row>span{float:none;display:block}.inline-form button{padding:9px 14px}.quiet-note{font-size:11px}footer{flex-direction:column;font-size:10px;gap:4px}}
@media(prefers-reduced-motion:no-preference){button{transition:background .15s ease,border-color .15s ease}}

.actions>button{white-space:nowrap}.primary span{margin-left:12px}
@media(max-width:640px){.actions>button{flex:0 1 auto}.sidebar nav button:nth-child(3){font-size:9px}}

/* 段階6：地図は北上、地図由来の配置を既存の盤と混同しない。 */
.location-map{height:380px;max-width:100%;border:1px solid var(--line,#aab8ad);border-radius:8px;z-index:0;margin-top:16px}.location-pin{background:#244f45;color:white;border:2px solid white;border-radius:50% 50% 50% 0;display:grid;place-items:center;font:700 16px sans-serif;box-shadow:0 2px 5px #0006}.location-pin.destination{background:#94642f}.location-map .leaflet-control a{color:#244f45}.location-map .leaflet-control-zoom a{font:700 22px/30px sans-serif}.address-results{list-style:none;padding:0;display:grid;gap:10px}.address-results button{display:grid;text-align:left;width:100%;white-space:normal}.address-results small{display:block}.place-review,.point-summary{margin:18px 0;padding:16px;background:#f0f2ea;border-left:3px solid #7d9279}.locations .check{margin:16px 0}.locations .use-options{margin-top:16px}.locations a{overflow-wrap:anywhere}@media(max-width:600px){.location-map{height:300px}.locations .actions{flex-wrap:wrap}.locations .actions button{max-width:100%}}

/* 目的地方位を固定した検索では、選ぶ対象である日時を先に読む。 */
.result-card .candidate-datetime{font-family:inherit;display:flex;flex-direction:column;gap:5px;margin:16px 0 12px;font-weight:700;line-height:1.35}
.candidate-datetime .candidate-date{font-size:28px}
.candidate-datetime .candidate-time{font-size:34px;overflow-wrap:anywhere}
.result-card .candidate-direction{font-size:14px;color:var(--muted);margin-bottom:8px}
.term-note{background:#f5f6ef;border-radius:4px;padding:12px 14px;margin:12px 0}
.term-note p{margin-bottom:8px}.term-note p:last-child{margin-bottom:0}.term-note small{display:block;color:var(--muted);line-height:1.6}
@media(max-width:640px){.tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.tabs button{white-space:normal;min-width:0;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px;font-size:12px;padding:10px 3px;line-height:1.5}.tabs button span{margin:0}.candidate-datetime .candidate-date{font-size:25px}.candidate-datetime .candidate-time{font-size:29px}.result-card .candidate-direction{font-size:13px}}

.board-terms dl{display:block}.board-terms dl>div{margin-bottom:15px}.board-terms dt{font-weight:700;color:var(--green)}

.nearby-guide{margin:32px 0;padding-top:24px;border-top:1px solid var(--line)}
.nearby-card{padding:20px;margin:16px 0;border:1px solid var(--line);border-left:4px solid var(--green);border-radius:8px;background:var(--paper)}
.nearby-card h3{margin-top:0;font-size:20px}
.nearby-card strong{font-size:20px}

.place-card{padding:1.25rem 0;border-bottom:1px solid var(--line,#d3d9ce);min-width:0}.place-card h2{font-size:1.4rem}.place-card .place-review{margin:1rem 0}.locations .point-summary{margin:1.5rem 0}.location-notes{margin-top:1rem}.arrival-constraints{margin:1rem 0}.candidate-date{margin-right:.75rem}

@media(max-width:640px){.masthead{height:auto;min-height:76px;gap:10px;padding:12px 0}.brand{gap:8px}.brand strong{font-size:18px;letter-spacing:0}.brand small{font-size:9px;letter-spacing:0}.brand-seal{width:30px;height:36px;font-size:23px;flex-shrink:0}.masthead-meta{gap:8px}.masthead-meta button{font-size:11px;line-height:1.3}.workspace{padding-top:16px;gap:16px}.sidebar nav button{padding:8px 3px;font-size:11px;line-height:1.4}.sidebar nav button span{display:none}.context-bar{margin-bottom:14px;padding-bottom:10px}.section-heading{margin-bottom:16px}.section-heading h1{font-size:27px}.section-heading p{margin-bottom:8px}main{padding:20px 18px}fieldset{margin-bottom:22px}}

/* 参考は吉・注意・資料不足とは別の表示。 */
.status-参考{border-color:#507a91}.badge.status-参考{background:#e5f0f5;color:#244e63}.tabs{flex-wrap:wrap}.tabs button{min-width:0}

.method-guide{margin:1.5rem 0}.method-guide p{max-width:65ch}.book-guide{margin:1.5rem 0;padding:1rem 1.25rem;border-left:3px solid #8a9d89;background:#f3f5ee}.book-guide h3{margin:0 0 .6rem}.book-guide p{margin:.5rem 0;overflow-wrap:anywhere}.book-guide cite{font-style:normal}.book-chapter{font-weight:600}.keep-plans{line-height:1.9}
.monthly-directions{margin-block:2rem;padding:clamp(1rem,3vw,2rem);border:1px solid var(--border,#b9c6bc);border-radius:.5rem}
.monthly-directions dl>div{margin-block:.8rem}
.monthly-directions dt{font-weight:700}
.monthly-directions dd{margin:.25rem 0 0}
.monthly-directions li{margin-block:.5rem}
.monthly-directions button{white-space:normal}
.monthly-directions h2{text-wrap:balance}
.monthly-directions h2 span{display:inline-block;white-space:nowrap}
