@import url("https://fonts.googleapis.com/css2?family=M+PLUS+1p&family=Fugaz+One&family=Sawarabi+Gothic&family=Noto+Serif+JP:wght@200..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=BBH+Sans+Bogle&family=DM+Serif+Text:ital@0;1&family=Noto+Sans+JP:wght@100..900&display=swap");

:root {
  --section-max-default: 1200px;
  --bg: #ffffff;
  --fg: #111111;
  --muted: #222222;
  --brand: #222222;
  --card: #fafafa;
  --col-green: #006934;
  --col-red: #e60012;
  --max: 1920px;
  --section-max: 1200px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  position: relative;
}
body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;

  letter-spacing: 0.1rem;

  font-size: clamp(12px, 2.2vw, 14px);
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--brand);
  text-decoration: none;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 8px;
}
.container {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 0 clamp(12px, 2vw, 24px) 0;
}
.back-to-top {
  z-index: 88;
  position: fixed;
  right: 30px;
  bottom: 61px;
  width: 85px;
  height: 35px;
  /*border-radius: 50%;*/
  background: #00000090;
  cursor: pointer;
  transition: opacity 0.4s;
  opacity: 0;
}

.back-to-top a:before {
  position: absolute;
  width: 10px;
  height: 10px;
  transform: rotate(-45deg);
  border-top: solid 2px #ffffff;
  border-right: solid 2px #ffffff;
  content: "";
  transform: rotate(-45deg) translate(-17%, -50%);
  top: 50%;
  left: 50%;
}
/* ===== ヒーロー ===== */
.hero {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  padding-block: 0 clamp(224px, 5vw, 260px);
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: 0.4fr 1fr;
    gap: 0;
  }
}

@media (max-width: 899.99px) {
  .hero {
    padding-block: 0 clamp(40px, 5vw, 50px);
  }
}

.hero h1 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15;
  margin: 0 0 0.4rem;
}
.hero p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(12px, 1.4vw, 14px);
}
.cta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn.secondary {
  background: transparent;
  color: var(--brand) var(--brand);
  border: 1.5px solid color-mix(in oklab, var(--brand), transparent 30%);
}
/* ===== ヒーロー左の縦メニュー（PCのみ） ===== */
.hero-nav {
  display: none;
}
@media (min-width: 900px) {
  .hero-nav {
    display: block;
    top: 24px;
    align-self: start;
    padding: 10px;
    height: max-content;
    transform: translateX(110px) translateY(60px);
  }
  .hero-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .hero-nav a {
    display: block;
    padding: 0.6rem 0.6rem;
    border-radius: 0;
    color: var(--fg);
    text-decoration: none;
  }
  .hero-nav a:hover {
    background: color-mix(in oklab, var(--brand), transparent 92%);
    color: var(--brand);
  }
  #side-nav,
  #scrim,
  #nav-toggle {
    display: none !important;
  }
}
/* ===== カードグリッド（基本） ===== */
.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(12, 1fr);
}
.grid-01 {
  display: grid;
  gap: 14px;
  top: 200px;
  grid-template-columns: repeat(5, 1fr);
}
.card {
  grid-column: span 12;
  background: var(--card);
  border-radius: var(--radius);
  padding: clamp(4px, 2vw, 8px);
}
.card h3 {
  margin: 0.2rem 0 0.4rem;
  font-size: clamp(16px, 2vw, 20px);
}
.card p {
  margin: 0;
  color: var(--brand);
}
@media (min-width: 560px) {
  .card.sm-6 {
    grid-column: span 3;
  }
}
@media (min-width: 900px) {
  .card.md-4 {
    grid-column: span 4;
  }
  .card.lg-3 {
    grid-column: span 3;
  }
}
/* ===== 画像 & 表 ===== */
.figure {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, var(--fg), transparent 85%);
}
.figure figcaption {
  font-size: 12px;
  color: var(--muted);
  padding: 0.4rem 0.6rem;
}
.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, var(--fg), transparent 85%);
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  background: var(--bg);
}
th,
td {
  padding: 0.7rem;
  border-bottom: 1px solid color-mix(in oklab, var(--fg), transparent 85%);
  text-align: left;
}
th {
  background: color-mix(in oklab, var(--brand), transparent 90%);
}
/* ===== フォーム ===== */
.input {
  width: 100%;
  padding: 0.6rem;
  border-radius: 10px;
  border: 1px solid color-mix(in oklab, var(--fg), transparent 80%);
  background: transparent;
  color: inherit;
}
/* ===== フッター & ユーティリティ ===== */
footer {
  color: var(--muted);
  padding-block: 40px;
  text-align: left;
  padding: 50px 0 80px;
  font-size: clamp(11px, 1.2vw, 14px);
  position: relative;
}
.muted {
  color: var(--muted);
}
.pill {
  font-size: 12px;
  border: 1px solid color-mix(in oklab, var(--fg), transparent 80%);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}
.section {
  margin-top: clamp(24px, 5vw, 48px);
  margin-bottom: 10%;
}
.section.overlap-hero {
  margin-bottom: 0%;
}

