/*
Theme Name: Shichisai Canon
Theme URI: https://shichisai-group.jp/
Author: Witz
Description: 七彩グループ向けの更新可能なオリジナル WordPress テーマ。
Version: 1.0.0
Text Domain: shichisai-canon
*/

:root {
  --navy: #111a23;
  --navy-deep: #0c141c;
  --ink: #1d2023;
  --muted: #717579;
  --gold: #a88757;
  --gold-light: #d9c09a;
  --cream: #f5f2ec;
  --line: rgba(17, 26, 35, 0.14);
  --white: #fff;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.05em;
}

body.is-menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.sg-container {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}

.sg-header {
  position: absolute;
  z-index: 30;
  top: 0;
  right: 0;
  left: 0;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.sg-header.is-scrolled {
  position: fixed;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.sg-header__inner {
  display: flex;
  min-height: 92px;
  align-items: center;
  gap: 40px;
  padding: 0 38px;
}

.sg-logo {
  display: inline-flex;
  flex-direction: column;
  color: inherit;
  font-family: var(--serif);
  line-height: 1;
  letter-spacing: 0.14em;
}

.sg-logo__ja {
  font-size: 23px;
}

.sg-logo__en {
  margin-top: 7px;
  color: var(--gold-light);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.38em;
}

.sg-nav {
  margin-left: auto;
}

.sg-nav ul,
.sg-footer__nav ul {
  display: flex;
  align-items: center;
  gap: 31px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sg-nav a {
  position: relative;
  display: block;
  padding: 6px 0;
  font-family: var(--serif);
  font-size: 14px;
}

.sg-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--gold-light);
  content: "";
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.sg-nav a:hover::after {
  transform: scaleX(1);
}

.sg-header__recruit,
.sg-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border: 1px solid var(--gold);
  color: var(--white);
  background: var(--gold);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.12em;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.sg-header__recruit:hover,
.sg-button:hover {
  border-color: var(--navy);
  background: var(--navy);
}

.sg-button--line {
  color: var(--ink);
  background: transparent;
}

.sg-button--line:hover {
  color: var(--white);
}

.sg-header__toggle {
  display: none;
}

.sg-hero {
  position: relative;
  min-height: 940px;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-deep);
}

.sg-hero__background,
.sg-hero__background::after {
  position: absolute;
  inset: 0;
}

.sg-hero__background {
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
  animation: sgHeroScale 12s ease-out both;
}

.sg-hero__background::after {
  background:
    linear-gradient(90deg, rgba(5, 12, 19, 0.75), rgba(5, 12, 19, 0.3) 55%, rgba(5, 12, 19, 0.48)),
    linear-gradient(0deg, rgba(5, 12, 19, 0.4), transparent 48%);
  content: "";
}

@keyframes sgHeroScale {
  from { transform: scale(1.1); }
  to { transform: scale(1.03); }
}

.sg-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 940px;
  align-items: center;
  padding-top: 96px;
}

