:root {
  --sv-red: #c62432;
  --sv-red-dark: #9f1724;
  --sv-ink: #202328;
  --sv-muted: #62676e;
  --sv-surface: #f6f4ef;
  --sv-line: #e6e2da;
}

html { scroll-behavior: smooth; }

#body_wrap {
  font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
  font-feature-settings: "palt";
  font-weight: 400;
  letter-spacing: .025em;
}

/* 本サイトは全ページ1カラム。空のSWELLサイドバー領域も残さない。 */
.l-sidebar {
  display: none !important;
}

.l-content {
  display: block !important;
}

.l-mainContent {
  width: 100% !important;
  max-width: none !important;
}

/* 固定ページタイトルはSWELL側に表示されるため、本文内の重複見出しを隠す。 */
#post-16 .post_content > h1:first-child {
  display: none;
}

/* カスタム投稿一覧では意味のない英語の種別表示を出さない。 */
.post-type-archive .c-pageTitle__subTitle {
  display: none;
}

.home .l-mainContent { padding-top: 0; }
.home .l-content { margin-top: 0; }
.home .c-pageTitle { display: none; }

.sv-hero,
.sv-about,
.sv-themes,
.sv-partners,
.sv-stories,
.sv-columns-section {
  padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 72px);
}

.sv-hero {
  position: relative;
  min-height: min(76vh, 780px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(198, 36, 50, .12), transparent 28%),
    linear-gradient(135deg, #fff 0%, #faf8f4 58%, #f1ede5 100%);
}

.sv-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 52%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0)),
    url("https://shimamuravillage.journal.koedo358.com/wp-content/uploads/2026/08/sv-hero-collaboration-v1.png") center center / cover no-repeat;
  clip-path: inset(0 0 0 0 round 0 0 0 40px);
}

.sv-hero > * {
  position: relative;
  z-index: 1;
  max-width: 47%;
  margin-left: 0 !important;
}

.sv-hero::after {
  content: "";
  position: absolute;
  width: clamp(180px, 28vw, 420px);
  aspect-ratio: 1;
  right: -8%;
  bottom: -24%;
  border: clamp(28px, 5vw, 72px) solid rgba(198, 36, 50, .08);
  border-radius: 50%;
}

.sv-eyebrow {
  color: var(--sv-red);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
}

