@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@500;600;700&family=Noto+Sans+JP:wght@400;500;700&display=swap");

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f8f7f5;
  --color-text: #4b4b4b;
  --color-text-muted: #595959;
  --color-line: #e6e3de;
  --color-accent: #fb855f;
  --color-accent-2: #5ec9ec;
  --color-accent-3: #f7bf45;
  --font-mincho:
    "游明朝体", "Yu Mincho", YuMincho, "ヒラギノ明朝 Pro",
    "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
  --font-sans:
    "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --max-width: 1140px;
  --content-width: 720px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.site-header .container {
  max-width: none;
  padding: 0 40px;
}

/* ヘッダー(2段組:上段=ロゴ+電話+ボタン、下段=ナビ) */
.site-header {
  border-bottom: 1px solid var(--color-line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.header-top .logo-link {
  justify-self: start;
}
.header-top nav {
  justify-self: center;
}
.header-top .header-right {
  justify-self: end;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: inherit;
  font-weight: normal;
}

.logo-link img {
  height: 40px;
  width: auto;
  mix-blend-mode: multiply;
}

.logo-link .logo-text {
  line-height: 1.5;
}

.logo-link .logo-text .company-name {
  font-family: var(--font-mincho);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  display: block;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.logo-link:hover .logo-text .company-name {
  color: var(--color-accent);
}

.logo-link .logo-text .company-sub {
  font-size: 11px;
  color: var(--color-text-muted);
  display: block;
  text-align: right;
  letter-spacing: 0.05em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-tel {
  display: none;
}

.header-tel .row {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  line-height: 1.2;
}

.header-tel .row svg {
  width: 14px;
  height: 14px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.header-tel .num {
  font-family: var(--font-mincho);
  font-size: 21px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-tel .num:hover {
  color: var(--color-accent);
}

.header-tel .hours {
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--color-text-muted);
  white-space: nowrap;
  text-align: right;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.nav-list li {
  display: flex;
  align-items: center;
}

.nav-list li + li::before {
  content: "|";
  color: var(--color-line);
  margin: 0 24px;
}

.nav-list a {
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.nav-list a:hover,
.nav-list .current-menu-item a {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.header-cta {
  display: inline-block;
  padding: 11px 22px;
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #fff;
  background: var(--color-accent-3);
  border-radius: 999px;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.header-cta:hover {
  opacity: 0.85;
}

.header-cta-short {
  display: none;
}

@media (min-width: 1020px) {
  .header-tel {
    display: block;
  }
}

/* ハンバーガーメニュー(モバイルのみ表示。チェックボックス+labelでJS不使用) */
.nav-toggle-input {
  display: none;
}

.nav-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 26px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-btn span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    background 0.2s ease;
}

.nav-toggle-btn:hover span {
  background: var(--color-accent);
}

#nav-toggle:checked ~ .header-right .nav-toggle-btn span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#nav-toggle:checked ~ .header-right .nav-toggle-btn span:nth-child(2) {
  opacity: 0;
}

#nav-toggle:checked ~ .header-right .nav-toggle-btn span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* フッター */
.site-footer {
  border-top: 1px solid var(--color-line);
  margin-top: 0;
  padding: 64px 0 40px;
  font-size: 13px;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
}

.site-footer .footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 28px 160px;
}

.site-footer .footer-info {
  text-align: center;
}

.site-footer .footer-company {
  font-family: var(--font-mincho);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 14px;
  letter-spacing: 0.03em;
}

.footer-company a {
  transition: color 0.2s ease;
}
.footer-company a:hover {
  color: var(--color-accent);
}

.site-footer .footer-add {
  margin: 0;
  line-height: 2;
}

.footer-add a {
  transition: color 0.2s ease;
}
.footer-add a:hover {
  color: var(--color-accent);
}

.site-footer .footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  text-align: center;
}

.site-footer .footer-nav a:hover {
  color: var(--color-accent);
}

.site-footer .copyright {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--color-line);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  text-align: center;
}

/* ヒーロー */
.hero {
  position: relative;
  width: 100%;
  height: 640px;
}

.hero-image-full {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-image-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-full::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(28, 24, 20, 0.7) 0%,
    rgba(28, 24, 20, 0.25) 38%,
    rgba(28, 24, 20, 0) 62%
  );
}

.hero-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 32px 56px;
  z-index: 1;
}

.hero-overlay .inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-overlay .eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--color-accent-3);
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-overlay h1 {
  font-family: var(--font-mincho);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.7;
  color: #fff;
  margin: 0 0 26px;
}

.hero-overlay .btn {
  border-color: #fff;
  color: #fff;
}

.hero-overlay .btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 860px) {
  .hero {
    height: 78vw;
    min-height: 420px;
  }
  .hero-overlay {
    padding: 0 20px 40px;
  }
  .hero-overlay h1 {
    font-size: 24px;
  }
}