.sg-hero__eyebrow,
.sg-section-heading__en,
.sg-store-card__genre,
.sg-news-card__meta,
.sg-page-hero__en {
  color: var(--gold-light);
  font-size: 10px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

.sg-hero__title {
  margin: 27px 0 24px;
  font-family: var(--serif);
  font-size: clamp(45px, 5vw, 76px);
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: 0.14em;
}

.sg-hero__text {
  max-width: 570px;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 2.15;
}

.sg-hero__scroll {
  position: absolute;
  z-index: 2;
  right: 46px;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 9px;
  letter-spacing: 0.34em;
  writing-mode: vertical-rl;
}

.sg-hero__scroll::after {
  width: 1px;
  height: 86px;
  background: rgba(255, 255, 255, 0.55);
  content: "";
}

.sg-side-links {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 42px;
  display: grid;
}

.sg-side-links a {
  display: grid;
  width: 56px;
  height: 116px;
  place-items: center;
  color: var(--white);
  background: var(--gold);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.17em;
  transition: width 0.25s ease, background 0.25s ease;
  writing-mode: vertical-rl;
}

.sg-side-links a:last-child {
  background: var(--navy);
}

.sg-side-links a:hover {
  width: 64px;
  background: #856944;
}

.sg-intro {
  padding: 146px 0 150px;
  background: var(--cream);
}

.sg-intro__grid {
  display: grid;
  grid-template-columns: max-content minmax(0, 460px);
  align-items: center;
  justify-content: center;
  gap: 96px;
}

.sg-intro__copy {
  display: flex;
  min-height: 475px;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 38px;
  font-family: var(--serif);
  writing-mode: vertical-rl;
}

.sg-intro__title {
  margin: 0;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.14em;
}

.sg-intro__text {
  margin: 0;
  color: #555;
  font-size: 15px;
  line-height: 2.3;
}

.sg-intro__media {
  position: relative;
}

.sg-intro__media::before {
  position: absolute;
  top: -24px;
  left: -24px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--gold-light);
  content: "";
}

.sg-intro__media img {
  position: relative;
  width: 100%;
  height: 600px;
  object-fit: cover;
}

.sg-section {
  padding: 132px 0;
}

.sg-section--cream {
  background: var(--cream);
}

.sg-section--navy {
  color: var(--white);
  background: var(--navy);
}

.sg-section-heading {
  margin-bottom: 54px;
  text-align: center;
}

.sg-section-heading__en {
  margin: 0 0 12px;
}

.sg-section-heading__title {
  margin: 0;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 0.16em;
}

.sg-section-heading__line {
  display: block;
  width: 42px;
  height: 1px;
  margin: 20px auto 0;
  background: var(--gold);
}

.sg-section-heading__text {
  margin: 19px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 14px;
}

.sg-section--navy .sg-section-heading__text {
  color: rgba(255, 255, 255, 0.65);
}

.sg-store-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.sg-store-card {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-deep);
}

.sg-store-card__image,
.sg-store-card__image::after {
  position: absolute;
  inset: 0;
}

.sg-store-card__image {
  background-position: center;
  background-size: cover;
  transition: transform 0.55s ease;
}

.sg-store-card__image::after {
  background: linear-gradient(0deg, rgba(5, 12, 19, 0.95), rgba(5, 12, 19, 0.08) 70%);
  content: "";
}

.sg-store-card:hover .sg-store-card__image {
  transform: scale(1.06);
}

.sg-store-card__body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 33px 30px;
}

.sg-store-card__genre {
  margin: 0 0 8px;
}

.sg-store-card__title {
  margin: 0;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.sg-store-card__text {
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--serif);
  font-size: 14px;
}

.sg-store-card__more {
  display: inline-block;
  margin-top: 18px;
  color: var(--gold-light);
  font-size: 11px;
  letter-spacing: 0.2em;
}

.sg-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.sg-news-card {
  display: block;
  background: var(--white);
}

.sg-news-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.44 / 1;
  background: #d9d4cc;
}

.sg-news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.sg-news-card:hover .sg-news-card__image img {
  transform: scale(1.06);
}

.sg-news-card__body {
  min-height: 165px;
  padding: 25px 25px 27px;
}

.sg-news-card__meta {
  margin: 0;
  color: var(--gold);
  letter-spacing: 0.18em;
}

.sg-news-card__title {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
}

.sg-section-action {
  margin-top: 50px;
  text-align: center;
}

.sg-recruit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--navy);
}

.sg-recruit__media {
  min-height: 650px;
  background-position: center;
  background-size: cover;
}

.sg-recruit__body {
  display: flex;
  align-items: center;
  padding: 90px max(56px, 9vw);
  color: var(--white);
}

.sg-recruit__eyebrow {
  margin: 0 0 18px;
  color: var(--gold-light);
  font-size: 10px;
  letter-spacing: 0.38em;
}

