/*
Theme Name: Yamagata Gishi Renewal
Theme URI: https://yamagatagishi.com/
Author: 有限会社 山形義肢研究所
Description: 山形義肢研究所の公式サイト用オリジナルテーマ。スマートフォンを優先し、投稿・お問い合わせ・既存コンテンツをWordPressで管理できます。
Version: 1.0.12
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: yamagata-gishi-renewal
*/

:root {
  --paper: #fcfaf5;
  --linen: #eae2d6;
  --oyster: #d5c3aa;
  --pewter: #867666;
  --ink: #4f4a45;
  --muted: #756b61;
  --gold: #d1b280;
  --gold-bright: #e1b80d;
  --brown: #a87955;
  --blue-gray: #65777d;
  --line: rgba(134, 118, 102, 0.22);
  --white: #ffffff;
  --shadow: 0 18px 54px rgba(76, 66, 57, 0.12);
  --radius: 22px;
  --max: 1180px;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro",
    "Noto Serif JP", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Yu Gothic", "Noto Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--linen);
}

body {
  margin: 0;
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 100;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(16px, 4vw, 58px);
  color: var(--white);
}

.site-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.site-brand img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  box-shadow: 0 6px 22px rgba(32, 28, 24, 0.2);
  object-fit: cover;
}

.site-brand span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 14px rgba(32, 28, 24, 0.5);
  white-space: nowrap;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: clamp(16px, 2.1vw, 30px);
  font-size: 13px;
  font-weight: 700;
}

.desktop-nav > a:not(.nav-contact) {
  padding: 10px 0;
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.25s ease,
    opacity 0.25s ease;
}

.desktop-nav > a:not(.nav-contact):hover {
  border-color: rgba(255, 255, 255, 0.72);
}

.nav-contact {
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(252, 250, 245, 0.94);
  color: var(--ink);
}

.menu-button {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  color: var(--white);
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(14px);
}

.mobile-drawer {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  align-items: center;
  padding: 112px 26px 80px;
  background: rgba(79, 74, 69, 0.97);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.4s;
}

.mobile-drawer.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer nav {
  width: min(100%, 540px);
  margin: 0 auto;
}

.mobile-drawer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--serif);
  font-size: clamp(18px, 5vw, 25px);
}

.home-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--pewter);
  color: var(--white);
}

.home-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% center;
  animation: hero-zoom 1.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(59, 57, 54, 0.05),
    rgba(59, 57, 54, 0.12) 46%,
    rgba(55, 51, 47, 0.58)
  );
}

.hero-blob {
  position: absolute;
  z-index: 1;
  background: rgba(252, 250, 245, 0.3);
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.hero-blob--top {
  top: 10%;
  left: -30%;
  width: 80%;
  height: 18%;
  border-radius: 48% 52% 46% 54% / 60% 43% 57% 40%;
  transform: rotate(8deg);
  animation: float-top 8s ease-in-out infinite alternate;
}

.hero-blob--bottom {
  right: -28%;
  bottom: 12%;
  width: 62%;
  height: 18%;
  border-radius: 67% 33% 48% 52% / 40% 63% 37% 60%;
  transform: rotate(-12deg);
  animation: float-bottom 10s ease-in-out infinite alternate;
}

.hero-news {
  position: absolute;
  z-index: 4;
  top: 108px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 10px;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
}

.hero-news strong {
  font-weight: 600;
}

.hero-news::after {
  width: 1px;
  height: 46px;
  background: rgba(255, 255, 255, 0.62);
  content: "";
}

.home-hero-copy {
  position: absolute;
  z-index: 3;
  bottom: 7%;
  left: 17%;
  display: flex;
  height: 370px;
  align-items: center;
  gap: 14px;
}

.home-hero-copy h1 {
  display: flex;
  flex-direction: row-reverse;
  gap: 7px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(23px, 7vw, 29px);
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.45;
  text-shadow: 0 3px 20px rgba(26, 22, 19, 0.28);
}

.home-hero-copy h1 span {
  display: block;
  white-space: nowrap;
  writing-mode: vertical-rl;
}

.home-hero-copy p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  letter-spacing: 0.11em;
  line-height: 2;
  white-space: nowrap;
  writing-mode: vertical-rl;
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 9px;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
  animation: scroll-cue 1.8s ease-in-out infinite;
}

