/* ARCHI.LABの共通スタイル。 */
@import url("https://fonts.googleapis.com/css?family=Noto+Sans:400,700%7CSatisfy&display=swap");

:root {
  color-scheme: light;
  --color-text: #333;
  --color-heading: #616373;
  --color-dark: #24262f;
  --color-green: #4b6b31;
  --color-green-light: #a4b795;
  --color-soft: #f4f4f4;
  --color-border: #d9dfd2;
  --content-width: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  color: var(--color-text);
  background: #fff;
  font: 400 16px/1.8 "Noto Sans", "游ゴシック Medium", "Yu Gothic Medium", YuGothic, "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .25em; }
button, summary { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--color-green);
  outline-offset: 5px;
}
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.6; }
p { margin-bottom: 1.4em; }
.content-container { width: min(calc(100% - 64px), var(--content-width)); margin-inline: auto; }
.reading-container { width: min(calc(100% - 48px), 620px); margin-inline: auto; }
.faq-container { width: min(calc(100% - 48px), 640px); margin-inline: auto; }
.section { padding-block: 96px; }
.section--muted { background: var(--color-soft); }
.prose p:last-child { margin-bottom: 0; }
.prose h3 { font-size: 20px; }
.prose a { color: var(--color-green); }
.prose ul { padding-left: 1.5em; }
.skip-link {
  position: absolute;
  top: 12px;
  left: 16px;
  z-index: 50;
  padding: 12px 18px;
  background: #fff;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* 連絡先と共通ヘッダー。 */
.site-header { position: relative; z-index: 10; background: #fff; }
.site-header__identity { display: flex; align-items: center; gap: 32px; min-height: 118px; padding-block: 24px; }
.site-header__logo { flex: 0 0 259px; min-width: 0; }
.site-header__logo img { width: 259px; }
.site-header__tagline { font-size: 13px; margin: 0 auto 0 0; line-height: 1.8; }
.site-header__contact { display: flex; align-items: center; gap: 16px; flex-shrink: 0; text-align: center; line-height: 1.4; }
.site-header__phone-block { min-width: 0; }
.site-header__phone { display: block; text-decoration: none; white-space: nowrap; color: #399; font-size: 28px; font-style: italic; font-weight: 700; letter-spacing: .025em; }
.site-header__hours { display: block; margin-top: 3px; font-size: 12px; }
.site-header__phone-label { display: inline; font-size: 12px; color: #666; font-style: normal; font-weight: 400; margin-right: 12px; }
/* メールの連絡先は、封筒アイコンと操作名で示す。 */
.site-header__email { display: grid; place-items: center; flex: 0 0 44px; width: 44px; min-height: 44px; border: 1px solid var(--color-border); color: #399; text-decoration: none; }
.site-header__email:hover { background: var(--color-soft); }
.site-header__email svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.global-nav { background: var(--color-dark); color: #fff; }
.global-nav ul { display: flex; flex-wrap: wrap; justify-content: center; padding: 0; margin-block: 0; list-style: none; }
.global-nav li { margin: 0; }
.global-nav a { display: block; padding: 16px 25px; text-decoration: none; font-size: 14px; }
.global-nav a:hover, .global-nav a[aria-current="page"] { background: var(--color-green); }
.global-nav a:focus-visible { outline-color: #fff; outline-offset: -5px; }
.menu-button { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid #ccc; background: #fff; font-size: 13px; }
.menu-button__lines { width: 18px; height: 12px; border-top: 2px solid; border-bottom: 2px solid; position: relative; }
.menu-button__lines::after { content: ""; position: absolute; height: 2px; width: 18px; top: 3px; left: 0; background: currentColor; }

/* メイン写真とメッセージ。 */
.home-hero { position: relative; height: min(70vw, 868px); min-height: 540px; color: #fff; display: grid; place-items: center; isolation: isolate; }
.home-hero > img, .page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.home-hero::before { content: ""; position: absolute; inset: 0; background: #00000018; z-index: -1; }
.home-hero__text { width: min(calc(100% - 48px), 1160px); text-align: center; text-shadow: 0 2px 5px #0009; }
.home-hero h1 { font-size: 44px; font-weight: 700; letter-spacing: -.035em; margin-bottom: 42px; }
.home-hero p { font-size: 22px; line-height: 2.18; margin: 0; }
.home-hero__mobile-break { display: none; }
.hero-scroll { position: absolute; bottom: 28px; left: calc(50% - 20px); width: 40px; height: 40px; text-align: center; text-decoration: none; font-size: 28px; }
.section-heading { text-align: center; margin-bottom: 56px; color: var(--color-heading); }
.section-heading h2 { font-size: 32px; font-weight: 500; letter-spacing: .26em; margin: 0; }
.section-heading p { font-family: Satisfy, cursive; font-size: 28px; line-height: 1.2; margin: 12px 0 0; }
/* 見出しの下に短い点線の区切りを添える。 */
.section-heading::after { content: ""; display: block; width: 86px; margin: 30px auto 0; border-top: 1px dashed #999; }
.concept { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 64px; }
.concept__text { font-size: 18px; line-height: 1.7; }
.concept__signature { text-align: right; padding-top: 20px; font-weight: 700; }
.concept > img { width: 100%; }
.service-links { display: grid; grid-template-columns: 1fr 1fr; }
.service-link { position: relative; min-height: 470px; display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; isolation: isolate; }
.service-link > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.service-link::before { content: ""; position: absolute; inset: 0; background: #0008; z-index: -1; transition: background .2s; }
.service-link:hover::before { background: #0006; }
.service-link > div { width: min(100% - 72px, 410px); padding-block: 60px; }
.service-link p { font-size: 14px; line-height: 1.85; margin-bottom: 36px; }
.service-link h2 { font-size: 28px; letter-spacing: .15em; font-weight: 500; margin-bottom: 0; }
.service-link h2 span { display: block; font-family: Satisfy, cursive; font-size: 26px; letter-spacing: 0; margin-top: 6px; }
.work-previews { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.work-preview { text-decoration: none; }
.work-preview img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.work-preview > span { display: block; font-size: 14px; margin-top: 15px; line-height: 1.8; }
.work-preview:hover > span { text-decoration: underline; }
.section-action { text-align: center; margin-top: 48px; margin-bottom: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 48px; padding: 13px 24px; background: var(--color-green); border: 1px solid var(--color-green); color: #fff; text-decoration: none; font-size: 15px; font-weight: 700; }
.button:hover { background: #385124; }
.faq__item { border-bottom: 1px solid var(--color-border); }
.faq__item:first-child { border-top: 1px solid var(--color-border); }
.faq__item > summary { padding: 22px 36px 22px 18px; cursor: pointer; position: relative; font-weight: 700; list-style: none; }
.faq__item > summary::-webkit-details-marker { display: none; }
.faq__item > summary::after { content: "+"; position: absolute; right: 12px; top: 17px; color: var(--color-green); font-size: 24px; font-weight: 400; }
.faq__item[open] > summary::after { content: "−"; }
.faq__item > .prose { padding: 0 18px 26px; }

/* 下層ページのメイン写真と本文。 */
.page-hero { position: relative; height: 465px; color: #fff; display: grid; place-items: center; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: #0007; z-index: -1; }
.page-hero__text { text-align: center; padding: 32px; }
.page-hero h1 { font-size: 48px; font-weight: 500; letter-spacing: .2em; margin: 0 0 14px; }
.page-hero ol { list-style: none; display: flex; justify-content: center; gap: 16px; margin: 0; padding: 0; font-size: 13px; }
.page-hero li + li::before { content: "/"; padding-right: 16px; }
.page-hero a { text-decoration: none; }
.flow-title { text-align: center; font-size: 24px; margin-bottom: 48px; }
.flow { padding-left: 1.6em; margin: 0; }
.flow__step { padding: 0 0 32px 7px; }
.flow__step::marker { font-weight: 700; color: var(--color-green); }
.flow__step + .flow__step { padding-top: 26px; border-top: 1px solid var(--color-border); }
.flow__step:last-child { padding-bottom: 0; }
.flow__step h3 { font-size: 18px; margin-bottom: 16px; }
.flow__step p { margin-bottom: 0; }
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about-split > img { width: 100%; }
.company-details { margin: 25px 0; }
.company-details > div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; border-bottom: 1px solid var(--color-border); padding: 15px 0; }
.company-details dt { font-weight: 700; }
.company-details dd { margin: 0; }
.access-map iframe { display: block; width: 100%; height: 430px; border: 0; }
.team-photo { width: min(100%, 1024px); margin-inline: auto; }
.contact-intro { text-align: center; margin-bottom: 44px; }
.contact-option { text-align: center; border: 1px solid var(--color-border); padding: 35px 20px; margin-bottom: 24px; }
.contact-option h2 { font-size: 20px; margin-bottom: 20px; }
.contact-option__phone { text-decoration: none; font-size: clamp(26px, 4vw, 38px); font-weight: 700; }
.contact-option p:last-child { margin: 12px 0 0; }
.contact-address { margin-top: 56px; }
.contact-address h2 { font-size: 22px; }

/* 施工事例の写真・説明と追加情報。 */
.gallery-toolbar { margin-bottom: 42px; text-align: center; }
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.gallery-filters button { padding: 10px 27px; border: 1px solid var(--color-border); color: var(--color-text); background: #fff; min-height: 48px; }
.gallery-filters button[aria-pressed="true"] { background: var(--color-green); border-color: var(--color-green); color: #fff; }
.gallery-count { margin: 18px 0 0; font-size: 13px; color: var(--color-heading); }
.works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; align-items: start; }
.work-card { min-width: 0; scroll-margin-top: 24px; }
.work-card__image { position: relative; display: block; background: var(--color-soft); }
.work-card__image > img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.work-card__image > span { position: absolute; bottom: 0; right: 0; background: #24262fe8; color: #fff; font-size: 12px; padding: 7px 12px; }
.work-card__image:hover > span { background: var(--color-green); }
.work-card__text { padding-top: 17px; }
.work-card__category { color: var(--color-green); font-size: 12px; letter-spacing: .1em; margin-bottom: 6px; }
.work-card h2 { font-size: 15px; line-height: 1.9; font-weight: 500; margin-bottom: 0; }
.work-card__details { margin-top: 14px; font-size: 14px; }
.work-card__details > summary { color: var(--color-green); cursor: pointer; width: fit-content; padding: 6px 4px 6px 0; }
.work-card__details .prose { padding-top: 14px; }
.work-card__details img { margin-block: 20px; width: auto; max-height: 420px; }
.gallery-dialog { width: min(1120px, calc(100% - 48px)); max-height: calc(100dvh - 48px); border: 0; padding: 0; color: var(--color-text); background: #fff; }
.gallery-dialog::backdrop { background: #10120fe8; }
.gallery-dialog__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 24px; border-bottom: 1px solid var(--color-border); position: sticky; top: 0; background: #fff; z-index: 1; }
.gallery-dialog__bar p { font-size: 15px; line-height: 1.7; margin: 0; }
.gallery-dialog__bar button { flex-shrink: 0; border: 1px solid var(--color-border); background: #fff; color: var(--color-text); padding: 10px 16px; }
.gallery-dialog__content { padding: 24px; }
.gallery-dialog__content > img { margin: 0 auto 24px; max-height: 70dvh; width: auto; object-fit: contain; }
.gallery-dialog__content .prose { max-width: 750px; margin: 24px auto 0; }
.gallery-dialog__content .prose img { width: auto; max-height: 70dvh; margin: 24px auto; }

/* お問い合わせ案内。電話とメールを並べ、狭い画面では縦に配置する。 */
.contact-band { padding: 65px 0 85px; border-top: 50px solid transparent; border-image: repeating-linear-gradient(-45deg, #fff 0 2px, #a4b795 2px 4px) 50; }
.contact-band__inner { max-width: 960px; text-align: center; }
.contact-band h2 { font-weight: 500; font-size: 26px; margin-bottom: 36px; }
.contact-band__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
.contact-band__option { padding: 12px 30px; }
.contact-band__option + .contact-band__option { border-left: 1px solid var(--color-border); }
.contact-band__label { font-size: 15px; margin-bottom: 16px; }
.contact-band__phone { font-size: clamp(25px, 3.8vw, 42px); line-height: 1.4; text-decoration: none; font-weight: 700; }
.contact-band__hours { margin: 8px 0 0; font-size: 14px; }
/* メールアドレスとコピー操作。結果の表示領域を保ち、成功時の位置ずれを抑える。 */
.email-tools { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 20px; }
/* 会社情報では項目名に合わせて左揃えにする。 */
.email-tools--company { align-items: flex-start; margin-top: 0; }
.email-tools__address { font-size: 16px; line-height: 1.8; user-select: all; }
.email-tools__copy { min-height: 44px; max-width: 100%; padding: 9px 16px; border: 1px solid var(--color-green); background: #fff; color: var(--color-green); font-size: 14px; line-height: 1.8; }
.email-tools__copy:hover { background: var(--color-soft); }
.email-tools__copy:disabled { cursor: wait; }
.email-tools__status { display: block; min-height: 1.8em; max-width: 100%; font-size: 13px; line-height: 1.8; color: var(--color-heading); }
/* 所在地・連絡先と事業案内。 */
.site-footer { background: var(--color-dark); color: #fff; padding: 76px 0 24px; }
.site-footer__inner { display: grid; grid-template-columns: 1fr 1fr; column-gap: 70px; }
.site-footer__logo img { width: 259px; margin-bottom: 25px; }
.site-footer address { font-size: 14px; font-style: normal; line-height: 2; }
.site-footer p, .site-footer li { font-size: 14px; }
.site-footer p { margin-top: 20px; }
.site-footer__business { padding-top: 65px; }
.site-footer__business h2 { font-size: 18px; font-weight: 500; margin-bottom: 12px; }
.site-footer__business ul { list-style: none; padding: 0; margin: 0; }
.site-footer__copyright { grid-column: 1 / -1; text-align: right; padding-top: 35px; font-size: 12px !important; margin-bottom: 0; }
/* 800pxを超える端数幅も、PCのヘッダーと写真上のナビに含める。 */
@media (min-width: 800.01px) {
  .site-header__identity { min-height: 85px; padding-block: 18px; }
  .global-nav { position: absolute; top: 100%; left: 30px; right: 30px; background: #24262fb3; }
  .global-nav a { font-weight: 700; letter-spacing: .06em; }
  .global-nav a[aria-current="page"] { background: transparent; text-decoration: underline; }
  .global-nav a:hover { background: #24262f99; }
  .home-hero, .page-hero { margin-inline: 30px; }
  .service-intro { margin: 60px 30px 0; }
  .home-hero::before { background: transparent; }
  .home-hero__text { transform: translateY(55px); }
}
@media (min-width: 1400px) {
  .site-footer { background-image: url("../img/bg-footer.webp"); background-repeat: no-repeat; background-position: right center; background-size: auto 100%; }
  .site-footer__inner { grid-template-columns: 440px 1fr; }
  .site-footer__business { max-width: 300px; background: #24262fda; }
}
@media (max-width: 1050px) {
  .site-header__identity { gap: 24px; }
  .site-header__tagline { font-size: 12px; }
  .site-header__phone { font-size: 23px; }
  .global-nav a { padding-inline: 20px; }
  .concept, .about-split { gap: 32px; }
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 800px以下は7リンクと連絡先が窮屈になるため、開閉できるナビへ切り替える。 */
@media (max-width: 800px) {
  .content-container { width: calc(100% - 40px); }
  .site-header__identity { flex-wrap: wrap; min-height: 100px; gap: 12px 20px; padding-block: 20px; }
  .site-header__logo { flex-basis: 220px; margin-right: auto; }
  .site-header__tagline { display: none; }
  .site-header__contact { margin-left: auto; }
  .site-header__phone { font-size: 22px; }
  .menu-button { margin-left: auto; }
  .global-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .global-nav a { text-align: center; border-bottom: 1px solid #ffffff20; }
  .section { padding-block: 65px; }
  .section-heading { margin-bottom: 38px; }
  .section-heading h2 { font-size: 27px; }
  .concept, .about-split { grid-template-columns: 1fr; gap: 30px; }
  .concept__text { font-size: 16px; }
  .concept > img { width: min(75%, 420px); margin-inline: auto; }
  .service-links { grid-template-columns: 1fr; }
  .service-link { min-height: 400px; }
  .service-link > div { width: min(100% - 56px, 520px); }
  .work-previews { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; }
  .page-hero { height: 340px; }
  .page-hero h1 { font-size: 36px; }
  .about-split--reverse > img { order: 2; }
  .contact-band__options { grid-template-columns: 1fr; }
  .contact-band__option { padding: 20px 0; }
  .contact-band__option + .contact-band__option { border-left: 0; border-top: 1px solid var(--color-border); padding-top: 32px; margin-top: 12px; }
  .contact-band__phone { font-size: 38px; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__business { padding-top: 28px; }
}
@media (max-width: 540px) {
  body { font-size: 15px; }
  .reading-container, .faq-container { width: calc(100% - 40px); }
  .site-header__identity { gap: 14px 10px; }
  .site-header__logo { flex: 0 1 190px; max-width: calc(100% - 114px); }
  .site-header__contact { order: 3; flex-basis: 100%; justify-content: space-between; gap: 12px; text-align: left; }
  .site-header__phone { font-size: 22px; }
  .site-header__hours { font-size: 11px; }
  .home-hero { min-height: 0; height: 510px; }
  .home-hero__text { width: calc(100% - 32px); }
  .home-hero h1 { font-size: clamp(21px, 6vw, 31px); line-height: 1.7; margin-bottom: 30px; letter-spacing: -.03em; }
  .home-hero__mobile-break { display: initial; }
  .home-hero p { font-size: 15px; line-height: 2.2; }
  .section-heading h2 { font-size: 24px; letter-spacing: .18em; }
  .section-heading p { font-size: 25px; }
  .page-hero { height: 280px; }
  .page-hero h1 { font-size: 29px; letter-spacing: .15em; }
  .works-grid { grid-template-columns: 1fr; gap: 38px; }
  .gallery-filters { gap: 8px; }
  .gallery-filters button { padding-inline: 17px; font-size: 14px; }
  .work-card h2 { font-size: 16px; }
  .work-preview > span { font-size: 12px; }
  .faq__item > summary { padding-left: 4px; }
  .faq__item > .prose { padding-inline: 4px; }
  .company-details > div { grid-template-columns: 76px 1fr; }
  /* メール欄の操作幅を確保するため、狭い画面では項目名の下へ配置する。 */
  .company-details > .company-details__email { grid-template-columns: 1fr; gap: 8px; }
  .access-map iframe { height: 330px; }
  .contact-band h2 { font-size: 23px; }
  .contact-band__phone { font-size: 32px; }
  .gallery-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .gallery-dialog__bar { padding: 12px; gap: 12px; align-items: start; }
  .gallery-dialog__bar p { font-size: 13px; }
  .gallery-dialog__bar button { font-size: 12px; padding: 10px; }
  .gallery-dialog__content { padding: 14px; }
  .site-footer__copyright { text-align: left; }
}
@media (max-width: 380px) {
  .site-header__phone { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
