/**
 * Gantomo SNS — ベーススタイル
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.gantomo-sns-theme {
  margin: 0;
  font-family: var(--gs-font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--gs-ink);
  background: var(--gs-bg);
  -webkit-font-smoothing: antialiased;
}

a:not(.gs-btn) {
  color: var(--gs-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:not(.gs-btn):hover {
  color: var(--gs-accent-hover);
}

.site {
  position: relative;
  z-index: 1;
}

.gs-main {
  max-width: var(--gs-shell-max);
  margin: 0 auto;
  padding: var(--gs-content-pad);
}

.gs-card {
  background: var(--gs-surface);
  border: 1px solid var(--gs-line);
  border-radius: var(--gs-radius);
  box-shadow: var(--gs-shadow);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.gs-post__title,
.gs-page__title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
}

.gs-post__title a {
  color: inherit;
  text-decoration: none;
}

.gs-post__meta {
  font-size: 0.85rem;
  color: var(--gs-ink-muted);
  margin-bottom: 0.75rem;
}

/* --- ボタン --- */
.gs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--gs-radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

a.gs-btn,
a.gs-btn:visited {
  text-decoration: none;
}

a.gs-btn--primary,
a.gs-btn--primary:hover,
a.gs-btn--primary:visited,
a.gs-btn--primary:focus-visible {
  background: var(--gs-accent);
  color: #fff !important;
  border-color: var(--gs-accent);
}

.gs-btn--primary {
  background: var(--gs-accent);
  color: #fff;
  border-color: var(--gs-accent);
}

.gs-btn--primary:hover,
a.gs-btn--primary:hover {
  background: var(--gs-accent-hover);
  border-color: var(--gs-accent-hover);
  color: #fff !important;
}

a.gs-btn--ghost,
a.gs-btn--ghost:hover,
a.gs-btn--ghost:visited,
a.gs-btn--ghost:focus-visible {
  background: var(--gs-surface);
  color: var(--gs-ink) !important;
  border-color: var(--gs-line-strong);
}

.gs-btn--ghost {
  background: var(--gs-surface);
  color: var(--gs-ink);
  border-color: var(--gs-line-strong);
}

.gs-btn--ghost:hover,
a.gs-btn--ghost:hover {
  background: var(--gs-bg);
  color: var(--gs-ink) !important;
}

.gs-btn--sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
}

.gs-btn--lg {
  padding: 0.7rem 1.4rem;
  font-size: 1rem;
}

/* --- フッター --- */
.gs-site-footer {
  border-top: 1px solid var(--gs-line);
  background: var(--gs-surface);
  margin-top: 2rem;
}

.gs-site-footer__inner {
  max-width: var(--gs-shell-max);
  margin: 0 auto;
  padding: 1.25rem var(--gs-content-pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.gs-site-footer__copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--gs-ink-muted);
}

.gs-footer-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gs-footer-nav__list a {
  font-size: 0.85rem;
  text-decoration: none;
}

/* --- 横断ナビスロット（RL） --- */
.gantomo-sns-crossnav-slot {
  position: sticky;
  top: 0;
  z-index: 1000;
}

body.gantomo-has-crossnav.gantomo-sns-readylaunch {
  padding-top: 0;
}

body.gantomo-sns-landing .gantomo-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* --- サイトヘッダー・ロゴ（がんコミュニティ） --- */
body.gantomo-sns-theme .gantomo-site-header {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(247, 251, 249, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%),
    radial-gradient(ellipse 70% 120% at 0% 0%, rgba(42, 157, 111, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 100% at 100% 0%, rgba(124, 159, 212, 0.08), transparent 50%);
  border-bottom: 1px solid var(--gs-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.gantomo-sns-theme .gantomo-site-header .header-inner {
  position: relative;
  z-index: 1;
  max-width: var(--gs-shell-max);
  min-height: 60px;
  padding: 0.6rem var(--gs-content-pad);
}

body.gantomo-sns-theme .gantomo-site-header .logo--community,
body.gantomo-sns-theme .gantomo-site-header .logo--community:hover,
body.gantomo-sns-theme .gantomo-site-header .logo--community:visited,
body.gantomo-sns-theme .gantomo-site-header .logo--community:focus-visible {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gs-ink) !important;
  text-decoration: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

body.gantomo-sns-theme .gantomo-site-header .logo--community:hover {
  opacity: 0.92;
}

body.gantomo-sns-theme .gs-community-logo__mark {
  display: flex;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 2px 6px rgba(26, 92, 71, 0.14));
  transition: transform 0.2s ease, filter 0.2s ease;
}

body.gantomo-sns-theme .logo--community:hover .gs-community-logo__mark {
  transform: translateY(-1px);
  filter: drop-shadow(0 4px 10px rgba(26, 92, 71, 0.18));
}

body.gantomo-sns-theme .gs-community-logo__mark svg {
  display: block;
  width: 48px;
  height: 48px;
}

body.gantomo-sns-theme .gs-community-logo__text {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 0;
}

body.gantomo-sns-theme .gs-community-logo__name {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--gs-font-sans);
  font-size: 1.5rem;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

body.gantomo-sns-theme .gs-community-logo__name-gan {
  font-weight: 800;
  color: #1a5c47;
}

body.gantomo-sns-theme .gs-community-logo__name-tomo {
  font-weight: 600;
  color: #2d8a68;
}

body.gantomo-sns-theme .gs-community-logo__tagline {
  font-family: var(--gs-font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.05em;
  color: #5a7a6e;
  white-space: nowrap;
}

@media (max-width: 480px) {
  body.gantomo-sns-theme .gantomo-site-header .logo--community {
    gap: 0.65rem;
  }

  body.gantomo-sns-theme .gs-community-logo__mark,
  body.gantomo-sns-theme .gs-community-logo__mark svg {
    width: 42px;
    height: 42px;
  }

  body.gantomo-sns-theme .gs-community-logo__name {
    font-size: 1.25rem;
  }

  body.gantomo-sns-theme .gs-community-logo__tagline {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    white-space: normal;
    max-width: 12rem;
  }
}
