@charset "UTF-8";

/* 2026-09-06: 読みやすいイラスト画像（WebP / PNG）に差し替え。 */
#darkBody #content-single .shio_search a,
#darkBody #content-single .shio_search_date a,
html[data-theme="dark"] #content-single .shio_search a,
html[data-theme="dark"] #content-single .shio_search_date a {
  color: #7fb4e8;
}

#darkBody #content-single .shio_search li,
#darkBody #content-single .shio_search_date a,
html[data-theme="dark"] #content-single .shio_search li,
html[data-theme="dark"] #content-single .shio_search_date a {
  border-color: #555;
}

.slb-tide-diagram__picture {
  display: block;
  overflow: hidden;
  border: 1px solid #b9d2dd;
  border-radius: 10px;
}

.slb-tide-diagram__image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
}

#darkBody .slb-tide-diagram__picture,
html[data-theme="dark"] .slb-tide-diagram__picture {
  border-color: #555;
}

.slb-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.shio-view-tabs .tab-button:focus-visible {
  outline: 3px solid #111827;
  outline-offset: 2px;
}

.slb-tide-article {
  margin-top: 28px;
  color: #17313d;
  line-height: 1.85;
}

.slb-tide-safety-lead {
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 2px solid #b54b18;
  border-left-width: 8px;
  border-radius: 10px;
  background: #fff8f1;
}

.slb-tide-safety-lead h2 {
  margin: 0 0 8px !important;
  padding: 0 !important;
  background: transparent !important;
  color: #742c0d !important;
  font-size: 20px !important;
}

.slb-tide-safety-lead p {
  margin: 0;
}

.slb-tide-existing {
  margin: 0 0 28px;
}

.slb-tide-existing h2,
.slb-tide-diagrams > h2,
.slb-tide-guide__section > h2,
.slb-tide-guide__references > h2,
.slb-tide-emergency > h2 {
  margin: 34px 0 16px !important;
  padding: 10px 14px !important;
  border: 0 !important;
  border-left: 6px solid #2c7eb9 !important;
  background: #edf7fb !important;
  color: #123b50 !important;
  font-size: 22px !important;
  line-height: 1.45;
}

.slb-tide-existing p,
.slb-tide-guide p {
  margin: 0 0 14px;
}

.slb-tide-guide {
  margin-top: 34px;
}

.slb-tide-guide__hero {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 16px;
  background: #123b50;
  color: #fff;
}

.slb-tide-guide__hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slb-tide-guide__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 26, 39, 0.92) 0%, rgba(4, 26, 39, 0.72) 52%, rgba(4, 26, 39, 0.22) 100%);
}

.slb-tide-guide__hero-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
  max-width: 620px;
  padding: 36px clamp(22px, 6vw, 56px);
  box-sizing: border-box;
}

.slb-tide-guide__hero-overlay h2 {
  margin: 0 0 16px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #fff !important;
  font-size: clamp(26px, 5vw, 42px) !important;
  line-height: 1.3;
}

.slb-tide-guide__hero-overlay p {
  margin: 0;
  color: #fff;
  font-size: 17px;
  line-height: 1.85;
}

.slb-tide-guide__hero-overlay .slb-tide-guide__eyebrow {
  margin-bottom: 10px;
  color: #bcecff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.slb-tide-guide__summary,
.slb-tide-guide__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 34px;
}

.slb-tide-guide__summary section,
.slb-tide-guide__cards section {
  position: relative;
  padding: 20px;
  border: 1px solid #cddfe7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(13, 61, 80, 0.08);
}

.slb-tide-guide__summary h3,
.slb-tide-guide__cards h3 {
  margin: 0 0 9px;
  padding: 0;
  color: #0f5e7b;
  font-size: 18px;
  line-height: 1.5;
}

.slb-tide-guide__summary p,
.slb-tide-guide__cards p {
  margin: 0;
}

.slb-tide-guide__source-note {
  color: #506873;
  font-size: 13px;
}

/* 潮回り別の専用図解（各ページ2点、合計10点） */
.slb-tide-diagrams {
  margin: 38px 0;
}

.slb-tide-diagrams__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.slb-tide-diagram {
  min-width: 0;
  margin: 0;
  padding: 20px;
  border: 1px solid #b9d2dd;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(13, 61, 80, 0.09);
}

