/*
Theme Name: TOSHI SGD
Theme URI: https://kyotostainedglass.com/
Description: GeneratePress child theme for TOSHI Stained Glass Design.
Author: TOSHI Stained Glass Design
Template: generatepress
Version: 1.1.1
Text Domain: toshi-sgd
*/

:root {
  --toshi-bg: #fff;
  --toshi-ink: #111;
  --toshi-muted: #626262;
  --toshi-line: #e8e3da;
  --toshi-gold: #8a6a2f;
  --toshi-gold-dark: #5c461e;
  --toshi-soft: #f7f5f0;
  --toshi-max: 1160px;
}

body {
  background: var(--toshi-bg);
  color: var(--toshi-ink);
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  line-height: 1.9;
}

body, button, input, select, textarea {
  font-size: 16px;
}

a {
  color: var(--toshi-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--toshi-gold-dark);
}

.site-header,
.main-navigation,
.inside-header {
  background: #fff;
}

.inside-header {
  padding-top: 14px;
  padding-bottom: 14px;
}

.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle {
  color: var(--toshi-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.site-content {
  display: block;
  margin-top: 0;
  padding-top: 0;
}

.site-main,
.content-area,
.inside-article {
  margin-top: 0;
  padding-top: 0;
}

.toshi-container {
  width: min(calc(100% - 40px), var(--toshi-max));
  margin-inline: auto;
}

.toshi-section {
  padding: clamp(64px, 9vw, 128px) 0;
}

main > .toshi-section:first-child,
.toshi-breadcrumb + main > .toshi-section:first-child,
.toshi-breadcrumb + .toshi-section {
  padding-top: clamp(32px, 5vw, 64px);
}

.toshi-section--soft {
  background: var(--toshi-soft);
}

.toshi-eyebrow {
  margin: 0 0 18px;
  color: var(--toshi-gold);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.toshi-heading {
  margin: 0 0 28px;
  font-size: clamp(30px, 4.4vw, 56px);
  font-weight: 500;
  line-height: 1.35;
}

.toshi-lead {
  max-width: 760px;
  margin: 0;
  color: var(--toshi-muted);
  font-size: clamp(17px, 2vw, 20px);
}

.toshi-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 4vw, 56px);
}

.toshi-card {
  border-top: 1px solid var(--toshi-line);
  padding-top: 26px;
}

.toshi-card h3 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 500;
}

.toshi-card p {
  margin: 0;
  color: var(--toshi-muted);
}

.toshi-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.toshi-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--toshi-ink);
  padding: 12px 22px;
  background: var(--toshi-ink);
  color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.toshi-button:hover {
  background: var(--toshi-gold-dark);
  border-color: var(--toshi-gold-dark);
  color: #fff;
}

.toshi-button--ghost {
  background: transparent;
  color: var(--toshi-ink);
}

.toshi-button--ghost:hover {
  background: var(--toshi-ink);
  border-color: var(--toshi-ink);
}

.toshi-hero {
  min-height: min(600px, calc(82vh - 80px));
  display: grid;
  align-items: end;
  position: relative;
  isolation: isolate;
  padding: clamp(72px, 10vw, 128px) 0 clamp(42px, 6vw, 72px);
  background: #111;
  color: #fff;
  overflow: hidden;
  margin-top: 0;
}

.toshi-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--toshi-hero-image, linear-gradient(110deg, #151515, #4a3b23));
  background-position: center;
  background-size: cover;
}

.toshi-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.34), rgba(0,0,0,.08));
}

.toshi-hero .toshi-heading {
  max-width: 760px;
  color: #fff;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1.25;
}

.toshi-hero-brand {
  margin: 0 0 24px;
  color: rgba(255,255,255,.94);
  font-family: "Times New Roman", Times, "Noto Serif JP", serif;
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: none;
  text-shadow: 0 2px 16px rgba(0,0,0,.28);
}

.toshi-hero .toshi-lead {
  color: rgba(255,255,255,.86);
}

.toshi-hero .toshi-button--ghost {
  border-color: rgba(255,255,255,.8);
  color: #fff;
}

.toshi-hero .toshi-button {
  background: transparent;
  border-color: rgba(255,255,255,.82);
  color: #fff;
}

