@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@300;400&family=BIZ+UDPGothic:wght@400&display=swap');

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #faf9f6;
}

html {
  overflow-x: hidden;
}

body {
  font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  font-weight: 300;
  color: #333333;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.6; }
::selection { background: #1a1815; color: #faf9f6; }
button { font-family: inherit; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: clamp(72px, 10vw, 104px);
  padding: 0 clamp(20px, 4vw, 56px);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.site-header.home {
  background: linear-gradient(to bottom, rgba(12,10,8,0.34), rgba(12,10,8,0.08) 65%, transparent);
}

.site-header.inner {
  background: rgba(250,249,246,0.92);
  border-bottom: 1px solid rgba(51,51,51,0.08);
}

.logo {
  font-family: 'BIZ UDPGothic', sans-serif;
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 29px);
  letter-spacing: 0.08em;
  color: #fff;
}

.site-header.inner .logo { color: #333333; }

.site-nav {
  display: flex;
  gap: clamp(24px, 3.4vw, 50px);
}

.site-nav a {
  font-size: clamp(16px, 1.5vw, 20px);
  color: #fff;
  letter-spacing: 0.08em;
}

.site-header.inner .site-nav a { color: #333333; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #111;
  touch-action: pan-y;
}

.hero-track {
  display: flex;
  width: 500%;
  height: 100%;
}

.hero-slide {
  flex: 0 0 20%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.hero-arrow {
  position: absolute;
  top: 0;
  height: 100%;
  width: clamp(48px, 7vw, 72px);
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 300ms ease;
  z-index: 10;
  padding: 0;
}

.hero-arrow.prev { left: 0; justify-content: flex-start; padding-left: clamp(6px, 1.4vw, 16px); }
.hero-arrow.next { right: 0; justify-content: flex-end; padding-right: clamp(6px, 1.4vw, 16px); }

@media (hover: hover) {
  .hero:hover .hero-arrow { opacity: 0.75; }
}

@media (hover: none) {
  .hero-arrow { opacity: 0.55; }
}

/* ---------- SNS row ---------- */
.sns-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: clamp(26px, 4vw, 42px) clamp(20px, 4vw, 56px) clamp(8px, 2vw, 16px);
}

.sns-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sns-icon.instagram span.frame {
  width: 18px;
  height: 18px;
  border: 1.4px solid #333333;
  border-radius: 6px;
  position: relative;
  display: block;
}

.sns-icon.instagram span.dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border: 1.2px solid #333333;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.sns-icon.facebook {
  width: 20px;
  height: 20px;
  border: 1.4px solid #333333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #333333;
}

/* ---------- Gallery ---------- */
.gallery-section {
  padding: 0 0 clamp(20px, 3vw, 32px);
}

.gallery-wrap {
  max-width: 80vw;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
}

.gallery-cell {
  width: 100%;
}

.gallery-photo {
  width: 100%;
  cursor: zoom-in;
  display: block;
  border: none;
  padding: 0;
  background: #eeeae2;
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-blank { width: 100%; height: 100%; }

.gallery-news {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 4px;
}

.gallery-news .label {
  font-size: 14px;
  letter-spacing: 0.15em;
  color: #8a8479;
  margin-bottom: 10px;
}

.gallery-news .body {
  font-size: 15px;
  line-height: 1.8;
  color: #333333;
}

@media (max-width: 640px) {
  .gallery-section {
    padding: 0 clamp(20px, 4vw, 56px) clamp(20px, 3vw, 32px);
  }
  .gallery-wrap { max-width: none; }
  .gallery-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .site-header { padding: 0 16px; }
  .logo { font-size: 19px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 14px; }
}

/* ---------- News page ---------- */
.news-section {
  padding: clamp(140px, 18vw, 190px) clamp(20px, 4vw, 56px) clamp(40px, 6vw, 60px);
  max-width: 920px;
  margin: 0 auto;
}

.news-section h1 {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 400;
  letter-spacing: 0.08em;
  margin: 0 0 clamp(48px, 7vw, 80px);
}

.news-item {
  padding: clamp(36px, 5vw, 56px) 0;
  border-top: 1px solid rgba(51,51,51,0.12);
  scroll-margin-top: clamp(90px, 12vw, 120px);
}

.news-item .news-title {
  font-size: 19px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.news-item .news-body {
  font-size: 16px;
  line-height: 2;
  color: #5c5c5c;
  white-space: pre-line;
  margin-bottom: 24px;
}

.news-item .news-link {
  display: inline-block;
  font-size: 16px;
  color: #333333;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-bottom: 24px;
}

.news-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(135px, 24vw, 225px), 1fr));
  gap: clamp(16px, 2.1vw, 24px);
  margin-top: 8px;
}

.news-photos img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: #eeeae2;
}