.sv-hero h1 {
  color: var(--sv-ink);
  font-size: clamp(2.25rem, 3.8vw, 4.3rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: .015em;
  margin: .25em 0 .4em;
}

.sv-hero p:not(.sv-eyebrow) {
  color: var(--sv-muted);
  max-width: 42rem;
  line-height: 2;
}

.sv-primary-button .wp-block-button__link {
  background: var(--sv-red);
  border-radius: 999px;
  padding: .9em 2em;
  transition: background .2s ease, transform .2s ease;
}

.sv-primary-button .wp-block-button__link:hover {
  background: var(--sv-red-dark);
  transform: translateY(-2px);
}

.sv-about,
.sv-partners,
.sv-columns-section { background: #fff; }
.sv-themes,
.sv-stories { background: var(--sv-surface); }

.sv-about h2,
.sv-themes h2,
.sv-partners h2,
.sv-stories h2,
.sv-columns-section h2 {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--sv-ink);
  font-size: clamp(1.45rem, 2.2vw, 2.05rem);
  font-weight: 500;
  letter-spacing: .03em;
  margin-bottom: 1em;
}

.sv-about h2::before,
.sv-themes h2::before,
.sv-partners h2::before,
.sv-stories h2::before,
.sv-columns-section h2::before {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-bottom: .65em;
  background: var(--sv-red);
}

.sv-about p,
.sv-partners p,
.sv-stories p,
.sv-columns-section p {
  max-width: 50rem;
  color: var(--sv-muted);
  line-height: 2;
}

.sv-theme-card {
  min-height: 112px;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  border: 1px solid var(--sv-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(31, 35, 40, .04);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.sv-theme-card:hover {
  border-color: rgba(198, 36, 50, .45);
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(31, 35, 40, .08);
}

.sv-theme-card h3 {
  font-size: 1rem;
  margin: 0;
}

.sv-theme-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.sv-theme-link {
  position: relative;
  min-height: 178px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 20px 12px 16px;
  border: 1px solid var(--sv-line);
  border-radius: 12px;
  background: #fff;
  color: var(--sv-ink);
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.sv-theme-link:hover {
  border-color: rgba(198, 36, 50, .45);
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(31, 35, 40, .08);
}

.sv-theme-link__number {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.sv-theme-link__icon {
  display: block;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  color: #2d3136;
}

.sv-theme-link__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sv-theme-link__icon .sv-icon-accent {
  stroke: var(--sv-red);
}

.sv-theme-link__label {
  margin-top: 0;
  font-size: .86rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}

.sv-theme-link__arrow {
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: var(--sv-red);
  font-size: .82rem;
}

.sv-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
  margin-top: 36px;
}

.sv-content-card {
  overflow: hidden;
  border: 1px solid var(--sv-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(31, 35, 40, .05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.sv-content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(31, 35, 40, .1);
}

.sv-content-card__link {
  display: flex;
  height: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.sv-content-card__image,
.sv-content-card__placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.sv-content-card__placeholder {
  background:
    linear-gradient(135deg, rgba(198, 36, 50, .08), transparent 52%),
    var(--sv-surface);
}

.sv-content-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
}

.sv-content-card__tag {
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(198, 36, 50, .08);
  color: var(--sv-red);
  font-size: .74rem;
  font-weight: 700;
  padding: .35em .75em;
}

.sv-content-card__sample {
  margin-bottom: 8px;
  color: var(--sv-muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.sv-content-card__title {
  color: var(--sv-ink);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.55;
}

.sv-content-card__excerpt {
  margin-top: 12px;
  color: var(--sv-muted);
  font-size: .9rem;
  line-height: 1.8;
}

.sv-content-card__more {
  margin-top: auto;
  padding-top: 22px;
  color: var(--sv-red);
  font-size: .84rem;
  font-weight: 700;
}

.sv-empty-state {
  margin-top: 30px;
  padding: 32px;
  border: 1px dashed #d8d2c7;
  border-radius: 14px;
  background: rgba(255, 255, 255, .66);
  text-align: center;
}

.sv-empty-state p {
  margin: 0 auto;
  color: var(--sv-muted);
}

.sv-external-cta {
  margin-top: 48px;
  padding: 28px;
  border-radius: 14px;
  background: var(--sv-surface);
  text-align: center;
}

.sv-external-cta a {
  display: inline-block;
  border-radius: 999px;
  background: var(--sv-red);
  color: #fff;
  font-weight: 700;
  padding: .85em 1.8em;
  text-decoration: none;
}

.sv-external-cta p {
  margin: 10px 0 0;
  color: var(--sv-muted);
  font-size: .75rem;
}

.sv-editorial-note {
  margin-top: 48px;
  padding: 20px 24px;
  border-left: 3px solid var(--sv-red);
  background: var(--sv-surface);
  color: var(--sv-muted);
  font-size: .86rem;
  line-height: 1.8;
}

.sv-sample-notice {
  margin-bottom: 36px;
  padding: 14px 18px;
  border: 1px solid #e0d8ca;
  border-radius: 10px;
  background: #fffaf0;
  color: #6b6256;
  font-size: .8rem;
  line-height: 1.7;
}

/* TOPは固定ページの構成をそのまま全幅で表示する。SWELLの初期表示は重ねない。 */
.home .p-mainVisual,
.home .l-sidebar {
  display: none !important;
}

.home .l-content,
.home .l-mainContent,
.home .l-mainContent__inner {
  width: 100% !important;
  max-width: none !important;
}

.home .l-content,
.home .l-mainContent__inner {
  margin: 0 !important;
  padding: 0 !important;
}

.home .post_content {
  margin: 0 !important;
}

@media (max-width: 781px) {
  .sv-hero { min-height: 68vh; }
  .sv-hero::before { display: none; }
  .sv-hero > * { max-width: 100%; }
  .sv-hero,
  .sv-about,
  .sv-themes,
  .sv-partners,
  .sv-stories,
  .sv-columns-section { padding-block: 64px; }
  .sv-card-grid { grid-template-columns: 1fr; }
  .sv-theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sv-theme-link { min-height: 150px; }
  .sv-theme-link__icon { width: 48px; height: 48px; margin-bottom: 10px; }
}