/* ボタン */
.btn {
  display: inline-block;
  padding: 13px 30px;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

.btn-primary {
  background: var(--color-accent-3);
  color: #fff;
  border-color: var(--color-accent-3);
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
}

.btn-secondary:hover {
  background: #fff3ee;
}

.btn-blue {
  background: var(--color-accent-2);
  color: #fff;
  border-color: var(--color-accent-2);
}

.btn-blue:hover {
  opacity: 0.85;
}

.button-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* セクション共通 */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-flush-top {
  padding-top: 0;
}

.section-head {
  margin-bottom: 56px;
}

.section-head--center {
  text-align: center;
}

.section-head--tight {
  margin-bottom: 0;
}

.section-head .eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--color-accent-2);
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  padding-left: 22px;
}

.section-head .eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 2px;
  background: var(--color-accent);
}

.section-head h2 {
  font-family: var(--font-mincho);
  font-weight: 600;
  font-size: 28px;
  margin: 0;
}

.section-head p.desc {
  margin-top: 18px;
  color: var(--color-text-muted);
  max-width: var(--content-width);
}

/* 見出しから3つの理由への接続線(トーナメント状) */
/* 3つの強み(見出しから1本の線が下り、強み全体を貫く横線から各枠へ分岐する。
   横線・縦線ともulとli自身が持つ疑似要素だけで完結させ、別要素とのズレが起きないようにしている) */
.strengths {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 72px 0 0;
  padding: 40px 0 0;
  border-top: 2px solid var(--color-accent);
}

.strengths::before {
  content: "";
  position: absolute;
  top: -72px;
  left: 50%;
  width: 2px;
  height: 72px;
  background: var(--color-accent);
  transform: translateX(-50%);
}

.strengths li {
  position: relative;
  list-style: none;
  background: var(--color-bg-alt);
  border-radius: 10px;
  padding: 36px 28px;
  box-shadow: 0 18px 40px rgba(20, 16, 12, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.strengths li::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 50%;
  width: 2px;
  height: 40px;
  background: var(--color-accent);
  transform: translateX(-50%);
}

.strengths li:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 52px rgba(20, 16, 12, 0.4);
}

.strengths li a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.strengths p {
  margin: 0;
  font-family: var(--font-mincho);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.8;
  color: var(--color-text);
  transition: color 0.2s ease;
}

.strengths li:hover p {
  color: var(--color-accent);
}

/* トップ:ご相談の入口(設計監理/設計施工) */
.entry-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.entry-card {
  display: block;
  background: var(--color-bg);
  border-radius: 10px;
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(20, 16, 12, 0.14);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.entry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(20, 16, 12, 0.2);
}

.entry-card h3 {
  font-family: var(--font-mincho);
  font-size: 19px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 12px;
  transition: color 0.2s ease;
}

.entry-card:hover h3 {
  color: var(--color-accent-2);
}

.entry-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* お知らせ(コンパクト帯) */
.news-compact {
  border-bottom: 1px solid var(--color-line);
}

.news-compact .container {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.news-compact__label {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-accent-2);
  flex-shrink: 0;
  padding-top: 3px;
}

.news-compact__empty {
  margin: 0;
  font-size: 13.5px;
  color: var(--color-text-muted);
}

.news-compact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  max-height: 210px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d0d0d0 var(--color-bg-alt);
}

.news-compact-list::-webkit-scrollbar {
  width: 5px;
}
.news-compact-list::-webkit-scrollbar-track {
  background: var(--color-bg-alt);
}
.news-compact-list::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 3px;
}

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

.news-compact-list a {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 6px 0;
  font-size: 13.5px;
}

.news-compact-list a time {
  color: var(--color-text-muted);
  font-size: 12px;
  width: 6.5em;
  flex-shrink: 0;
}

.news-compact-list a .title {
  flex: 1;
  transition: color 0.2s ease;
}

.news-compact-list a:hover .title {
  color: var(--color-accent-2);
}

.news-compact-list a::after {
  content: "\2192";
  color: var(--color-accent-2);
  font-size: 13px;
  flex-shrink: 0;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-line);
}

.news-list li {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-line);
  font-size: 14px;
}

.news-list time {
  color: var(--color-text-muted);
  flex-shrink: 0;
  width: 7em;
}

/* 注目施工事例(トップ) */
.featured-work {
  position: relative;
  overflow: hidden;
}