section#news {
  margin-top: clamp(48px, 10vw, 100px);
  margin-bottom: clamp(48px, 10vw, 100px);
}
/* ===== Scroll Reveal + Parallax ===== */
.reveal {
  opacity: 0;
  --reveal-ty: 18px;
  --reveal-scale: 0.98;
  transform: translateY(var(--reveal-ty)) scale(var(--reveal-scale)) translateY(var(--parallax-y, 0));
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  --reveal-ty: 0px;
  --reveal-scale: 1;
}
.parallax {
  position: relative;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    --reveal-ty: 0px !important;
    --reveal-scale: 1 !important;
    --parallax-y: 0px !important;
    transition: none !important;
  }
  .parallax {
    transform: none !important;
  }
}
@media (max-width: 900px) {
  .section {
    margin-bottom: 120px;
  }
}
/* ===== モバイル：サイドナビ（オフキャンバス） ===== */
.hamburger {
  position: fixed;
  top: 20px;
  right: 12px;
  left: auto;
  width: 44px;
  height: 44px;
  border-radius: 2px;
  border: 1px solid color-mix(in oklab, var(--fg), transparent 80%);
  background: var(--bg);
  font-size: 22px;
  line-height: 1;
  z-index: 99;
  display: inline-grid;
  place-items: center;
}
.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /*height: 100dvh;*/
  background: color-mix(in oklab, var(--bg), transparent 10%);
  border-right: 1px solid color-mix(in oklab, var(--fg), transparent 85%);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 92;
  transform: translateY(-105%);
  transition: transform 0.28s ease;
}
.side-nav .brand-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
}
.side-nav .logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: conic-gradient(from 180deg at 50% 50%, var(--brand), color-mix(in oklab, var(--brand), black 30%));
}
.side-nav ul {
  list-style: none;
  margin: 8px 8px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.side-nav a {
  display: block;
  padding: 0.75rem 1.7rem;
  color: var(--fg);
  text-decoration: none;
}
.side-nav a:hover {
  background: color-mix(in oklab, var(--brand), transparent 92%);
  color: var(--brand);
}
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.nav-open .side-nav {
  transform: translateX(0);
}
.nav-open .scrim {
  opacity: 1;
  pointer-events: auto;
}
@media (min-width: 900px) {
  .hamburger {
    position: fixed;
    top: 12px;
    right: 12px;
    left: auto;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid color-mix(in oklab, var(--fg), transparent 80%);
    background: var(--bg);
    font-size: 22px;
    line-height: 1;
    z-index: 99;
    display: inline-grid;
    place-items: center;
  }
  .scrim {
    display: none !important;
  }
}
/* ===== Grid Patterns ===== */

.demo-grid {
  display: grid;
  gap: 10px;
}
/* ① auto-fit minmax */
.ptn-autofit {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
/* ② 12-col asymmetric */
.ptn-12col {
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
}
.ptn-12col .span-12 {
  grid-column: span 12;
}
.ptn-12col .span-9 {
  grid-column: span 9;
  margin: 50px 0 0 15%;
}
.ptn-12col .span-8 {
  grid-column: span 8;
  text-align: left;
}
.ptn-12col .span-6 {
  grid-column: span 6;
}
.ptn-12col .span-4 {
  grid-column: span 4;
  background-color: var(--col-red);
  text-align: center;
}
.ptn-12col .span-3 {
  grid-column: span 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.ptn-12col .span-8 .en {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.2;
  margin: 0 0 0;
  border-bottom: 2px solid var(--col-red);
  width: 100%;
  height: 100px;
  display: flex;
  justify-content: left;
  align-items: flex-end;
  padding: 0 0 10px 50px;
}
.ptn-12col .span-8 .ja {
  font-size: clamp(11px, 1.2vw, 14px);

  margin: 0 0 0;
  color: var(--brand);
  padding-right: 10px;
  width: 60%;
  height: 100px;
  padding: 10px 0 0 50px;
}
.ptn-12col .span-4 .en {
  font-family: "DM Serif Text", serif;
  font-weight: 600;
  margin: 0 0 0 25%;
  padding: 0 0 10px;
  border-bottom: 2px solid #fff;
  color: #fff;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1;
  letter-spacing: 0.4rem;
  width: 75%;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.ptn-12col .span-4 .ja {
  margin: 0 0 0 25%;
  padding: 10px 0 0;
  color: #fff;
  width: 75%;
  height: 100px;
}
.ptn-12col .span-3 .span-in {
  font-family: "Fugaz One", sans-serif;
  letter-spacing: 0;
  width: 100%;
  text-align: right;
  font-size: clamp(31px, 2vw, 34px);
  font-weight: 400;
}
.ptn-12col .span-3 .span-in1 {
  margin: 0 0 0;
  border-bottom: 2px solid var(--col-red);
  color: var(--col-red);
  width: 100%;
  padding: 0 15% 0 0;
}
.ptn-12col .span-3 .span-in2 {
  margin: 0 0 0;
  width: 100%;
  padding: 0 15% 20% 0;
}

@media (max-width: 900px) {
  .ptn-12col .span-4 .en,
  .ptn-12col .span-4 .ja {
    height: 60px;
  }
}
/* ③ Masonry-like */
.ptn-masonry {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  grid-auto-rows: 8px;
}
.ptn-masonry .masonry {
  grid-row: span var(--h, 24);
}
/* ④ Areas */
.ptn-areas {
  grid-template-columns: 180px 1fr;
  grid-template-areas:
    "header header"
    "sidebar content"
    "footer footer";
}
.ptn-areas .area-header {
  grid-area: header;
}
.ptn-areas .area-sidebar {
  grid-area: sidebar;
}
.ptn-areas .area-content {
  grid-area: content;
}
.ptn-areas .area-footer {
  grid-area: footer;
}
/* ⑤ Sidebar fixed + fluid */
.ptn-sidebar {
  grid-template-columns: 260px 1fr;
}
.ptn-sidebar > .demo-item:nth-child(1) {
  position: sticky;
  top: 12px;
  height: max-content;
}
.ptn-sidebar > .demo-item:nth-child(n + 2) {
  min-height: 64px;
}
/* ⑥ Squares */
.ptn-squares {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.ptn-squares .demo-item {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
/* ⑦ Timeline */
.ptn-timeline {
  grid-template-columns: 220px 1fr;
}
.ptn-timeline .tl-left {
  position: sticky;
  top: 16px;
  height: max-content;
}
.tl-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.6rem;
}
.tl-list li {
  list-style: disc;
}
/* ⑧ Dense packing */
.ptn-dense {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
}
.ptn-dense .span2 {
  grid-column: span 2;
}
/* ⑨ Subgrid (progressive) */
.ptn-subgrid {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.sub-parent {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 6px;
  padding: 10px;
}
.sub-head {
  font-weight: 700;
}
.sub-list {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.4rem;
}
@supports (grid-template-columns: subgrid) {
  .sub-parent {
    grid-template-columns: subgrid;
  }
}
/* Demo visuals */
.demo-item {
  background: color-mix(in oklab, var(--brand), transparent 90%);
  border: 1px solid color-mix(in oklab, var(--fg), transparent 85%);
  border-radius: 10px;
  padding: 0.6rem;
}
.grid-item {
  padding: 0.6rem 0;
}
/* ===== お知らせ ===== */
.info {
    list-style: none;
    padding: 0;
    display: grid;
    /* gap: 10px; */
    width: 94%;
    max-width: 900px;
    margin: 0 auto;
    height: 500px;
    overflow-y: scroll;
    padding: 10px 20px;
    /* box-shadow: inset 0px 0px 10px 0px rgba(0, 0, 0, 0.3); */
}

/* Chrome, Edge, Safari */
.info::-webkit-scrollbar {
  width: 3px;
}

.info::-webkit-scrollbar-track {
  background: transparent;
}

.info::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 3px;
}

/* Firefox */
.info {
  scrollbar-width: thin;
  scrollbar-color: #888 transparent;
}

.info dl {
    display: grid;
    grid-template-columns: 7em 1fr;
    /* gap: 10px; */
    align-items: start;
    padding: 20px 0;
    margin: 0;
    border-bottom: solid 1px #f4f5f7;
}
.info dl:last-child {
    border-bottom: none;
}
.info dl dt {
    display: inline-block;
    padding-left: 0.25em;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.info dl dd {
    /* display: flex; */
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    margin-left: 0;
}
.info .date {
  font-variant-numeric: tabular-nums;
  color: var(--fg);
  margin-right: 1px;
}
.info .badge {
    display: inline-block;
    font-size: 12px;
    padding: 0.05em 1em;
    border: 1px solid color-mix(in oklab, var(--col-green), transparent 30%);
    background: color-mix(in oklab, var(--bg), transparent 92%);
    color: var(--col-green);
    letter-spacing: -0.01em;
    margin-bottom: 0.5em;
}
.info .detail {
    /* margin: 0 0 0 10px; */
    color: var(--fg);
    white-space: normal;
}
@media (max-width: 899.99px) {
  .info dl {
    grid-template-columns: 1fr;
  }
  .info .dt {
    justify-content: flex-start;
  }
  .info .badge {
    margin-top: 0.35em;
    margin-bottom: 0.35em;
}
}
/* ===== 企業理念 ===== */
#philosophy .philo-wrap,
#philosophy_1 .philo-wrap,
#philosophy_2 .philo-wrap,
[id^="philosophy_"] .philo-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
}
#philosophy .philo-figure,
#philosophy_1 .philo-figure,
#philosophy_2 .philo-figure,
[id^="philosophy_"] .philo-figure {
  /*border-radius: 14px;
  border: 1px solid color-mix(in oklab, var(--fg), transparent 85%);*/
  overflow: hidden;
}
#philosophy .philo-text,
#philosophy_1 .philo-text,
#philosophy_2 .philo-text,
[id^="philosophy_"] .philo-text {
  width: 90%;
  margin: 0.2rem auto 0.4rem;
}
#philosophy .philo-text h3,
#philosophy_1 .philo-text h3,
#philosophy_2 .philo-text h3,
[id^="philosophy_"] .philo-text h3 {
  margin: 0.2rem 0 0.4rem;
  font-size: clamp(30px, 2.6vw, 42px);
  line-height: 1.25;
  font-family: "Noto Serif JP", serif;
  color: var(--col-red);
}
#philosophy .philo-text h3 span,
#philosophy_1 .philo-text h3 span,
#philosophy_2 .philo-text h3 span,
[id^="philosophy_"] .philo-text h3 span {
  color: var(--col-red);
}
#philosophy .philo-text h4,
#philosophy_1 .philo-text h4,
#philosophy_2 .philo-text h4,
[id^="philosophy_"] .philo-text h4 {
  margin: 0.1rem 0 0.9rem;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.25;
}
#philosophy .philo-text p,
#philosophy_1 .philo-text p,
#philosophy_2 .philo-text p,
[id^="philosophy_"] .philo-text p {
  margin: 0.2rem 0 0.6rem;
  color: var(--muted);
  line-height: 2.2;
}
#philosophy .philo-text ul,
#philosophy_1 .philo-text ul,
#philosophy_2 .philo-text ul,
[id^="philosophy_"] .philo-text ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.3rem;
}
#philosophy .philo-text li,
#philosophy_1 .philo-text li,
#philosophy_2 .philo-text li,
[id^="philosophy_"] .philo-text li {
  list-style: disc;
}
@media (min-width: 900px) {
  #philosophy .philo-wrap,
  #philosophy_1 .philo-wrap,
  #philosophy_2 .philo-wrap,
  [id^="philosophy_"] .philo-wrap {
    grid-template-columns: 1fr 1.1fr; /* 左画像 / 右テキスト */
  }
}

h2,
h3 {
  color: var(--brand);
}
.news-item,
#philosophy .philo-figure,
#philosophy_1 .philo-figure,
#philosophy_2 .philo-figure,
[id^="philosophy_"] .philo-figure,
.scroll-item {
  /*border: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);*/
}
/* ===== ヘッダーエリア ===== */
.site-header {
  position: absolute;
  width: 100%;
  z-index: 98;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px 0;
}
.logo img {
  display: block;
  max-height: 48px;
}
.header-nav {
  display: flex;
  gap: 0;
  flex-direction: column;
}

.header-nav .btn-contact .ja,
.header-nav .btn-recruit .ja {
  padding: 0 0 0 4px;
  font-size: 70%;
}
/* ===== ハンバーガーメニュー表示時の調整 ===== */
@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
}
.hamburger {
  background: var(--col-green);
  color: #fff;
  border: 1px solid var(--col-green);
  background-image: url("../images/hanmenu.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.nav-open .hamburger {
  background-image: url("../images/hanmenu_off.svg");
}
/* ===== ハンバーガーメニュー展開時にヘッダーのボタンを非表示 ===== */
body.nav-open .header-nav {
  display: none !important;
}
/* ===== モバイル時は常にヘッダーのボタンを非表示 ===== */
@media (max-width: 768px) {
  .header-nav {
    display: none !important;
  }
}
/* ===== 900px以下でヘッダーのボタンを常に非表示 ===== */
@media (max-width: 900px) {
  .header-nav {
    display: none !important;
  }
}
/* ===== ローディングオーバーレイ（白背景） ===== */
#loading-overlay {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: grid;
  place-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease;
}
#loading-overlay .loading-inner img {
  width: 5.4vw;
  max-width: 105px;
  min-width: 75px;
  height: auto;
  object-fit: contain;
  margin-top: -2.5vw;
}
/* 読み込み完了でフェードアウト */
body.loading-done #loading-overlay {
  opacity: 0;
  pointer-events: none;
}
/* --- Added by assistant on 2025-09-26 07:20:42 ---
   Restrict all <section> elements to max-width: 1200px,
   except for .hero and , which remain full-bleed.
*/
section:not(.hero):not(.overlap-hero):not(.full_w) {
  /* configurable per section */
  max-width: var(--section-max, var(--section-max-default));
  margin-inline: auto;
}
/* --- Gallery updates --- */
#service {
  background-image: url("../images/top_005.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 50px 0;
  display: block;
}
#service .card {
  background: none;
  /*border-radius: 0;
  display: grid;
  grid-template-rows: auto auto;
  padding: clamp(14px, 2vw, 18px);*/
  display: flex;
  flex-direction: column;
  /* 画面全体を使いたいときは ↓ を使う */
  min-height: 10vh;
}
#service .grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(12px, 2.2vw, 24px);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 8%;
}
#service .service_text {
  /*display: block;
  height: 100%;
  box-shadow: 10px 10px 24px -4px rgba(0, 0, 0, 0.18);*/

  background-color: rgba(255, 255, 255, 0.75);
  flex: 1; /* 残り全部を取る */
  overflow: auto; /* 長文ならスクロール */
  padding: 1px;
  box-sizing: border-box;
}
#service .service_text span {
  display: inline-block;
  text-align: center;
  padding: 0 0 5px;
  width: 90%;
  margin: 10px 5%;
  border-bottom: 1px solid rgba(0, 0, 0, 1);
  font-size: clamp(16px, 2vw, 18px);
}
#service .service_text p {
  display: inline-block;
  padding: 5px 0;
  width: 80%;
  margin: 0 10% 20px;
  font-size: clamp(12px, 2.2vw, 14px);
  font-kerning: normal;
  text-align: justify;
}

