﻿/*
Theme Name: madodan Theme
Theme URI: https://madodan.jp/
Author: madodan
Description: madodan.jp full WordPress migration theme.
Version: 0.2.0
Requires at least: 6.6
Tested up to: 6.6
Requires PHP: 8.1
Text Domain: madodan-theme
*/

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  color: #111;
  background: #f2f5f8;
  line-height: 1.7;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.md-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.md-section {
  padding: 72px 0;
}

.md-list-hero {
  background: #33a9df;
  padding: 112px 0 48px;
  color: #fff;
}

.md-list-hero-inner {
  margin-top: 24px;
}

.md-list-hero-title {
  margin: 0;
  font-size: 36px;
  line-height: 1.25;
  font-weight: 900;
}

.md-list-hero-text {
  margin: 16px 0 0;
  max-width: 720px;
  min-height: 64px;
  font-size: 16px;
  line-height: 2;
}

.md-crumb-wrap {
  background: #fff;
  padding: 18px 0;
  border-bottom: 1px solid #e9eff4;
}

.md-crumbs {
  font-size: 13px;
  color: #4d6375;
}

.md-crumbs a {
  color: #147fbc;
  text-decoration: none;
}

.md-list-section {
  background: #fff;
  padding: 56px 0 88px;
}

.md-list-grid-2 {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .md-list-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .md-list-hero {
    padding-top: 144px;
    padding-bottom: 30px;
  }
}

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

@media (min-width: 900px) {
  .md-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.md-card {
  border: 1px solid #dbe6ee;
  border-radius: 22px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 10px 24px rgba(24, 50, 74, 0.08);
}

.md-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.md-pill {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.md-pill.area {
  background: #33a9df;
  color: #fff;
}

.md-pill.kind {
  background: #f0831e;
  color: #fff;
}

.md-meta {
  color: #6b7280;
  font-size: 13px;
}

.md-title {
  margin: 8px 0 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.4;
}

.md-desc {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.9;
}

.md-hero {
  background: #33a9df;
  color: #fff;
  padding: 88px 0 76px;
}

.md-hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.md-hero p {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.9;
  max-width: 780px;
}

.md-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.md-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 300px;
  border-radius: 12px;
  padding: 16px 24px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s ease;
}

.md-btn:hover {
  transform: translateY(-1px);
}

.md-btn.primary {
  border: 1px solid #1a5fa8;
  background: #1a5fa8;
  color: #fff;
}

.md-btn.ghost {
  border: 1px solid #1a5fa8;
  background: #fff;
  color: #1a5fa8;
}

.md-sec-title {
  margin: 0;
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 800;
  line-height: 1.3;
}

.md-sec-lead {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.9;
}

.md-list-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 900px) {
  .md-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.md-list-card {
  border: 1px solid #dbe6ee;
  border-radius: 22px;
  background: #fff;
  padding: 24px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(24, 50, 74, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.md-list-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(24, 50, 74, 0.12);
}

.md-list-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.md-list-icon {
  width: 96px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  flex-shrink: 0;
  border: 1px solid #d8e7f2;
  background: linear-gradient(180deg, #f3fbff 0%, #e4f4ff 100%);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #1a5fa8;
  text-align: center;
  line-height: 1.4;
  padding: 8px;
}

.md-list-icon-image {
  padding: 0;
  overflow: hidden;
}

.md-list-icon-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .md-list-icon {
    width: 110px;
  }
}

.md-topbar {
  background: #33a9df;
  color: #fff;
}

.md-topbar-inner {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.md-topbar-phone {
  color: #fff;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  text-decoration: none;
}

.md-topbar-note {
  font-size: 16px;
  font-weight: 500;
}

.md-site-header {
  background: #fff;
  border-bottom: 1px solid #dbe6ee;
  position: sticky;
  top: 0;
  z-index: 20;
}

.md-header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.md-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.md-logo img {
  width: 208px;
  max-width: 100%;
  height: auto;
}

.md-nav {
  flex: 1;
}

.md-nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.md-nav-list li {
  margin: 0;
}

.md-nav-list a {
  text-decoration: none;
  display: inline-block;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 600;
  color: #000;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.md-nav-list a:hover {
  background: #f1f8fe;
  color: #000;
}

.md-header-cta {
  display: flex;
  gap: 10px;
}

.md-header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 158px;
  height: 46px;
  border-radius: 6px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(24, 50, 74, 0.12);
}

.md-header-btn.estimate {
  background: #1a5fa8;
  border: 1px solid #1a5fa8;
  color: #fff;
}

.md-header-btn.contact {
  background: #4f46e5;
  border: 1px solid #4f46e5;
  color: #fff;
}

.md-footer-cta {
  margin-top: 72px;
  background: #0096db;
  color: #fff;
  padding: 48px 0;
}

.md-footer-cta h2 {
  margin: 0;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
}

.md-footer-cta p {
  margin: 10px 0 0;
  font-size: 16px;
}

.md-site-footer {
  background: #051634;
  color: #fff;
  padding: 40px 0 16px;
  border-top: 0;
}

.md-footer-grid {
  display: grid;
  gap: 36px;
}

@media (min-width: 900px) {
  .md-footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.md-footer-logo {
  margin: 0 0 16px;
}

.md-footer-logo img {
  width: 280px;
  max-width: 100%;
  height: auto;
}

.md-footer-copyline {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.md-footer-title {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
}

.md-footer-text {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.8;
  color: #fff;
}

.md-footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.md-footer-nav a {
  text-decoration: none;
  font-size: 16px;
  line-height: 1.8;
  color: #fff;
}

.md-copy {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 14px;
  color: #fff;
}

@media (max-width: 900px) {
  .md-topbar { display: none; }

  .md-header-inner {
    min-height: auto;
    padding: 10px 0 14px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .md-logo img {
    width: 220px;
  }

  .md-nav-list {
    gap: 10px 14px;
    justify-content: center;
  }

  .md-nav-list a {
    font-size: 14px;
    padding: 6px 8px;
  }

  .md-header-cta {
    width: 100%;
    justify-content: center;
  }

  .md-header-btn {
    min-width: 152px;
    height: 44px;
    font-size: 14px;
  }

  .md-btn {
    min-width: 100%;
  }
}
