@charset "UTF-8";

/*-------------------------------------------
Mainvisual
-------------------------------------------*/
.mainvisual {
  background-color: #ffed58;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
  padding: 70px 0 160px;
  margin-bottom: 40px;
}
.mainvisual .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mainvisual .text .catchphrase {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
}
.mainvisual .text .catchphrase span {
  background-color: #fff;
  display: inline-block;
  margin-bottom: 10px;
}
.mainvisual .text .description {
  font-weight: 500;
  line-height: 1.6;
}
.mainvisual .img {
  max-width: 560px;
}

/*-------------------------------------------
Reason
-------------------------------------------*/
.reason {
  margin-bottom: 80px;
}
.reason .item {
  display: flex;
  justify-content: space-between;
}
.reason .item li {
  width: 30%;
  max-width: 250px;
  margin-right: 5%;
}
.reason .item li:last-child {
  margin-right: 0;
}
.reason .item li .img {
  margin-bottom: 20px;
}
.reason .item li .img img {
  border-radius: 50%;
}
.reason .item li .title {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 20px;
  text-align: center;
}

/*-------------------------------------------
Service
-------------------------------------------*/
.service {
  background-color: #ffed58;
  clip-path: polygon(0 0, 100% 20%, 100% 80%, 0 100%);
  padding: 120px 0;
}

/*-------------------------------------------
Price
-------------------------------------------*/
.price {
  background-color: #ffed58;
  clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 80%);
  padding: 120px 0;
  margin: -80px 0 80px;
}

/*-------------------------------------------
Service Price 共通
-------------------------------------------*/
.service-price-item {
  display: flex;
}
.service-price-item .img {
  width: 50%;
}
.service-price-item .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-price-item .text {
  width: 50%;
  background-color: #fff;
  padding: 20px 30px;
}
.service-price-item .text .section-title-l {
  margin-bottom: 20px;
}
.service-price-item .text .section-title-l .en {
  display: block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.service-price-item .text .section-title-l .ja {
  display: block;
  font-size: 12px;
  font-weight: 400;
}
.service-price-item .description {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.service-price-item .btn {
  background-color: #000;
  color: #fff;
  display: inline-block;
  font-size: 14px;
  padding: 10px 30px;
  position: relative;
}
.service-price-item .btn::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: solid 2px #fff;
  border-right: solid 2px #fff;
  transform: rotate(45deg);
  position: absolute;
  top: 18px;
  right: 18px;
}

/*-------------------------------------------
Voice
-------------------------------------------*/
.voice {
  margin-bottom: 80px;
}
.voice .item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}
.voice .item .img {
  max-width: 182px;
  margin-right: 40px;
}
.voice .item .img:nth-child(2) {
  margin-left: 40px;
  margin-right: 0;
}
.voice .item .img img {
  border: solid 1px #ddd;
  border-radius: 50%;
}
.voice .item .text {
  max-width: 660px;
  border: solid 1px #707070;
  border-radius: 8px;
  line-height: 2;
  padding: 20px;
  position: relative;
}
.voice .item .text::after {
  content: "";
  width: 18px;
  height: 18px;
  background-color: #fff;
  border-right: solid 1px #707070;
  border-bottom: solid 1px #707070;
  position: absolute;
  top: 45%;
}
.voice .item .text:nth-child(1)::after {
  transform: rotate(-45deg);
  right: -10px;
}
.voice .item .text:nth-child(2)::after {
  transform: rotate(135deg);
  left: -10px;
}
.voice .item .text .age {
  text-align: right;
}

/* ==================================================
   注目トピックス（Swiper）
   ================================================== */

/* セクション */
.news-block{
  margin: 80px auto;
}

/* Swiper：必須（これが無いと横並び・スワイプが死ぬ） */
.news-block .swiper{
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Swiper wrapper：必須 */
.news-block .swiper-wrapper{
  display: flex;
  align-items: stretch;
  width: 100%;
}

/* Swiper slide：必須 */
.news-block .swiper-slide{
  flex-shrink: 0;
  height: auto;
}

/* クリックできるカード（aタグ） */
.news-block .topics-slide{
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f4f6;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  transform: translateZ(0); /* iOS系の描画安定 */
}

/* 画像 */
.news-block .topics-slide img{
  display: block;
  width: 100%;
  height: auto;
}

/* ドット */
.news-block .swiper-pagination{
  bottom: 0;
}
.news-block .swiper-pagination-bullet{
  background: #000;
  opacity: .25;
}
.news-block .swiper-pagination-bullet-active{
  opacity: 1;
}

/* 矢印（PCだけ見せる） */
.news-block .swiper-button-prev,
.news-block .swiper-button-next{
  color: #000;
}

/* ===== レスポンシブ ===== */

/* スマホ：矢印非表示（スワイプ中心） */
@media (max-width: 767px){
  .news-block{
    margin: 60px auto;
  }

  .news-block .swiper-button-prev,
  .news-block .swiper-button-next{
    display: none;
  }

  .news-block .topics-slide{
    border-radius: 12px;
  }
}

/* タブレット */
@media (min-width: 768px) and (max-width: 1023px){
  .news-block .topics-slide{
    border-radius: 14px;
  }
}

/* PC：軽くホバー */
@media (hover:hover) and (min-width: 1024px){
  .news-block .topics-slide{
    transition: transform .25s ease, box-shadow .25s ease;
  }
  .news-block .topics-slide:hover{
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
  }
}

/*-------------------------------------------
スマートフォン
-------------------------------------------*/
@media screen and (max-width: 767px) {

  /* Mainvisual */
  .mainvisual {
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    padding: 50px 0 90px;
  }
  .mainvisual .inner {
    flex-direction: column;
  }
  .mainvisual .text .catchphrase {
    font-size: 32px;
    margin-bottom: 10px;
  }
  .mainvisual .text .description {
    font-size: 14px;
    margin-bottom: 30px;
  }

  /* Reason */
  .reason {
    margin-bottom: 40px;
  }
  .reason .item {
    flex-direction: column;
    align-items: center;
  }
  .reason .item li {
    width: 100%;
    margin: 0 0 40px;
  }
  .reason .item li:last-child {
    margin-bottom: 0;
  }

  /* Service */
  .service {
    clip-path: polygon(0 0, 100% 10%, 100% 90%, 0 100%);
    padding: 80px 0;
  }
  .service .service-price-item {
    flex-direction: column;
  }

  /* Price */
  .price {
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 90%);
    padding: 80px 0;
    margin: -45px 0 40px;
  }
  .price .service-price-item {
    flex-direction: column-reverse;
  }

  /* Service Price 共通 */
  .service-price-item .img {
    width: 100%;
  }
  .service-price-item .img img {
    object-fit: contain;
  }
  .service-price-item .text {
    width: 100%;
  }

  /* Voice */
  .voice {
    margin-bottom: 40px;
  }
  .voice .item .img {
    width: 100px;
    flex-shrink: 0;
    margin-right: 20px;
  }
  .voice .item .img:nth-child(2) {
    margin-left: 20px;
  }
  .voice .item .text {
    font-size: 14px;
    padding: 10px;
  }

  /* 注目トピックス（スマホは1列表示） */
  .news-block {
    margin: 60px auto;
  }
  .news-block-row {
    grid-template-columns: 1fr;
  }
}
/* Instagram グリッド全体 */
.insta-embed-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center; /* 全体を中央寄せ */
}