/* --- Gallery 4-column override --- */
@media (min-width: 900px) {
  #service .card.md-4 {
    grid-column: span 3;
  }
}
/* --- Section width utilities ---
   Use on any <section> to override max width:
   class="section max-800" or inline style="--section-max: 960px"
*/
.max-640 {
  --section-max: 640px;
}
.max-800 {
  --section-max: 800px;
}
.max-960 {
  --section-max: 960px;
}
.max-1000 {
  --section-max: 1000px;
}
.max-1200 {
  --section-max: 1200px;
}
.max-1440 {
  --section-max: 1440px;
}
.max-fluid {
  --section-max: none;
} /* full width (still centers content if smaller) */
/* --- Service title styling --- */
.section .title-center {
  text-align: center;
  margin: clamp(8px, 2vw, 16px) 0 clamp(18px, 3vw, 28px);
}
.section h2.title-center {
  font-weight: 400;
}
.section .title-center .en {
  font-family: "DM Serif Text", serif;
  font-weight: 600;
  display: block;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1;
  padding: 0 0 10px;
  border-bottom: 2px solid var(--brand);
  letter-spacing: 0.4rem;
  width: 100%;
  margin: 0 auto;
  max-width: 360px;
}
.section .title-center .en.long {
  max-width: 900px;
}
.section .title-center .ja {
  display: block;
  margin-top: 0.2em;
  font-size: clamp(12px, 2.2vw, 14px);
  color: var(--brand);
  padding: 10px 0 0;
}
/* Footer styles (assistant) */
.site-footer {
  background: #efefef;
  padding: 24px 20px;
  border-top: 1px solid #e2e2e2;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.footer-address {
  margin: 0;
  font-style: normal;
  color: #333;
  line-height: 1.5;
}
.footer-address span.freedial {
  background-image: url("../images/freedial.svg");
  background-repeat: no-repeat;
  padding-left: 30px;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-cta-row {
  width: 100%;
  margin-top: 12px;
}
a.footer-contact-btn,
a.contact-btn {
  display: block;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  width: 100%;
  margin: auto;
  padding: 0.6rem 3rem;
  font-weight: bold;
  border: 2px solid var(--col-red);
  background-color: var(--bg);
  color: #fff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.fx-fade-slide2 a.contact-btn {
  display: block;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  width: 100%;
  margin: auto;
  padding: 0.6rem 3rem;
  font-weight: bold;
  border: 2px solid var(--col-red);
  background-color: var(--bg);
  color: #fff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
a.footer-contact-btn::before,
a.contact-btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 110%;
  height: 100%;
  background-color: var(--col-red);
  transform: translateX(0);
  color: #fff;
  transition: all 0.3s;
  z-index: -1;
}
a.footer-contact-btn:hover::before,
a.contact-btn:hover::before {
  transform: translateX(-100%);
}
a.footer-contact-btn:hover,
a.contact-btn:hover {
  color: var(--col-red);
}
.contact-btn {
  position: absolute !important;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  display: inline-block;

  border-radius: 0;
  text-decoration: none;
  background: #111;
  color: var(--bg);
  font-weight: 400;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  width: 70%;
  max-width: 340px;
  text-align: center;
}

a.btn-contact {
  display: block;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  width: 100%;
  margin: auto;
  padding: 0.7rem 2rem;
  font-weight: bold;
  border: 1px solid var(--col-green);
  background-color: var(--col-red);
  color: var(--bg);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
a.btn-contact::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 110%;
  height: 110%;
  background-color: var(--col-green);
  transform: translateX(0);
  color: var(--bg);
  transition: all 0.3s;
  z-index: -1;
}
a.btn-contact:hover::before {
  transform: translateX(-100%);
}
a.btn-contact:hover {
  color: var(--bg);
  border: 1px solid var(--col-red);
}

a.btn-recruit {
  display: block;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  width: 100%;
  margin: auto;
  padding: 0.7rem 2rem;
  font-weight: bold;
  border: 1px solid var(--col-green);
  background-color: var(--col-red);
  color: var(--col-green);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
a.btn-recruit::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 110%;
  height: 110%;
  background-color: var(--bg);
  transform: translateX(0);
  color: var(--col-green);
  transition: all 0.3s;
  z-index: -1;
}
a.btn-recruit:hover::before {
  transform: translateX(-100%);
}
a.btn-recruit:hover {
  color: var(--bg);
  border: 1px solid var(--col-red);
}

.footer-menu-btn {
  width: 100%;
  text-align: left;
  padding-bottom: 1px; /* テキストと下線の間隔 */
  background-image: linear-gradient(var(--col-red), var(--col-red));
  background-repeat: no-repeat;
  background-position: bottom left; /* 下線の初期位置 */
  background-size: 0 1px; /* 下線のサイズ（横幅、高さ） */
  transition: background-size 0.3s;
}

.footer-menu-btn:hover {
  background-position: bottom left; /* 下線のホバー時位置 */
  background-size: 100% 2px; /* 下線の横幅を100%にする */
}

.copyright-bar {
  background: #ffffff;
  border-top: 1px solid #eaeaea;
}
.copyright-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  color: #555;
  text-align: center;
}
/* Center '画像' images (assistant) */
#service .card img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}
/* CONTACT section (assistant) */
.contact-section {
  padding: 40px 20px;
}
.contact-container {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}
.contact-tel {
  font-size: clamp(32px, 2vw, 36px);
  margin: 30px auto 16px;
  width: 80%;
}
.contact-tel a {
  text-decoration: none;
  color: var(--col-red);
}
.contact-container span.freedial {
  background-image: url("../images/tel01.svg");
  background-repeat: no-repeat;
  padding-left: 60px;
}
.contact-visual {
  position: relative;
  margin: 0 auto 36px;
}
.contact-visual img {
  display: block;
  width: 100%;
  max-width: 500px;
  object-fit: cover;
  margin: 0 auto;
}
.recruit-photo2 {
  position: relative;
  width: 100%;
}
.recruit-photo2 img {
  position: absolute;
  right: -120px;
  width: 270px;
  bottom: 0;
  transform: translate(-50%, 50%);
}