/* ---------- About page ---------- */
.about-section {
  padding: clamp(140px, 18vw, 190px) clamp(20px, 4vw, 56px) clamp(60px, 8vw, 90px);
  max-width: 920px;
  margin: 0 auto;
}

.about-section h1 {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 400;
  letter-spacing: 0.08em;
  margin: 0 0 clamp(48px, 7vw, 80px);
}

.about-body {
  max-width: 680px;
  margin: 0 auto;
}

.about-profile {
  margin-bottom: clamp(40px, 5.5vw, 60px);
}

.about-profile .kicker {
  font-size: 15px;
  letter-spacing: 0.14em;
  color: #8a8479;
  margin-bottom: 12px;
}

.about-profile .name {
  font-size: 24px;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.about-profile .origin {
  font-size: 16px;
  letter-spacing: 0.06em;
  color: #5c5c5c;
}

.about-body p {
  font-size: 18px;
  line-height: 2.1;
  margin: 0 0 1.9em;
  text-align: left;
}

.about-body p:last-child { margin-bottom: 0; }

.about-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 3.4vw, 32px) 0;
  border-top: 1px solid rgba(51,51,51,0.14);
  border-bottom: 1px solid rgba(51,51,51,0.14);
  margin: 0 0 1.9em;
}

.about-timeline .row {
  display: flex;
  gap: clamp(16px, 2.4vw, 28px);
  font-size: 18px;
  line-height: 1.8;
}

.about-timeline .year {
  flex: 0 0 clamp(64px, 7vw, 84px);
  color: #8a8479;
  letter-spacing: 0.04em;
}

/* ---------- Contact page ---------- */
.contact-section {
  padding: clamp(140px, 18vw, 190px) clamp(20px, 4vw, 56px) clamp(60px, 8vw, 90px);
  max-width: 680px;
  margin: 0 auto;
}