.slb-tide-diagram > h3 {
  margin: 0 0 14px;
  padding: 0;
  color: #0c506a;
  font-size: 20px;
  line-height: 1.5;
}

.slb-tide-diagram figcaption {
  margin-top: 12px;
  color: #3f5863;
  font-size: 14px;
  line-height: 1.75;
}

.slb-tide-diagram figcaption > strong {
  color: #143e50;
}

.slb-tide-diagram figcaption > span {
  display: block;
  margin-top: 6px;
  color: #506873;
  font-size: 13px;
}

.slb-tide-guide__links a:focus-visible,
.slb-tide-diagram a:focus-visible,
.slb-tide-faq summary:focus-visible {
  outline: 3px solid #111827;
  outline-offset: 3px;
}

.slb-tide-guide__number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: #0f6d8f;
  color: #fff;
  font-weight: 700;
}

.slb-tide-terms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.slb-tide-terms > div {
  padding: 18px;
  border-top: 5px solid #2c7eb9;
  border-radius: 8px;
  background: #f4f9fb;
}

.slb-tide-terms dt {
  margin-bottom: 6px;
  color: #124e68;
  font-size: 19px;
  font-weight: 700;
}

.slb-tide-terms dd {
  margin: 0;
}

.slb-tide-howto {
  margin: 18px 0;
  padding: 0;
  counter-reset: tide-step;
}

.slb-tide-howto li {
  position: relative;
  margin: 0 0 12px;
  padding: 15px 16px 15px 58px;
  border: 1px solid #cddfe7;
  border-radius: 10px;
  background: #fff;
  counter-increment: tide-step;
}

.slb-tide-howto li::before {
  content: counter(tide-step);
  position: absolute;
  left: 16px;
  top: 15px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #173f50;
  color: #fff;
  font-weight: 700;
}

.slb-tide-howto strong,
.slb-tide-howto span {
  display: block;
}

.slb-tide-howto span {
  margin-top: 3px;
  color: #48616c;
}

.slb-tide-guide__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.slb-tide-guide__links a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 9px 14px;
  border-radius: 8px;
  background: #0f6d8f;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-sizing: border-box;
}

.slb-tide-guide__link-icon {
  display: block;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-left: auto;
  fill: currentColor;
}

.slb-tide-emergency {
  margin: 34px 0;
  padding: 4px 22px 20px;
  border: 2px solid #a83a2a;
  border-radius: 12px;
  background: #fff7f4;
}

.slb-tide-emergency > h2 {
  margin: 18px 0 12px !important;
  border-left-color: #a83a2a !important;
  background: transparent !important;
  color: #76291e !important;
}

.slb-tide-emergency ul {
  margin: 0 0 12px;
  padding-left: 1.4em;
}

.slb-tide-emergency li {
  margin-bottom: 8px;
  list-style: disc;
}

.slb-tide-emergency p {
  margin: 0;
  font-size: 13px;
}

.slb-tide-faq details {
  margin-bottom: 10px;
  border: 1px solid #cddfe7;
  border-radius: 10px;
  background: #fff;
}

.slb-tide-faq summary {
  position: relative;
  padding: 15px 44px 15px 16px;
  color: #123f54;
  font-weight: 700;
  cursor: pointer;
}

.slb-tide-faq summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 11px;
  font-size: 24px;
}

.slb-tide-faq details[open] summary::after {
  content: "−";
}

.slb-tide-faq details p {
  padding: 0 16px 16px;
  margin: 0;
}

.slb-tide-guide__references {
  margin-top: 36px;
  padding-top: 1px;
  border-top: 1px solid #cddfe7;
}

.slb-tide-guide__references ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin: 14px 0;
  padding-left: 1.3em;
}

.slb-tide-guide__references li {
  list-style: disc;
}

.slb-tide-guide__reviewed {
  color: #506873;
  font-size: 13px;
}

.slb-tide-guide__disclaimer {
  padding: 12px 14px;
  border-radius: 8px;
  background: #eef3f5;
  color: #3f565f;
  font-size: 13px;
}

.calendar-day-link {
  display: block;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}