.sg-recruit__title {
  margin: 0;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.15em;
}

.sg-recruit__text {
  margin: 23px 0 32px;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--serif);
  line-height: 2.1;
}

.sg-recruit .sg-button:hover {
  border-color: var(--white);
  color: var(--navy);
  background: var(--white);
}

.sg-about {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 85px;
}

.sg-about__heading {
  padding-top: 3px;
}

.sg-about__heading .sg-section-heading {
  margin: 0;
  text-align: left;
}

.sg-about__heading .sg-section-heading__line {
  margin-right: 0;
  margin-left: 0;
}

.sg-about__table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--serif);
}

.sg-about__table th,
.sg-about__table td {
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
  text-align: left;
  vertical-align: top;
}

.sg-about__table th {
  width: 150px;
  color: var(--gold);
}

.sg-brand-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.sg-brand-links a {
  display: grid;
  min-height: 174px;
  place-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--gold-light);
  background: var(--navy-deep);
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.14em;
  transition: color 0.25s ease, background 0.25s ease;
}

.sg-brand-links a:hover {
  color: var(--white);
  background: #172736;
}

.sg-footer {
  padding: 74px 0 28px;
  color: rgba(255, 255, 255, 0.75);
  background: var(--navy);
}

.sg-footer__inner {
  text-align: center;
}

.sg-footer .sg-logo {
  color: var(--white);
}

.sg-footer__nav {
  margin-top: 38px;
}

.sg-footer__nav ul {
  justify-content: center;
  gap: 27px;
}

.sg-footer__nav a {
  font-family: var(--serif);
  font-size: 13px;
}

.sg-footer__meta {
  margin-top: 41px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.sg-footer__privacy {
  display: inline-block;
  margin-top: 23px;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--serif);
  font-size: 12px;
  transition: color 0.25s ease;
}

.sg-footer__privacy:hover {
  color: var(--gold-light);
}

.sg-page-hero {
  display: flex;
  min-height: 410px;
  align-items: end;
  padding: 140px 0 73px;
  color: var(--white);
  background:
    linear-gradient(rgba(7, 15, 22, 0.8), rgba(7, 15, 22, 0.8)),
    url("https://images.unsplash.com/photo-1519167758481-83f550bb49b3?auto=format&fit=crop&w=1800&q=88") center / cover;
}

.sg-page-hero__title {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 400;
  letter-spacing: 0.13em;
}

.sg-content {
  padding: 96px 0 120px;
}

.sg-content__inner {
  width: min(860px, 100%);
  margin-inline: auto;
}

.sg-content h2,
.sg-content h3 {
  margin-top: 2em;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.6;
}

.sg-content h2 {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gold-light);
  font-size: 28px;
}

.sg-content h2[id],
.sg-content h3[id] {
  scroll-margin-top: 110px;
}

.sg-content a {
  color: var(--gold);
  text-decoration: underline;
}

.single-post .sg-content hr {
  display: none;
}

.sg-content .sg-article-store-cta {
  display: grid;
  min-height: 184px;
  grid-template-columns: minmax(190px, 32%) minmax(0, 1fr);
  margin: 30px 0 44px;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 18px 38px rgba(12, 20, 28, 0.16);
  text-decoration: none;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.sg-article-store-cta__image {
  min-height: 184px;
  background-position: center;
  background-size: cover;
  transition: transform 0.55s ease;
}

.sg-article-store-cta__body {
  display: flex;
  position: relative;
  justify-content: center;
  padding: 24px 32px 22px;
  flex-direction: column;
  border-left: 1px solid rgba(217, 192, 154, 0.32);
}

.sg-article-store-cta__genre {
  color: var(--gold-light);
  font-size: 9px;
  letter-spacing: 0.26em;
}

.sg-article-store-cta__title {
  margin-top: 5px;
  color: var(--white);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.45;
}

.sg-article-store-cta__text {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--serif);
  font-size: 13px;
}

