.brand-home {
  background: #fff;
  color: #3b302b;
}

.brand-home .site-header {
  background: rgba(255, 255, 253, .97);
}

.home-hero {
  display: flex;
  align-items: center;
  min-height: min(740px, calc(100svh - 140px));
  padding: 54px 0 64px;
  background: #f8f5ef;
  border-bottom: 1px solid rgba(59, 48, 43, .12);
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(460px, 1.08fr);
  align-items: center;
  gap: 58px;
}

.home-brand {
  margin: 0 0 10px;
  color: #3b302b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  letter-spacing: .08em;
}

.home-brand span {
  color: #75695f;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: .82rem;
  letter-spacing: .12em;
}

.home-kicker,
.home-label,
.entrance-label {
  margin: 0;
  color: #a67c3d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.home-hero h1 {
  margin: 20px 0 0;
  font-size: clamp(2.35rem, 3vw, 2.5rem);
  line-height: 1.38;
}

.home-hero h1 span {
  display: block;
}

.home-hero h1 .home-hero-phrase {
  display: inline;
}

.home-lead {
  max-width: 660px;
  margin: 24px 0 0;
  color: #5d524b;
  font-size: 1rem;
  line-height: 2;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.home-actions-center {
  justify-content: center;
}

.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: .91rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.home-button:hover {
  transform: translateY(-2px);
}

.home-button-primary {
  background: #b58a6f;
  color: #fff;
  box-shadow: 0 12px 26px rgba(113, 77, 58, .16);
}

.home-button-secondary {
  border-color: #76675d;
  background: #fff;
  color: #3b302b;
}

.home-button-dark {
  background: #3b302b;
  color: #fff;
}

.home-button-green {
  background: #60786a;
  color: #fff;
}

.home-button-portal {
  border-color: #60786a;
  background: transparent;
  color: #435c4e;
}

.home-button-light {
  background: #fff;
  color: #3b302b;
}

.home-button-outline {
  border-color: rgba(255, 255, 255, .62);
  background: transparent;
  color: #fff;
}

.home-hero-visual {
  position: relative;
  margin: 0;
}

.home-hero-visual::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid rgba(166, 124, 61, .35);
  z-index: 0;
}

.home-hero-visual img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid rgba(59, 48, 43, .12);
  box-shadow: 0 24px 56px rgba(59, 48, 43, .14);
}

.home-hero-visual figcaption {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: fit-content;
  margin: -22px 20px 0 auto;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid rgba(59, 48, 43, .14);
  box-shadow: 0 10px 24px rgba(59, 48, 43, .1);
}

.home-hero-visual figcaption span {
  color: #665b54;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .68rem;
  letter-spacing: .08em;
}

.home-hero-visual figcaption span + span::before {
  content: "/";
  margin-right: 8px;
  color: #b99658;
}

.home-section {
  padding: 92px 0;
}

.home-section h2 {
  margin-top: 14px;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.5;
}

.home-about {
  background: #fff;
}

.home-about-grid,
.philosophy-grid,
.home-section-heading {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 72px;
}

.home-copy p {
  margin: 0;
  color: #5d524b;
  line-height: 2.05;
}

.home-copy p + p {
  margin-top: 18px;
}

.about-summary {
  padding: 20px 0 0 24px;
  border-left: 2px solid #b99658;
  color: #3b302b !important;
  font-weight: 700;
}

.home-entrances {
  background: #f7f3ec;
}

.home-intro {
  max-width: 760px;
  margin: 20px 0 0;
  color: #665b54;
  line-height: 1.95;
}

.entrance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.entrance-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 30px;
  border: 1px solid rgba(59, 48, 43, .14);
  border-top: 4px solid #b58a6f;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(59, 48, 43, .06);
}

.entrance-visual {
  margin: -30px -30px 24px;
  overflow: hidden;
  border-bottom: 1px solid rgba(59, 48, 43, .12);
  background: #eee9df;
}

.entrance-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .35s ease;
}

