@charset "UTF-8";

/* ==========================================================================
   メインビュー (PC: 通常表示 / SP: 確実に表示されるようスライダー内部まで高さ指定)
   ========================================================================== */
.main-visual {
  margin-top: 80px; /* ヘッダー高さ分 */
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  background-color: #ffffff; /* 左下の角丸の背景色 */
}

/* Slickが生成する .slick-list や .slick-track にも高さを指定して潰れを防止 */
.mv-slider,
.mv-slider .slick-list,
.mv-slider .slick-track,
.mv-slide,
.mv-img {
  width: 100%;
  height: 600px !important;
}

/* 画像の角丸と背景配置（左下のみ角丸） */
.mv-img {
  background-size: cover;
  background-position: center;
  border-radius: 0 0 0 180px;
}

/* メインビュー上のテキストレイヤー */
.mv-content {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1100px;
  height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6rem 0 4rem;
  pointer-events: none; /* 下層のスライダー操作を妨げない */
  z-index: 10;
}

/* キャッチコピー（背景白・上下分離） */
.mv-copy {
  font-size: 6.0rem;
  line-height: 1.3;
  color: #111111;
  margin-bottom: 1.5rem;
}
.mv-copy span {
  background-color: #ffffff;
  padding: 0.4rem 1.5rem;
  margin-bottom: 1.4rem; /* 白背景隙間を設定 */
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  display: inline-block;
}

/* サブコピー（背景白） */
.mv-sub-copy {
  font-size: 2.1rem;
  line-height: 1.6;
  color: #111111;
}
.mv-sub-copy span {
  background-color: #ffffff;
  padding: 0.4rem 1.5rem;
  margin-bottom: 0.5rem;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  display: inline-block;
}

/* 下部のコピー（1個ずつ並べて白文字・白角丸枠） */
.mv-sub-box {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-self: flex-start;
}
.mv-sub-box li {
  color: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 30px;
  padding: 0.8rem 2.4rem;
  font-size: 1.4rem;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
}

/* ==========================================================================
   Slickスライダーのドット装飾（白い丸）
   ========================================================================== */
.mv-slider .slick-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 12px;
  list-style: none;
  z-index: 20;
  margin: 0;
  padding: 0;
}

.mv-slider .slick-dots li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mv-slider .slick-dots li button {
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  background: rgba(255, 255, 255, 0.5) !important;
  border: none !important;
  outline: none !important;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
}

