/* トップページだけの部品。共通の部品は site.css */
.site-search{padding:14px 0 6px}
.site-search .g-field{margin:0}
.site-search .g-chips{margin:8px 0 0;flex-wrap:wrap}
.site-search-results{margin-top:10px}
.search-k{display:inline-block;margin-right:.6em;font-size:13px;font-weight:500;color:var(--accent);border:1px solid currentColor;padding:0 .4em;line-height:1.6;vertical-align:2px}
.search-miss{padding:12px 0;font-size:16px;color:var(--sub)}
.home .lead{padding:20px 0 36px}
.home .lead-photo{position:relative;margin:0}
.home .lead-photo img{width:100%;aspect-ratio:16/7;object-fit:cover}
.home .lead-v{position:absolute;top:28px;left:36px;margin:0;writing-mode:vertical-rl;font:600 40px/1.6 var(--mincho);letter-spacing:.14em;color:#fff;text-shadow:0 1px 12px rgba(0,0,0,.35)}
.home .lead-copy{display:flex;justify-content:space-between;align-items:baseline;gap:12px 32px;flex-wrap:wrap;padding-top:18px;border-bottom:1px solid var(--line);padding-bottom:18px}
.home .intro{font-size:18px;line-height:1.9;margin:0}
/* 今日の海士町：藍の面に、ごみ・イベントの2行 */
.home .home-today{margin:0 0 24px}
.home .home-today .today-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}
.home .home-today .g-kicker{margin:0}
.home .home-today .today-date{margin:0;font-size:15px;font-weight:700;color:#fff}
.home .home-today .today-list{list-style:none;margin:12px 0 0;padding:0;border-top:1px solid rgba(255,255,255,.35)}
.home .home-today .today-list>li{border-bottom:1px solid rgba(255,255,255,.22)}
.home .home-today .today-row{display:grid;grid-template-columns:4em 1fr auto;grid-template-rows:auto auto;gap:2px 14px;padding:11px 0;color:#fff;text-decoration:none}
.home .home-today .today-k{grid-row:1/span 2;font-size:14px;color:#cfdcec;padding-top:3px}
.home .home-today .today-v{grid-column:2;font-size:18px;font-weight:700;line-height:1.5;overflow-wrap:anywhere}
.home .home-today .today-m{grid-column:2;font-size:14px;color:#cfdcec;line-height:1.6}
.home .home-today .today-side{grid-row:1/span 2;grid-column:3;align-self:center;color:#fff;font-size:16px}
.home .home-today .today-row:hover .today-v{text-decoration:underline}
.home .home-today .today-src{margin:10px 0 0;font-size:13px;color:#cfdcec;line-height:1.6}
.home .utility{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line-strong);border-bottom:1px solid var(--line-strong);margin-bottom:12px}
.home .utility a{display:block;padding:20px 24px;color:inherit;text-decoration:none}
.home .utility a+a{border-left:1px solid var(--line)}
.home .utility img{width:100%;height:140px;object-fit:contain;margin-bottom:14px}
.home .utility small{display:block;font-size:14px;color:var(--sub)}
.home .utility strong{font-size:20px}
.home .utility a:hover strong{color:var(--accent)}
.home .story-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:36px;align-items:start}
.home .story-main{color:inherit;text-decoration:none}
.home .story-main img{width:100%;aspect-ratio:16/10;object-fit:cover}
.home .story-main .g-kicker{margin:14px 0 0;font-size:14px;color:var(--sub)}
.home .story-main h3{font:600 25px/1.5 var(--mincho);margin:4px 0}
.home .story-main:hover h3{color:var(--accent)}
.home .map-feature{display:grid;grid-template-columns:2fr 1fr;gap:56px;align-items:center;margin-top:20px}
.home .route-sign{border-left:5px solid var(--accent);background:var(--tint);padding:26px;display:flex;flex-direction:column;gap:10px}
.home .route-sign span{font-size:15px;color:var(--sub)}
.home .route-sign strong{font-size:28px;line-height:1.5}
.home .directory{display:grid;grid-template-columns:1fr 1fr;column-gap:40px}
/* 船：欠航・条件付きのときだけ白地にして目立たせる */
.home .home-today .today-row.is-alert{background:#fff;color:var(--ink);padding:11px 12px;margin:6px 0}
.home .home-today .today-row.is-alert .today-k,.home .home-today .today-row.is-alert .today-m{color:var(--sub)}
.home .home-today .today-row.is-alert .today-side{color:var(--accent)}
/* 警報の行：今日の海士町の先頭。四角の色だけ気象庁の色 */
.home .home-today .today-alert{border-top:1px solid rgba(255,255,255,.35);margin-top:12px}
.home .home-today .today-alert[hidden]{display:none}
.home .home-today .today-alert+.today-list{margin-top:0}
.home .home-today .today-alert .today-v::before{content:"";display:inline-block;width:12px;height:12px;margin-right:8px;background:#fff;vertical-align:1px}
.home .home-today .today-alert[data-level="1"] .today-v::before{background:var(--w-advisory)}
.home .home-today .today-alert[data-level="2"] .today-v::before{background:var(--w-warning)}
.home .home-today .today-alert[data-level="3"] .today-v::before{background:var(--w-danger)}
.home .home-today .today-alert[data-level="4"] .today-v::before{background:var(--w-special);outline:1px solid #fff}
/* PC：写真と今日の海士町を横に並べ、最初の画面に収める */
@media(min-width:901px){
  .home .lead-wrap{display:grid;grid-template-columns:3fr 2fr;gap:28px;align-items:stretch;padding:20px 0 8px}
  .home .lead-wrap .lead{padding:0}
  .home .lead-wrap .lead-photo{height:100%}
  .home .lead-wrap .lead-photo img{height:100%;min-height:340px;aspect-ratio:auto}
  .home .lead-wrap .home-today{margin:0}
  .home .daily .g-rows{display:grid;grid-template-columns:1fr 1fr;column-gap:40px}
}
@media(max-width:700px){
  .home .lead{padding:0 0 16px}
  .home .lead-photo{margin:0 calc(var(--gutter)*-1)}
  .home .lead-photo img{aspect-ratio:3/2}
  .home .lead-v{top:22px;left:20px;font-size:30px}
  .home .intro{font-size:17px}
  .home .home-today .today-row{grid-template-columns:4em 1fr auto;gap:2px 10px}
  .home .home-today .today-v{font-size:17px}
  .home .utility{grid-template-columns:1fr}
  .home .utility a{display:grid;grid-template-columns:96px 1fr;grid-template-rows:auto auto;column-gap:16px;align-items:center;padding:14px 0}
  .home .utility a+a{border-left:0;border-top:1px solid var(--line)}
  .home .utility img{grid-row:1/span 2;width:96px;height:72px;margin:0}
  .home .utility strong{font-size:18px}
  .home .story-grid{grid-template-columns:1fr;gap:16px}
  .home .story-main h3{font-size:22px}
  .home .map-feature{grid-template-columns:1fr;gap:16px}
  .home .directory{grid-template-columns:1fr}
  .home .home-today{margin:0 calc(var(--gutter)*-1) 24px}
}

/* 毎日の用事は藍の面 */
.home .daily{margin:8px 0 0}
.home .daily .g-h2{margin-top:28px}
.home .daily .g-row-title{color:var(--accent)}
.home .daily .g-row-title b{display:inline-block;min-width:4.5em;margin-right:.5em}
.install button.g-link{background:none;border:0;border-bottom:2px solid var(--accent);border-radius:0;padding:0 0 2px;font:inherit;font-weight:700;color:inherit;cursor:pointer}