.calendar-day-link:focus-visible {
  outline: 3px solid #111827;
  outline-offset: -3px;
}

@media (max-width: 770px) {
  .slb-tide-article {
    font-size: 16px;
  }

  .slb-tide-guide__hero,
  .slb-tide-guide__hero-overlay {
    min-height: 330px;
  }

  .slb-tide-guide__hero::after {
    background: linear-gradient(180deg, rgba(4, 26, 39, 0.42) 0%, rgba(4, 26, 39, 0.93) 70%);
  }

  .slb-tide-guide__hero-overlay {
    justify-content: flex-end;
    padding: 28px 20px;
  }

  .slb-tide-guide__summary,
  .slb-tide-guide__cards,
  .slb-tide-terms,
  .slb-tide-guide__links,
  .slb-tide-guide__references ul {
    grid-template-columns: 1fr;
  }

  .slb-tide-existing h2,
  .slb-tide-diagrams > h2,
  .slb-tide-guide__section > h2,
  .slb-tide-guide__references > h2,
  .slb-tide-emergency > h2 {
    font-size: 20px !important;
  }

  .slb-tide-diagram {
    padding: 16px;
  }
}

@media (max-width: 390px) {
  .slb-tide-safety-lead,
  .slb-tide-emergency {
    padding-left: 14px;
    padding-right: 14px;
  }

  .slb-tide-guide__summary section,
  .slb-tide-guide__cards section {
    padding: 16px;
  }

  .slb-tide-diagram {
    padding: 13px;
  }

  .slb-tide-diagram > h3 {
    font-size: 18px;
  }
}

/* 角丸に頼らない、直線的な情報デザイン */
.slb-tide-article * {
  border-radius: 0 !important;
}

.slb-tide-guide__summary section,
.slb-tide-guide__cards section,
.slb-tide-diagram {
  box-shadow: none;
}

/* =====================================================================
   ダークモード（#darkBody = 旧シェル / html[data-theme="dark"] = 新シェル）
   配色はプロジェクト規約（面#2b2b2b・枠#555・本文#ddd・見出し#e8f1f8・
   補足#a8b8c8・強調#7fb4e8/#8ec3ee・警告 面#3a2525 文字#ff8a8a）に合わせる。
   ヒーロー（写真上の白文字）・番号バッジ・白文字ボタンは意図的な配色のため据え置き。
   図解はイラスト画像（WebP/PNG）のため色の対は不要。
   ===================================================================== */

#darkBody .slb-tide-article,
html[data-theme="dark"] .slb-tide-article {
  color: #ddd;
}

#darkBody .shio-view-tabs .tab-button:focus-visible,
#darkBody .slb-tide-guide__links a:focus-visible,
#darkBody .slb-tide-diagram a:focus-visible,
#darkBody .slb-tide-faq summary:focus-visible,
#darkBody .calendar-day-link:focus-visible,
html[data-theme="dark"] .shio-view-tabs .tab-button:focus-visible,
html[data-theme="dark"] .slb-tide-guide__links a:focus-visible,
html[data-theme="dark"] .slb-tide-diagram a:focus-visible,
html[data-theme="dark"] .slb-tide-faq summary:focus-visible,
html[data-theme="dark"] .calendar-day-link:focus-visible {
  outline-color: #8ec3ee;
}

/* 冒頭の注意ボックス（警告系） */
#darkBody .slb-tide-safety-lead,
html[data-theme="dark"] .slb-tide-safety-lead {
  border-color: #a83a2a;
  background: #3a2525;
}

#darkBody .slb-tide-safety-lead h2,
html[data-theme="dark"] .slb-tide-safety-lead h2 {
  color: #ff8a8a !important;
}

/* セクション見出し（元が!importantのためダーク側も!important） */
#darkBody .slb-tide-existing h2,
#darkBody .slb-tide-diagrams > h2,
#darkBody .slb-tide-guide__section > h2,
#darkBody .slb-tide-guide__references > h2,
html[data-theme="dark"] .slb-tide-existing h2,
html[data-theme="dark"] .slb-tide-diagrams > h2,
html[data-theme="dark"] .slb-tide-guide__section > h2,
html[data-theme="dark"] .slb-tide-guide__references > h2 {
  border-left-color: #7fb4e8 !important;
  background: #1e2f44 !important;
  color: #e8f1f8 !important;
}