.featured-work img {
  width: 100%;
  height: 62vh;
  min-height: 380px;
  max-height: 600px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.featured-work:hover img {
  transform: scale(1.03);
}

.featured-work .fw-caption {
  position: absolute;
  left: 32px;
  bottom: 32px;
  background: #fff;
  padding: 24px 28px;
  max-width: 360px;
}

.featured-work .fw-caption .eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--color-accent-2);
  font-weight: 700;
  margin-bottom: 10px;
}

.featured-work .fw-caption h3 {
  font-family: var(--font-mincho);
  font-size: 19px;
  margin: 0 0 8px;
}

.featured-work .fw-caption p {
  margin: 0;
  font-size: 13.5px;
  color: var(--color-text-muted);
}

/* 締めのボタン2つ */
.closing-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 88px 0;
  border-top: 1px solid var(--color-line);
}

.closing-buttons .btn {
  padding: 16px 40px;
  font-size: 14px;
}

/* 導線カード */
.link-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.link-card {
  display: block;
}

.link-card .thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 22px;
  border-radius: 6px;
}

.link-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.link-card:hover .thumb img {
  transform: scale(1.05);
}

.link-card h3 {
  font-family: var(--font-mincho);
  font-size: 20px;
  margin: 0 0 10px;
}

.link-card .more {
  display: inline-block;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--color-accent);
  letter-spacing: 0.05em;
}

.link-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
}

/* ページ共通ヒーロー(下層ページ):ナビと重複するため簡潔に */
.page-hero {
  padding: 32px 0;
  border-bottom: 1px solid var(--color-line);
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-mincho);
  font-weight: 600;
  font-size: 21px;
  margin: 0;
  color: var(--color-text);
}

/* About: 代表挨拶 */
.profile {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: start;
}

.portrait-frame {
  aspect-ratio: 3 / 4;
  background: var(--color-bg-alt);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 13px;
  text-align: center;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-copy {
  text-align: center;
}

.profile-copy .name-block {
  margin-top: 36px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 16px;
}

.profile-copy .role {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.profile-copy .name {
  font-family: var(--font-mincho);
  font-size: 17px;
  font-weight: 600;
}

.profile-copy p {
  margin: 0 0 24px;
}

.profile-copy .greeting-title {
  font-family: var(--font-mincho);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-text);
  margin-bottom: 28px;
}

/* 会社概要テーブル */
.info-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--color-line);
  font-size: 15px;
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 20px 16px;
  border-bottom: 1px solid var(--color-line);
  vertical-align: top;
}

.info-table th {
  width: 11em;
  color: var(--color-text-muted);
  font-weight: 500;
}

.info-table a {
  transition: color 0.2s ease;
}
.info-table a:hover {
  color: var(--color-accent);
}

/* 事業紹介: カテゴリブロック */
.service-block {
  border-top: 1px solid var(--color-line);
  padding: 64px 0;
  scroll-margin-top: 90px;
}

.service-block:last-child {
  border-bottom: 1px solid var(--color-line);
}

.service-block .service-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.service-block h2 {
  font-family: var(--font-mincho);
  font-size: 23px;
  margin: 0;
  color: var(--color-text);
}

.service-block h2 .service-subtitle {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-text-muted);
}

.service-block .service-desc {
  color: var(--color-text);
  margin: 0;
}

.check-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.check-items li {
  background: var(--color-bg-alt);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 12.5px;
  color: var(--color-text);
}

.pillar-photo {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  margin-bottom: 28px;
}

.pillar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0 32px;
  margin: 28px 0 0;
  padding: 0;
}

.process-flow li {
  position: relative;
  list-style: none;
  text-align: center;
  padding: 20px 14px;
  background: var(--color-bg);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(20, 16, 12, 0.12);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.process-flow li:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(20, 16, 12, 0.18);
}

.process-flow li:not(:last-child)::after {
  content: "\2192";
  position: absolute;
  right: -26px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: 14px;
}

.process-flow .step-label {
  display: block;
  font-family: var(--font-mincho);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.process-flow li:hover .step-label {
  color: var(--color-accent-2);
}

.process-flow .step-desc {
  display: block;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.service-note {
  margin: 20px 0 0;
  font-size: 12.5px;
  color: var(--color-text-muted);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.case-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.case-grid.cols-1 {
  grid-template-columns: 1fr;
  max-width: 480px;
}

.case-card .thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 16px;
  border-radius: 6px;
}

.case-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.case-card:hover .thumb img {
  transform: scale(1.06);
}

.case-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* 事業紹介: 写真スタック(ホバーでサムネイル表示 → クリックで拡大) */
.photo-stack {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--color-bg-alt);
}

.photo-stack .photo-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.photo-stack:hover .photo-main {
  transform: scale(1.06);
}

.photo-stack::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 12, 0);
  transition: background 0.25s ease;
}