.botom_hr {
  background-image: url("../images/anime01.gif");
  background-position: right bottom;
  background-repeat: no-repeat;
  background-size: auto;
  border-bottom: 2px solid #9fa0a0;
  padding: 30px;
}
/* ===== Below-Hero Triple Grid (Consolidated) ===== */
/* Keep hero beneath the overlapping section */
.hero {
  position: relative;
  z-index: 1;
}
/* Full-bleed breakout: Desktop only; Mobile keeps normal width */
@media (min-width: 900px) {
  .section.full-bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
}
@media (max-width: 899.98px) {
  .section.full-bleed {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    top: -100px;
  }
}
/* Reliable overlap over the hero (~50px) */
.section.overlap-hero {
  position: relative;
  --overlap-y: clamp(-150px, -0vw, -0px);
  transform: translateY(var(--overlap-y));
  z-index: 2;
  margin-top: 0;
}
/* Triple grid base */
.triple-grid {
  display: grid;
  align-items: flex-end;
  gap: 0;
}
/* Images at intrinsic size (no upscaling) but don't exceed container */
.triple-grid picture {
  display: block;
}
.triple-grid picture img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: auto;
}
/* Text column */
.triple-grid .text h3 {
  max-width: 100ch;
  text-align: center;
  line-height: 1.1;
  white-space: nowrap;
  font-size: clamp(40px, 4cqw, 86px);
  font-family: "BBH Sans Bogle", sans-serif;
  font-weight: 400;
  margin: 0 2%;
}
.triple-grid .text p {
  max-width: 100ch;
  text-align: center;
  font-size: clamp(20px, 1vw, 24px);
}
.triple-grid .grid-text {
  background: color-mix(in oklab, var(--bg), transparent 100%);
}
.triple-grid .grid-text .red {
  color: var(--col-red);
}

