/* Front page layout fix
--------------------------------------------- */

/* Base */
.home,
.home body {
  background: #f3f5f6;
}

.home main {
  overflow: hidden;
}

.home .container {
  width: min(100% - 40px, 1120px);
  margin-right: auto;
  margin-left: auto;
}

.home .section {
  padding: 88px 0;
}

.home .section-alt {
  background: #e9edf0;
}

.home .section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.home .section-label {
  margin: 0 0 12px;
  color: #ed7d22;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.home .section-title {
  margin: 0;
  color: #25282a;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.45;
}

.home .section-description {
  margin: 18px 0 0;
  color: #62686c;
  font-size: 15px;
  line-height: 2;
}


/* Hero */
.home .hero {
  padding: 112px 0 88px;
  background:
    linear-gradient(
      135deg,
      #eef3f6 0%,
      #ffffff 58%,
      #f7efe8 100%
    );
}

.home .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 64px;
  align-items: center;
  width: min(100% - 40px, 1120px);
  margin-right: auto;
  margin-left: auto;
}

.home .hero-content {
  min-width: 0;
}

.home .hero-kicker,
.home .hero-label {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 6px 12px;
  border-left: 4px solid #ed7d22;
  background: #ffffff;
  color: #0866b3;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.home .hero-title {
  margin: 0;
  color: #25282a;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 900;
  line-height: 1.34;
  letter-spacing: -0.02em;
}

.home .hero-title strong,
.home .hero-title em {
  color: #0866b3;
  font-style: normal;
}

.home .hero-description,
.home .hero-lead {
  max-width: 700px;
  margin: 24px 0 0;
  color: #62686c;
  font-size: 16px;
  line-height: 2;
}

.home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.home .hero-media-panel {
  min-width: 0;
}

.home .hero-video-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid #d7dde2;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(25, 48, 64, 0.12);
}

.home .hero-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
}

.home .hero-video-caption {
  position: absolute;
  right: 22px;
  bottom: 20px;
  left: 22px;
  z-index: 2;
  color: #ffffff;
}

.home .hero-video-frame::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 52%,
      rgba(0, 0, 0, 0.45) 100%
    );
  content: "";
  pointer-events: none;
}

.home .hero-video-caption span,
.home .hero-video-caption strong {
  position: relative;
  z-index: 3;
  display: block;
}

.home .hero-video-caption span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.home .hero-video-caption strong {
  margin-top: 4px;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.5;
}

.home .hero-media-note {
  margin-top: 16px;
  padding: 18px 20px;
  border-left: 4px solid #ed7d22;
  background: #ffffff;
}

.home .hero-media-note p {
  margin: 0;
  color: #62686c;
  font-size: 13px;
  line-height: 1.85;
}


/* Buttons */
.home .button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  color: inherit;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
}

.home .button-primary {
  background: #0866b3;
  color: #ffffff;
}

.home .button-primary:hover {
  background: #064f8a;
}

.home .button-secondary {
  border-color: #0866b3;
  background: #ffffff;
  color: #0866b3;
}


/* Services */
.home .service-grid {
  display: grid;
  gap: 24px;
}

.home .service-card {
  display: grid;
  grid-template-columns: 180px 58px minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-areas:
    "visual number title summary"
    "visual number title list";
  gap: 14px 24px;
  align-items: start;
  padding: 30px;
  border: 1px solid #d7dde2;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(25, 48, 64, 0.05);
}

.home .service-visual {
  grid-area: visual;
  margin: 0;
}

.home .service-visual img {
  display: block;
  width: 100%;
  border: 1px solid #d7dde2;
  background: #f7f9fa;
}

.home .service-card .card-number {
  grid-area: number;
  margin: 0;
  color: #ed7d22;
  font-size: 12px;
  font-weight: 900;
}

.home .service-card h3 {
  grid-area: title;
  margin: 0;
  color: #25282a;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.55;
}

.home .service-card > p:not(.card-number) {
  grid-area: summary;
  margin: 0;
  color: #62686c;
  font-size: 14px;
  line-height: 1.9;
}

.home .service-card ul {
  grid-area: list;
  margin: 12px 0 0;
  padding-left: 1.2em;
  color: #62686c;
  font-size: 14px;
  line-height: 1.9;
}


/* Works / price / strengths / FAQ */
.home .works-grid,
.home .price-grid,
.home .strength-grid,
.home .faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.home .work-card,
.home .price-card,
.home .strength-card,
.home .faq-item {
  padding: 28px;
  border: 1px solid #d7dde2;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(25, 48, 64, 0.05);
}

.home .work-card h3,
.home .price-card h3,
.home .strength-card h3,
.home .faq-item h3 {
  margin-top: 0;
  color: #25282a;
  line-height: 1.55;
}

