:root {
  color-scheme: light;
  --paper: #f8f9f5;
  --white: #fffefa;
  --green: #293b37;
  --mint: #afd5c8;
  --mint-light: #e4f0e9;
  --mint-pale: #f0f5f1;
  --deep: #24322f;
  --ink: #293833;
  --muted: #53635c;
  --wood: #d5b482;
  --line: #d2ded6;
  --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --rounded: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", var(--sans);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.8 var(--sans); }
img { display: block; width: 100%; }
figure, p, h1, h2, h3, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #3e7864; outline-offset: 4px; }
section[id] { scroll-margin-top: 28px; }
.wrap { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.skip { position: absolute; z-index: 5; top: 8px; left: 8px; padding: 10px 20px; background: var(--white); transform: translateY(-160%); }
.skip:focus { transform: none; }

.header { padding-top: 20px; background: var(--paper); }
.header-inner { display: flex; align-items: center; gap: 30px; min-height: 88px; }
/* ロゴ色は全体確認後に調整 */
.wordmark { display: block; justify-self: start; margin-right: auto; text-align: center; color: #242522; white-space: nowrap; }
.wordmark-company { display: block; font: italic 500 clamp(30px, 3.1vw, 42px)/1.15 var(--rounded); letter-spacing: .035em; }
.wordmark-english { display: block; width: max-content; margin-inline: auto; }
.wordmark-name { display: block; margin-top: 4px; font: 400 clamp(22px, 2vw, 28px)/1.2 var(--rounded); }
.wordmark-name span { font-size: .62em; letter-spacing: -.02em; }
.wordmark-since { display: block; margin-top: 3px; text-align: center; font: italic 600 10px/1.2 Arial, sans-serif; letter-spacing: .12em; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 38px); font-size: 13px; font-weight: 700; white-space: nowrap; }
.nav a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: .35em; }
.header-contact { display: inline-flex; align-items: center; gap: 17px; padding: 11px 17px; background: var(--green); color: var(--white); font-size: 13px; font-weight: 700; white-space: nowrap; }
.header-contact:hover { background: #405b52; }
.header-contact { border-radius: 9px; }
@media (min-width: 861px) {
  .header-inner { padding-block: 12px; }
}

.history-intro { background: var(--paper); }
.history-stage { position: relative; isolation: isolate; container-type: size; display: grid; align-items: end; width: min(1040px, calc(100% - 112px)); margin-inline: auto; aspect-ratio: 3 / 2; height: auto; overflow: hidden; color: var(--white); background: var(--deep); }
.history-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; z-index: -3; visibility: hidden; }
/* パソコンでも写真を横へ引き伸ばさず、空と建物を一緒に見せる。 */
img.history-image[data-era="then"], img.history-image[data-era="now"] { object-position: 50% 35%; }
/* 古写真のプリント白フチを表示範囲の外へ。 */
img.history-image[data-era="then"] { transform: scale(1.1) translateY(-2%); }
.history-image.is-active, .history-image.is-previous { visibility: visible; }
.history-image.is-active { z-index: -2; }
.history-image.is-entering { animation: history-fade 2s ease-in-out both; }
.history-stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(15 24 18 / .88), rgb(15 24 18 / .38) 39%, transparent 74%); }
.flyer-slide { display: grid; place-items: center; background: var(--paper); }
.flyer-window { width: min(100%, calc(100cqh * 1366 / 1120)); aspect-ratio: 1366 / 1120; overflow: hidden; }
.flyer-window img { width: 100%; height: auto; }
.history-stage[data-era="work"] .history-copy { visibility: hidden; }
.history-stage[data-era="work"]::after { background: none; }