.toshi-hero .toshi-button:hover {
  background: #fff;
  border-color: #fff;
  color: #111;
}

.toshi-summary {
  border-left: 3px solid var(--toshi-gold);
  margin: 0 0 40px;
  padding: 16px 0 16px 22px;
  color: var(--toshi-muted);
  font-size: 16px;
}

.toshi-two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: start;
}

.toshi-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toshi-list li {
  border-top: 1px solid var(--toshi-line);
  padding-top: 18px;
}

.toshi-project-meta {
  display: grid;
  gap: 14px;
  margin: 0;
}

.toshi-project-meta > div {
  border-top: 1px solid var(--toshi-line);
  padding-top: 14px;
}

.toshi-project-meta dt {
  margin: 0 0 4px;
  color: var(--toshi-gold);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.toshi-project-meta dd {
  margin: 0;
}

.toshi-detail-block {
  border-top: 1px solid var(--toshi-line);
  padding: 28px 0;
}

.toshi-detail-block h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 500;
}

.toshi-detail-block p:last-child {
  margin-bottom: 0;
}

.toshi-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 24px;
  color: var(--toshi-muted);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
}

.toshi-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.toshi-entry {
  border-top: 1px solid var(--toshi-line);
  padding-top: 20px;
}

.toshi-entry img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 18px;
  background: var(--toshi-soft);
}

.toshi-entry h2,
.toshi-entry h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 500;
}

.toshi-entry p {
  margin: 0;
  color: var(--toshi-muted);
}

.toshi-case-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--toshi-line);
}

.toshi-case-list__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--toshi-line);
  padding: 24px 0;
  text-decoration: none;
}

.toshi-case-list__item h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 500;
}

.toshi-case-list__item p {
  margin: 0;
  color: var(--toshi-muted);
}

.toshi-case-list__arrow {
  color: var(--toshi-gold);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.toshi-faq {
  border-top: 1px solid var(--toshi-line);
}

.toshi-faq details {
  border-bottom: 1px solid var(--toshi-line);
  padding: 20px 0;
}

.toshi-faq summary {
  cursor: pointer;
  font-size: 18px;
}

.toshi-faq .answer {
  color: var(--toshi-muted);
  padding-top: 12px;
}

.toshi-cta {
  background: #111;
  color: #fff;
}

.toshi-cta .toshi-lead,
.toshi-cta .toshi-summary {
  color: rgba(255,255,255,.78);
}

.toshi-cta .toshi-button {
  background: #fff;
  color: #111;
  border-color: #fff;
}

.toshi-cta .toshi-button--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}

.toshi-breadcrumb {
  width: min(calc(100% - 40px), var(--toshi-max));
  margin: 8px auto 0;
  color: var(--toshi-muted);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
}

.toshi-breadcrumb a {
  color: var(--toshi-muted);
}

.toshi-form-note {
  background: var(--toshi-soft);
  padding: 24px;
}

img {
  height: auto;
}

body.home .featured-image,
body.home .page-header-image,
body.home .inside-article > .post-image,
body.home .inside-article > figure.wp-block-post-featured-image:first-child {
  display: none;
}

@media (max-width: 900px) {
  .toshi-archive-grid,
  .toshi-two-col {
    grid-template-columns: 1fr;
  }

  .toshi-case-list__item {
    grid-template-columns: 1fr;
  }

  .toshi-grid {
    grid-template-columns: 1fr;
  }

  .toshi-card {
    grid-column: auto !important;
  }
}

@media (max-width: 640px) {
  .inside-header {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .main-navigation .menu-toggle {
    line-height: 1.2;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .toshi-breadcrumb {
    margin-top: 0;
  }

  main > .toshi-section:first-child,
  .toshi-breadcrumb + main > .toshi-section:first-child,
  .toshi-breadcrumb + .toshi-section {
    padding-top: 24px;
  }

  .toshi-container {
    width: min(calc(100% - 28px), var(--toshi-max));
  }

  .toshi-button-row {
    display: grid;
  }

  .toshi-button {
    width: 100%;
  }

  .toshi-hero {
    min-height: 560px;
  }
}
