/* =========================================================
   MSHパートナーズ TOPページ 初版
   ========================================================= */

:root {
  --color-white: #ffffff;
  --color-bg: #f7f8f8;
  --color-charcoal: #2b3034;
  --color-charcoal-soft: #4a5156;
  --color-accent: #3c7a74;      /* 落ち着いたブルーグリーン */
  --color-accent-dark: #2d5d58;
  --color-accent-soft: #e7f0ee;
  --color-line: #e3e6e7;
  --color-line-green: #06c755;

  --font-base: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
    "Yu Gothic", Meiryo, sans-serif;

  --max-width: 1120px;
  --radius: 10px;
  --shadow-card: 0 2px 10px rgba(43, 48, 52, 0.08);

  --header-height: 64px;
  --fixed-cta-height: 64px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-charcoal);
  background-color: var(--color-white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--fixed-cta-height);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3 {
  line-height: 1.4;
  margin: 0;
}

p {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 8px 16px;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
}

/* =========================================================
   ヘッダー
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-line);
  height: var(--header-height);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-main {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-charcoal);
}

.logo-sub {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  margin-top: 2px;
}

.nav-toggle {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 510;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--color-charcoal);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.site-nav.is-open {
  transform: translateX(0);
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
}

.site-nav li {
  border-bottom: 1px solid var(--color-line);
}

.site-nav a {
  display: block;
  padding: 16px 8px;
  font-size: 16px;
}

.nav-cta {
  color: var(--color-accent);
  font-weight: 700;
}

/* =========================================================
   共通セクション
   ========================================================= */

.section {
  padding: 56px 0;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-lead {
  color: var(--color-charcoal-soft);
  margin-bottom: 24px;
}

.section-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--color-charcoal-soft);
}

.regenerate {
  background: var(--color-accent-soft);
}

.regenerate p.section-lead {
  color: var(--color-charcoal);
  max-width: 760px;
}

.regen-points {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.regen-points li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}

.regen-points-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.regen-points-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-accent-dark);
}

.regen-points-desc {
  font-size: 13px;
  color: var(--color-charcoal-soft);
}

@media (min-width: 768px) {
  .regen-points {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================================================
   ヒーロー
   ========================================================= */

.hero {
  background: linear-gradient(180deg, var(--color-accent-soft) 0%, var(--color-white) 100%);
  padding: 40px 0;
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.hero-content {
  text-align: left;
  min-width: 0;
}

.hero-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 14px;
  word-break: normal;
  overflow-wrap: anywhere;
}

.hero-catch {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 15px;
  color: var(--color-charcoal-soft);
  margin-bottom: 28px;
  max-width: 460px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-note {
  font-size: 12px;
  color: var(--color-charcoal-soft);
}

.hero-media {
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hero-image {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

/* =========================================================
   ボタン
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  transition: opacity 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  opacity: 0.85;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-line {
  background: var(--color-line-green);
  color: var(--color-white);
}

.btn-tel {
  background: var(--color-white);
  color: var(--color-accent-dark);
  border: 1px solid var(--color-accent);
}

/* =========================================================
   どこを直したいですか？ カード
   ========================================================= */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.concern-card {
  display: block;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

a.concern-card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

a.concern-card:hover,
a.concern-card:focus-visible {
  box-shadow: 0 4px 16px rgba(43, 48, 52, 0.14);
  transform: translateY(-2px);
}

.card-image {
  aspect-ratio: 4 / 3;
  background: var(--color-accent-soft);
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.concern-card h3 {
  font-size: 14px;
  padding: 12px;
}

/* =========================================================
   専門サービス(ブランド紹介)
   ========================================================= */

.brand-grid {
  display: grid;
  gap: 16px;
}

.brand-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
}

.brand-logo {
  width: auto;
  max-width: 180px;
  height: auto;
  margin-bottom: 16px;
}

.brand-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.brand-desc {
  font-size: 14px;
  color: var(--color-charcoal-soft);
  margin-bottom: 20px;
}

.brand-link {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 14px;
}

/* =========================================================
   施工方法の説明
   ========================================================= */

.method-grid {
  display: grid;
  gap: 16px;
}

.method-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.method-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.method-catch {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-bottom: 14px;
}

.method-desc {
  font-size: 14px;
  color: var(--color-charcoal-soft);
  margin-bottom: 14px;
}

.method-desc:last-of-type {
  margin-bottom: 0;
}

.method-subhead {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin: 20px 0 8px;
  padding-top: 16px;
  border-top: 1px solid var(--color-line);
}

.method-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--color-charcoal-soft);
}

@media (min-width: 768px) {
  .method-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }
}

/* =========================================================
   Before / After
   ========================================================= */

.before-after-grid {
  display: grid;
  gap: 24px;
}

.ba-card h3 {
  font-size: 15px;
  margin-bottom: 12px;
}

.ba-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ba-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
}

.ba-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ba-badge {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-white);
  z-index: 1;
}

.ba-badge-before {
  background: rgba(74, 81, 86, 0.85);
}

.ba-badge-after {
  background: rgba(60, 122, 116, 0.9);
}

.ba-single {
  /* 浴槽再生・キッチン再生(.ba-images、縦横比4:3を2列)と高さを揃えるための比率 */
  aspect-ratio: 8 / 3;
  border-radius: var(--radius);
  overflow: hidden;
}

.ba-single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* =========================================================
   料金
   ========================================================= */

.price-grid {
  display: grid;
  gap: 16px;
}

.price-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.price-card h3 {
  font-size: 15px;
  margin-bottom: 12px;
}

.price-meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-charcoal-soft);
  margin-bottom: 8px;
  min-height: 1.4em;
}

