/* TOLTO 共通サイトヘッダー・フッター（活動を探すデザインに準拠） */
:root {
  --t-blue: #079bd9;
  --t-ink: #1c2530;
  --t-muted: #78818c;
  --t-line: #edf0f2;
  --t-bg: #fff;
}

body.t-site {
  margin: 0;
  color: var(--t-ink);
  background: var(--t-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
}
.t-site *, .t-site *::before, .t-site *::after { box-sizing: border-box; }
.t-site button, .t-site input { font: inherit; }
.t-site button { cursor: pointer; }

/* ===== ヘッダー ===== */
.t-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: #fffffff2;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--t-line);
}
.t-bar {
  height: 70px;
  max-width: 1450px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 35px;
  position: relative;
}
.t-logo {
  font-size: 35px;
  letter-spacing: -2.5px;
  font-weight: 900;
  color: var(--t-blue);
  text-decoration: none;
  line-height: 1;
}
.t-nav { display: flex; gap: 24px; align-items: center; font-size: 12px; font-weight: 700; white-space: nowrap; }
.t-nav a { color: var(--t-ink); text-decoration: none; }
.t-nav a:hover, .t-nav a.is-current { color: var(--t-blue); }
.t-right { margin-left: auto; display: flex; align-items: center; gap: 15px; }
.t-search {
  border: 1px solid #d9dfe4;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  background: #fff;
  min-width: 200px;
  margin: 0;
}
.t-search input { border: 0; outline: 0; width: 100%; font-size: 12px; background: transparent; color: var(--t-ink); }
.t-search button { border: 0; background: none; padding: 0; color: #6b7680; font-size: 15px; line-height: 1; }
.t-search:focus-within { border-color: var(--t-blue); }
.t-link { color: var(--t-ink); text-decoration: none; font-size: 12px; font-weight: 700; white-space: nowrap; }
.t-link:hover { color: var(--t-blue); }
.t-pill {
  display: inline-block;
  border: 0;
  border-radius: 40px;
  background: var(--t-blue);
  color: #fff;
  padding: 11px 17px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}
.t-pill:hover { background: #0688bf; color: #fff; }
.t-plan {
  font-size: 11px;
  font-weight: 700;
  border-radius: 30px;
  padding: 4px 10px;
  text-decoration: none;
  border: 1px solid #cfe3ee;
  color: var(--t-blue);
}
.t-plan.is-free { background: #f3f5f6; color: #687580; border-color: #dfe5e9; }
.t-plan.is-pro { background: #eef7fc; color: #147ca9; border-color: #cde7f5; }
.t-host-cta { display: inline-flex; align-items: center; min-height: 35px; padding: 7px 15px; border-radius: 999px; background: var(--t-blue); color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; white-space: nowrap; line-height: 1.2; }
.t-host-cta:hover { background: #0789c0; color: #fff; }
.t-menu a[aria-current="page"] { background: #f0f8fc; color: var(--t-blue); font-weight: 750; }
.t-icon-btn { border: 0; background: none; font-size: 21px; padding: 5px; line-height: 1; color: #27313c; }
.t-mobile { display: none; }

.t-site a:focus-visible, .t-site button:focus-visible, .t-site input:focus-visible {
  outline: 2px solid var(--t-blue);
  outline-offset: 2px;
}

/* アカウントメニュー（ログイン中） */
.t-menu {
  position: absolute;
  right: 32px;
  top: calc(100% + 6px);
  width: 240px;
  background: #fff;
  border: 1px solid var(--t-line);
  border-radius: 16px;
  box-shadow: 0 12px 32px #0b17241f;
  padding: 8px;
  display: none;
}
.t-menu.open { display: block; }
.t-menu a, .t-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--t-ink);
  text-decoration: none;
  background: none;
  border: 0;
}
.t-menu a:hover, .t-menu button:hover { background: #f3f7f9; }
.t-menu .t-menu-head { padding: 8px 12px 10px; font-size: 11px; color: var(--t-muted); border-bottom: 1px solid var(--t-line); margin-bottom: 6px; }
.t-menu .t-menu-head strong { display: block; font-size: 13px; color: var(--t-ink); }
.t-menu hr { border: 0; border-top: 1px solid var(--t-line); margin: 6px 0; }
.t-menu .t-mobile-only { display: none; }
.t-account { position: static; }

/* フラッシュメッセージ */
.t-flash {
  max-width: 1450px;
  margin: 16px auto 0;
  padding: 0 32px;
}
.t-flash > div {
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  background: #edf8fd;
  color: #0b5f86;
}
.t-flash > .is-error { background: #fdeef0; color: #a3243b; }

/* ===== フッター ===== */
.t-footer { background: #f8fafb; border-top: 1px solid var(--t-line); padding: 48px 32px 28px; color: #87919a; font-size: 11px; }
.t-foot { max-width: 1386px; margin: 0 auto; display: grid; grid-template-columns: minmax(185px, 1.35fr) repeat(5, minmax(0, 1fr)); gap: 26px; align-items: start; }
.t-foot-brand strong { display: block; font-size: 32px; line-height: 1.1; color: var(--t-blue); letter-spacing: -2px; font-weight: 900; }
.t-foot-tagline { display: inline-block; font-size: 13px; font-weight: 700; color: var(--t-ink); margin-bottom: 7px; }
.t-foot-brand p { font-size: 11px; line-height: 1.9; margin: 15px 0 0; }
.t-foot-col h3 { font-size: 12px; font-weight: 750; color: var(--t-ink); margin: 3px 0 17px; white-space: nowrap; }
.t-foot-col a { display: block; color: #6e7a85; text-decoration: none; font-size: 11px; line-height: 1.7; margin: 0 0 11px; }
.t-foot-col a:hover { color: var(--t-blue); }
.t-foot-bottom { max-width: 1386px; margin: 32px auto 0; padding-top: 18px; border-top: 1px solid var(--t-line); font-size: 10px; }

@media (max-width: 1100px) {
  .t-nav { display: none; }
  .t-foot { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 30px; }
}
@media (max-width: 720px) {
  .t-bar { height: 60px; padding: 0 16px; gap: 10px; }
  .t-logo { font-size: 31px; }
  .t-right { gap: 8px; }
  .t-right .t-search, .t-right .t-link, .t-right .t-pill, .t-right .t-plan, .t-right .t-host-cta { display: none; }
  .t-mobile { display: block; }
  .t-menu { right: 12px; left: 12px; width: auto; }
  .t-menu .t-mobile-only { display: block; }
  .t-flash { padding: 0 16px; }
  .t-footer { padding: 36px 16px 24px; }
  .t-foot { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
  .t-foot-brand { grid-column: 1 / -1; }
  .t-foot-brand p { margin-top: 10px; }
  .t-foot-col h3 { white-space: normal; margin-bottom: 12px; }
  .t-foot-col a { margin-bottom: 9px; }
  .t-foot-bottom { margin-top: 28px; }
}

/* ===== 活動を探す（発見ページ） ===== */
.d-main { max-width: 1450px; margin: 0 auto; padding: 24px 32px 90px; }
.d-filterbar { display: flex; align-items: center; gap: 9px; overflow-x: auto; scrollbar-width: none; padding: 0 0 19px; }
.d-filterbar::-webkit-scrollbar { display: none; }
.d-chip {
  border: 1px solid #e5e9ec;
  background: #fff;
  border-radius: 30px;
  padding: 10px 17px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  color: #57616a;
  text-decoration: none;
}
.d-chip:hover { border-color: #b9c6cf; }
.d-chip.active { background: #17242f; color: #fff; border-color: #17242f; }
.d-filter-end { margin-left: auto; font-size: 12px; color: #87909a; white-space: nowrap; padding-left: 12px; }

/* お気に入り（♡） */
.t-site .d-save { position: absolute; top: 10px; right: 10px; background: #ffffffeb; border: 0; width: 33px; height: 33px; border-radius: 50%; font-size: 18px; line-height: 1; color: #45515a; display: grid; place-items: center; padding: 0; }
.d-save:hover { color: #ef5472; }
.d-save.saved { color: #ef5472; }

/* 活動プレビュー（モーダル） */
.d-overlay { position: fixed; inset: 0; background: #0b1724a6; z-index: 60; display: none; align-items: center; justify-content: center; padding: 20px; }
.d-overlay.open { display: flex; }
.d-overlay[hidden] { display: none; }
.d-dialog { width: min(850px, 100%); max-height: 92vh; overflow: auto; background: #fff; border-radius: 20px; display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.d-dialog-photo { background: #eef1f2; min-height: 100%; }
.d-dialog-photo img { width: 100%; height: 100%; max-height: 590px; object-fit: cover; display: block; }
.d-dialog-photo .d-noimg { height: 100%; aspect-ratio: auto; min-height: 260px; }
.d-dialog-content { padding: 45px 34px 34px; display: flex; flex-direction: column; }
.d-dialog-cat { font-size: 12px; color: var(--t-blue); font-weight: 700; }
.d-dialog-content h2 { font-size: 25px; line-height: 1.5; margin: 6px 0 10px; text-wrap: balance; }
.d-dialog-meta { color: #65717b; font-size: 13px; line-height: 1.9; margin: 0; }
.d-dialog-desc { color: #65717b; font-size: 13px; line-height: 2; margin: 14px 0 0; white-space: pre-line; }
.d-dialog-price { font-size: 20px; font-weight: 850; margin: 18px 0 0; font-variant-numeric: tabular-nums; }
.d-dialog-actions { margin-top: 22px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.d-dialog-actions .t-pill { padding: 13px 22px; font-size: 13px; }
.t-site .d-dialog-fav { border: 1px solid #e1e7eb; background: #fff; border-radius: 30px; padding: 11px 15px; font-size: 12px; font-weight: 700; color: #45515a; }
.d-dialog-fav.saved { color: #ef5472; border-color: #f6c3cd; }
.d-close { position: absolute; top: 15px; right: 15px; border: 0; border-radius: 50%; width: 35px; height: 35px; background: #fff; font-size: 22px; line-height: 1; z-index: 1; box-shadow: 0 2px 10px #0b17241a; }
.d-searching { font-size: 13px; color: var(--t-muted); margin: -6px 0 18px; }
.d-searching a { color: var(--t-blue); font-weight: 700; text-decoration: none; margin-left: 8px; }

.d-gallery { columns: 5 200px; column-gap: 16px; }
.d-gallery.is-js { columns: auto; display: flex; align-items: flex-start; gap: 16px; }
.d-col { flex: 1 1 0; min-width: 0; }
.d-item {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin: 0 0 23px;
  vertical-align: top;
  color: inherit;
  text-decoration: none;
}
.d-item { position: relative; }
.d-item-link { display: block; color: inherit; text-decoration: none; }
.d-photo { position: relative; overflow: hidden; border-radius: 15px; background: #f0f1f2; }
.d-photo img { display: block; width: 100%; height: auto; object-fit: cover; transition: transform .45s; }
.d-item:hover .d-photo img { transform: scale(1.045); }
.d-noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #e7f5fc, #f3f6f8);
  color: #9fc9dd;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -1.5px;
}
.d-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 30px;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 700;
  background: #fffefaeb;
  backdrop-filter: blur(8px);
}
.d-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  border-radius: 30px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 700;
  background: #17242fd9;
  color: #fff;
}
.d-badge.is-full { background: #c2334ddb; }
.d-info { padding: 10px 3px 0; }
.d-name { font-size: 13px; font-weight: 750; line-height: 1.6; }
.d-meta { font-size: 11px; color: #7d8790; margin-top: 5px; line-height: 1.5; }
.d-host { font-size: 11px; color: #a0a6ad; margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.d-hostname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-pro { flex-shrink: 0; font-size: 9px; font-weight: 800; color: var(--t-blue); border: 1px solid #bfe3f4; border-radius: 4px; padding: 0 4px; }
.d-price { color: var(--t-ink); font-weight: 700; margin-left: auto; flex-shrink: 0; white-space: nowrap; }

.d-feature {
  display: inline-block;
  break-inside: avoid;
  width: 100%;
  background: #edf8fd;
  border-radius: 17px;
  padding: 22px;
  margin-bottom: 20px;
  vertical-align: top;
}
.d-feature h3 { font-size: 19px; line-height: 1.5; margin: 0 0 12px; }
.d-feature p { font-size: 12px; line-height: 1.9; color: #546573; margin: 0 0 18px; }
.d-feature a { font-size: 12px; color: var(--t-blue); font-weight: 700; text-decoration: none; }
.d-feature .d-symbol { font-size: 30px; color: var(--t-blue); margin-bottom: 22px; }

.d-empty { padding: 60px 0; color: #89939b; text-align: center; font-size: 13px; }
.d-empty a { color: var(--t-blue); font-weight: 700; }
.d-end { padding: 35px; text-align: center; }
.d-more {
  display: inline-block;
  border: 1px solid #dce4e8;
  background: #fff;
  border-radius: 30px;
  padding: 13px 35px;
  font-size: 13px;
  font-weight: 700;
  color: var(--t-ink);
  text-decoration: none;
}
.d-more:hover { border-color: #b9c6cf; }

@media (max-width: 1100px) {
  .d-gallery { columns: 4 180px; }
}
@media (max-width: 720px) {
  .d-main { padding: 18px 12px 60px; }
  .d-filterbar { padding: 0 0 16px; gap: 7px; }
  .d-chip { font-size: 11px; padding: 9px 13px; }
  .d-filter-end { display: none; }
        .d-save { top: 7px; right: 7px; width: 29px; height: 29px; font-size: 16px; }
  .d-dialog { display: block; }
  .d-dialog-photo img, .d-dialog-photo .d-noimg { height: 250px; min-height: 0; }
  .d-dialog-content { padding: 22px; }
  .d-dialog-content h2 { font-size: 20px; }
  .d-gallery { columns: 2; column-gap: 10px; }
  .d-gallery.is-js { gap: 10px; }
  .d-item { margin-bottom: 20px; }
  .d-photo { border-radius: 11px; }
  .d-name { font-size: 12px; }
  .d-meta, .d-host { font-size: 10px; }
  .d-tag { font-size: 9px; top: 8px; left: 8px; }
  .d-feature { padding: 17px; }
  .d-feature h3 { font-size: 16px; }
  .d-feature p { font-size: 11px; }
}
@media (min-width: 1400px) {
  .d-gallery { columns: 5; }
}
@media (prefers-reduced-motion: reduce) {
  .d-photo img { transition: none; }
  .d-item:hover .d-photo img { transform: none; }
}