.contact-section h1 {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 400;
  letter-spacing: 0.08em;
  margin: 0 0 clamp(40px, 6vw, 64px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 3.6vw, 36px);
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-field .field-label {
  font-size: 16px;
  letter-spacing: 0.06em;
  color: #5c5c5c;
}

.contact-field .required-mark {
  color: #a4756a;
}

.sk-field {
  font: inherit;
  font-size: 17px;
  color: #333333;
  padding: 12px 4px;
  border: none;
  border-bottom: 1px solid rgba(51,51,51,0.25);
  background: transparent;
  width: 100%;
}

.sk-field::placeholder { color: #b5b0a6; }
.sk-field:focus { outline: none; border-color: #333333; }
textarea.sk-field { resize: vertical; }

.contact-submit {
  margin-top: 12px;
  align-self: flex-start;
  padding: 14px 44px;
  border: 1px solid #333333;
  background: transparent;
  color: #333333;
  font: inherit;
  font-size: 16px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}

.contact-submit:hover { background: #333333; color: #faf9f6; opacity: 1; }
.contact-submit:disabled { opacity: 0.5; cursor: default; }

.contact-message {
  padding: clamp(40px, 6vw, 60px) 0;
  font-size: 18px;
  line-height: 2;
  color: #333333;
  border-top: 1px solid rgba(51,51,51,0.12);
}

.contact-message.error { color: #a4756a; }

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(28px, 4vw, 46px) 0 clamp(50px, 6vw, 70px);
  text-align: center;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: #333333;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10,9,8,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.open { display: flex; }

.lightbox-img {
  object-fit: contain;
  max-height: 90vh;
  display: block;
}

.lightbox-close {
  position: fixed;
  top: 24px;
  right: 28px;
  color: #cfc9bd;
  font-size: 13px;
  letter-spacing: 0.12em;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(160,155,146,0.55);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Works strip (site2) ---------- */
.works-main {
  padding-top: clamp(72px, 10vw, 104px);
  background: #faf9f6;
}

.strip {
  display: flex;
  align-items: flex-start;
  gap: var(--strip-gap);
  overflow-x: auto;
  overflow-y: hidden;
  padding: clamp(28px, 4vw, 48px) 0 0 clamp(20px, 4vw, 56px);
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.strip::-webkit-scrollbar { display: none; }

.strip::after {
  content: "";
  flex: 0 0 clamp(20px, 4vw, 56px);
}

.strip-item {
  flex: 0 0 auto;
}

.strip-item.landscape { width: var(--w-land); }
.strip-item.portrait  { width: var(--w-port); }

.strip-item a { display: block; }
.strip-item img { width: 100%; height: auto; display: block; }

.strip-year {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #333333;
  margin-top: 10px;
  min-height: 1em;
}

.strip.top  { --w-land: 33vw; --w-port: 21vw; --strip-gap: 1.1vw; }
.strip.work { --w-land: 40vw; --w-port: 26vw; --strip-gap: 1.3vw; }

@media (max-width: 640px) {
  .strip.top  { --w-land: 85vw; --w-port: 60vw; --strip-gap: 3.2vw; }
  .strip.work { --w-land: 90vw; --w-port: 64vw; --strip-gap: 3.4vw; }
}

.work-year {
  padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 56px) 0;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #333333;
}

/* ---------- News strip (site2) ---------- */
.strip.news { --w-land: 24vw; --w-port: 16vw; --strip-gap: 1.1vw; }
@media (max-width: 640px) {
  .strip.news { --w-land: 70vw; --w-port: 50vw; --strip-gap: 3.2vw; }
}

.news-panel {
  flex: 0 0 auto;
  width: 30vw;
}

.strip-item + .news-panel { margin-left: calc(var(--strip-gap) * 2); }

.news-panel .news-title {
  font-size: 19px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.news-panel .news-date {
  font-size: 16px;
  line-height: 2;
  color: #5c5c5c;
}

.news-panel .news-body {
  font-size: 16px;
  line-height: 2;
  color: #5c5c5c;
  white-space: pre-line;
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .news-panel { width: 80vw; }
}

/* ---------- Contact compact (site2, PC only) ---------- */
@media (min-width: 641px) {
  .contact-section {
    padding: calc(clamp(72px, 10vw, 104px) + 12px) clamp(20px, 4vw, 56px) 8px;
  }
  .contact-section h1 { margin-bottom: 12px; }
  .contact-form { gap: 8px; }
  .contact-field { gap: 2px; }
  .contact-field .field-label { line-height: 1.2; }
  .contact-section .sk-field { padding: 3px 4px; line-height: 1.25; }
  .contact-section textarea.sk-field { height: 48px; }
  .contact-submit { margin-top: 4px; padding: 6px 36px; }
}

/* ---------- Footer position (site2): 短いページでも画面下端に揃える ---------- */
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.site-footer { margin-top: auto; }

/* 案件ページの西暦: フッター帯の左端に置く */
.site-footer { position: relative; }
.site-footer .work-year {
  position: absolute;
  left: clamp(20px, 4vw, 56px);
  top: 50%;
  transform: translateY(-50%);
  padding: 0;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #333333;
}
/* トップ: SNS行を数px詰めてフッター位置を他ページと揃える */
.sns-row { padding-top: calc(clamp(26px, 4vw, 42px) - 6px); }

/* ---------- 使える高さ(ヘッダー下〜フッター上・上余白を除く) ---------- */
.works-main {
  --footer-h: calc(clamp(28px, 4vw, 46px) + clamp(50px, 6vw, 70px) + 24px);
  --avail: calc(100vh - clamp(72px, 10vw, 104px) - var(--footer-h) - clamp(28px, 4vw, 48px));
}
@supports (height: 100dvh) {
  .works-main { --avail: calc(100dvh - clamp(72px, 10vw, 104px) - var(--footer-h) - clamp(28px, 4vw, 48px)); }
}

/* ---------- News: PCの文字サイズ / 写真2段 ---------- */
@media (min-width: 641px) {
  .news-panel .news-title { font-size: 17px; }
  .news-panel .news-date,
  .news-panel .news-body { font-size: 14px; }
}

.news-photos {
  --row-h: calc((var(--avail) - var(--strip-gap)) / 2);
  flex: 0 0 auto;
  margin-top: 0;
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, var(--row-h));
  gap: var(--strip-gap);
  align-items: start;
  justify-items: start;
}

.news-photos img {
  height: var(--row-h);
  width: auto;
  display: block;
}

.news-photos + .news-panel { margin-left: calc(var(--strip-gap) * 2); }

/* ---------- About: 段組みで横に流す ---------- */
.strip.about { --strip-gap: 1.1vw; }

.strip.about { --about-col: 30vw; }
.about-col-wrap {
  flex: 0 0 auto;
  width: var(--about-col);
  height: var(--avail);
  display: flex;
  flex-direction: column;
}

.about-col-wrap h1 {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 400;
  letter-spacing: 0.08em;
  margin: 0 0 24px;
  flex: 0 0 auto;
}

.about-cols {
  flex: 1 1 auto;
  min-height: 0;
  column-width: var(--about-col);
  column-gap: calc(var(--strip-gap) * 3);
  column-fill: auto;
}

.about-cols .about-profile,
.about-cols .about-timeline { break-inside: avoid; }
.about-cols p { text-align: left; }
.about-cols p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .strip.about { display: block; overflow: visible; padding-right: clamp(20px, 4vw, 56px); }
  .about-col-wrap { width: auto; height: auto; display: block; }
  .about-cols { column-width: auto; height: auto; }
  .about-col-wrap h1 { margin-bottom: clamp(32px, 6vw, 48px); }
}

/* About段組み: 本文の文字設定(サイズ・行間は従来どおり) */
.about-cols p {
  font-size: 18px;
  line-height: 2.1;
  margin: 0 0 1.9em;
}

/* About段組み: PCのみ文字を小さく(行間は比率維持) */
@media (min-width: 641px) {
  .about-cols p { font-size: 15px; }
  .about-cols .about-timeline .row { font-size: 15px; }
}

/* About: 2014年の段落＋年表を1ブロックにして段をまたがせない */
.about-keep { break-inside: avoid; page-break-inside: avoid; }
.about-keep p { margin-bottom: 1.9em; }

/* About: 高さの低い画面(〜760px)では見出し下の余白を詰めて段高を確保 */
@media (min-width: 641px) and (max-height: 760px) {
  .about-col-wrap h1 { margin-bottom: 0; }
}

/* ---------- About v3: プロフィール固定段 + 本文流し込み ---------- */
.strip.about { gap: calc(var(--strip-gap) * 3); }

.about-col-wrap {
  --h1-gap: 24px;
  --p-gap: 1.9em;
  --tl-pad: clamp(24px, 3.4vw, 32px);
  --tl-row-gap: 16px;
  --prof-gap: clamp(40px, 5.5vw, 60px);
  --name-gap: 8px;
  height: auto;
  min-height: var(--avail);
}
.about-col-wrap h1 { margin-bottom: var(--h1-gap); }
.about-fixed { flex: 0 0 auto; }
.about-fixed p { font-size: 15px; line-height: 2.1; margin: 0 0 var(--p-gap); text-align: left; }
.about-fixed .about-profile { margin-bottom: var(--prof-gap); }
.about-fixed .about-profile .name { margin-bottom: var(--name-gap); }
.about-fixed .about-timeline { padding: var(--tl-pad) 0; gap: var(--tl-row-gap); margin-bottom: 0; }
.about-fixed .about-timeline .row { font-size: 15px; }
.about-fixed .about-keep p { margin-bottom: var(--p-gap); }

.about-flow-wrap {
  flex: 0 0 auto;
  width: var(--about-col);
  height: var(--avail);
  display: flex;
  flex-direction: column;
}
.about-spacer {
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: 0.08em;
  margin: 0 0 24px;
  visibility: hidden;
  flex: 0 0 auto;
}
.about-cols p { orphans: 3; widows: 3; }

@media (min-width: 641px) {
  .about-fixed p, .about-fixed .about-timeline .row { font-size: 15px; }
}
@media (max-width: 640px) {
  .about-col-wrap { min-height: 0; }
  .about-flow-wrap { width: auto; height: auto; display: block; }
  .about-spacer { display: none; }
  .about-fixed p, .about-fixed .about-timeline .row { font-size: 18px; }
}
.about-col-wrap { --kicker-gap: 12px; }
.about-fixed .about-profile .kicker { margin-bottom: var(--kicker-gap); }

/* About 1段目: 行間・文字サイズを段階的に詰めるための変数(既定=本文と同じ) */
.about-col-wrap { --p-lh: 2.1; --tl-lh: 1.8; --fixed-fs: 15px; }
@media (min-width: 641px) {
  .about-fixed p { line-height: var(--p-lh); font-size: var(--fixed-fs); }
  .about-fixed .about-timeline .row { line-height: var(--tl-lh); font-size: var(--fixed-fs); }
}

/* ---------- フッター帯の左: News / About / Contact + SNS ---------- */
.footer-nav {
  position: absolute;
  left: clamp(20px, 4vw, 56px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.footer-nav > a {
  font-size: clamp(16px, 1.5vw, 20px);
  color: #333333;
  letter-spacing: 0.08em;
  line-height: 1.5;
}
.footer-nav .sns-row { padding: 8px 0 0; gap: 18px; }
@media (max-width: 400px) {
  .footer-nav { left: 16px; }
  .footer-nav > a { font-size: 14px; }
}
/* 案件ページの西暦はフッター帯の右端へ */
.site-footer .work-year { left: auto; right: clamp(20px, 4vw, 56px); }
@media (max-width: 640px) {
  .site-footer { display: flex; flex-direction: column; align-items: center; }
  .footer-nav { position: static; transform: none; align-self: flex-start; margin: 0 0 24px clamp(20px, 4vw, 56px); }
}
.about-col-wrap { width: var(--col1-w, var(--about-col)); }

/* ---------- フッター左: リンク横1行 + アイコンは©と同じ行 ---------- */
.footer-nav {
  top: auto;
  transform: none;
  bottom: calc(clamp(50px, 6vw, 70px) + 2px);
  gap: 10px;
}
.footer-nav .nav-links { display: flex; gap: 1.5em; font-size: clamp(16px, 1.5vw, 20px); }
.footer-nav .nav-links a { font-size: clamp(16px, 1.5vw, 20px); color: #333333; letter-spacing: 0.08em; line-height: 1.5; }
.footer-nav .sns-row { padding: 0; height: 20px; align-items: center; }
@media (max-width: 640px) {
  .site-footer { display: block; padding-top: 72px; }
  .footer-nav { position: absolute; margin: 0; left: clamp(20px, 4vw, 56px); }
}
@media (max-width: 400px) {
  .footer-nav { left: 16px; }
  .footer-nav .nav-links a { font-size: 14px; }
}

/* ---------- About: 画面幅900px未満は1列・全幅(段組み/固定段/自動詰めを無効) ---------- */
@media (max-width: 899px) {
  .strip.about {
    display: block;
    overflow: visible;
    padding-right: clamp(20px, 4vw, 56px);
    padding-bottom: clamp(28px, 4vw, 48px);
  }
  .about-col-wrap,
  .about-flow-wrap {
    display: block;
    width: auto !important;
    height: auto;
    min-height: 0;
  }
  .about-col-wrap h1 { margin-bottom: clamp(32px, 6vw, 48px) !important; }
  .about-spacer { display: none; }
  .about-cols { column-width: auto; column-count: auto; height: auto; }
  .about-fixed p,
  .about-cols p {
    font-size: 18px !important;
    line-height: 2.1 !important;
    margin: 0 0 1.9em !important;
  }
  .about-fixed .about-profile { margin-bottom: clamp(40px, 5.5vw, 60px) !important; }
  .about-fixed .about-profile .name { margin-bottom: 8px !important; }
  .about-fixed .about-profile .kicker { margin-bottom: 12px !important; }
  .about-fixed .about-timeline {
    padding: clamp(24px, 3.4vw, 32px) 0 !important;
    gap: 16px !important;
    margin: 0 0 1.9em !important;
  }
  .about-fixed .about-timeline .row { font-size: 18px !important; line-height: 1.8 !important; }
  .about-cols p:last-child { margin-bottom: 0 !important; }
}

/* 修正: body の縦flex化で中央寄せセクションの幅が縮む問題 */
.contact-section, .about-section, .news-section { width: 100%; }

/* 修正: スマホのフッター高さ(上余白72px)を使える高さの計算に反映 */
@media (max-width: 640px) {
  .works-main { --footer-h: calc(72px + 24px + clamp(50px, 6vw, 70px)); }
}

/* Contact: 高さ790px以下のPC/タブレットではさらに間隔を詰める(文字サイズは不変) */
@media (min-width: 641px) and (max-height: 790px) {
  .contact-section { padding-top: calc(clamp(72px, 10vw, 104px) + 6px); }
  .contact-section h1 { margin-bottom: 8px; }
  .contact-section textarea.sk-field { height: 40px; }
}
