/* 追加分: ハンバーガーメニュー(幅900px以下)と会社概要ページ。元の style.css は触らない */

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .header { position: relative; z-index: 60; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    margin-left: 8px;
    padding: 0;
    border: 1px solid currentColor;
    background: transparent;
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    transition: transform .2s ease, background-color .2s ease;
  }
  .nav-toggle__bars { position: relative; }
  .nav-toggle__bars::before,
  .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; }
  .nav-toggle__bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

  .header nav[data-open] {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 8px 6% 16px;
    background: var(--navy);
    max-height: calc(100vh - 72px);
    max-height: calc(100svh - 72px);
    overflow-y: auto;
  }
  .header nav[data-open] a,
  .header nav[data-open] a:first-child {
    display: flex;
    align-items: center;
    min-height: 52px;
    color: #fff;
    font-size: 15px;
    border-bottom: 1px solid rgb(255 255 255 / 18%);
  }
}

@media (max-width: 460px) {
  .header .brand span { display: none; }
}

.company-page { background: #fff; color: var(--ink); }
.company-page main { background: #fff; padding-top: 24px; }
.company-page h1 { color: var(--ink); }
.company-page .section-label { color: var(--muted); }
.company-table { margin: 40px 0 0; max-width: 820px; }
.company-table div {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.company-table div:last-child { border-bottom: 1px solid var(--line); }
.company-table dt { color: var(--muted); font-size: 14px; }
.company-table dd { margin: 0; color: var(--ink); line-height: 1.8; }
.company-contact { margin-top: 32px; }

@media (max-width: 760px) {
  .company-table div { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px 0; }
}

/* 追加分(2): お知らせ・事業内容・紹介物件のスライド・系統用蓄電池とは・安心して進めるために */

.news { list-style: none; margin: 0; padding: 0; }
.news--page { margin-top: 32px; max-width: 900px; }
.news__item {
  display: grid;
  grid-template-columns: 7rem auto minmax(0, 1fr);
  gap: 4px 20px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.news__item:last-child { border-bottom: 1px solid var(--line); }
.news__date { font-size: 14px; color: var(--muted); }
.news__tag { align-self: center; }
.news__title { color: var(--ink); }
.news__body { grid-column: 3; font-size: 14px; color: var(--muted); }
.news__empty { padding: 18px 0; color: var(--muted); }

.five-section, .bess-section { background: #f4f6f6; }
.five { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.five > div { border-top: 1px solid #b5c1c4; padding-top: 18px; }
.five span, .bess-flow span { font-size: 28px; font-weight: 500; letter-spacing: -1px; color: #7d9697; }
.five h3 { font-size: 20px; margin-top: 4px; }
.five p { font-size: 14px; color: var(--muted); }

.props {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.props::-webkit-scrollbar { display: none; }
.props:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
.prop {
  flex: 0 0 min(84%, 26rem);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
}
.prop__img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.prop__body { display: flex; flex-direction: column; gap: 12px; padding: 22px; flex: 1; }
.prop__tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 1px 8px;
  border: 1px solid var(--navy);
  color: var(--navy);
}
.prop__name { font-size: 18px; }
.prop__spec { margin: 0; }
.prop__spec div {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 12px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.prop__spec dt { color: var(--muted); }
.prop__spec dd { margin: 0; }
.prop .text-link { margin-top: auto; }
.props-nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 20px; }
.props-nav[hidden] { display: none; }
.props-nav__btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font-size: 18px;
  cursor: pointer;
}
.props-nav__btn:disabled { opacity: .3; cursor: default; }
.props-nav__count { min-width: 3.5rem; text-align: center; font-size: 14px; color: var(--muted); }
.props__note { margin-top: 16px; font-size: 13px; color: var(--muted); }

.bess-copy { max-width: 820px; color: var(--muted); }
.bess-copy p + p { margin-top: 14px; }
.bess-flow { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.bess-flow li { border-top: 1px solid #b5c1c4; padding-top: 18px; }
.bess-flow h3 { font-size: 20px; margin-top: 4px; }
.bess-flow p { font-size: 14px; color: var(--muted); }
.bess-uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
.bess-uses h3 { font-size: 17px; }
.bess-uses p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.approach-section .bess-uses { margin-top: 0; }

.intent-buttons { flex-wrap: wrap; }

@media (max-width: 900px) {
  .five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bess-flow, .bess-uses { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 760px) {
  .news__item { grid-template-columns: auto minmax(0, 1fr); }
  .news__title, .news__body { grid-column: 1 / -1; }
  .prop__spec div { grid-template-columns: 5rem minmax(0, 1fr); }
}

/* ブラウザの暗い設定でも本文の背景を白に固定 */
html, body { background: #fff; }

/* 上部メニューを1段に収める */
@media (min-width: 901px) {
  .header nav { gap: 18px; flex-wrap: nowrap; }
  .header nav a { white-space: nowrap; font-size: 13px; }
}
@media (min-width: 901px) and (max-width: 1280px) {
  .header .brand span { display: none; }
  .header nav { gap: 14px; }
  .header nav a { font-size: 12px; }
  .header-cta { padding: 10px 14px; gap: 10px; white-space: nowrap; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .header { gap: 12px; }
  .header nav { gap: 9px; }
  .header-cta { padding: 9px 11px; }
}