@media (max-width: 899.98px) {
  .triple-grid .text h3 {
    font-size: clamp(70px, 4cqw, 86px);
  }
}

@media (max-width: 559.98px) {
  .triple-grid .text h3 {
    font-size: clamp(35px, 4cqw, 86px);
  }
}

/* Desktop: image | text | image */
@media (min-width: 900px) {
  .triple-grid {
    grid-template-columns: auto minmax(320px, 1fr) auto;
    justify-content: space-between;
  }
}
/* Mobile: vertical stack */
@media (max-width: 899.98px) {
  .triple-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: left;
  }
  .triple-grid .text {
    justify-self: stretch;
  }
  .ptn-12col .span-9 {
    grid-column: span 9;
    margin: 50px 5% 0;
  }
}
/* Avoid horizontal scroll caused by full-bleed breakout */
html,
body {
  overflow-x: clip;
}
/* ===== Hero: Mobile single-column with full-width picture ===== */
@media (max-width: 899.98px) {
  .hero {
    grid-template-columns: 1fr !important;
  }
  .hero picture {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
  .hero picture img {
    width: 100%;
    height: auto;
    display: block;
  }
}
/* ===== Hero timeline nav (desktop) ===== */
@media (min-width: 900px) {
  .hero-nav {
    padding-right: clamp(8px, 1vw, 12px);
  }
  .hero-nav .timeline-nav {
    list-style: none;
    margin: 0;
    padding: 30px 0 150px 28px;
    position: relative;
    /*background: color-mix(in oklab, var(--bg), transparent 20%);*/
    width: 75%;
  }
  .hero-nav .timeline-nav::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: color-mix(in oklab, var(--fg), transparent 70%);
  }
  .hero-nav .timeline-nav li {
    position: relative;
    margin: 0;
    padding-left: 0;
  }
  .hero-nav .timeline-nav li::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 1.3em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--fg);
    box-shadow: 0 0 0 2px #fff; /* create a white rim */
  }
  .hero-nav .timeline-nav a {
    text-decoration: none;
    color: var(--fg);
    display: block;
    line-height: 1.2;
  }
  .hero-nav .timeline-nav a:hover .en,
  .hero-nav .timeline-nav a:focus .en {
    text-decoration: underline;
  }
  .hero-nav .timeline-nav .en {
    font-size: clamp(14px, 1.2vw, 18px);
    display: block;
    font-weight: 600;
  }
  .hero-nav .timeline-nav .ja {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    /*color: var(--muted);*/
    letter-spacing: 0.02em;
  }
}