.section-shell {
  position: relative;
  padding: clamp(72px, 9vw, 128px) clamp(20px, 5vw, 64px);
}

.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.narrow-inner {
  width: min(100%, 850px);
}

.section-soft {
  background: #f3ede5;
}

.eyebrow {
  color: var(--pewter);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: #eadcc8;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
  line-break: strict;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  word-break: auto-phrase;
  text-wrap: pretty;
}

.phrase-heading {
  word-break: keep-all;
}

h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
}

.section-shell h2 {
  margin: 10px 0 22px;
  font-size: clamp(29px, 4.5vw, 48px);
  letter-spacing: 0.035em;
  line-height: 1.45;
}

.section-shell p {
  color: var(--muted);
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 2;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(4px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.8s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

.intro-section {
  overflow: hidden;
}

.intro-grid {
  position: relative;
}

.with-you {
  position: absolute;
  z-index: 0;
  top: -35px;
  left: -12px;
  color: rgba(171, 136, 35, 0.3);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(68px, 11vw, 156px);
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 2px 18px rgba(171, 136, 35, 0.08);
}

.intro-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.intro-values {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 50px;
  border-block: 1px solid var(--line);
}

.intro-values div {
  padding: 22px 8px;
  text-align: center;
}

.intro-values div + div {
  border-left: 1px solid var(--line);
}

.intro-values b,
.intro-values span {
  display: block;
}

.intro-values b {
  color: #9b7c2e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.intro-values span {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 13px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--pewter);
  font-size: 13px;
  font-weight: 700;
}

.services-section {
  overflow: hidden;
  padding-inline: 0;
  background: var(--linen);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(20px, 5vw, 64px) 34px;
}

.section-heading--flush {
  padding: 0 0 25px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading small,
.section-heading > a {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}

.service-rail {
  display: flex;
  gap: clamp(14px, 2vw, 24px);
  overflow-x: auto;
  padding: 0 clamp(20px, 5vw, 64px) 24px;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.service-rail.is-dragging,
.service-rail.is-programmatic {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.service-rail.is-programmatic {
  cursor: grab;
}

.service-rail::-webkit-scrollbar {
  display: none;
}

.service-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 8px clamp(20px, 5vw, 64px) 0;
}

.service-control {
  display: grid;
  width: 52px;
  height: 52px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(209, 178, 128, 0.8);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(83, 72, 62, 0.1);
  cursor: pointer;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.service-control:hover,
.service-control:focus-visible {
  background: var(--ink);
  color: var(--gold);
  transform: translateY(-2px);
}

.service-card {
  position: relative;
  width: min(80vw, 360px);
  height: clamp(450px, 70vh, 560px);
  flex: 0 0 min(80vw, 360px);
  overflow: hidden;
  border-radius: 180px 180px 24px 24px;
  background: var(--pewter);
  color: var(--white);
  scroll-snap-align: center;
  box-shadow: 0 18px 46px rgba(83, 72, 62, 0.14);
}

.service-card img {
  width: 100%;
  -webkit-user-drag: none;
  user-select: none;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card--jonda img {
  background: #fff;
  object-position: center;
}

.service-card:hover img {
  transform: scale(1.035);
}

.service-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 34%,
    rgba(64, 56, 50, 0.88)
  );
}

.service-card--recruit .service-shade {
  background: linear-gradient(
    180deg,
    transparent 32%,
    rgba(104, 73, 51, 0.9)
  );
}

.service-card--technology .service-shade {
  background: linear-gradient(
    180deg,
    transparent 34%,
    rgba(65, 85, 91, 0.9)
  );
}

.service-letter {
  position: absolute;
  z-index: 2;
  top: 35%;
  right: -5px;
  color: rgba(234, 226, 214, 0.28);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 106px;
  line-height: 1;
}

.service-copy {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 27px;
  left: 24px;
}

.service-copy > span,
.service-copy strong,
.service-copy b {
  display: block;
}

.service-number {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-copy strong {
  margin: 7px 0 8px;
  font-family: var(--serif);
  font-size: clamp(24px, 4vw, 31px);
  font-weight: 500;
  line-height: 1.4;
}

.service-copy > span:not(.service-number) {
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  line-height: 1.75;
}

.service-copy b {
  margin-top: 14px;
  font-size: 11px;
}

.news-section {
  background: var(--paper);
}

.news-list {
  border-top: 1px solid var(--line);
}

.news-list a {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.news-list time {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
}

.news-list strong {
  font-size: 14px;
  line-height: 1.6;
}

.news-list a > span {
  font-size: 17px;
}

.instagram-section {
  background: #f3ede5;
}

.instagram-section h2 {
  margin-bottom: 8px;
}

.instagram-section > .section-inner > p {
  max-width: 620px;
  margin-top: 0;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 18px);
  margin-top: 30px;
}

.instagram-grid a {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: clamp(12px, 2vw, 24px);
  box-shadow: var(--shadow);
}

.instagram-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.instagram-grid a:hover img {
  transform: scale(1.04);
}

.instagram-feed-live {
  margin-top: 30px;
}

.instagram-feed-live #sb_instagram {
  width: 100% !important;
  padding-bottom: 0 !important;
}

.instagram-feed-live #sbi_images {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 18px);
  padding: 0 !important;
}

.instagram-feed-live .sbi_item {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
}

.instagram-feed-live .sbi_item:nth-child(n + 4) {
  display: none !important;
}

.instagram-feed-live .sbi_photo {
  display: block !important;
  aspect-ratio: 1 / 1;
  height: auto !important;
  overflow: hidden;
  border-radius: clamp(12px, 2vw, 24px);
  box-shadow: var(--shadow);
}

.instagram-feed-live .sbi_photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.instagram-feed-live .sbi_photo:hover img {
  transform: scale(1.04);
}

.instagram-feed-live .sb_instagram_header,
.instagram-feed-live #sbi_load,
.instagram-feed-live .sbi_follow_btn {
  display: none !important;
}

.home-access {
  background: #5f5a55;
  color: var(--white);
}

.access-grid {
  display: grid;
  gap: clamp(32px, 6vw, 72px);
}

.home-access h2 {
  color: var(--white);
}

.home-access p {
  color: rgba(255, 255, 255, 0.76);
}

.access-buttons,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.access-buttons a,
.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.access-buttons a:first-child {
  background: var(--paper);
  color: var(--ink);
}

.access-buttons a:last-child,
.primary-button {
  background: #e8d48a;
  color: var(--ink);
}

.secondary-button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.map-frame {
  height: clamp(280px, 45vw, 430px);
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: #e8e5df;
  box-shadow: var(--shadow);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.page-hero {
  position: relative;
  min-height: min(76svh, 760px);
  overflow: hidden;
  background: var(--pewter);
  color: var(--white);
}

.page-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: hero-zoom 1.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-hero--company > img,
.page-hero--news > img {
  object-position: 38% center;
}

.page-hero--jonda > img {
  background: #fff;
  object-position: center 45%;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(60, 55, 51, 0.08),
    rgba(60, 55, 51, 0.65)
  );
}

.page-hero--technology .page-hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(63, 85, 91, 0.1),
    rgba(63, 85, 91, 0.75)
  );
}

.page-hero--recruit .page-hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(92, 61, 43, 0.06),
    rgba(92, 61, 43, 0.72)
  );
}