.sg-article-store-cta__more {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 13px;
  color: var(--gold-light);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.sg-article-store-cta__more span {
  font-size: 18px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.sg-content .sg-article-store-cta:hover {
  color: var(--white);
  box-shadow: 0 22px 42px rgba(12, 20, 28, 0.24);
  transform: translateY(-3px);
}

.sg-article-store-cta:hover .sg-article-store-cta__image {
  transform: scale(1.06);
}

.sg-article-store-cta:hover .sg-article-store-cta__more span {
  transform: translateX(4px);
}

.sg-content figure,
.sg-content img {
  margin-block: 32px;
}

.sg-policy__intro {
  margin-bottom: 52px;
}

.sg-policy__list {
  padding-left: 1.4em;
}

.sg-policy__note {
  color: var(--muted);
  font-size: 13px;
}

.sg-recruit-page__lead {
  max-width: 760px;
  margin: 0 auto 54px;
  color: #555;
  font-family: var(--serif);
  line-height: 2.15;
  text-align: center;
}

.sg-recruit-page__content {
  max-width: 860px;
  margin: 72px auto 0;
  padding-top: 52px;
  border-top: 1px solid var(--line);
}

.sg-recruit-page__content:empty {
  display: none;
}

.sg-recruit-detail__intro {
  max-width: 800px;
  margin: 0 auto 46px;
  text-align: center;
}

.sg-recruit-detail__genre,
.sg-recruit-summary__label {
  margin: 0;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.28em;
}

.sg-recruit-detail__catch {
  margin: 14px 0 18px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.sg-recruit-detail__lead {
  margin: 0;
  color: #555;
  font-family: var(--serif);
  line-height: 2.15;
}

.sg-recruit-summary {
  display: grid;
  max-width: 880px;
  margin-inline: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--white);
  border: 1px solid rgba(168, 135, 87, 0.32);
}

.sg-recruit-summary__item {
  padding: 34px 38px;
  text-align: center;
}

.sg-recruit-summary__item + .sg-recruit-summary__item {
  border-left: 1px solid rgba(168, 135, 87, 0.32);
}

.sg-recruit-summary h3 {
  margin: 5px 0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
}

.sg-recruit-summary p:last-child {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
}

.sg-recruit-detail__actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 35px;
}

.sg-recruit-table {
  width: min(900px, 100%);
  margin-inline: auto;
  border-collapse: collapse;
  font-family: var(--serif);
}

.sg-recruit-table th,
.sg-recruit-table td {
  padding: 19px 24px;
  border: 1px solid var(--line);
  font-weight: 400;
  text-align: left;
}

.sg-recruit-table th {
  width: 185px;
  color: var(--gold);
  background: var(--cream);
}

.sg-benefits {
  display: flex;
  max-width: 900px;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px auto 0;
}

.sg-benefits span {
  padding: 7px 13px;
  color: #555;
  background: var(--cream);
  border: 1px solid rgba(168, 135, 87, 0.24);
  font-family: var(--serif);
  font-size: 13px;
}

.sg-recruit-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.sg-recruit-features__item {
  min-height: 245px;
  padding: 43px 33px;
  background: var(--navy);
}

.sg-recruit-features h3 {
  margin: 0 0 15px;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.sg-recruit-features p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 2;
}

.sg-recruit-job {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 80px;
}

.sg-recruit-job h2 {
  margin: 9px 0 0;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.sg-recruit-job__body {
  font-family: var(--serif);
  line-height: 2.15;
}

.sg-recruit-detail__editor {
  padding: 0;
}

.sg-recruit-detail__cta {
  padding: 88px 0 78px;
  color: var(--white);
  background: var(--navy-deep);
  text-align: center;
}

.sg-recruit-detail__cta h2 {
  margin: 11px 0 13px;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.sg-recruit-detail__cta p {
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--serif);
}

.sg-recruit-detail__cta .sg-button {
  margin-top: 13px;
}

.sg-recruit-detail__source {
  margin: 28px 0 0;
  font-size: 11px;
}

.sg-recruit-detail__source a {
  color: var(--gold-light);
  text-decoration: underline;
}

.sg-breadcrumb {
  overflow-x: auto;
  padding: 15px 0 13px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 11px;
  white-space: nowrap;
}

.sg-breadcrumb ol {
  display: flex;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sg-breadcrumb li {
  display: flex;
  align-items: center;
}

.sg-breadcrumb li + li::before {
  margin: 0 11px;
  color: var(--gold);
  content: "/";
}

.sg-breadcrumb a {
  transition: color 0.25s ease;
}

.sg-breadcrumb a:hover {
  color: var(--gold);
}

.sg-blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  align-items: start;
  gap: 54px;
}

.sg-blog-main {
  min-width: 0;
}

.sg-blog-main .sg-post-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sg-blog-sidebar {
  display: grid;
  gap: 22px;
}

.sg-blog-sidebar__section {
  padding: 27px 23px 25px;
  background: var(--white);
  border-top: 2px solid var(--gold);
}

.sg-blog-sidebar__eyebrow {
  margin: 0 0 3px;
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 0.28em;
}

.sg-blog-sidebar__title {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.sg-blog-sidebar__archives {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sg-blog-sidebar__archives li {
  border-top: 1px solid var(--line);
}

.sg-blog-sidebar__archives a {
  display: inline-block;
  padding: 10px 0 8px;
  font-family: var(--serif);
  font-size: 13px;
  transition: color 0.25s ease;
}

.sg-blog-sidebar__archives a:hover {
  color: var(--gold);
}

.sg-blog-sidebar__empty {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
}

.sg-sidebar-post-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sg-sidebar-post + .sg-sidebar-post {
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.sg-sidebar-post__link {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  transition: color 0.25s ease;
}

.sg-sidebar-post-list--ranking .sg-sidebar-post__link {
  grid-template-columns: 18px 64px minmax(0, 1fr);
  gap: 9px;
}

.sg-sidebar-post__link:hover {
  color: var(--gold);
}

.sg-sidebar-post__rank {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1;
  text-align: center;
}

.sg-sidebar-post__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--cream);
}

.sg-sidebar-post__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.sg-sidebar-post__link:hover .sg-sidebar-post__image img {
  transform: scale(1.06);
}

.sg-sidebar-post__body,
.sg-sidebar-post__title {
  display: block;
}

.sg-sidebar-post__date {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.sg-sidebar-post__title {
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.65;
}

.sg-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sg-tag-cloud a,
.sg-post-tags a {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  color: #67615a;
  background: var(--cream);
  border: 1px solid rgba(168, 135, 87, 0.24);
  font-family: var(--serif);
  line-height: 1.4;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.sg-tag-cloud a:hover,
.sg-post-tags a:hover {
  color: var(--white);
  background: var(--gold);
  border-color: var(--gold);
}

.sg-blog-layout--single {
  padding-bottom: 120px;
}

.sg-blog-layout--single .sg-blog-sidebar {
  margin-top: 96px;
}

.sg-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 30px;
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.sg-content .sg-post-tags a {
  text-decoration: none;
}

.sg-blog-index-action {
  margin-top: 46px;
  text-align: center;
}

.sg-content .sg-blog-index-action .sg-button {
  color: var(--ink);
  text-decoration: none;
}

.sg-content .sg-blog-index-action .sg-button:hover {
  color: var(--white);
}

.sg-related {
  padding-top: 48px;
  margin-top: 0;
  border-top: 1px solid var(--line);
}

.sg-related__heading {
  margin-bottom: 25px;
}

.sg-related__heading h2 {
  margin: 3px 0 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.sg-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.sg-related .sg-news-card__body {
  min-height: 135px;
  padding: 18px 17px 20px;
}

.sg-related .sg-news-card__title {
  font-size: 14px;
}

.sg-post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 56px;
  background: var(--navy);
}

.sg-post-nav__item {
  min-height: 142px;
  padding: 28px 28px 25px;
  color: var(--white);
  transition: background 0.25s ease;
}

.sg-post-nav__item + .sg-post-nav__item {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.sg-post-nav__item--next {
  grid-column: 2;
  text-align: right;
}

.sg-post-nav__item span {
  display: block;
  margin-bottom: 9px;
  color: var(--gold-light);
  font-size: 9px;
  letter-spacing: 0.22em;
}

.sg-post-nav__item strong {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
}

.sg-post-nav__item:hover {
  background: #172736;
}

.sg-post-meta {
  margin: 0 0 26px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.sg-toc {
  margin: 36px 0 48px;
  padding: 22px 25px 20px;
  background: var(--white);
  border-top: 2px solid var(--gold);
}

.sg-toc__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.sg-toc__title {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.12em;
}

.sg-toc__toggle {
  padding: 4px 0;
  color: var(--gold);
  background: transparent;
  border: 0;
  font-size: 12px;
  cursor: pointer;
}

.sg-toc__toggle::after {
  display: inline-block;
  width: 1em;
  margin-left: 8px;
  content: "-";
  text-align: center;
}

.sg-toc__toggle[aria-expanded="false"]::after {
  content: "+";
}

.sg-toc__list {
  padding: 17px 0 0;
  margin: 17px 0 0;
  border-top: 1px solid var(--line);
  list-style-position: inside;
}

.sg-toc__item {
  color: #67615a;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.7;
}

.sg-toc__item + .sg-toc__item {
  margin-top: 7px;
}

.sg-content .sg-toc__item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.sg-content .sg-toc__item a:hover {
  color: var(--gold);
}

.sg-post-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.sg-pagination {
  margin-top: 50px;
  text-align: center;
}

.sg-pagination .page-numbers {
  display: inline-grid;
  min-width: 40px;
  height: 40px;
  margin: 0 3px;
  place-items: center;
  border: 1px solid var(--line);
}

.sg-pagination .current {
  color: var(--white);
  background: var(--navy);
}

.screen-reader-text {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(1px, 1px, 1px, 1px);
}

@media (max-width: 900px) {
  .sg-container {
    width: min(100% - 38px, 680px);
  }

  .sg-header__inner {
    min-height: 72px;
    padding: 0 20px;
  }

  .sg-logo__ja {
    font-size: 19px;
  }

  .sg-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(82vw, 360px);
    height: 100dvh;
    padding: 104px 38px;
    color: var(--white);
    background: var(--navy);
    transition: right 0.35s ease;
  }

  .sg-nav.is-open {
    right: 0;
  }

  .sg-nav ul {
    display: grid;
    gap: 18px;
  }

  .sg-nav a {
    font-size: 16px;
  }

  .sg-header__recruit {
    display: none;
  }

  .sg-header__toggle {
    position: relative;
    z-index: 2;
    display: grid;
    width: 42px;
    height: 42px;
    margin-left: auto;
    place-items: center;
    border: 0;
    color: inherit;
    background: transparent;
  }

  .sg-header__toggle::before,
  .sg-header__toggle::after {
    position: absolute;
    width: 25px;
    height: 1px;
    background: currentColor;
    content: "";
    transition: transform 0.25s ease;
  }

  .sg-header__toggle::before {
    transform: translateY(-5px);
  }

  .sg-header__toggle::after {
    transform: translateY(5px);
  }

  .sg-header__toggle.is-open::before {
    transform: rotate(45deg);
  }

  .sg-header__toggle.is-open::after {
    transform: rotate(-45deg);
  }

  .sg-hero,
  .sg-hero__content {
    min-height: 750px;
  }

  .sg-hero__title {
    font-size: clamp(40px, 10vw, 58px);
  }

  .sg-hero__text {
    max-width: 88%;
    font-size: 14px;
  }

  .sg-side-links {
    display: none;
  }

  .sg-intro,
  .sg-section {
    padding: 92px 0;
  }

  .sg-intro__grid {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .sg-intro__copy {
    min-height: 400px;
    gap: 25px;
  }

  .sg-intro__title {
    font-size: 25px;
  }

  .sg-intro__text {
    font-size: 14px;
  }

  .sg-intro__media {
    width: calc(100% - 18px);
    margin-left: 18px;
  }

  .sg-intro__media::before {
    top: -16px;
    left: -16px;
  }

  .sg-intro__media img {
    height: 430px;
  }

  .sg-store-grid,
  .sg-news-grid,
  .sg-post-list {
    grid-template-columns: 1fr;
  }

  .sg-store-card {
    min-height: 460px;
  }

  .sg-recruit {
    grid-template-columns: 1fr;
  }

  .sg-recruit__media {
    min-height: 390px;
  }

  .sg-recruit__body {
    padding: 65px 25px 72px;
  }

  .sg-recruit__title {
    font-size: 28px;
  }

  .sg-recruit-detail__catch {
    font-size: 27px;
  }

  .sg-recruit-summary {
    grid-template-columns: 1fr;
  }

  .sg-recruit-summary__item {
    padding: 26px 20px;
  }

  .sg-recruit-summary__item + .sg-recruit-summary__item {
    border-top: 1px solid rgba(168, 135, 87, 0.32);
    border-left: 0;
  }

  .sg-recruit-detail__actions {
    display: grid;
  }

  .sg-recruit-table th,
  .sg-recruit-table td {
    display: block;
    width: 100%;
    padding: 12px 15px;
  }

  .sg-recruit-table td {
    border-top: 0;
  }

  .sg-recruit-features {
    grid-template-columns: 1fr;
  }

  .sg-recruit-features__item {
    min-height: 0;
    padding: 30px 24px;
  }

  .sg-recruit-job {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sg-recruit-detail__cta {
    padding: 68px 0 61px;
  }

  .sg-recruit-detail__cta h2 {
    font-size: 25px;
  }

  .sg-blog-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .sg-blog-main .sg-post-list {
    grid-template-columns: 1fr;
  }

  .sg-blog-layout--single {
    padding-bottom: 80px;
  }

  .sg-blog-layout--single .sg-blog-sidebar {
    margin-top: 0;
  }

  .sg-content .sg-article-store-cta {
    display: block;
    margin: 26px 0 38px;
  }

  .sg-article-store-cta__image {
    display: block;
    min-height: 148px;
  }

  .sg-article-store-cta__body {
    padding: 20px 22px 19px;
    border-top: 1px solid rgba(217, 192, 154, 0.32);
    border-left: 0;
  }

  .sg-article-store-cta__title {
    font-size: 21px;
  }

  .sg-related__grid {
    grid-template-columns: 1fr;
  }

  .sg-post-nav {
    grid-template-columns: 1fr;
  }

  .sg-post-nav__item {
    min-height: 0;
    padding: 22px 20px;
  }

  .sg-post-nav__item + .sg-post-nav__item {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 0;
  }

  .sg-post-nav__item--next {
    grid-column: auto;
  }

  .sg-about {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sg-brand-links {
    grid-template-columns: 1fr;
  }

  .sg-brand-links a {
    min-height: 100px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .sg-footer__nav ul {
    flex-wrap: wrap;
    gap: 10px 20px;
  }

  .sg-page-hero {
    min-height: 310px;
    padding-bottom: 54px;
  }

  .sg-page-hero__title {
    font-size: 32px;
  }

  .sg-content {
    padding: 65px 0 82px;
  }
}