@keyframes history-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@supports (mask-image: linear-gradient(black, transparent)) {
  .history-image.is-entering { mask-image: linear-gradient(to right, #000 33.333%, transparent 66.666%); mask-size: 300% 100%; mask-repeat: no-repeat; animation-name: history-wipe; }
  @keyframes history-wipe {
    from { mask-position: right; }
    to { mask-position: left; }
  }
}

.history-copy { padding-block: 16px 6px; }
.history-copy :is(h1, h3) { margin: 0 0 5px; color: #d5eee3; font: italic 700 clamp(20px, 3vw, 42px)/1.1 Arial, sans-serif; letter-spacing: .015em; }
.history-copy p { font: 500 clamp(15px, 2.25vw, 30px)/1.45 var(--rounded); }
.history-strip { width: min(1040px, calc(100% - 112px)); display: flex; align-items: center; justify-content: space-between; gap: 8px 20px; min-height: 60px; padding-block: 10px; font-size: 12px; font-weight: 700; }
 .history-description { min-width: 0; }
.history-copy .history-place-label { margin-top: 4px; color: var(--white); font: 400 clamp(12px, 1.2vw, 16px)/1.6 var(--rounded); letter-spacing: .04em; }
.history-caption { min-width: 11em; }
.history-controls:not([hidden]) { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 24px; }
.history-controls button { min-width: 45px; padding: 4px 9px; border: 0; border-radius: 20px; background: transparent; color: var(--green); cursor: pointer; font: inherit; }
.history-controls button[aria-pressed="true"] { background: var(--green); color: var(--white); }
.history-controls .history-playback { min-width: 6em; text-decoration: underline; text-underline-offset: .2em; }
.history-strip a { white-space: nowrap; }
.history-strip a:hover { text-decoration: underline; text-underline-offset: .3em; }

.hero { background: var(--green); color: var(--white); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
.hero-copy { align-self: center; padding: 55px 16px 57px 0; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: #665130; font: 700 11px/1.4 Arial, sans-serif; letter-spacing: .18em; }
.eyebrow span { font-variant-numeric: tabular-nums; }
.eyebrow span::after, .hero-kicker::before { content: ""; display: inline-block; width: 27px; height: 1px; background: currentColor; vertical-align: middle; }
.eyebrow span::after { margin-left: 12px; opacity: .55; }
.hero-kicker { color: #e3c699; }
h1, h2, h3 { font-family: var(--rounded); font-weight: 500; }
.home .hero { background: var(--mint); color: var(--green); }
.home .hero-lead { max-width: none; color: #344b43; }
.home .hero-kicker { color: #405d52; }
.home .button, .home .header-contact { border-radius: 9px; }
.home .hero .button-light, .wood-products .button { background: var(--green); color: var(--white); }
.home .hero .button-light:hover, .wood-products .button:hover { background: #405b52; }
.home .case, .home .service-photo .photo-link, .home .factory-photos .photo-link { border-radius: 14px; overflow: hidden; }
.home .contact { border: 0; border-radius: 18px; background: var(--mint-light); color: var(--green); }
.home .contact .text-link { color: var(--green); }
.home .contact .button-light { background: var(--green); color: var(--white); }
.home .contact .button-light:hover { background: #405b52; }
.contact-address { font-size: 13px; overflow-wrap: anywhere; }
 .wood-products { display: flex; align-items: center; gap: 22px; margin-block: 0 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.wood-products h3 { margin: 0 0 8px; font-size: 19px; }
.wood-products p { font-size: 14px; line-height: 1.8; }
.wood-products .text-link { margin-top: 12px; font-size: 13px; }
.wood-products-photo { flex: 0 0 65px; border-radius: 6px; }
.wood-products-photo img { width: 65px; height: 140px; object-fit: contain; }

h1, .hero-title { margin: 22px 0 23px; font-size: clamp(27px, 3.75vw, 55px); line-height: 1.37; letter-spacing: .018em; }
.hero-title span { display: block; }
.hero-lead { max-width: 23em; color: #f0eee5; font-size: clamp(13px, 1.2vw, 17px); line-height: 1.95; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 34px; padding: 13px 17px; font-size: 14px; font-weight: 700; }
.button-light { margin-top: 28px; background: var(--paper); color: var(--green); }
.button-light:hover { background: #d4e8dc; }
.hero-figure { position: relative; min-width: 0; align-self: center; }
.hero-figure img { height: auto; }
.hero-figure figcaption { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 11px 19px; background: var(--paper); color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.hero-bar { border-bottom: 1px solid var(--line); }
.hero-bar-inner { display: flex; justify-content: space-between; gap: 12px; padding-block: 15px; font-size: 12px; font-weight: 700; letter-spacing: .07em; }
.hero-bar a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: .3em; }
.hero-bar a span { margin-left: 8px; }
.dot { display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: #729c89; vertical-align: 1px; }

.section { padding-block: clamp(68px, 7.8vw, 120px); }
.service-intro { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(34px, 9vw, 130px); }
h2 { margin-top: 12px; font-size: clamp(32px, 3.9vw, 54px); letter-spacing: .055em; line-height: 1.35; }
.body-copy { color: var(--muted); line-height: 2.05; }
.service .body-copy { margin-top: 25px; }
.service-examples { margin-top: 38px; }
.service .wood-products { margin-block: 36px 0; }
.text-link { display: inline-flex; align-items: center; gap: 23px; margin-top: 22px; padding-bottom: 6px; border-bottom: 1px solid #729c89; color: var(--green); font-size: 14px; font-weight: 700; }
.service-photo img { aspect-ratio: 1.54; object-fit: cover; object-position: 50% 62%; }
.service-photo figcaption { margin-top: 8px; color: var(--muted); font-size: 12px; text-align: right; }
.photo-link { position: relative; display: block; overflow: hidden; background: #e0e9e1; }
.photo-link img { transition: transform .35s ease; }
.photo-link:hover img { transform: scale(1.035); }
.zoom { position: absolute; right: 0; bottom: 0; display: grid; width: 32px; height: 32px; place-items: center; color: var(--green); background: var(--paper); font-size: 15px; line-height: 1; }

.works { background: var(--mint-pale); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 34px; }
.section-heading .body-copy { font-size: 14px; }
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.case { background: var(--white); }
.case-image img { aspect-ratio: 1.69; object-fit: cover; object-position: center 60%; }
.case-copy { display: grid; grid-template-columns: 1fr 22%; align-items: center; gap: 14px; padding: 23px; }
.case-kicker { font-size: 10px; letter-spacing: .13em; }
h3 { margin-top: 7px; font-size: clamp(22px, 2.2vw, 34px); line-height: 1.4; }
.case-copy h3 + p { margin-top: 8px; color: var(--muted); font-size: 13px; }
.case-detail img { aspect-ratio: 1.2; object-fit: cover; }
.case-detail .zoom { width: 22px; height: 22px; font-size: 12px; }

.factory { background: var(--paper); }
.factory-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.factory-photos img { aspect-ratio: .98; object-fit: cover; object-position: 50% 58%; }
.factory-photos figcaption { margin-top: 10px; font-size: 13px; font-weight: 700; }
.factory-photos figcaption span { margin-right: 6px; color: #765d35; font: 700 11px Arial, sans-serif; }

.company-band { padding-block: clamp(60px, 7vw, 100px); color: var(--ink); background: var(--mint); }
.company-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 7vw, 108px); align-items: start; }
.company-band .eyebrow { color: #405d52; }
.company-data { margin-top: 24px; border-top: 1px solid #8cad9e; font-size: 14px; }
.company-data div { display: grid; grid-template-columns: 6.3em 1fr; gap: 12px; padding-block: 12px; border-bottom: 1px solid #8cad9e; }
.company-data dt { color: #40594f; }
.company-locations p + p { margin-top: 10px; }
.company-link { text-decoration: underline; text-underline-offset: .22em; }
.company-link:hover { text-decoration-thickness: 2px; }
.company-name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.company-name > span, .company-name > a { white-space: nowrap; }
.company-name > a { font-size: 12px; }
.contact { padding: clamp(23px, 3vw, 45px); border: 1px solid #758175; }
.contact h2 { font-size: clamp(27px, 3vw, 43px); }
.contact h2 + p { margin-top: 11px; }
.contact details { margin-top: 20px; font-size: 13px; }
.contact summary { cursor: pointer; padding: 9px 12px; background: var(--paper); color: var(--green); font-weight: 700; }
.contact ul { margin: 10px 0 0; padding-left: 23px; }
.contact-note { margin-top: 14px; color: #e6dfd0; font-size: 11px; }
.footer { color: #eeeae0; background: var(--deep); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; padding-block: 18px; font-size: 12px; }
.footer a span { margin-left: 5px; }

#photo-viewer { width: max-content; max-width: min(94vw, 1100px); max-height: 94vh; padding: 12px; border: 0; background: var(--paper); color: var(--ink); }
#photo-viewer::backdrop { background: rgb(13 23 18 / .87); }
#photo-viewer img { width: auto; max-width: 100%; max-height: 76vh; margin-inline: auto; object-fit: contain; }
#photo-viewer p { margin-top: 6px; font-size: 13px; }
#photo-viewer form { position: absolute; top: 12px; right: 12px; }
#photo-viewer button { width: 38px; height: 38px; border: 0; background: var(--green); color: var(--white); cursor: pointer; font: 26px/1 Arial, sans-serif; }

@media (max-width: 990px) {
  .wrap { width: calc(100% - 64px); }
  .header-inner { gap: 18px; }
  .nav { gap: 13px; }
  .hero-copy { padding-block: 38px; }
}

@media (max-width: 750px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; min-height: auto; padding-top: 12px; }
  .header-contact { grid-column: 2; grid-row: 1; gap: 5px; padding: 7px 9px; font-size: 11px; }
  .nav { grid-column: 1 / -1; justify-content: space-between; gap: 8px; margin-top: 10px; padding-block: 8px; border-top: 1px solid var(--line); font-size: 11px; }
  .wordmark-company { font-size: clamp(20px, 6.3vw, 30px); }
  .wordmark-name { font-size: clamp(16px, 4.8vw, 23px); }
  .wordmark-since { font-size: 9px; }
  .hero-grid { display: block; }
  .hero-copy { padding: 38px 0 28px; }
  h1, .hero-title { margin-block: 15px; font-size: clamp(28px, 8vw, 50px); }
  .hero-title span:nth-child(2), .hero-title span:nth-child(3) { display: inline-block; }
  .history-stage { width: 100%; aspect-ratio: auto; height: clamp(220px, 68vw, 410px); }
  .history-strip { width: calc(100% - 36px); column-gap: 6px; font-size: 11px; }
  .history-caption { min-width: 0; }
  .history-controls button { min-width: 34px; padding-inline: 6px; }
  .hero-lead { font-size: 14px; }
  .button-light { margin-top: 18px; padding-block: 10px; font-size: 13px; }
  .hero-figure figcaption { padding: 8px 11px; font-size: 11px; }
  .hero-bar-inner { padding-block: 11px; font-size: 10px; letter-spacing: 0; }
  .dot { margin-right: 4px; }
  .section { padding-block: 58px; }
  .service-intro, .company-grid { grid-template-columns: 1fr; gap: 28px; }
  .section-heading { display: block; margin-bottom: 23px; }
  .section-heading .body-copy { margin-top: 12px; }
  .section-heading .body-copy br { display: none; }
  .service .body-copy { margin-top: 14px; }
  .cases { gap: 16px; }
  .case-copy { grid-template-columns: 1fr; padding: 15px; }
  .case-detail { width: 65px; }
  .factory-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
}

@media (max-width: 440px) {
  .history-strip { flex-wrap: wrap; }
  .history-caption { flex-basis: 100%; }
  .cases { grid-template-columns: 1fr; }
  .case-copy { grid-template-columns: 1fr 68px; }
  .case-detail { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .history-image.is-entering { animation: none; }
  .photo-link img { transition: none; }
}

/* 下層ページ */
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .35em; }
.company-band .text-link { color: var(--green); }
.page-hero { padding: 20px 0 clamp(42px, 6.5vw, 86px); background: var(--mint); color: var(--ink); }
.breadcrumb { display: flex; align-items: center; gap: 10px; margin-bottom: clamp(28px, 4vw, 50px); font-size: 12px; }
.breadcrumb a { text-decoration: underline; text-underline-offset: .25em; }
.page-hero .eyebrow { color: #405d52; }
.page-hero h1 { margin-block: 12px; font-size: clamp(29px, 5vw, 55px); }
.page-lead { max-width: 47em; color: #344b43; }
.page-section { padding-block: clamp(45px, 7vw, 95px); }
.page-section h2 { margin: 0 0 14px; font-size: clamp(23px, 3vw, 39px); }
.page-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 6vw, 90px); align-items: center; }
.page-photo img { aspect-ratio: 1.5; object-fit: cover; object-position: center 58%; }
.page-photo figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.other-products { padding-block: 24px 40px; border-top: 1px solid var(--line); }
.other-products h2 { margin: 0 0 20px; font-size: 21px; }
.step-case { display: flex; gap: 24px; align-items: center; }
.step-case h3 { margin: 0 0 8px; font-size: 17px; }
.step-case p { font-size: 14px; }
.step-case .text-link { font-size: 13px; margin-top: 12px; }
.step-photos { display: flex; gap: 12px; flex-shrink: 0; }
.step-photos .photo-link { width: 74px; }
.step-photos img { width: 74px; height: 160px; object-fit: contain; }
.page-tinted { background: var(--mint-pale); }
.page-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 20px; }
.workshop-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.workshop-gallery img { aspect-ratio: .98; }
.company-history h2 { margin-top: 12px; }
.company-history img { height: auto; aspect-ratio: auto; }
.history-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px 28px; padding-block: 16px 48px; }
.inner-page .company-data, .inner-page .company-data div { border-color: var(--line); }
.inner-page .company-data dt { color: var(--muted); }
.inquiry-list { padding: clamp(18px, 3vw, 40px); background: var(--mint-pale); }
.inquiry-list h3 { margin: 0; font-size: clamp(19px, 2.4vw, 28px); }
.inquiry-list ul { margin-bottom: 0; padding-left: 1.4em; }
.contact-links { display: grid; justify-items: start; margin-top: 22px; }
.button-green { background: var(--green); color: var(--white); }
.button-green:hover { background: #405b52; }
.button-green small { display: block; font-size: 12px; font-weight: 400; }

@media (max-width: 860px) {
  .header-inner { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; min-height: auto; padding-top: 12px; }
  .header-contact { grid-column: 2; grid-row: 1; }
  .nav { grid-column: 1 / -1; justify-content: space-between; gap: 6px; margin-top: 10px; padding-block: 8px; border-top: 1px solid var(--line); }
}
@media (max-width: 650px) {
  .page-split { grid-template-columns: 1fr; }
  .step-case { flex-wrap: wrap; gap: 16px; }
  .page-gallery, .workshop-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .history-gallery { grid-template-columns: 1fr; }
  .page-photo figcaption { font-size: 11px; }
}

.footer-sitemap { padding-block: 30px 24px; }
.footer-sitemap > p { margin: 0 0 14px; font-size: 13px; color: #b7d8ca; }
.footer-sitemap ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 24px; margin: 0; padding: 0; list-style: none; }
.footer-sitemap a { display: block; width: fit-content; padding-block: 10px; font-size: 14px; }
.footer-sitemap a[aria-current="page"] { text-decoration: underline; text-underline-offset: .3em; }
.footer-sitemap + .footer-inner { border-top: 1px solid #ffffff26; }
@media (max-width: 650px) {
  .footer-sitemap ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
  .footer-sitemap a { font-size: 13px; }
}

@media (max-width: 750px) {
  .history-strip { flex-wrap: wrap; }
  .history-description { flex-basis: 100%; }
}

@media (max-width: 750px) {
  img.history-image[data-era="then"], img.history-image[data-era="now"] { object-position: 50% 0%; }
}

/* 輸出用木箱の案内 */
.export-highlight { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding: 18px; border-radius: 12px; background: var(--white); color: var(--ink); }
.export-mark { width: 112px; height: auto; flex: 0 0 112px; }
.export-highlight h3 { margin: 0 0 6px; font-size: clamp(18px, 1.6vw, 23px); line-height: 1.45; }
.export-highlight p { font-size: 12px; line-height: 1.7; }
.export-highlight a { display: inline-block; margin-top: 9px; font-size: 12px; text-decoration: underline; text-underline-offset: .25em; }
.export-section { padding-block: 36px 0; }
.export-info { display: flex; align-items: center; gap: 32px; padding: clamp(22px, 4vw, 40px); border-radius: 14px; background: var(--mint-light); }
.export-info .export-mark { width: 180px; flex-basis: 180px; }
.export-info h2 { margin: 0 0 14px; font-size: clamp(23px, 3vw, 35px); }
.export-explanation { margin-top: 12px; color: var(--muted); font-size: 12px; }
@media (max-width: 650px) {
  .export-highlight { gap: 14px; padding: 16px; }
  .export-highlight .export-mark { width: 88px; flex-basis: 88px; }
  .export-info { display: block; }
  .export-info .export-mark { width: 140px; margin-bottom: 20px; }
}

.export-registration { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); line-height: 1.8; }
.export-registration a { display: inline-block; margin-top: 6px; color: var(--green); text-decoration: underline; text-underline-offset: .25em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* アパート・入居店舗の紹介 */
.estate-overview { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.estate-status { margin-top: 24px; padding: 18px 20px; border-radius: 12px; background: var(--mint-light); }
.estate-status strong { font-family: var(--rounded); font-size: 20px; font-weight: 500; }
.estate-status p { margin-top: 6px; font-size: 13px; color: var(--muted); }
.estate-photo .photo-link { border-radius: 12px; }
.estate-photo img { aspect-ratio: 4 / 3; height: auto; }
.estate-apartment { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.estate-apartment h2, #tenant-title { margin-top: 12px; }
.estate-facts > div { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.estate-facts > div:first-child { border-top: 1px solid var(--line); }
.estate-facts dt { color: var(--muted); font-size: 14px; }
.estate-facts dd { font-family: var(--rounded); font-size: 22px; }
.tenant-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 28px 0 0; padding: 0; }
.tenant-list li { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.tenant-list p { color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.tenant-list h3 { font-size: 20px; overflow-wrap: anywhere; }
@media (max-width: 860px) { .tenant-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) {
  .estate-overview, .estate-apartment { grid-template-columns: 1fr; }
  .tenant-list { grid-template-columns: 1fr; gap: 12px; }
  .tenant-list li { padding: 20px; }
}

.tenant-list li { display: flex; flex-direction: column; align-items: flex-start; }
.tenant-list .tenant-link { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 20px; font-size: 13px; color: var(--green); text-decoration: underline; text-underline-offset: .25em; }
.tenant-link:hover { text-decoration-thickness: 2px; }

.keep-together { white-space: nowrap; }

/* 初めての依頼につながる木箱紹介 */
.home .hero-title { font-size: clamp(27px, 3.1vw, 44px); }
.home .hero-title span { display: block; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 24px; }
.hero-actions .button, .hero-actions .text-link { margin-top: 0; }
@media (max-width: 750px) {
  .home .hero-title { font-size: clamp(25px, 7.4vw, 40px); }
}

/* トップは木箱製作の一枚、会社案内に昔と今の写真を配置。 */
.packaging-intro { padding-top: 12px; background: var(--paper); }
.packaging-visual { width: min(1040px, calc(100% - 112px)); margin-inline: auto; }
.packaging-visual img { display: block; width: 100%; height: auto; max-height: min(820px, calc(100svh - 155px)); object-fit: contain; }
.packaging-intro-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 16px 28px; padding-block: 20px 26px; }
.packaging-intro-actions .button, .packaging-intro-actions .text-link { margin-top: 0; }
.company-history-heading { max-width: 780px; margin-bottom: 30px; }
.company-history .history-intro { background: transparent; }
.company-history .history-stage, .company-history .history-strip { width: min(1040px, 100%); }
.company-history .history-copy { width: calc(100% - 48px); }
.delivery-note { margin-top: 22px; padding-left: 16px; border-left: 2px solid var(--mint); }
.delivery-note h3 { font-size: 17px; line-height: 1.7; }
.delivery-note p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.delivery-section h2 { margin-block: 14px 18px; }
@media (max-width: 750px) {
  .packaging-intro { padding-top: 0; }
  .packaging-visual { width: 100%; }
  .packaging-visual img { max-height: none; }
  .packaging-intro-actions { gap: 12px 20px; padding-block: 16px 22px; }
  .packaging-intro-actions .text-link { font-size: 13px; }
  .company-history .history-copy { width: calc(100% - 36px); }
}

.company-overview > div { max-width: 880px; margin-inline: auto; }

/* スマホの社名を下寄りにまとめ、問い合わせをメニュー線の近くへ。 */
@media (max-width: 860px) {
  .header-inner { padding-top: 22px; }
  .header-inner .wordmark { align-self: end; }
  .header-inner .wordmark-name { margin-top: 2px; line-height: 1.1; }
  .header-inner .wordmark-since { margin-top: 2px; }
  .header-inner .header-contact { align-self: end; margin-bottom: 2px; }
  .header-inner .nav { margin-top: 6px; }
}

/* 名刺のように社名を右へまとめ、問い合わせは下段のメニューへ。 */
.header { padding-top: 32px; }
.header .header-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; min-height: auto; padding-top: 22px; padding-bottom: 0; }
.header .wordmark { grid-column: 1; grid-row: 1; justify-self: end; margin-right: 0; }
.header .nav { grid-column: 1; grid-row: 2; justify-content: flex-end; gap: clamp(16px, 2.5vw, 36px); margin-top: 12px; padding-block: 12px; border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .header .nav { justify-content: space-between; gap: 6px; padding-block: 10px; }
}
@media (max-width: 750px) {
  .header .nav { font-size: 10.5px; }
}
@media (max-width: 350px) {
  .header .nav { font-size: 9px; gap: 4px; }
}

/* 日本語の社名を英字の幅に合わせ、上の余白を少し縮める。 */
.header { padding-top: 24px; }
.header .wordmark { --brand-english-size: clamp(28.6px, 2.6vw, 36.4px); }
.header .wordmark-company { font-size: calc(var(--brand-english-size) * 1.038); }
@media (max-width: 750px) {
  .header .wordmark { --brand-english-size: clamp(20.8px, 6.24vw, 29.9px); }
}

/* 英字と創業年を「産株式会社」の下へ、比率を保って小さく配置。 */
.header { padding-top: 16px; }
.header .wordmark-english { margin-left: auto; margin-right: 0; text-align: center; }
.header .wordmark-name { font-size: calc(var(--brand-english-size) * .625); margin-top: 3.25px; line-height: 1.2; }
.header .wordmark-name span { font-weight: 500; }
.header .wordmark-since { font-size: calc(var(--brand-english-size) * .4375); font-weight: 400; margin-top: 2.4375px; letter-spacing: .12em; }
@media (max-width: 860px) {
  .header .wordmark-name { margin-top: 1.625px; line-height: 1.1; }
  .header .wordmark-since { margin-top: 1.625px; }
}

/* 採用した社名表記：創業年も英字の右端にそろえる。 */
.header .wordmark-since { text-align: right; }

/* メニュー右端のお問い合わせは緑地・白文字のボタン。 */
.header .nav a[href="contact.html"] { display: inline-flex; align-items: center; justify-content: center; padding: 2px 6px; border-radius: 4px; background: var(--green); color: var(--white); font-size: .9em; line-height: 1.25; }
.header .nav a[href="contact.html"]:hover { background: #405b52; text-decoration: none; }
@media (max-width: 860px) {
  .header .nav a[href="contact.html"] { padding: 2px 5px; }
}

.history-founded { margin-bottom: 8px; color: var(--muted); font: 700 clamp(18.2px, 1.82vw, 22.4px)/1.7 var(--rounded); letter-spacing: .03em; text-align: left; }