.page-hero-copy {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 6vw, 88px);
  bottom: clamp(34px, 7vw, 84px);
  left: clamp(20px, 7vw, 110px);
  max-width: 760px;
}

.page-hero-copy h1 {
  margin: 8px 0 12px;
  font-family: var(--serif);
  font-size: clamp(34px, 6vw, 72px);
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.28;
  text-shadow: 0 3px 20px rgba(26, 22, 19, 0.3);
}

.page-hero-copy p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(13px, 1.7vw, 17px);
  line-height: 1.9;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 19px;
}

.hero-chips span {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 10px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.content-intro h2 {
  max-width: 700px;
}

.content-intro > .section-inner > p {
  max-width: 800px;
}

.content-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 36px;
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.content-cards article {
  min-width: 0;
  padding: 28px 2px;
  border-bottom: 1px solid var(--line);
}

.content-cards h3 {
  margin: 0 0 8px;
  color: var(--pewter);
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.5;
}

.content-cards p {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
}

.content-cards small {
  display: block;
  margin-top: 9px;
  color: #967b44;
  font-size: 11px;
  font-weight: 800;
}

.digital-flow {
  background: var(--blue-gray);
  color: var(--white);
}

.digital-flow h2,
.digital-flow p {
  color: var(--white);
}

.digital-flow p {
  opacity: 0.82;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 35px;
}

.flow-grid div {
  display: grid;
  min-height: 120px;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 18px;
  text-align: center;
}

.flow-grid b,
.flow-grid span {
  display: block;
}

.flow-grid b {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.flow-grid span {
  margin-top: 5px;
  font-size: 13px;
  font-weight: 800;
}

.step-list {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.step-list article {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.step-list article > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 800;
}

.step-list h3 {
  margin: 0 0 4px;
  color: var(--pewter);
  font-size: 18px;
}

.step-list p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}

.service-cta {
  text-align: center;
}

.service-cta p {
  max-width: 720px;
  margin: 0 auto;
  padding: 26px 30px;
  border-radius: var(--radius);
  background: #f0e8dc;
  color: var(--ink);
}

.service-cta .button-row {
  justify-content: center;
}

.other-pages {
  padding-top: clamp(60px, 7vw, 95px);
}

.other-pages h2 {
  font-size: clamp(27px, 4vw, 40px);
}

.other-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.other-links a {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 800;
}

.company-grid {
  display: grid;
  gap: 48px;
}

.company-list {
  display: grid;
  gap: 9px;
  margin: 0;
}

.company-list div {
  display: grid;
  grid-template-columns: minmax(100px, 150px) minmax(0, 1fr);
  gap: 18px;
  padding: 17px;
  border: 1px solid #d1c5b7;
  border-radius: 14px;
  background: #f0ebe4;
}

.company-list dt {
  font-weight: 800;
}

.company-list dd {
  min-width: 0;
  margin: 0;
  color: var(--muted);
}

.company-access {
  background: var(--linen);
}

.map-frame--light {
  border-color: #5f5a55;
}

.contact-section {
  background: linear-gradient(180deg, #f8f1d4, #f3e7af);
}

.contact-layout {
  display: grid;
  gap: 42px;
}

.phone-card {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid rgba(116, 101, 44, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.78);
}

.phone-card span,
.phone-card a,
.phone-card small {
  display: block;
}

.phone-card a {
  margin: 5px 0;
  color: #74652c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 700;
}

.contact-form {
  position: relative;
  display: grid;
  gap: 17px;
  padding: clamp(20px, 4vw, 38px);
  border: 1px solid #d9c676;
  border-radius: 26px;
  background: #fffdf7;
  box-shadow: 0 16px 48px rgba(116, 101, 44, 0.1);
}

.contact-form label {
  display: block;
  color: #655828;
  font-size: 13px;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  border: 1px solid #d9c676;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
}

.contact-form textarea {
  resize: vertical;
}

.form-columns {
  display: grid;
  gap: 17px;
}

.privacy-check {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
}

.privacy-check input {
  width: 18px;
  height: 18px;
  margin: 4px 0 0;
}

.privacy-check span {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.7;
}

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

.form-message {
  margin: 0 !important;
  padding: 15px;
  border-radius: 12px;
  background: #f3e7af;
  color: #655828 !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
}

.archive-list {
  border-top: 1px solid var(--line);
}

.archive-list > a {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.archive-list time {
  color: var(--pewter);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
}

.archive-list h2 {
  margin: 0 0 5px;
  font-size: clamp(19px, 2.5vw, 27px);
}

.archive-list p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.news-article {
  min-height: 600px;
}

.article-inner {
  width: min(100%, 720px);
}

.article-inner > time {
  display: block;
  margin-bottom: 25px;
  color: var(--pewter);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

.article-inner > p {
  margin: 0 0 22px;
}

.news-highlight {
  margin: 34px 0;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--linen);
  text-align: center;
}

.news-highlight span,
.news-highlight strong {
  display: block;
}

.news-highlight strong {
  margin-top: 5px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(22px, 4vw, 34px);
}

.not-found {
  display: grid;
  min-height: 80svh;
  place-items: center;
  align-content: center;
  padding: 130px 24px 80px;
  text-align: center;
}

.not-found h1 {
  margin: 10px 0;
  font-family: var(--serif);
  font-weight: 500;
}

.not-found p {
  color: var(--muted);
}

.site-footer {
  padding: 58px clamp(22px, 6vw, 76px) 105px;
  background: var(--pewter);
  color: rgba(255, 255, 255, 0.82);
}

.footer-grid {
  display: grid;
  width: min(100%, var(--max));
  gap: 34px;
  margin: 0 auto 34px;
}

.footer-brand {
  color: var(--white);
  font-family: var(--serif);
  font-size: 23px;
}

.site-footer p {
  font-size: 12px;
  line-height: 1.9;
}

.site-footer nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  font-size: 12px;
}

.site-footer small {
  display: block;
  width: min(100%, var(--max));
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
}

.fixed-actions {
  position: fixed;
  z-index: 80;
  right: 8px;
  bottom: max(8px, env(safe-area-inset-bottom));
  left: 8px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 5px;
  padding: 5px;
  border-radius: 18px;
  background: rgba(252, 250, 245, 0.92);
  box-shadow: 0 10px 32px rgba(44, 38, 33, 0.2);
  backdrop-filter: blur(15px);
}

.fixed-actions a {
  display: grid;
  min-width: 0;
  height: 48px;
  place-items: center;
  padding: 0 5px;
  border-radius: 13px;
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

.fixed-actions a:nth-child(1) {
  background: var(--gold-bright);
  color: var(--ink);
}

.fixed-actions a:nth-child(2) {
  background: var(--brown);
}

.fixed-actions a:nth-child(3) {
  background: var(--blue-gray);
}

@keyframes hero-zoom {
  from {
    opacity: 0.35;
    transform: scale(1.1);
  }
  to {
    opacity: 1;
    transform: scale(1.03);
  }
}

@keyframes float-top {
  to {
    transform: translate(14px, 10px) rotate(11deg);
  }
}

@keyframes float-bottom {
  to {
    transform: translate(-12px, -14px) rotate(-8deg);
  }
}

@keyframes scroll-cue {
  50% {
    opacity: 0.35;
    transform: translateY(5px);
  }
}

@media (min-width: 760px) {
  .form-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

@media (min-width: 1100px) {
  .access-grid,
  .company-grid,
  .contact-layout {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    align-items: start;
  }
}

@media (min-width: 920px) {
  .desktop-nav {
    display: flex;
  }

  .menu-button {
    display: none;
  }

  .home-hero {
    min-height: 760px;
  }

  .home-hero-copy {
    bottom: 14%;
    left: clamp(60px, 9vw, 150px);
    display: block;
    width: min(780px, 70vw);
    height: auto;
  }

  .home-hero-copy h1 {
    display: block;
    font-size: clamp(46px, 5.5vw, 78px);
    letter-spacing: 0.06em;
    line-height: 1.35;
  }

  .home-hero-copy h1 span {
    writing-mode: horizontal-tb;
  }

  .home-hero-copy p {
    margin-top: 20px;
    font-size: 15px;
    letter-spacing: 0.04em;
    writing-mode: horizontal-tb;
  }

  .hero-news {
    top: 112px;
    bottom: auto;
    left: clamp(50px, 6vw, 90px);
    writing-mode: horizontal-tb;
  }

  .hero-news::after {
    width: 60px;
    height: 1px;
  }

  .page-hero-copy {
    max-width: 940px;
  }

  .page-hero-copy h1 {
    font-size: clamp(40px, 4.7vw, 64px);
  }

  .page-hero-copy p {
    max-width: 780px;
  }

  .content-intro h2 {
    max-width: 900px;
    font-size: clamp(32px, 3.3vw, 44px);
  }

  .content-intro > .section-inner > p {
    max-width: 900px;
  }

  .intro-values {
    max-width: 760px;
  }

  .service-card {
    width: 360px;
    flex-basis: 360px;
  }

  .fixed-actions {
    display: none;
  }

  .site-footer {
    padding-bottom: 60px;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 80px;
    padding: 15px 14px;
  }

  .site-brand img {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .site-brand span {
    font-size: clamp(16px, 5.1vw, 20px);
  }

  .menu-button {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }

  .section-heading small {
    max-width: 120px;
  }

  .services-section .section-heading {
    display: block;
  }

  .services-section .section-heading small {
    display: block;
    max-width: none;
    margin-top: 10px;
    text-align: left;
  }

  .instagram-grid {
    gap: 7px;
  }

  .instagram-feed-live #sbi_images {
    gap: 7px;
  }

  .content-cards,
  .other-links {
    grid-template-columns: 1fr;
  }

  .flow-grid {
    gap: 6px;
  }

  .flow-grid div {
    min-height: 100px;
    border-radius: 14px;
  }

  .company-list div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .archive-list > a {
    grid-template-columns: 86px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 22px 0;
  }

  .archive-list p {
    display: none;
  }

  .page-hero {
    min-height: 650px;
  }

  .page-hero-copy {
    right: 20px;
    bottom: 34px;
    left: 20px;
  }

  .page-hero-copy h1 {
    font-size: clamp(31px, 10vw, 43px);
  }

  .page-hero-copy p {
    font-size: 13px;
  }

  .home-hero-copy {
    left: 14%;
    gap: 10px;
  }
}

@media (max-width: 360px) {
  .site-brand span {
    font-size: 16px;
  }

  .home-hero-copy h1 {
    font-size: 22px;
  }

  .home-hero-copy p {
    font-size: 10px;
  }

  .section-heading {
    align-items: start;
  }

  .section-heading small {
    font-size: 10px;
  }

  .service-card {
    width: 82vw;
    flex-basis: 82vw;
  }

  .access-buttons {
    display: grid;
  }

  .archive-list > a {
    grid-template-columns: 1fr auto;
  }

  .archive-list time {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* WordPress integration */
.admin-bar .site-header {
  top: 32px;
}

.wp-content > *:first-child {
  margin-top: 0;
}

.wp-content img,
.wp-content iframe {
  max-width: 100%;
  height: auto;
}

.wp-content a:not(.primary-button) {
  color: #8b6c22;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.contact-form-wrap .wpcf7-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.contact-form-wrap .wpcf7-form > p {
  margin: 0;
}

.contact-form-wrap .wpcf7-form table,
.contact-form-wrap .wpcf7-form tbody,
.contact-form-wrap .wpcf7-form tr,
.contact-form-wrap .wpcf7-form th,
.contact-form-wrap .wpcf7-form td {
  display: block;
  width: 100%;
}

.contact-form-wrap .wpcf7-form table {
  border-collapse: collapse;
}

.contact-form-wrap .wpcf7-form tr {
  margin-bottom: 18px;
}

.contact-form-wrap .wpcf7-form th {
  padding: 0 0 7px;
  color: var(--ink);
  font-size: 14px;
  text-align: left;
}

.contact-form-wrap .wpcf7-form td {
  padding: 0;
}

.contact-form-wrap .wpcf7-form input:not([type="checkbox"]):not([type="submit"]),
.contact-form-wrap .wpcf7-form select,
.contact-form-wrap .wpcf7-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid rgba(134, 118, 102, 0.35);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}

.contact-form-wrap .wpcf7-form textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-form-wrap .wpcf7-submit {
  min-height: 54px;
  padding: 13px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--gold-bright);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.contact-form-wrap .wpcf7-response-output {
  margin: 0 !important;
  padding: 12px 14px !important;
  border-radius: 12px;
}

.page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
}

.page-numbers a,
.page-numbers span {
  display: grid;
  min-width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.page-numbers .current {
  background: var(--ink);
  color: #fff;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}