/* ===== triple-grid: desktop column ratio 40 / 30 / 30 ===== */
@media (min-width: 900px) {
  .triple-grid {
    grid-template-columns: 31% 42% 27% !important;
  }
}

/* ===== hero-nav: viewport-synced transform (clamp + vw) ===== */
@media (min-width: 900px) {
  .hero-nav {
    /* X/Yともに最小/可変/最大で滑らかに追従 */
    --shift-x: clamp(24px, 7vw, 110px);
    --shift-y: clamp(20px, 4vw, 20px);
    transform: translate(var(--shift-x), var(--shift-y));
    z-index: 10;
  }
}

/* ===== overlap-hero: viewport-synced translateY (clamp + vw) ===== */

.section.overlap-hero {
  /* -150px 〜 -80px の範囲で画面幅に追従。中央感度は -10vw
  --overlap-y: clamp(-210px, -12vw, -80px);
  transform: translateY(var(--overlap-y)); */
  position: absolute;
  top: clamp(450px, 4vw, 470px);
  left: 0;
}
._sp {
  display: none !important;
}
/* ===== [FIX-STRONG] #recruit: smartphone & tablet => single column (<= 899.98px) ===== */
@media (max-width: 899.98px) {
  ._pc {
    display: none !important;
  }
  ._sp {
    display: block !important;
  }
  .ptn-12col .span-8 .ja {
    font-size: clamp(12px, 1.2vw, 14px);
    margin: 0 0 0;
    color: var(--brand);
    padding-right: 10px;
    width: 60%;
    height: auto;
    padding: 10px 0 0 50px;
  }
  #service .grid {
    grid-template-columns: repeat(6, 1fr);
  }
  #recruit .grid.ptn-12col {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  #recruit .grid.ptn-12col > * {
    grid-column: 1 / -1 !important;
  }
  #recruit .ptn-12col .span-3 .span-in2 {
    padding-bottom: 10%;
  }

  #recruit .grid.ptn-12col.recruit-stack {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  #recruit .grid.ptn-12col.recruit-stack > * {
    grid-column: 1 / -1 !important;
  }

  #recruit .recruit-photo2 {
    position: relative;
  }
  #recruit .recruit-photo2 img {
    position: absolute;
    right: -120px;
    width: clamp(210px, 0.5vw, 240px);
    bottom: 0;
    transform: translate(-50%, 30%);
  }
  .section.overlap-hero {
    position: absolute;
    top: clamp(330px, 2vw, 370px);
    left: 0;
  }
}
/* ===== [FIX] #service: force mobile 2-column (<560px) ===== */
@media (max-width: 559.98px) {
  #service .grid {
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 12px;
    padding: 0 20%;
  }
  #service .grid > * {
    grid-column: auto !important;
  }
  #recruit .recruit-photo2 img {
    width: clamp(180px, 0.5vw, 240px);
    bottom: 0;
    transform: translate(-50%, 50%);
  }
  .grid-01 {
    grid-template-columns: repeat(2, 1fr);
  }
  .ptn-12col .span-8 .ja {
    width: 60%;
    padding: 10px 0 0 20px;
  }
  .ptn-12col .span-8 .en {
    padding: 0 0 10px 20px;
  }
  .footer-left {
    order: 2;
  }
  .section.overlap-hero {
    position: absolute;
    top: clamp(530px, 2vw, 570px);
    left: 0;
  }
}

/* === Parallax MASK #13 merged on 2025-10-05 === */