.photo-stack:hover::after {
  background: rgba(20, 16, 12, 0.14);
}

.photo-stack .photo-thumbs {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 6px;
  padding: 10px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.photo-stack:hover .photo-thumbs {
  opacity: 1;
  transform: translateY(0);
}

.photo-stack .photo-thumbs img {
  width: 26%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid #fff;
  box-shadow: 0 6px 16px rgba(20, 16, 12, 0.32);
}

.photo-stack .photo-hint {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 3px;
  background: rgba(20, 16, 12, 0.55);
  color: #fff;
  font-size: 11px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.photo-stack:hover .photo-hint {
  opacity: 1;
}

/* ライトボックス(JS不使用、:target のみで実装) */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 13, 11, 0.94);
  padding: 64px 24px;
  overflow-y: auto;
}

.lightbox:target {
  display: block;
}

.lightbox-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
  align-items: center;
  justify-content: center;
}

.lightbox-inner img {
  width: 100%;
  border-radius: 6px;
  display: block;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  text-decoration: none;
  line-height: 1;
  transition: background 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* お問い合わせフォーム */
.contact-intro {
  text-align: center;
  max-width: var(--content-width);
  margin: -24px auto 44px;
  color: var(--color-text-muted);
}

.contact-form {
  max-width: var(--content-width);
  margin: 0 auto;
  text-align: left;

  & fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }

  & .wpcf7 {
    max-width: var(--content-width);
    margin: 0 auto;
    text-align: left;
  }

  & .wpcf7-form {
    margin: 0;
  }

  & .wpcf7-form-control-wrap {
    display: block;
  }

  & .wpcf7-not-valid-tip {
    margin-top: 6px;
    color: #c00;
    font-size: 12px;
  }

  & .wpcf7-response-output {
    margin: 20px 0 0;
    padding: 12px 16px;
    border: 1px solid var(--color-line);
    color: var(--color-text-muted);
    font-size: 13px;
  }

  & .confirm_button,
  & .back_button,
  & .submit_button {
    cursor: pointer;
    border: 1px solid var(--color-accent-2);
    border-radius: 999px;
    padding: 13px 30px;
    font-size: 13.5px;
    transition:
      opacity 0.2s ease,
      background 0.2s ease,
      color 0.2s ease;
  }

  & .confirm_button,
  & .submit_button {
    display: block;
    margin: 8px auto 0;
    background: var(--color-accent-2);
    color: #fff;
  }

  & .confirm_button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
  }

  & .back_button {
    display: block;
    margin: 8px auto 0;
    background: transparent;
    color: var(--color-accent-2);
  }

  & .confirm_button:not(:disabled):hover,
  & .submit_button:hover {
    opacity: 0.85;
  }

  & .back_button:hover {
    background: #eaf9fd;
  }

  & .confirm_area {
    display: none;
  }
}

@media (min-width: 861px) {
  .contact-form .confirm-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
  }

  .contact-form .confirm-actions .back_button,
  .contact-form .confirm-actions .submit_button {
    margin-right: 0;
    margin-left: 0;
  }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: flex;
  align-items: center;
  font-size: 14px;
  margin-bottom: 10px;
}

.form-row .optional {
  color: var(--color-text-muted);
  font-size: 12px;
  margin-left: 8px;
}

.form-row .required-badge {
  display: inline-block;
  background: #c00;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 3px;
  margin-right: 8px;
  line-height: 1.5;
}

.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="email"],
.form-row textarea {
  width: 100%;
  border: 1px solid #ccc;
  background: var(--color-bg);
  border-radius: 4px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1) inset;
  padding: 13px 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--color-text);
  transition: border-color 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-row textarea {
  min-height: 160px;
  resize: vertical;
}

.form-row input[type="file"] {
  width: 100%;
  border: 1px solid #ccc;
  background: var(--color-bg);
  border-radius: 4px;
  padding: 11px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-text);
}

.form-row input[type="file"]::file-selector-button {
  border: 1px solid #ccc;
  background: var(--color-bg-alt);
  color: var(--color-text);
  border-radius: 4px;
  padding: 7px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  margin-right: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.form-row input[type="file"]::file-selector-button:hover {
  border-color: var(--color-accent);
}

.form-row .field-hint {
  font-size: 12.5px;
  color: var(--color-text-muted);
  margin-top: 8px;
}

.policy-box {
  border: 1px solid var(--color-line);
  border-radius: 4px;
  background: var(--color-bg-alt);
  padding: 22px;
  max-height: 220px;
  overflow-y: auto;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--color-text-muted);
}