/* 要点カード・深掘りカード */
#darkBody .slb-tide-guide__summary section,
#darkBody .slb-tide-guide__cards section,
html[data-theme="dark"] .slb-tide-guide__summary section,
html[data-theme="dark"] .slb-tide-guide__cards section {
  border-color: #555;
  background: #2b2b2b;
}

#darkBody .slb-tide-guide__summary h3,
#darkBody .slb-tide-guide__cards h3,
html[data-theme="dark"] .slb-tide-guide__summary h3,
html[data-theme="dark"] .slb-tide-guide__cards h3 {
  color: #8ec3ee;
}

#darkBody #content-single .slb-tide-guide__source-note a,
html[data-theme="dark"] #content-single .slb-tide-guide__source-note a {
  color: #7fb4e8;
}

#darkBody .slb-tide-guide__source-note,
#darkBody .slb-tide-guide__reviewed,
html[data-theme="dark"] .slb-tide-guide__source-note,
html[data-theme="dark"] .slb-tide-guide__reviewed {
  color: #a8b8c8;
}

/* 図解の外枠とキャプション */
#darkBody .slb-tide-diagram,
html[data-theme="dark"] .slb-tide-diagram {
  border-color: #555;
  background: #2b2b2b;
}

#darkBody .slb-tide-diagram > h3,
html[data-theme="dark"] .slb-tide-diagram > h3 {
  color: #8ec3ee;
}

#darkBody .slb-tide-diagram figcaption,
html[data-theme="dark"] .slb-tide-diagram figcaption {
  color: #bbb;
}

#darkBody .slb-tide-diagram figcaption > strong,
html[data-theme="dark"] .slb-tide-diagram figcaption > strong {
  color: #e8f1f8;
}

#darkBody .slb-tide-diagram figcaption > span,
html[data-theme="dark"] .slb-tide-diagram figcaption > span {
  color: #a8b8c8;
}

#darkBody .slb-tide-diagram figcaption a,
html[data-theme="dark"] .slb-tide-diagram figcaption a {
  color: #7fb4e8;
}

/* 用語（潮位・潮流・波） */
#darkBody .slb-tide-terms > div,
html[data-theme="dark"] .slb-tide-terms > div {
  border-top-color: #7fb4e8;
  background: #2b2b2b;
}

#darkBody .slb-tide-terms dt,
html[data-theme="dark"] .slb-tide-terms dt {
  color: #8ec3ee;
}

/* 手順リスト（カレンダーの見方・サーフィンでの使い方） */
#darkBody .slb-tide-howto li,
html[data-theme="dark"] .slb-tide-howto li {
  border-color: #555;
  background: #2b2b2b;
}

#darkBody .slb-tide-howto li::before,
html[data-theme="dark"] .slb-tide-howto li::before {
  background: #7fb4e8;
  color: #132836;
}

#darkBody .slb-tide-howto span,
html[data-theme="dark"] .slb-tide-howto span {
  color: #a8b8c8;
}

/* 緊急時ボックス（警告系） */
#darkBody .slb-tide-emergency,
html[data-theme="dark"] .slb-tide-emergency {
  border-color: #a83a2a;
  background: #3a2525;
}

#darkBody .slb-tide-emergency > h2,
html[data-theme="dark"] .slb-tide-emergency > h2 {
  background: transparent !important;
  color: #ff8a8a !important;
}

#darkBody .slb-tide-emergency a,
html[data-theme="dark"] .slb-tide-emergency a {
  color: #7fb4e8;
}

/* FAQ */
#darkBody .slb-tide-faq details,
html[data-theme="dark"] .slb-tide-faq details {
  border-color: #555;
  background: #2b2b2b;
}

#darkBody .slb-tide-faq summary,
html[data-theme="dark"] .slb-tide-faq summary {
  color: #e8f1f8;
}

/* 参考資料フッター */
#darkBody .slb-tide-guide__references,
html[data-theme="dark"] .slb-tide-guide__references {
  border-top-color: #444;
}

#darkBody .slb-tide-guide__references a,
html[data-theme="dark"] .slb-tide-guide__references a {
  color: #7fb4e8;
}