/* Media placeholder */

/* Observer base states
.observe{opacity:.001; transform: translate3d(0,10px,0) scale(.98); filter: blur(2px)}
body.loading-done .observe.in{opacity:1; transform:none; filter:none}

.observe{ opacity:0;}
body.loading-done .observe.in{ opacity:1;}
 */
/* 1) Fade In */
.fx-fade {
  transition: opacity 0.9s ease-out;
}

/* 2) Slide Up */
.fx-slide-up {
  transition:
    1s cubic-bezier(0.21, 1, 0.21, 1),
    opacity 3.9s;
}
body.loading-done .fx-slide-up.in {
  transform: translate3d(0, 40px, 0);
}

/* 3) Slide Down */
.fx-slide-down {
  transition:
    1s cubic-bezier(0.21, 1, 0.21, 1),
    opacity 0.9s;
}
body.loading-done .fx-slide-down.in {
  transform: translate3d(0, -40px, 0);
}

/* 4) Slide Left */
.fx-slide-left {
  transition:
    transform 1s cubic-bezier(0.21, 1, 0.21, 1),
    opacity 0.9s;
}
.fx-slide-left:not(.in) {
  transform: translate3d(40px, 0, 0);
}

/* 5) Slide Right */
body.loading-done .fx-slide-right.in {
  transition:
    transform 1s cubic-bezier(0.21, 1, 0.21, 1),
    opacity 0.9s;
}
.fx-slide-right:not(.in) {
  transform: translate3d(-40px, 0, 0);
}

/* 6) Zoom In */
.fx-zoom-in {
  transition:
    transform 1s ease-out,
    opacity 0.9s;
}
.fx-zoom-in:not(.in) {
  transform: scale(1.2);
}

/* 7) Zoom Out */
.fx-zoom-out {
  transition:
    transform 1s ease-out,
    opacity 0.9s;
}
.fx-zoom-out:not(.in) {
  transform: scale(0.8);
}

/* 8) Rotate In */
.fx-rotate {
  transform-origin: 50% 60%;
  transition:
    transform 1s ease-out,
    opacity 0.9s;
}
.fx-rotate:not(.in) {
  transform: rotate(-6deg) scale(1.05);
}

/* 9) Flip Y */
.fx-flip-y {
  transform-style: preserve-3d;
  perspective: 800px;
  transition:
    transform 1s ease,
    opacity 0.9s;
}
.fx-flip-y:not(.in) {
  transform: rotateY(-12deg) translateZ(0) scale(0.98);
}

/* 10) Blur In */
.fx-blur {
  transition:
    filter 1.1s ease,
    opacity 0.9s,
    transform 0.9s ease;
}
.fx-blur:not(.in) {
  filter: blur(9px);
  transform: scale(1.06);
}

/* 11) Clip Circle Reveal */
.fx-clip-circle {
  transition:
    clip-path 1.1s ease-in-out,
    opacity 0.8s;
}
.fx-clip-circle:not(.in) {
  clip-path: circle(0% at 50% 50%);
}
body.loading-done .fx-clip-circle.in {
  clip-path: circle(120% at 50% 50%);
}

/* 12) Wipe Down */
.fx-wipe-down1 {
  /*transform-origin: 50% 0;*/
  transition: all 1s ease-in;
  clip-path: inset(0 0 100% 0);
}
body.loading-done .fx-wipe-down1.in {
  clip-path: inset(0 0 0 0);
}