.home .work-card p,
.home .price-card p,
.home .strength-card p,
.home .faq-item p {
  color: #62686c;
  font-size: 14px;
  line-height: 1.9;
}


/* Latest articles on top */
.home .home-article-list {
  border-top: 1px solid #d7dde2;
}

.home .home-article-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  grid-template-areas:
    "meta link"
    "title link"
    "excerpt link";
  gap: 12px 40px;
  padding: 32px 0;
  border-bottom: 1px solid #d7dde2;
}

.home .home-article-meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}

.home .home-article-category {
  display: inline-flex;
  padding: 4px 10px;
  border-left: 3px solid #ed7d22;
  background: #fff1e5;
  color: #b75b12;
  font-size: 11px;
  font-weight: 800;
}

.home .home-article-date {
  color: #62686c;
  font-size: 12px;
}

.home .home-article-title {
  grid-area: title;
  margin: 0;
  color: #25282a;
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.65;
}

.home .home-article-excerpt {
  grid-area: excerpt;
  margin: 0;
  color: #62686c;
  font-size: 14px;
  line-height: 1.95;
}

.home .home-article-link {
  grid-area: link;
  display: flex;
  align-self: center;
  justify-content: space-between;
  gap: 12px;
  color: #0866b3;
  font-size: 13px;
  font-weight: 800;
}


/* About / contact */
.home .about-grid,
.home .contact-grid,
.home .contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: start;
}

.home .about-card,
.home .contact-card,
.home .contact-form-wrapper {
  padding: 32px;
  border: 1px solid #d7dde2;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(25, 48, 64, 0.05);
}


/* Responsive */
@media (max-width: 980px) {
  .home .hero-inner {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .home .hero-media-panel {
    max-width: 760px;
  }

  .home .service-card {
    grid-template-columns: 150px 48px minmax(0, 1fr);
    grid-template-areas:
      "visual number title"
      "visual . summary"
      "visual . list";
  }

  .home .works-grid,
  .home .price-grid,
  .home .strength-grid,
  .home .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home .about-grid,
  .home .contact-grid,
  .home .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .home .container,
  .home .hero-inner {
    width: min(100% - 28px, 1120px);
  }

  .home .section {
    padding: 66px 0;
  }

  .home .hero {
    padding: 86px 0 56px;
  }

  .home .hero-title {
    font-size: clamp(34px, 10vw, 46px);
  }

  .home .hero-actions {
    flex-direction: column;
  }

  .home .hero-actions .button {
    width: 100%;
  }

  .home .service-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "visual"
      "number"
      "title"
      "summary"
      "list";
    padding: 24px;
  }

  .home .works-grid,
  .home .price-grid,
  .home .strength-grid,
  .home .faq-grid {
    grid-template-columns: 1fr;
  }

  .home .home-article-item {
    grid-template-columns: 1fr;
    grid-template-areas:
      "meta"
      "title"
      "excerpt"
      "link";
    gap: 12px;
  }

  .home .home-article-link {
    justify-content: flex-start;
  }

  .home .about-card,
  .home .contact-card,
  .home .contact-form-wrapper {
    padding: 24px;
  }
}


/* Service section emergency fix
--------------------------------------------- */

.home #services .service-grid,
.home .services .service-grid,
.home .service-section .service-grid,
.home .service-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 28px !important;
  align-items: stretch !important;
}

.home #services .service-card,
.home .services .service-card,
.home .service-section .service-card,
.home .service-card {
  display: block !important;
  min-width: 0 !important;
  height: 100% !important;
  padding: 30px !important;
  border: 1px solid #d7dde2 !important;
  border-top: 5px solid #0866b3 !important;
  background: #ffffff !important;
  box-shadow: 0 12px 34px rgba(25, 48, 64, 0.07) !important;
}

.home #services .service-visual,
.home .services .service-visual,
.home .service-section .service-visual,
.home .service-card .service-visual {
  display: block !important;
  margin: 0 0 22px !important;
}

.home #services .service-visual img,
.home .services .service-visual img,
.home .service-section .service-visual img,
.home .service-card .service-visual img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
  border: 1px solid #d7dde2 !important;
  background: #f7f9fa !important;
}

.home #services .service-card .card-number,
.home .services .service-card .card-number,
.home .service-section .service-card .card-number,
.home .service-card .card-number {
  display: inline-flex !important;
  margin: 0 0 10px !important;
  color: #ed7d22 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 0.12em !important;
}

.home #services .service-card h3,
.home .services .service-card h3,
.home .service-section .service-card h3,
.home .service-card h3 {
  margin: 0 0 14px !important;
  color: #25282a !important;
  font-size: 22px !important;
  line-height: 1.55 !important;
}

.home #services .service-card p,
.home .services .service-card p,
.home .service-section .service-card p,
.home .service-card p {
  margin: 0 0 18px !important;
  color: #62686c !important;
  font-size: 14px !important;
  line-height: 1.9 !important;
}

