/*
Theme Name: PROSA
Description: 株式会社プロサの建物総合サービス向けテーマ。固定ページ自動作成、施工実績、CF7対応。
Version: 1.9.3
Author: PROSA
Text Domain: prosa
Requires at least: 6.5
Requires PHP: 8.0
License: GPL v2 or later
*/
:root {
  --blue: #164688;
  --ink: #182c43;
  --paper: #fff;
  --pale: #f1f5f8;
  --line: #ccd6e0;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: 0.04em;
}
a {
  color: var(--blue);
  text-underline-offset: 5px;
}
a:hover {
  opacity: 0.75;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
figure {
  margin: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.07em;
}
h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}
h2 {
  font-size: clamp(1.65rem, 2.7vw, 2.5rem);
  margin-bottom: 30px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}
p {
  margin-bottom: 22px;
}
button,
input,
textarea,
select {
  font: inherit;
}
a,
button,
input,
textarea,
select {
  touch-action: manipulation;
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}
.wrap {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 48px;
}
.site-header {
  min-height: 102px;
  padding: 20px 3.2%;
  display: flex;
  align-items: center;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  background: white;
  position: relative;
  z-index: 20;
}
.brand {
  flex-shrink: 0;
  width: 116px;
}
.brand img {
  width: 100%;
  height: auto;
  max-height: 82px;
  object-fit: contain;
}
.header-caption {
  font-size: 12px;
  width: 100px;
  line-height: 1.6;
}
.primary-nav {
  margin-left: auto;
}
.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.primary-nav li,
.primary-nav a,
.footer-nav li,
.footer-nav a {
  background: transparent !important;
}
.primary-nav a[aria-current="page"],
.primary-nav .current-menu-item > a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
.primary-nav .sub-menu {
  display: block;
  padding-left: 10px;
}
.primary-nav li:has(.sub-menu) {
  position: relative;
}
.primary-nav li > .sub-menu {
  position: absolute;
  top: 100%;
  background: white;
  padding: 14px;
  box-shadow: 0 4px 12px #182c431a;
  display: none;
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu {
  display: block;
}
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: white;
  padding: 11px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  color: var(--blue);
}
.hero {
  position: relative;
  min-height: 700px;
  margin: 0 0 30px;
  padding: 90px 7% 80px;
  overflow: hidden;
  background: var(--pale);
}
.hero-photo {
  position: absolute;
  inset: 0 0 0 32%;
  height: 100%;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #fff 0%,
    #fffffffa 28%,
    #ffffffd9 39%,
    #ffffff00 68%
  );
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 660px;
}
.hero h1 {
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
  line-height: 1.5;
  letter-spacing: 0.09em;
  margin: 24px 0 28px;
}
.hero-copy > p:not(.eyebrow) {
  font-size: 17px;
}
.hero-foot {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  background: var(--blue);
  color: white;
  padding: 15px 32px;
  margin: 0;
  font-size: 14px;
}
.eyebrow {
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.11em;
  margin-bottom: 18px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding: 18px 28px;
  color: #fff;
  background: var(--blue);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  min-height: 58px;
  border: 1px solid var(--blue);
  max-width: 100%;
}
.button span {
  font-size: 20px;
}
.text-link {
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  border-bottom: 1px solid var(--blue);
  padding-bottom: 7px;
}
.section {
  padding-block: 75px;
}
.section-heading {
  margin-bottom: 35px;
}
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.intro-copy p {
  line-height: 2.2;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.cards.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.service-card img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
}
.service-card figure {
  margin-bottom: 26px;
}
.service-card p:last-child {
  font-size: 15px;
  line-height: 1.95;
}
.number {
  font-family: Georgia, serif;
  font-size: 44px;
  color: var(--blue);
  line-height: 1.2;
  margin-bottom: 25px;
}
.strengths {
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.strengths .service-card {
  padding-right: 20px;
}
.recruit-banner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--pale);
  margin-block: 65px;
}
.recruit-banner figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 440px;
}
.recruit-copy {
  padding: 55px 45px;
}
.contact-band {
  margin-top: 90px;
  background: var(--blue);
  color: white;
  padding: 65px max(6%, calc((100vw - 1144px) / 2));
  display: flex;
  gap: 55px;
  align-items: center;
  justify-content: space-between;
}
.contact-band h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  margin-bottom: 20px;
}
.contact-band p {
  font-size: 14px;
}
.contact-band .eyebrow {
  color: white;
}
.contact-actions {
  min-width: 320px;
}
.button.light {
  color: var(--blue);
  background: white;
  border-color: white;
}
.plain-light {
  display: block;
  margin-top: 22px;
  color: white;
  text-align: center;
}
.site-footer {
  padding: 65px max(6%, calc((100vw - 1144px) / 2)) 25px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.footer-top img {
  object-fit: contain;
  width: 145px;
  height: auto;
  margin-bottom: 24px;
}
.footer-top p,
.footer-top a {
  font-size: 14px;
}
.footer-nav ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav a {
  text-decoration: none;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 50px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.page-heading {
  padding-top: 34px;
  padding-bottom: 55px;
}
.page-heading h1 {
  margin: 0;
}
.breadcrumb {
  font-size: 13px;
  margin-bottom: 50px;
}
.page-content > .wp-block-heading:first-child {
  margin-top: 15px;
}
.page-content > .split {
  margin-bottom: 40px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: center;
}
.split img {
  width: 100%;
  aspect-ratio: 1.15;
  object-fit: cover;
}
.split-copy p {
  line-height: 2.2;
}
.wp-block-table {
  width: 100%;
  overflow: auto;
  margin: 25px 0;
}
.wp-block-table table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}
.wp-block-table td {
  padding: 23px 25px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: anywhere;
}
.wp-block-table tr:first-child td {
  border-top: 1px solid var(--line);
}
.wp-block-table td:first-child {
  width: 31%;
  background: var(--pale);
  font-weight: 700;
}
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 35px;
}
.wide-photo img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
}
.caption {
  font-size: 13px;
  color: #485c70;
  margin-top: 15px;
}
.notice {
  padding: 30px;
  background: var(--pale);
  margin: 35px 0;
}
.notice p:last-child {
  margin-bottom: 0;
}
.prices {
  scroll-margin-top: 35px;
}
.image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.image-pair img {
  aspect-ratio: 1.5;
  object-fit: cover;
}
.post-card {
  border-bottom: 1px solid var(--line);
  padding-bottom: 25px;
}
.post-card a {
  text-decoration: none;
  color: var(--ink);
}
.post-card img {
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
  margin-bottom: 20px;
}
.post-card h2 {
  font-size: 1.4rem;
}
.article {
  max-width: 1000px;
}
.article-image {
  width: 100%;
  max-height: 640px;
  object-fit: cover;
  margin-bottom: 45px;
}
.entry-content {
  margin-bottom: 50px;
}
.entry-content img {
  height: auto;
}
.wp-block-embed iframe {
  max-width: 100%;
}
.skip-link {
  position: absolute;
  left: 20px;
  top: -120px;
  background: white;
  color: var(--blue);
  padding: 15px;
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
.navigation.pagination {
  margin-block: 48px;
}
.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 48px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  letter-spacing: 0;
  text-decoration: none;
}
.navigation.pagination .page-numbers.current,
.navigation.pagination a.page-numbers:hover,
.navigation.pagination a.page-numbers:focus-visible {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--paper);
  opacity: 1;
}
.navigation.pagination a.page-numbers:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.navigation.pagination .page-numbers.prev,
.navigation.pagination .page-numbers.next {
  padding-inline: 20px;
}
.navigation.pagination .page-numbers.dots {
  min-width: 24px;
  padding-inline: 0;
  border-color: transparent;
  background: transparent;
  color: var(--ink);
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.alignwide {
  width: 100%;
}
.aligncenter {
  margin-inline: auto;
}
.wp-block-image img {
  height: auto;
}
.hero-photo img {
  height: 100%;
}
.editor-styles-wrapper {
  padding: 25px;
}
.editor-styles-wrapper .hero-photo {
  position: relative;
  inset: auto;
}
.editor-styles-wrapper .hero:after {
  display: none;
}
@media (min-width: 1500px) {
  .hero {
    min-height: 780px;
    padding-left: calc((100vw - 1260px) / 2);
  }
}
@media (max-width: 1100px) {
  .header-caption {
    display: none;
  }
  .menu-toggle {
    display: block;
    margin-left: auto;
  }
  .site-header {
    padding: 18px 28px;
    min-height: 85px;
  }
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 8px 14px #182c4314;
    padding: 20px 30px;
    max-height: 75vh;
    overflow: auto;
  }
  .primary-nav.is-open {
    display: block;
  }
  .primary-nav ul {
    display: block;
  }
  .primary-nav a {
    display: block;
    padding: 12px;
    border-bottom: 1px solid var(--line);
  }
  .primary-nav li > .sub-menu {
    display: block;
    position: static;
    box-shadow: none;
    padding: 0 0 0 18px;
  }
  .hero {
    min-height: 660px;
    padding-left: 5%;
  }
  .wrap {
    padding-inline: 32px;
  }
  .contact-band {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .contact-actions {
    min-width: 0;
    max-width: 450px;
  }
  .intro {
    gap: 35px;
  }
  .split {
    gap: 30px;
  }
}
@media (max-width: 700px) {
  .navigation.pagination {
    margin-block: 36px;
  }
  .navigation.pagination .nav-links {
    gap: 8px;
  }
  .navigation.pagination .page-numbers {
    min-width: 44px;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 14px;
  }
  .navigation.pagination .page-numbers.prev,
  .navigation.pagination .page-numbers.next {
    padding-inline: 14px;
  }
  body {
    line-height: 1.85;
    letter-spacing: 0.02em;
  }
  .wrap {
    padding-inline: 22px;
  }
  .brand {
    width: 90px;
  }
  .site-header {
    padding: 15px 20px;
    min-height: 76px;
  }
  .hero {
    min-height: 0;
    padding: 320px 22px 68px;
    margin-bottom: 0;
    background: var(--paper);
  }
  .hero-photo {
    inset: 0 0 auto 0;
    height: 340px;
  }
  .hero:after {
    background: linear-gradient(0deg, #fff 0%, #ffffff00 100%);
    inset: 235px 0 auto;
    height: 110px;
  }
  .hero-copy .eyebrow {
    font-size: 12px;
    letter-spacing: 0.03em;
  }
  .hero h1 {
    font-size: clamp(2rem, 7.8vw, 3.2rem);
    margin: 16px 0 22px;
  }
  .hero-copy > p:not(.eyebrow) {
    font-size: 15px;
  }
  .hero-foot {
    font-size: 12px;
    left: 0;
    right: 0;
    text-align: center;
    padding: 12px 10px;
  }
  .section {
    padding-block: 45px;
  }
  .intro,
  .split,
  .recruit-banner {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .intro .section-heading {
    margin-bottom: 0;
  }
  .cards,
  .cards.two {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .service-card img {
    aspect-ratio: 1.65;
  }
  .strengths .service-card {
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 0 15px;
  }
  .strengths .service-card p:last-child {
    grid-column: 2;
  }
  .strengths .number {
    grid-row: span 2;
  }
  .recruit-banner {
    margin-block: 40px;
    gap: 0;
  }
  .recruit-banner figure img {
    min-height: 0;
    aspect-ratio: 1.5;
    height: auto;
  }
  .recruit-copy {
    padding: 30px 24px;
  }
  .contact-band {
    margin-top: 55px;
    padding: 40px 24px;
  }
  .contact-band .button {
    width: 100%;
    gap: 15px;
    padding: 17px;
  }
  .site-footer {
    padding: 40px 24px 20px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .footer-bottom {
    display: block;
  }
  .footer-bottom span {
    display: block;
    margin-top: 8px;
  }
  .page-heading {
    padding-top: 24px;
    padding-bottom: 35px;
  }
  .breadcrumb {
    margin-bottom: 30px;
    font-size: 12px;
  }
  .split img {
    aspect-ratio: 1.5;
  }
  .wp-block-table td {
    padding: 16px 12px;
    font-size: 14px;
  }
  .wp-block-table td:first-child {
    width: 38%;
  }
  .notice {
    padding: 22px;
  }
  .image-pair {
    grid-template-columns: 1fr;
  }
  .button {
    font-size: 14px;
    padding: 16px 20px;
    gap: 20px;
  }
  .footer-nav ul {
    gap: 12px;
  }
  .page-content p {
    overflow-wrap: anywhere;
  }
  .article .page-heading h1 {
    font-size: 2rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* WordPressのflowレイアウト余白を、並列配置する要素に適用しない。 */
.wp-block-group.cards > *,
.wp-block-group.split > *,
.wp-block-group.intro > *,
.wp-block-group.recruit-banner > *,
.wp-block-group.image-pair > *,
.wp-block-group.link-row > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
  min-width: 0;
}
.wp-block-group.hero > .hero-photo,
.wp-block-group.hero > .hero-copy,
.wp-block-group.hero > .hero-foot {
  margin-block-start: 0;
  margin-block-end: 0;
}
.wp-block-group.hero > .hero-photo {
  margin-inline: 0;
}
.wp-block-group .service-card > .wp-block-image {
  margin-top: 0;
}
.header-caption {
  width: auto;
  min-width: 128px;
  flex: 0 0 auto;
  font-size: 13px;
  line-height: 1.7;
}
.site-header {
  gap: 22px;
}
h1,
h2,
h3 {
  line-break: strict;
  overflow-wrap: break-word;
  word-break: normal;
  text-wrap: pretty;
}
p {
  line-break: strict;
  overflow-wrap: break-word;
  word-break: normal;
}
.page-content p {
  overflow-wrap: break-word;
}
.intro {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
}
.intro h2 {
  font-size: clamp(1.5rem, 2.3vw, 2.15rem);
}
.split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.split h2,
.recruit-copy h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
}
.service-card h3 {
  font-size: clamp(1.05rem, 1.65vw, 1.25rem);
  letter-spacing: 0.03em;
}
.contact-band > div:first-child {
  flex: 1;
  min-width: 0;
}
.contact-band h2 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  letter-spacing: 0.02em;
}
.contact-actions {
  flex: 0 0 auto;
  min-width: 0;
}
.button {
  white-space: normal;
  line-height: 1.6;
  text-align: left;
}
.button > span {
  flex-shrink: 0;
}
.wp-block-table table,
.wp-block-table th,
.wp-block-table td {
  border: 1px solid var(--line);
  border-color: var(--line);
}
.wp-block-table tr:first-child td {
  border-top-color: var(--line);
}
.wp-block-table figure {
  border-color: var(--line);
}
.staff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-block: 45px 75px;
}
.staff-card {
  min-width: 0;
}
.staff-portrait {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  object-fit: cover;
  background: var(--pale);
}
.staff-portrait.is-default {
  object-fit: contain;
}
.staff-copy {
  padding-top: 25px;
}
.staff-copy h2 {
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  margin-bottom: 20px;
}
.staff-copy .eyebrow {
  margin-bottom: 10px;
}
@media (max-width: 1200px) and (min-width: 1101px) {
  .primary-nav ul {
    gap: 16px;
  }
  .header-caption {
    min-width: 110px;
    font-size: 12px;
  }
}
@media (min-width: 701px) and (max-width: 950px) {
  .intro,
  .split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .intro h2,
  .split h2 {
    font-size: 2rem;
  }
  .split img {
    aspect-ratio: 1.7;
    max-height: 440px;
  }
  .recruit-copy {
    padding: 32px 25px;
  }
  .recruit-copy h2 {
    font-size: 1.6rem;
  }
  .cards {
    gap: 20px;
  }
}
@media (max-width: 700px) {
  .intro,
  .split {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .hero h1 {
    font-size: clamp(1.4rem, 6.8vw, 2.65rem);
    letter-spacing: 0.04em;
  }
  .hero-copy .eyebrow {
    max-width: 28em;
    line-height: 1.8;
    text-wrap: pretty;
  }
  .hero-copy p br,
  .contact-band h2 br,
  .split h2 br,
  .intro h2 br,
  .recruit-copy h2 br {
    display: none;
  }
  .hero-foot {
    letter-spacing: 0;
  }
  .intro h2,
  .split h2,
  .recruit-copy h2 {
    font-size: clamp(1.5rem, 6vw, 1.9rem);
    text-wrap: balance;
  }
  .service-card h3 {
    font-size: 1.2rem;
  }
  .staff-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .contact-actions {
    width: 100%;
    max-width: 450px;
  }
  .contact-band h2 {
    text-wrap: balance;
  }
  .primary-nav a {
    white-space: normal;
  }
  .footer-nav ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.prosa-phrase {
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
}
@supports (word-break: auto-phrase) {
  h1,
  h2,
  h3,
  p,
  td {
    word-break: auto-phrase;
  }
}

/* お知らせ：背景写真の上に、縦スクロールの一覧を配置。 */
.home-news { position:relative; isolation:isolate; padding:80px 0; margin-top:70px; background:var(--blue); }
.home-news-background { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center right; z-index:-2; }
.home-news::before { content:""; position:absolute; inset:0; background:rgba(15,35,58,.3); z-index:-1; }
.home-news-panel { width:min(100%,850px); padding:45px 48px; background:rgba(255,255,255,.96); }
.news-heading { border-bottom:2px solid var(--blue); padding-bottom:23px; margin-bottom:15px; }
.news-heading h2 { margin:0; }
.news-heading .eyebrow { margin-bottom:10px; }
.news-scroll { max-height:430px; overflow-y:auto; overflow-x:hidden; scrollbar-gutter:stable; scrollbar-width:auto; scrollbar-color:var(--blue) var(--line); padding-right:16px; }
.news-scroll::-webkit-scrollbar { width:10px; }
.news-scroll::-webkit-scrollbar-track { background:var(--line); }
.news-scroll::-webkit-scrollbar-thumb { background:var(--blue); border:2px solid var(--line); }
.news-scroll:focus-visible { outline:3px solid var(--blue); outline-offset:5px; }
.news-item { border-bottom:1px solid var(--line); }
.news-row { display:grid; grid-template-columns:100px minmax(0,1fr) 18px; gap:20px; padding:17px 0; color:var(--ink); text-decoration:none; align-items:center; min-height:62px; }
.news-row time { font-size:13px; letter-spacing:0; font-variant-numeric:tabular-nums; padding-top:0; }
.news-text { min-width:0; }
.news-text h2,.news-text h3 { font-size:16px; line-height:1.65; letter-spacing:.02em; margin:0; }
.news-text p { font-size:15px; line-height:1.85; margin:0; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; }
.news-arrow { color:var(--blue); }
.news-all { margin-top:25px; }
.news-empty { margin-block:28px; }
.news-archive { max-width:1100px; }
.news-list .news-row { padding-block:18px; }
.news-list .news-text h2 { font-size:18px; }
.news-row:hover .news-text { text-decoration:underline; text-underline-offset:4px; }
.news-row:focus-visible { outline:2px solid var(--blue); outline-offset:-2px; }
.news-detail .entry-content { overflow-wrap:anywhere; }
.news-detail .entry-content h2 { margin-block:52px 22px; }
.news-detail .entry-content h3 { margin-block:36px 18px; }
.news-detail .entry-content h2:first-child,.news-detail .entry-content h3:first-child { margin-top:0; }
@media(max-width:950px) { .home-news-panel { width:100%; padding:35px; } }
@media(max-width:700px) {
 .news-detail .entry-content h2 { margin-block:38px 18px; }
 .news-detail .entry-content h3 { margin-block:28px 14px; }
 .home-news { padding:35px 0; margin-top:45px; }
 .home-news>.wrap { padding-inline:16px; }
 .home-news-panel { padding:27px 20px; }
 .news-scroll { max-height:400px; padding-right:10px; }
 .news-row,.news-list .news-row { grid-template-columns:minmax(0,1fr) 15px; gap:3px 10px; padding-block:13px; }
 .news-row time { grid-column:1; }
 .news-text { grid-column:1; }
 .news-arrow { grid-column:2; grid-row:2; }
 .news-text h2,.news-text h3,.news-list .news-text h2 { font-size:15px; }
 .news-text p { font-size:14px; }
}

/* トップ末尾の写真背景と問い合わせ帯を、白い隙間なくつなぐ。 */
.home #main + .contact-band {
  margin-top: 0;
}

/* 固定ボタンはページに重ね、本文の幅と中央配置を変えない。 */
.fixed-contact { position: fixed; z-index: 40; right: 0; top: 45%; transform: translateY(-50%); width: 76px; display: grid; box-shadow: 0 2px 12px #102c4420; }
.fixed-contact a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 86px; padding: 12px 5px; color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; line-height: 1.4; }
.fixed-contact .fixed-phone { background: #164688; }
.fixed-contact .fixed-mail { background: #344556; }
.fixed-contact svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.back-to-top { position: fixed; z-index: 39; right: 10px; bottom: 24px; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: #344556; color: #fff; box-shadow: 0 2px 10px #102c4430; text-decoration: none; }
.back-to-top svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
.fixed-contact a:focus-visible, .back-to-top:focus-visible { outline: 3px solid #d18b27; outline-offset: -4px; }
@media (max-width: 700px) {
  .prosa-fixed-tools { padding-right: 0; padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  .fixed-contact { top: auto; bottom: 0; left: 0; width: auto; transform: none; grid-auto-flow: column; grid-auto-columns: 1fr; background: #344556; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .fixed-contact a { flex-direction: row; min-height: 62px; padding: 12px; gap: 10px; font-size: 15px; }
  .back-to-top { right: 14px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; }
  html { scroll-padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .fixed-contact, .back-to-top { display: none; } .prosa-fixed-tools { padding: 0; } }

.menu-toggle svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-toggle .menu-icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-icon-bars { display: none; }
.menu-toggle[aria-expanded="true"] .menu-icon-close { display: block; }

/* Separate general inquiries from estimates and construction requests. */
.contact-actions { display:flex; flex-direction:column; gap:4px; }
.contact-actions .contact-general-link { color:#fff; text-decoration:none; font-size:14px; padding:12px 0; }
.contact-actions .contact-general-link:hover { text-decoration:underline; }
.inquiry-switch { padding:20px 24px; border-left:3px solid var(--blue); background:var(--pale); color:var(--ink); }
@media(max-width:700px) { .inquiry-switch { padding:20px; } }
.footer-bottom { flex-wrap:wrap; gap:18px; }
.footer-policy { color:var(--blue); text-decoration:none; }
.footer-policy:hover { text-decoration:underline; }