.fx-wipe-down {
  opacity: 1;
  transition: all 1s ease-in;
  will-change: opacity, transform;
  clip-path: inset(0 0 100% 0);
}
body.loading-done .in .fx-wipe-down {
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

/* 13) Mask (diagonal) */
.fx-mask {
  opacity: 0;
  transition: all 1s ease-in;
  will-change: opacity, transform;
  clip-path: inset(0 100% 0 0);
}
body.loading-done .in .fx-mask {
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

.fx-fade-slide {
  opacity: 0;
  transition: all 1s ease-in;
  will-change: opacity, transform;
  transform: translateX(30px);
}
body.loading-done .in .fx-fade-slide {
  opacity: 1;
  transform: translateX(0);
}

.fx-fade-slide2 {
  opacity: 0;
  transition: all 1s ease-in;
  will-change: opacity, transform;
  transform: translateY(20px);
}
body.loading-done .in .fx-fade-slide2 {
  opacity: 1;
  transform: translateY(0);
}

.fx-delay10 {
  transition-delay: 0.1s;
}
.fx-delay20 {
  transition-delay: 0.2s;
}
.fx-delay30 {
  transition-delay: 0.3s;
}
.fx-delay40 {
  transition-delay: 0.4s;
}
.fx-delay50 {
  transition-delay: 0.5s;
}
.fx-delay60 {
  transition-delay: 0.6s;
}
.fx-delay70 {
  transition-delay: 0.7s;
}
.fx-delay80 {
  transition-delay: 0.8s;
}
.fx-delay90 {
  transition-delay: 0.9s;
}
.fx-delay100 {
  transition-delay: 1s;
}
.fx-delay110 {
  transition-delay: 1.1s;
}
.fx-delay120 {
  transition-delay: 1.2s;
}
.fx-delay130 {
  transition-delay: 1.3s;
}
.fx-delay140 {
  transition-delay: 1.4s;
}
.fx-delay150 {
  transition-delay: 1.5s;
}
.fx-delay160 {
  transition-delay: 1.6s;
}
.fx-delay170 {
  transition-delay: 1.7s;
}
.fx-delay180 {
  transition-delay: 1.8s;
}
.fx-delay190 {
  transition-delay: 1.9s;
}
.fx-delay200 {
  transition-delay: 2s;
}

/* 14) Staggered tiles */
.tiles {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 2px;
}
.tile {
  background: linear-gradient(135deg, #2e3b4c, #1a2431);
  border: 1px solid rgba(255, 255, 255, 0.04);
  opacity: 0.001;
  transform: translateY(8px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
body.loading-done .tile.in {
  opacity: 1;
  transform: none;
}

/* 15) Ken Burns */
.fx-kenburns {
  transition:
    transform 3.5s ease,
    opacity 1s ease;
}
body.loading-done .fx-kenburns.in {
  transform: scale(1.15) translate3d(6px, -6px, 0);
}

/* Parallax helpers */
.parallax {
  will-change: transform;
}

/* 16) Parallax Background (slower bg) */
.bg-parallax {
  background-attachment: fixed;
}

/* 17) Parallax Foreground (faster fg) */
.fg-parallax {
}

/* 18) Depth Layers */
.depth {
  perspective: 900px;
}
.depth .layer {
  position: absolute;
  inset: 0;
}
.depth .layer[data-z] {
  transform: translateZ(var(--z)) scale(calc(1 + (var(--z) * -1) / 900));
  will-change: transform;
}

/* 19) Sticky Reveal */
.stickyWrap {
  position: relative;
  height: 120vh;
}
.sticky {
  position: sticky;
  top: 80px;
  height: 260px;
}

/* 20) Sprite (bg position scrub) */
.sprite {
  background-size: auto 100%;
  background-repeat: repeat-x;
  background-image: linear-gradient(90deg, #2b3646 10px, #3a475b 10px, #3a475b 20px, #2b3646 20px);
  transition: opacity 0.8s ease;
}

/* Utility */
.note {
  font-size: 12px;
  color: #9ca7bb;
  padding: 0 18px 14px;
}

/* === Injected: loading overlay + deferred animation control === */
.loading-overlay,
.loading {
  opacity: 1;
  transition: opacity 1s ease;
  z-index: 9999;
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loading-overlay.fade-out,
.loading.fade-out {
  opacity: 0;
  pointer-events: none;
}
a.btn_off {
  pointer-events: none;
  color: var(--col-red) !important;
}

img.site_logo {
  width: 100%;
  max-width: 324px;
}
:root {
  --ink: #1a1a1a;
  --muted: #666;
  --contact: #0f5a36; /* 下部バーの緑 */
  --line: #9a9a9a; /* 十字ライン */
  --hover: rgba(15, 90, 54, 0.28); /* ホバー時の薄い強調 */
  --focus: #0f5a36;
}

* {
  box-sizing: border-box;
}
/*
html,
.wrap {
  width: min(960px, 100%);
}
*/
/* ======= 2×2 グリッド（各セル=ボタン） ======= */
.nav-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  aspect-ratio: 3 / 1;
  margin: 80px 0 0 0;
}

/* 中央の十字ライン */
.nav-grid::before,
.nav-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.nav-grid::before {
  /* 横線 */
  border-top: 2px solid var(--brand);
  top: 50%;
  transform: translateY(-0.5px);
}
.nav-grid::after {
  /* 縦線 */
  border-left: 2px solid var(--brand);
  left: 50%;
  transform: translateX(-0.5px);
}

/* 各セルを a 要素にして全面クリック可能に */
.cell {
  position: relative;
}
.cell span.en {
  font-size: 180%;
  line-height: 1;
}
.cell span.jp {
  font-size: 90%;
}
.cell > a {
  position: absolute;
  inset: 0;
  font-weight: 400;
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
  color: inherit;
  background: transparent; /* ピンク背景なし */
  cursor: pointer;
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
  border: 1px solid transparent; /* ホバー時だけ枠線を出す */
}
.cell > a:hover {
  background: var(--hover);
  /*transform: translateY(-1px);*/
}

/* Recruit だけ英字を緑アクセントに（画像準拠） */
.accent {
  color: #0a8c4a;
}

/* ======= 下部の Contact バー ======= */
.contact_nav {
  margin-top: 28px;
  min-height: 98px;
  width: 100%;
}
.contact_nav a {
  text-decoration: none;
  font-weight: 800;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  line-height: 1.05;
  color: #fff;
  width: 100%;
  background-color: var(--col-green);
  transition: all 0.18s ease;
}
.contact_nav a:hover {
  filter: saturate(1.05);
}

.wrap h3 {
  text-align: center;
  font-size: 150%;
}
.wrap .contact-tel {
  text-align: center;
  line-height: 1;
}

.wrap .contact_nav {
  margin-top: 2px;
  min-height: 58px;
  width: 100%;
}

@media (max-width: 560px) {
  .nav-grid {
    min-height: auto;
  }
}

/* ===== Mini logo shown at top-left when hamburger menu is open ===== */
#menu-logo-s {
  position: fixed;
  top: 22px;
  left: 15px;
  width: auto;
  height: auto;
  max-width: 250px;
  z-index: 99; /* above side-nav (300) and scrim (200) */
  opacity: 1;
  pointer-events: none;
}
@media (min-width: 900px) {
  /* Keep it visible on desktop when menu is open */
  #menu-logo-s,
  .menu-bg {
    display: none;
  }
}
@media (min-width: 1600px) {
  .img-down {
    transform: translateY(clamp(100px, 1.2vw, 150px));
  }
}

.menu-bg {
  position: fixed;
  width: 100%;
  height: 80px;
  background-color: color-mix(in oklab, var(--bg), transparent 30%);
  z-index: 95;
}

.instagram-in {
  max-width: 850px;
  width: 90%;
  margin: 120px auto;
}

.pp_text {
  padding: 15px 25px;
  background-color: beige;
  margin-bottom: 50px;
}

.contact_txt_r {
  color: var(--col-red);
  font-weight: 500;
  margin-bottom: 20px;
}