#darkBody .slb-tide-guide__disclaimer,
html[data-theme="dark"] .slb-tide-guide__disclaimer {
  background: #2b2b2b;
  color: #a8b8c8;
}

/* =====================================================================
   リスト表・カレンダータブのダーク対（2026-09-06）
   style.css の共通ダーク規則が #main-content1 の文字を白(!important)にする一方、
   .moon_list th の薄いグレー背景や shio.php 内 <style> のライト配色に対がなく
   見出し行が白文字×明るい背景になっていた。月齢アイコン(.moon_age_*)の黄/灰と
   activeタブ・月見出しの青は意図的な配色のため据え置き。
   ===================================================================== */

/* リスト表（日付・月齢・詳細） */
#darkBody .moon_list th,
html[data-theme="dark"] .moon_list th {
  background-color: #333;
  border-color: #555;
  color: #e8f1f8 !important;
}

#darkBody .moon_list td,
html[data-theme="dark"] .moon_list td {
  border-color: #555;
}

/* 日祝行・土曜行（リスト tr とカレンダー td の両方に効く） */
#darkBody .list_date0,
html[data-theme="dark"] .list_date0 {
  background-color: #4a2424;
  color: #ff8a8a !important;
}

#darkBody .list_date6,
html[data-theme="dark"] .list_date6 {
  background-color: #1e2f44;
  color: #8fb4ff !important;
}

#darkBody .list_date0:hover,
#darkBody .list_date1:hover,
#darkBody .list_date2:hover,
#darkBody .list_date3:hover,
#darkBody .list_date4:hover,
#darkBody .list_date5:hover,
#darkBody .list_date6:hover,
html[data-theme="dark"] .list_date0:hover,
html[data-theme="dark"] .list_date1:hover,
html[data-theme="dark"] .list_date2:hover,
html[data-theme="dark"] .list_date3:hover,
html[data-theme="dark"] .list_date4:hover,
html[data-theme="dark"] .list_date5:hover,
html[data-theme="dark"] .list_date6:hover {
  background-color: #3a3a3a;
}

/* 表示切替タブ（active の青は据え置き） */
#darkBody .shio-view-tabs,
html[data-theme="dark"] .shio-view-tabs {
  border-color: #555;
}

#darkBody .shio-view-tabs .tab-button,
html[data-theme="dark"] .shio-view-tabs .tab-button {
  background: #2b2b2b;
  border-color: #555;
  color: #ddd;
}

#darkBody .shio-view-tabs .tab-button:hover,
html[data-theme="dark"] .shio-view-tabs .tab-button:hover {
  background: #333;
}

#darkBody .shio-view-tabs .tab-button.active,
html[data-theme="dark"] .shio-view-tabs .tab-button.active {
  background: #2c7eb9;
  color: #fff;
}

#darkBody .shio-view-tabs .tab-button:not(.active) img,
html[data-theme="dark"] .shio-view-tabs .tab-button:not(.active) img {
  filter: brightness(0) invert(0.85);
}

/* カレンダータブ */
#darkBody .month-block,
html[data-theme="dark"] .month-block {
  border-color: #555;
  box-shadow: none;
}

#darkBody .calendar-table th,
html[data-theme="dark"] .calendar-table th {
  background-color: #333;
  border-color: #555;
  color: #a8b8c8;
}

#darkBody .calendar-table th:first-child,
html[data-theme="dark"] .calendar-table th:first-child {
  color: #ff8a8a;
}

#darkBody .calendar-table th:last-child,
html[data-theme="dark"] .calendar-table th:last-child {
  color: #8fb4ff;
}

#darkBody .calendar-table td,
html[data-theme="dark"] .calendar-table td {
  border-color: #555;
}

#darkBody .calendar-table td:empty,
html[data-theme="dark"] .calendar-table td:empty {
  background-color: #2b2b2b;
}

#darkBody .has-shio,
html[data-theme="dark"] .has-shio {
  background-color: #3d3520 !important;
}

#darkBody .has-shio .calendar-day-link,
html[data-theme="dark"] .has-shio .calendar-day-link {
  color: #f0c84a;
}

#darkBody .shio-info,
html[data-theme="dark"] .shio-info {
  color: #a8b8c8;
}