.entrance-card:hover .entrance-visual img {
  transform: scale(1.025);
}

.entrance-business {
  border-top-color: #3b302b;
}

.entrance-portal {
  border-top-color: #60786a;
}

.entrance-card h3 {
  margin: 13px 0 8px;
  font-size: 1.55rem;
}

.entrance-catch {
  min-height: 3.3em;
  margin: 0 0 18px;
  color: #4d433d;
  font-weight: 700;
}

.entrance-card > p:not(.entrance-label):not(.entrance-catch):not(.portal-note) {
  margin: 0;
  color: #665b54;
  font-size: .91rem;
  line-height: 1.9;
}

.entrance-card ul {
  display: grid;
  gap: 6px;
  margin: 22px 0 28px;
  padding: 18px 0;
  border-top: 1px solid rgba(59, 48, 43, .12);
  border-bottom: 1px solid rgba(59, 48, 43, .12);
  list-style: none;
}

.entrance-card li {
  position: relative;
  padding-left: 18px;
  color: #5d524b;
  font-size: .87rem;
}

.entrance-card li::before {
  content: "";
  position: absolute;
  top: .82em;
  left: 0;
  width: 7px;
  height: 1px;
  background: #b99658;
}

.entrance-card .home-button {
  width: 100%;
  margin-top: auto;
}

.portal-note {
  margin: 13px 0 0;
  color: #75695f;
  font-size: .76rem;
  line-height: 1.7;
}

.home-solutions {
  background: #fff;
}

.home-section.home-solutions {
  padding: 96px 0;
}

.home-solutions .home-section-heading {
  grid-template-columns: minmax(360px, .9fr) minmax(420px, 1.1fr);
  gap: 72px;
  align-items: center;
}

.home-solutions .home-section-heading h2 {
  max-width: 620px;
  font-size: clamp(2.2rem, 3vw, 3.25rem);
  line-height: 1.35;
}

.home-solutions .home-intro {
  max-width: 620px;
  margin-top: 0;
  font-size: 1rem;
  line-height: 2;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
  padding: 30px 0;
  border-top: 1px solid rgba(170, 135, 88, .22);
  border-bottom: 1px solid rgba(170, 135, 88, .22);
}

.solution-grid article {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px 24px;
  border: 1px solid rgba(170, 135, 88, .2);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 12px 30px rgba(70, 48, 32, .055);
}

.solution-number {
  color: #a67c3d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .84rem;
}

.solution-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 22px 0 18px;
  border: 1px solid rgba(166, 124, 61, .35);
  border-radius: 50%;
  background: #fffaf2;
}

.solution-icon::before {
  content: "";
  position: static;
  display: block;
  width: 25px;
  height: 25px;
  border: 0;
  background: #8d6a35;
  box-shadow: none;
  transform: none;
  -webkit-mask-image: var(--process-icon);
  mask-image: var(--process-icon);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.solution-icon::after {
  content: none;
}

.solution-grid h3 {
  margin: 0 0 14px;
  font-size: 1.15rem;
  line-height: 1.5;
}

.solution-grid p {
  margin: 0;
  color: #665b54;
  font-size: .9rem;
  line-height: 1.9;
}

.icon-server {
  --process-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.7%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%273%27%20y%3D%274%27%20width%3D%2718%27%20height%3D%276%27%20rx%3D%271.5%27%2F%3E%3Crect%20x%3D%273%27%20y%3D%2714%27%20width%3D%2718%27%20height%3D%276%27%20rx%3D%271.5%27%2F%3E%3Cpath%20d%3D%27M7%207h.01M7%2017h.01M11%207h6M11%2017h6%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}

.icon-shield {
  --process-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.7%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%203.2l7%203v5.3c0%204.3-2.7%207.8-7%209.3-4.3-1.5-7-5-7-9.3V6.2l7-3Z%27%2F%3E%3Cpath%20d%3D%27m8.7%2012.1%202.1%202.1%204.6-4.7%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}

.home-audience {
  background: #f7f3ec;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 42px;
}

.audience-grid article {
  padding-left: 22px;
  border-left: 3px solid #b58a6f;
}

.audience-grid article:nth-child(2) {
  border-left-color: #3b302b;
}

.audience-grid article:nth-child(3) {
  border-left-color: #60786a;
}

.audience-grid h3 {
  font-size: 1.3rem;
}

.audience-grid ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 1.1em;
  color: #5d524b;
}