.policy-box h3 {
  font-size: 13px;
  color: var(--color-text);
  margin: 20px 0 8px;
}

.policy-box h3:first-child {
  margin-top: 0;
}

.policy-box p {
  margin: 0 0 4px;
}

.policy-box a {
  transition: color 0.2s ease;
}
.policy-box a:hover {
  color: var(--color-accent);
}

.form-row.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}

.form-row.checkbox input {
  margin-top: 4px;
}

.contact-form button.btn-blue {
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  display: block;
  margin: 8px auto 0;
  padding: 15px 48px;
}

.contact-form input[type="submit"],
.contact-form input[type="button"] {
  font-family: var(--font-sans);
}

.contact-thanks {
  max-width: var(--content-width);
  margin: 0 auto;
  text-align: center;

  &.section_thanks {
    display: none;
  }

  & h2 {
    font-family: var(--font-mincho);
    margin: 0 0 24px;
    font-size: 28px;
    font-weight: 600;
  }

  & p {
    margin: 0 0 32px;
    color: var(--color-text-muted);
  }
}

.contact-alt {
  margin: 60px auto 0;
  padding-top: 36px;
  border-top: 1px solid var(--color-line);
  font-size: 14px;
  color: var(--color-text-muted);
  max-width: var(--content-width);
  text-align: center;
}

.contact-alt strong {
  color: var(--color-text);
  font-weight: 500;
}

.contact-alt a {
  transition: color 0.2s ease;
}
.contact-alt a:hover {
  color: var(--color-accent);
}
.turnstile {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.js-wpcf7-spinner {
  margin: 24px auto 0;
  width: fit-content;
}

/* お知らせ個別ページ */
.news-entry {
  max-width: var(--content-width);
  margin: 0 auto;
}

.news-entry__date {
  color: var(--color-text-muted);
  font-size: 13px;
  margin: 0 0 14px;
}

.news-entry__title {
  font-family: var(--font-mincho);
  font-size: 23px;
  font-weight: 600;
  margin: 0 0 36px;
  color: var(--color-text);
}

.news-entry__content > :first-child {
  margin-top: 0;
}

.news-entry__back {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--color-line);
}

.news-entry__back a {
  color: var(--color-accent);
}

/* レスポンシブ */
@media (max-width: 860px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .strengths {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .entry-cards {
    grid-template-columns: 1fr;
  }
  .link-cards {
    grid-template-columns: 1fr;
  }
  .profile {
    grid-template-columns: 1fr;
  }
  .portrait-frame {
    max-width: 280px;
  }
  .service-block .service-head {
    grid-template-columns: 1fr;
  }
  .case-grid,
  .case-grid.cols-2 {
    grid-template-columns: 1fr;
  }
  .process-flow {
    grid-template-columns: 1fr;
    gap: 28px 0;
  }
  .process-flow li:not(:last-child)::after {
    content: "\2193";
    right: auto;
    left: 50%;
    top: auto;
    bottom: -22px;
    transform: translateX(-50%);
  }
  .info-table th {
    width: auto;
    display: block;
    padding-bottom: 4px;
    border-bottom: none;
  }
  .info-table td {
    display: block;
    padding-top: 0;
  }
  .site-header .container {
    padding: 0 20px;
  }
  .logo-link .logo-text .company-name {
    font-size: 12.5px;
  }
  .header-cta {
    padding: 8px 14px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .header-cta-full {
    display: none;
  }
  .header-cta-short {
    display: block;
  }
  .header-top {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    row-gap: 0;
  }
  .header-top .logo-link {
    grid-row: 1;
    grid-column: 1;
  }
  .header-top .header-right {
    grid-row: 1;
    grid-column: 2;
  }
  .header-top nav {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-self: stretch;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
  }
  #nav-toggle:checked ~ nav {
    max-height: 320px;
  }
  .nav-toggle-btn {
    display: flex;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 4px;
  }
  .nav-list li {
    display: block;
  }
  .nav-list li + li::before {
    content: none;
  }
  .nav-list a {
    display: block;
    padding: 13px 4px;
    border-bottom: 1px solid var(--color-line);
  }
  .header-right {
    gap: 16px;
  }
  .featured-work .fw-caption {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
  .section {
    padding: 64px 0;
  }
  .section-flush-top {
    padding-top: 0;
  }
  .turnstile {
    margin-bottom: 12px;
  }
}
