:root {
  --site-font: 游ゴシック, YuGothic, "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", sans-serif;
}

body {
  font-family: var(--site-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
  font-feature-settings: normal;
}

a { color: inherit; text-decoration: none; transition: opacity 0.1s ease; }
a:hover, a:focus-visible { opacity: 0.6; }
img { display: block; max-width: 100%; }

.container { width: min(100% - 48px, 1100px); margin-inline: auto; }
.site-header { background: var(--color-primary); }
.site-header .container { display: flex; align-items: stretch; min-height: 64px; }
.site-logo { display: flex; flex: 0 1 auto; align-items: center; min-width: 0; padding: 0 24px 0 0; color: white; font-size: 14px; font-weight: 700; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; height: 100%; list-style: none; }
.site-nav a { display: flex; align-items: center; min-height: 64px; padding: 8px calc(16px * var(--nav-scale, 1)); color: white; font-size: 12px; font-weight: 400; line-height: 1; white-space: nowrap; }
.site-nav a.active, .site-nav a:hover, .site-nav a:focus-visible { background: white; color: var(--color-primary); opacity: 1; }
.hamburger { display: none; width: 48px; min-height: 48px; margin-left: auto; border: 0; background: transparent; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; margin: 5px auto; background: white; }

.hero { position: relative; isolation: isolate; display: grid; min-height: 480px; overflow: hidden; background: var(--color-primary); }
.hero-slides, .hero-content { grid-area: 1 / 1; }
.hero-slides { position: relative; z-index: -1; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; opacity: 0; transition: opacity 0.3s ease-out; }
.hero-slide.is-active { opacity: 1; }
.hero-content { align-self: center; padding: 80px 0; color: white; }
.hero-label { margin-bottom: 16px; font-size: 12px; font-weight: 700; line-height: 1.7; }
h1, h2, h3 { font-family: var(--site-font); }
h1, h2 { color: var(--color-text); font-weight: 700; }
h1 { max-width: 720px; color: white; font-size: clamp(32px, 4vw, 48px); line-height: 1.22; }
.hero-text { max-width: 520px; margin-top: 24px; color: white; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 24px; border: 1px solid transparent; border-radius: 4px; font-size: 14px; font-weight: 700; line-height: 1.7; }
.hero .button { margin-top: 24px; }
.button-primary { background: var(--color-accent); color: white; }
.button-secondary { border-color: var(--color-accent); background: transparent; color: var(--color-accent); }

.section-band, .gallery, .policy { padding: 80px 0; }
.section-band { background: var(--color-secondary); }
.section-heading { margin-bottom: 32px; }
.section-heading h2, .policy h2, .contact-cta h2 { font-size: 28px; line-height: 1.22; }
.section-heading p { margin-top: 16px; }
.section-heading-center { text-align: center; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.service-card { overflow: hidden; border: 1px solid color-mix(in srgb, var(--color-text) 18%, var(--color-bg)); border-radius: 4px; background: var(--color-bg); }
.service-card img, .gallery-item img, .contact-cta-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-card-body { padding: 24px; }
.service-card h3, .work-type h3 { color: var(--color-text); font-size: 20px; font-weight: 700; line-height: 1.4; }
.service-card p { margin-top: 16px; }
.policy-inner { max-width: 780px; text-align: center; }
.policy p { margin-top: 24px; }
.work-type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.work-type { padding: 24px; border: 1px solid color-mix(in srgb, var(--color-text) 18%, var(--color-bg)); border-radius: 4px; background: var(--color-bg); }
.work-type ul { margin-top: 16px; padding-left: 1.2em; }
.work-type li + li { margin-top: 8px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gallery-item { overflow: hidden; border-radius: 4px; }

.contact-cta { position: relative; display: grid; isolation: isolate; min-height: 320px; overflow: hidden; background: var(--color-secondary); }
.contact-cta-image, .contact-cta-content { grid-area: 1 / 1; }
.contact-cta-image { z-index: -1; height: 100%; filter: brightness(0.55); }
.contact-cta-content { align-self: center; padding: 64px 0; color: white; }
.contact-cta h2 { color: white; }
.contact-cta p { margin-top: 16px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.contact-cta .button-secondary { border-color: white; color: white; }

@media (max-width: 1023px) {
  .site-header.nav-collapsed .hamburger { display: block; }
  .site-header.nav-collapsed .site-nav { display: none; }
  .site-header.nav-collapsed .site-nav.open { position: absolute; top: 64px; right: 0; left: 0; z-index: 10; display: block; padding: 8px 16px 16px; background: var(--color-primary); }
  .site-header.nav-collapsed .site-nav ul { display: block; height: auto; }
  .site-header.nav-collapsed .site-nav a { min-height: 44px; padding: 12px 16px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
  .site-nav { display: none; }
  .site-nav.open { position: absolute; top: 56px; right: 0; left: 0; z-index: 10; display: block; padding: 8px 16px 16px; background: var(--color-primary); }
  .site-nav.open ul { display: block; height: auto; }
  .site-nav.open a { min-height: 44px; padding: 12px 16px; }
  .container { width: min(100% - 32px, 1100px); }
  .site-header .container { min-height: 56px; }
  .site-logo { padding-right: 12px; font-size: 13px; }
  .hamburger { min-height: 56px; }
  .site-header.nav-collapsed .site-nav.open { top: 56px; }
  .hero { min-height: 440px; }
  .hero-content { padding: 64px 0; }
  h1 { font-size: 32px; }
  .section-band, .gallery, .policy { padding: 48px 0; }
  .section-heading { margin-bottom: 24px; }
  .section-heading h2, .policy h2, .contact-cta h2 { font-size: 24px; }
  .service-grid, .work-type-grid, .gallery-grid { gap: 16px; }
  .service-card-body, .work-type { padding: 16px; }
  .service-card h3, .work-type h3 { font-size: 18px; }
  .work-type-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-cta { min-height: 360px; }
  .contact-cta-content { padding: 48px 0; }
  .contact-cta h2 { max-width: 18em; text-wrap: balance; }
  .contact-actions { display: grid; grid-template-columns: 1fr; }
  .contact-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto; transition-duration: 0.1ms; }
}

.site-footer .footer-brand { min-width: 0; }
.site-footer .footer-privacy { display: inline-block; white-space: nowrap; }

@media (max-width: 768px) {
  .site-footer .footer-nav { min-width: 0; }
  .site-footer .footer-nav ul {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-columns: auto;
    column-gap: 1rem;
  }
  .site-footer .footer-nav li { min-width: 0; }
  .site-footer .footer-nav a { display: block; overflow-wrap: anywhere; }
  .site-footer .footer-info p { overflow-wrap: anywhere; }
}

@media (max-width: 639px) {
  .policy h2, .contact-cta h2 { text-wrap: balance; }
}

/* sm-page-hero */
/* 下層ページの見出しの帯(全ページ共通。正本 = icynene の帯。高さは PC 390px / スマホ 300px。unify-page-hero.js) */
.smph-container { width: min(100% - 48px, 1100px); margin-inline: auto; }
.site-header .smph-container { display: flex; align-items: stretch; min-height: 64px; }
.smph-hero { position: relative; isolation: isolate; display: grid; min-height: 480px; overflow: hidden; background: var(--color-primary); }
.smph.smph-hero-slides, .smph-hero-content { grid-area: 1 / 1; }
.smph.smph-hero-slides { position: relative; z-index: -1; }
.smph-hero-slide { position: absolute; inset: 0px; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; opacity: 0; transition: opacity 0.3s ease-out; }
.smph-hero-slide.is-active { opacity: 1; }
.smph-hero-content { align-self: center; padding: 80px 0px; color: white; }
.smph-hero-label { margin-bottom: 16px; font-size: 12px; font-weight: 700; line-height: 1.7; }
.smph-hero-text { max-width: 520px; margin-top: 24px; color: white; }
.smph-hero .button { margin-top: 24px; }
@media (max-width: 639px) {.smph-container { width: min(100% - 32px, 1100px); } .site-header .smph-container { min-height: 56px; } .smph-hero { min-height: 440px; } .smph-hero-content { padding: 64px 0px; }}
.smph-icynene.smph-hero { min-height: 360px; }
.smph-icynene.smph-hero .smph-hero-slide { opacity: 1; }
@media (max-width: 639px) {.smph-icynene.smph-hero { min-height: 280px; } .smph-icynene.smph-hero .smph-hero-content, .icynene-intro, .icynene-merit, .icynene-system { padding: 48px 0px; }}
[data-sm-page-hero] [data-smph-media]{height:390px !important;min-height:0 !important;max-height:none !important;aspect-ratio:auto !important;overflow:hidden !important;}
[data-sm-page-hero] > :only-child{max-width:none !important;width:100% !important;margin-left:0 !important;margin-right:0 !important;}
[data-sm-page-hero] img{width:100% !important;height:100% !important;max-width:none !important;max-height:none !important;object-fit:cover !important;aspect-ratio:auto !important;}
[data-sm-page-hero]{height:auto !important;min-height:390px !important;max-height:none !important;}
@media (max-width: 767px){[data-sm-page-hero]{min-height:300px !important;}[data-sm-page-hero] [data-smph-media]{height:300px !important;}}

/* 下層ページの見出しの大きさを全ページでそろえる(unify-page-headings.js が実測の最多値から書く) */
[data-sm-page-title]{font-size:48px !important;line-height:58.56px !important;letter-spacing:normal !important;font-weight:700 !important;}
[data-sm-section-title]{font-size:28px !important;line-height:34.16px !important;letter-spacing:normal !important;font-weight:700 !important;}
@media (max-width: 767px){[data-sm-page-title]{font-size:32px !important;line-height:39.04px !important;letter-spacing:normal !important;font-weight:700 !important;}[data-sm-section-title]{font-size:24px !important;line-height:29.28px !important;letter-spacing:normal !important;font-weight:700 !important;}}

/* sm-normalize */
/* セクションの写真の縦横比をそろえる・スマホで狭すぎる段組みを1列に・見出しを文節で折り返す(normalize-sections.js) */
[data-sm-ratio]{aspect-ratio:1 / 0.7500 !important;height:auto !important;min-height:0 !important;max-height:none !important;}
img[data-sm-ratio]{width:100% !important;object-fit:cover !important;display:block;}
[data-sm-gallery]{display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;grid-auto-rows:auto !important;gap:16px !important;}
[data-sm-gallery] > *{grid-column:auto !important;grid-row:auto !important;width:auto !important;height:auto !important;margin:0 !important;position:relative !important;}
@media (min-width: 768px){[data-sm-gx-pc]{display:none !important;}}
@media (max-width: 767px){[data-sm-gallery]{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:8px !important;}[data-sm-gx-sp]{display:none !important;}}

[data-sm-imgbox]{height:auto !important;min-height:0 !important;max-height:none !important;}
@media (max-width: 767px){[data-sm-sp1]{display:grid !important;grid-template-columns:1fr !important;gap:24px !important;}[data-sm-sp1] > *{width:auto !important;max-width:none !important;flex:none !important;grid-column:auto !important;}}
@media (max-width: 767px){[data-sm-sp-tall]{aspect-ratio:4 / 5 !important;height:auto !important;min-height:0 !important;max-height:none !important;}img[data-sm-sp-tall]{width:100% !important;object-fit:cover !important;}}
h1, h2, h3{word-break:auto-phrase;text-wrap:balance;}
[data-sm-hero-box="media"]{height:720px !important;min-height:0 !important;max-height:none !important;aspect-ratio:auto !important;}
[data-sm-hero-box="media"] > *{height:100% !important;min-height:0 !important;}
[data-sm-hero-wide]{max-width:none !important;width:100% !important;margin-left:0 !important;margin-right:0 !important;}
[data-sm-hero-box="section"]{height:auto !important;min-height:720px !important;max-height:none !important;}
img[data-sm-hero-img]{width:100% !important;height:100% !important;object-fit:cover !important;}
@media (max-width: 767px){[data-sm-hero-box="media"]{height:420px !important;}[data-sm-hero-box="section"]{min-height:420px !important;}}
.site-footer .footer-nav ul{display:grid !important;grid-auto-flow:column !important;grid-template-rows:repeat(5, auto) !important;grid-auto-columns:max-content !important;column-gap:clamp(24px, 3vw, 48px) !important;row-gap:0 !important;}
.site-footer .footer-nav li{margin:0 0 0.4rem !important;}
@media (min-width: 768px){.site-footer .footer-grid{grid-template-columns:minmax(0, 1.4fr) auto minmax(0, 1fr) !important;}}
@media (min-width: 768px){.site-header:not(.nav-collapsed) .site-nav ul{display:flex !important;flex-wrap:nowrap !important;grid-template-columns:none !important;align-items:center !important;gap:0 clamp(14px, 1.6vw, 28px) !important;}.site-header:not(.nav-collapsed) .site-nav li{flex:none !important;}.site-header:not(.nav-collapsed) .site-nav a{white-space:nowrap !important;}}

/* sm-reveal */
/* セクションのフェードイン(common.js が画面に入った .fade-in に .visible を付ける。add-section-reveal.js) */
.sm-js .fade-in{opacity:0;transform:translateY(12px);transition:opacity 0.8s ease,transform 0.8s ease;}
.sm-js .fade-in.visible{opacity:1;transform:none;}
@media (prefers-reduced-motion: reduce){.fade-in, .fade-in > *{opacity:1 !important;transform:none !important;transition:none !important;}}