.mv-slider .slick-dots li.slick-active button {
  background: #ffffff !important;
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

/* ==========================================================================
   SP版 メインビュー最適化
   ========================================================================== */
@media screen and (max-width: 768px) {
  .main-visual {
    margin-top: 60px;
    height: calc(100vh - 60px);
    min-height: 550px;
  }
  .mv-slider,
  .mv-slider .slick-list,
  .mv-slider .slick-track,
  .mv-slide,
  .mv-img {
    height: calc(100vh - 60px) !important;
    min-height: 550px !important;
  }
  .mv-content {
    height: 100% !important;
    justify-content: center;
    padding: 3rem 0 4rem;
    gap: 1.5rem;
  }
  .mv-img {
    border-radius: 0 0 0 40px;
  }
  .mv-copy {
    font-size: 4.2rem;
    line-height: 1.35;
    text-align: left;
    margin-bottom: 0.5rem;
  }
  .mv-copy span {
    padding: 0.4rem 1.4rem;
    margin-bottom: 1.4rem;
    display: inline-block;
  }
  .mv-sub-copy {
    display: block !important;
    font-size: 1.6rem;
    line-height: 1.6;
    text-align: left;
  }
  .mv-sub-copy span {
    padding: 0.3rem 1.0rem;
    margin-bottom: 0.5rem;
    display: inline-block;
  }
  .mv-sub-box {
    display: flex !important;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
  }
  .mv-sub-box li {
    padding: 0.5rem 1.2rem;
    font-size: 1.2rem;
    border-radius: 20px;
  }
  .mv-slider .slick-dots {
    bottom: 15px;
  }
}

/* ==========================================================================
   コンセプト（ミエル化）
   ========================================================================== */
.concept-symbol {
  text-align: center;
  margin: 4rem 0;
}
.concept-symbol img {
  width: 200px;
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 5rem;
}

.concept-item {
  background-color: #ffffff;
  border: 1px solid #eeeeee;
  padding: 2.5rem 2rem;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.concept-item-title {
  border: 1px solid #333333;
  padding: 1rem;
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  background-color: #ffffff;
}

.concept-item-text {
  font-size: 1.4rem;
  line-height: 1.8;
  color: #555555;
}

@media screen and (max-width: 768px) {
  .concept-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ==========================================================================
   SERVICE（サービス案内）
   ========================================================================== */
.service {
  background-color: #f5f5f5;
}

.section-header {
  margin-bottom: 4rem;
}

.service-layout {
  display: flex;
  gap: 5rem;
  align-items: flex-start;
}

.service-image {
  flex: 1;
}
.service-image img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.service-content {
  flex: 1.2;
}

.service-intro {
  font-size: 1.5rem;
  margin-bottom: 3rem;
}

@media screen and (max-width: 768px) {
  .service-layout {
    flex-direction: column;
    gap: 3rem;
  }
}

/* ==========================================================================
   WORKS（事例紹介）
   ========================================================================== */
.works-layout {
  display: flex;
  gap: 5rem;
  align-items: center;
}

.works-image {
  flex: 1.2;
  text-align: center;
}

.works-content {
  flex: 1;
}

.works-text {
  font-size: 1.5rem;
  margin-bottom: 3rem;
}

/* --- ★修正：SP版でSERVICEと全く同じ表示順（タイトル→写真→本文→ボタン）にする最終調整 --- */
@media screen and (max-width: 768px) {
  .works-layout {
    display: flex;
    flex-direction: column; /* 上下反転（column-reverse）を解除して縦並びへ */
    gap: 0;
  }
  /* 親グループの枠組みを透明化し、すべての子要素を同じ列で並び替えられるようにする */
  .works-content {
    display: contents;
  }
  .works-content .section-header {
    order: 1; /* ①タイトルを一番上に配置 */
    width: 100%;
    margin-bottom: 3rem;
  }
  .works-image {
    order: 2; /* ②写真を2番目に配置 */
    width: 100%;
    margin-bottom: 3rem;
  }
  .works-content .works-text {
    order: 3; /* ③本文テキストを3番目に配置 */
    width: 100%;
    margin-top: 0;
    margin-bottom: 3rem;
  }
  .works-content .works-btn-wrap {
    order: 4; /* ④ボタンを一番最後（4番目）に配置 */
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   NEWS（最新情報）
   ========================================================================== */
.news {
  background-color: #f5f5f5;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.news-card {
  background-color: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: transform 0.3s ease;
}
.news-card:hover {
  transform: translateY(-5px);
}

.news-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.news-meta {
  padding: 1.5rem 1.5rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.news-meta time {
  font-size: 1.2rem;
  color: #888888;
}
.news-cat {
  font-size: 1.1rem;
  background-color: #eeeeee;
  padding: 0.2rem 0.8rem;
  border-radius: 2px;
  color: #555555;
}

.news-title {
  font-size: 1.4rem;
  padding: 0.5rem 1.5rem 1.5rem;
  line-height: 1.5;
}

.news-btn-wrap, .faq-btn-wrap {
  text-align: center;
}

@media screen and (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 768px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   FAQ（よくある質問）
   ========================================================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto 4rem;
}

.faq-item {
  border-bottom: 1px solid #dddddd;
  padding: 2.5rem 0;
}

.faq-q, .faq-a {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  font-size: 1.6rem;
}

.faq-q {
  font-weight: 700;
  color: #222222;
  margin-bottom: 1.5rem;
}
.faq-q span {
  display: inline-block;
  color: #5b88a8;
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
}

.faq-a {
  color: #555555;
  font-size: 1.5rem;
}
.faq-a span {
  display: inline-block;
  color: #d96c82;
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
}

@media screen and (max-width: 768px) {
  .faq-q, .faq-a { font-size: 1.4rem; gap: 1rem; }
}

/* ==========================================================================
   CONTACT（お問い合わせエリア）
   ========================================================================== */
.contact {
  background-color: #00B7CE;
  color: #ffffff;
}

.contact-title {
  font-size: 5.8rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 0;
}

.contact-sub {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.contact-text {
  font-size: 1.5rem;
  margin-bottom: 4rem;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.btn-contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 260px;
  padding: 1.6rem 2rem;
  background-color: #222222;
  color: #ffffff;
  font-size: 1.5rem;
  border-radius: 4px;
}
.btn-contact:hover {
  background-color: #444444;
}

@media screen and (max-width: 768px) {
  .contact-title { font-size: 3.6rem; }
  .contact-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .btn-contact {
    width: 100%;
    max-width: 320px;
  }
}