.home #services .service-card ul,
.home .services .service-card ul,
.home .service-section .service-card ul,
.home .service-card ul {
  margin: 18px 0 0 !important;
  padding: 18px 20px 18px 36px !important;
  border: 1px solid #e2e6ea !important;
  background: #f7f9fa !important;
  color: #444b50 !important;
  font-size: 14px !important;
  line-height: 1.9 !important;
}

.home #services .service-card li,
.home .services .service-card li,
.home .service-section .service-card li,
.home .service-card li {
  margin: 0 0 6px !important;
}

@media (max-width: 900px) {
  .home #services .service-grid,
  .home .services .service-grid,
  .home .service-section .service-grid,
  .home .service-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 700px) {
  .home #services .service-card,
  .home .services .service-card,
  .home .service-section .service-card,
  .home .service-card {
    padding: 24px !important;
  }

  .home #services .service-card h3,
  .home .services .service-card h3,
  .home .service-section .service-card h3,
  .home .service-card h3 {
    font-size: 20px !important;
  }
}


/* Front page heading width fix
--------------------------------------------- */

.home .section-heading {
  max-width: 980px !important;
}

.home .section-title,
.home h2.section-title {
  max-width: 980px !important;
}

.home .section-description {
  max-width: 900px !important;
}


/* Reduce too many card styles
--------------------------------------------- */

/* 提供サービス：カードではなく横長の説明ブロック */
.home #services .service-grid,
.home .services .service-grid,
.home .service-section .service-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  border-top: 1px solid #d7dde2 !important;
}

.home #services .service-card,
.home .services .service-card,
.home .service-section .service-card {
  display: grid !important;
  grid-template-columns: 180px minmax(0, 1fr) minmax(280px, 0.8fr) !important;
  gap: 28px !important;
  align-items: start !important;
  padding: 34px 0 !important;
  border: none !important;
  border-bottom: 1px solid #d7dde2 !important;
  border-top: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.home #services .service-visual,
.home .services .service-visual,
.home .service-section .service-visual {
  margin: 0 !important;
}

.home #services .service-visual img,
.home .services .service-visual img,
.home .service-section .service-visual img {
  border: 1px solid #d7dde2 !important;
  background: #ffffff !important;
}

.home #services .service-card .card-number,
.home .services .service-card .card-number,
.home .service-section .service-card .card-number {
  display: block !important;
  margin: 0 0 8px !important;
}

.home #services .service-card h3,
.home .services .service-card h3,
.home .service-section .service-card h3 {
  margin: 0 0 14px !important;
  font-size: clamp(22px, 2.8vw, 30px) !important;
}

.home #services .service-card p,
.home .services .service-card p,
.home .service-section .service-card p {
  margin: 0 !important;
}

.home #services .service-card ul,
.home .services .service-card ul,
.home .service-section .service-card ul {
  margin: 0 !important;
  padding: 0 0 0 1.2em !important;
  border: none !important;
  background: transparent !important;
}

/* 強み：カードではなくシンプルな3カラム */
.home .strength-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 32px !important;
}

.home .strength-card {
  padding: 0 0 0 22px !important;
  border: none !important;
  border-left: 4px solid #0866b3 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* FAQ：カードではなく罫線リスト */
.home .faq-grid {
  display: block !important;
  border-top: 1px solid #d7dde2 !important;
}

.home .faq-item {
  padding: 28px 0 !important;
  border: none !important;
  border-bottom: 1px solid #d7dde2 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.home .faq-item h3 {
  margin-bottom: 10px !important;
}

/* 記事：カードではなく一覧リスト */
.home .article-card,
.home .home-article-item {
  border-right: none !important;
  border-left: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* 残すカード：実績・料金・問い合わせ */
.home .work-card,
.home .price-card,
.home .contact-card,
.home .contact-form-wrapper {
  background: #ffffff !important;
  box-shadow: 0 12px 34px rgba(25, 48, 64, 0.07) !important;
}

/* スマホ調整 */
@media (max-width: 900px) {
  .home #services .service-card,
  .home .services .service-card,
  .home .service-section .service-card {
    grid-template-columns: 140px minmax(0, 1fr) !important;
  }

  .home #services .service-card ul,
  .home .services .service-card ul,
  .home .service-section .service-card ul {
    grid-column: 2 !important;
    margin-top: 14px !important;
  }

  .home .strength-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 700px) {
  .home #services .service-card,
  .home .services .service-card,
  .home .service-section .service-card {
    display: block !important;
    padding: 30px 0 !important;
  }

  .home #services .service-visual,
  .home .services .service-visual,
  .home .service-section .service-visual {
    margin-bottom: 18px !important;
  }

  .home #services .service-card ul,
  .home .services .service-card ul,
  .home .service-section .service-card ul {
    margin-top: 16px !important;
  }
}