.price-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-bottom: 8px;
}

.price-note {
  font-size: 12px;
  color: var(--color-charcoal-soft);
}

/* カード導線から直接遷移した際、固定ヘッダーに隠れないための余白 */
#wallpaper,
#bath,
#kitchen,
#washbasin,
#washbasin-works,
#toilet,
#company {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

/* =========================================================
   原状回復
   ========================================================= */

.restoration {
  background: var(--color-bg);
}

.restoration-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.restoration-list li {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
}

/* =========================================================
   対応エリア
   ========================================================= */

.area {
  background: var(--color-accent-soft);
}

.area-group {
  margin-top: 20px;
}

.area-group-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-bottom: 10px;
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.area-tags li {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--color-charcoal);
}

/* =========================================================
   FAQ
   ========================================================= */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item h3 {
  margin: 0;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: var(--color-white);
  border: none;
  padding: 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-charcoal);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: "+";
  font-size: 20px;
  color: var(--color-accent);
  margin-left: 12px;
  transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  background: var(--color-bg);
}

.faq-answer p {
  font-size: 14px;
  color: var(--color-charcoal-soft);
  padding: 16px 0;
}

.faq-item.is-open .faq-answer {
  max-height: 400px;
  padding: 0 16px;
}

/* =========================================================
   最終CTA
   ========================================================= */

.final-cta {
  background: var(--color-charcoal);
  color: var(--color-white);
  text-align: center;
}

.final-cta h2 {
  color: var(--color-white);
}

.final-cta .hero-note {
  color: rgba(255, 255, 255, 0.7);
}

.final-cta .btn-tel {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* =========================================================
   会社概要
   ========================================================= */

.company {
  background: var(--color-bg);
}

.company-list {
  margin: 0;
  border-top: 1px solid var(--color-line);
}

.company-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-line);
}

.company-row dt {
  flex: 0 0 96px;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent-dark);
}

.company-row dd {
  flex: 1 1 200px;
  margin: 0;
  font-size: 14px;
  color: var(--color-charcoal);
}

/* =========================================================
   フッター
   ========================================================= */

.site-footer {
  background: var(--color-charcoal);
  color: rgba(255, 255, 255, 0.85);
  padding: 32px 0 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
}

.footer-brand {
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.footer-nav a,
.footer-ph {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.footer-social-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  color: rgba(255, 255, 255, 0.9);
}

.footer-social-icon {
  width: 14px;
  height: 14px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* =========================================================
   スマホ固定CTA
   ========================================================= */

.fixed-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--fixed-cta-height);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--color-white);
  border-top: 1px solid var(--color-line);
  z-index: 600;
}

.fixed-cta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  color: var(--color-charcoal);
}

.fixed-cta-icon {
  font-size: 18px;
}

.fixed-cta-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

/* =========================================================
   レスポンシブ: タブレット以上
   ========================================================= */

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    transform: none;
    background: transparent;
    overflow: visible;
  }

  .site-nav ul {
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 8px;
  }

  .site-nav li {
    border-bottom: none;
  }

  .site-nav a {
    padding: 8px 12px;
    font-size: 14px;
  }

  .btn {
    min-width: 180px;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .before-after-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .price-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .fixed-cta {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 80px 0;
  }

  .section h2 {
    font-size: 28px;
  }

  .card-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .concerns {
    padding: 60px 0;
  }
}

/* =========================================================
   レスポンシブ: ヒーロー2カラム（PC）
   ========================================================= */

@media (min-width: 900px) {
  .hero {
    padding: 64px 0;
  }

  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-catch {
    font-size: 18px;
  }

  .hero-desc {
    font-size: 16px;
    max-width: 440px;
  }

  .hero-cta {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero .hero-cta {
    flex-wrap: nowrap;
  }

  .hero .hero-cta .btn {
    flex: 1;
    min-width: 0;
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* =========================================================
   アクセシビリティ: 低モーション
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}

/* =========================================================
   フォーカス表示
   ========================================================= */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