/* PC：4カラム（横1列4投稿） */
@media (min-width: 1024px) {
  .insta-embed-grid .instagram-media {
    flex: 1 1 calc(25% - 20px);
    max-width: calc(25% - 20px);
    margin: 0 !important;
  }
}

/* タブレット：2カラム */
@media (min-width: 768px) and (max-width: 1023px) {
  .insta-embed-grid .instagram-media {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
    margin: 0 !important;
  }
}

/* スマホ：1カラム（中央寄せ） */
@media (max-width: 767px) {
  .insta-embed-grid .instagram-media {
    flex: 1 1 100%;
    max-width: 450px; /* Instagram最小幅に合わせて中央寄せ */
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .insta-embed-grid {
    justify-content: center;
  }
}

/* =========================================
   TOP BLOG（PC4枚 / TB2枚 / SP1枚）
   ========================================= */

/* セクション全体 */
.top-blog {
  padding: 60px 0;
  background: #fff;
}

.blog-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.blog-section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

/* ▼ 基本：スマホ〜タブレットは 1列縦並び */
#top-blog-grid {
  list-style: none;
  margin: 0;
  padding: 0;
}

#top-blog-grid .blog-card + .blog-card {
  margin-top: 16px;
}

#top-blog-grid .blog-card a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

#top-blog-grid .card-thumb {
  flex: 0 0 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: #e5e7eb;
}

#top-blog-grid .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#top-blog-grid .card-date {
  font-size: 12px;
  color: #999;
  margin: 0 0 4px;
}

#top-blog-grid .card-title {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  color: #222;
}

/* ▼ PC（1024px以上）：テックヤマダ風 4カード */
@media (min-width: 1024px) {

  /* 4カラムグリッド化 */
  #top-blog-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
  }

  /* 縦並び用の余白をリセット */
  #top-blog-grid .blog-card + .blog-card {
    margin-top: 0 !important;
  }

  /* カード全体を“縦レイアウト”に */
  #top-blog-grid .blog-card a {
    display: block !important;
  }

  /* 正方形サムネイルの大きいカード */
  #top-blog-grid .card-thumb {
    flex: none !important;
    width: 100% !important;
    height: auto !important;
    padding-top: 130%;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #e5e7eb;
  }

  #top-blog-grid .card-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #top-blog-grid .card-date {
    margin-top: 8px;
  }

  #top-blog-grid .card-title {
    margin-top: 4px;
  }
}


/* ▼ タブレット：2カラム */
@media (min-width: 640px) and (max-width: 1023px) {
  #top-blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  #top-blog-grid .blog-card + .blog-card {
    margin-top: 0;
  }

  #top-blog-grid .blog-card a {
    display: block;
  }

  #top-blog-grid .card-thumb {
    width: 100%;
    height: auto;
    padding-top: 130%;
    position: relative;
  }

  #top-blog-grid .card-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* =============================
   BLOG タイトル中央＋下線
   ============================= */

.blog-section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

/* 下線 */
.blog-section-title::after {
  content: "";
  width: 60px;              /* 下線の長さ */
  height: 3px;              /* 下線の太さ */
  background: #000;
  display: block;
  margin: 10px auto 0;      /* タイトルとの間の余白 */
}

/* レスポンシブ（スマホ時も中央のまま） */
@media (max-width: 600px) {
  .blog-section-title {
    font-size: 22px;
  }

  .blog-section-title::after {
    width: 50px;
    height: 2px;
  }
}
/* PCで画像ドラッグがSwiperを邪魔するのを防ぐ */
.topics-swiper img{
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none; /* クリックは親aに通る */
}
/* PC表示だけ 注目トピックスを大きく */
@media (min-width: 1024px){
  .news-block{
    max-width: 1280px;   /* wrapperより広く */
  }

  .topics-slide{
    transform: scale(1.05);
  }
}