.home-philosophy {
  background: #fff;
}

.philosophy-quote {
  margin-top: 30px !important;
  padding: 24px;
  background: #f3eee6;
  color: #3b302b !important;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.7 !important;
}

.home-contact-cta {
  padding: 86px 0;
  background: #3b302b;
  color: #fff;
  text-align: center;
}

.home-contact-cta .home-label {
  color: #d4b87f;
}

.home-contact-cta h2 {
  margin: 14px 0 0;
  color: #fff;
  font-size: clamp(2rem, 3.7vw, 3rem);
}

.home-contact-cta > .container > p:not(.home-label):not(.cta-note) {
  max-width: 790px;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, .82);
  line-height: 1.95;
}

.cta-note {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .65);
  font-size: .82rem;
}

.brand-home .site-footer {
  background: #f4efe7;
}

@media (max-width: 1040px) {
  .home-hero-grid {
    grid-template-columns: minmax(0, .95fr) minmax(400px, 1.05fr);
    gap: 38px;
  }

  .entrance-card {
    padding: 25px;
  }

  .entrance-visual {
    margin: -25px -25px 22px;
  }
}

@media (max-width: 900px) {
  .home-hero {
    min-height: auto;
    padding-top: 54px;
  }

  .home-hero-grid,
  .home-about-grid,
  .philosophy-grid,
  .home-section-heading {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .home-solutions .home-section-heading {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .home-solutions .home-intro {
    max-width: 760px;
  }

  .home-hero-copy {
    max-width: 700px;
  }

  .home-hero-visual {
    max-width: 760px;
  }

  .entrance-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .entrance-catch {
    min-height: 0;
  }

  .solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 768px) {
  .home-section.home-solutions {
    padding: 64px 0;
  }

  .home-solutions .home-section-heading {
    gap: 24px;
  }

  .home-solutions .home-section-heading h2 {
    font-size: clamp(1.9rem, 8.2vw, 2.5rem);
    line-height: 1.35;
  }

  .home-solutions .home-intro {
    font-size: .95rem;
    line-height: 1.9;
  }

  .solution-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 36px;
    padding: 0;
    border: 0;
  }

  .solution-grid article {
    padding: 24px 22px;
  }
}

@media (max-width: 640px) {
  .home-hero {
    padding: 46px 0 52px;
  }

  .home-hero h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
    line-height: 1.5;
  }

  .home-hero h1 .home-hero-phrase {
    display: block;
  }

  .home-brand {
    font-size: 1.15rem;
  }

  .home-kicker {
    max-width: 285px;
    font-size: .63rem;
    overflow-wrap: normal;
  }

  .home-lead {
    font-size: .95rem;
  }

  .home-actions {
    flex-direction: column;
  }

  .home-button {
    width: 100%;
    white-space: normal;
  }

  .home-hero-visual::before {
    inset: 10px -8px -10px 8px;
  }

  .home-hero-visual figcaption {
    width: calc(100% - 18px);
    margin: -12px 0 0 18px;
  }

  .home-hero-visual figcaption span {
    font-size: .59rem;
  }

  .home-section {
    padding: 66px 0;
  }

  .home-section h2,
  .home-contact-cta h2 {
    font-size: clamp(1.65rem, 7vw, 2.15rem);
    line-height: 1.55;
  }

  .entrance-grid,
  .audience-grid {
    margin-top: 30px;
  }

  .entrance-card {
    padding: 24px 20px;
  }

  .entrance-visual {
    margin: -24px -20px 22px;
  }

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

  .home-contact-cta {
    padding: 68px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-button {
    transition: none;
  }
}
