/* =========================================
   リセットCSS & ベーススタイル
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Zen Kaku Gothic New", sans-serif;
}

html {
  scroll-behavior: smooth;
}

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

html, body {
  overflow-x: hidden; /* 横方向のはみ出しを一切禁止する */
}

.main-visual {
  overflow: hidden; /* スライダーのはみ出しを確実にカット */
}


/* =========================================
   ヘッダー
   ========================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-bottom: 1px solid #E5E5E5;
  z-index: 1000;
}

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


.header_logo {
  width: 173px;
  height: auto;
  display: block;
}

.header_logo .logo-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.header-btn {
  display: block;
  width: 137px;
  height: auto;
}


.header-btn:hover,
.cv-btn-link:hover .cv-btn {
    filter: brightness(1.1);
    transform: scale(1.05); /* 5%だけ大きくする */
}

.btn-img.btn-sp {
  display: block;
  width: 100%;
}

.btn-img.btn-pc {
  display: none;
}

.cv-btn-link {
    display: block;
    width: fit-content;
    margin: 40px auto;
    text-decoration: none;
    line-height: 0;
    transition: transform 0.3s ease;
}

.cv-btn {
    display: block;
    width: 335px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.description-content-section {
  scroll-margin-top: 80px; 
}

/* =========================================
   メインビジュアル (MV) - SP (〜749px)
   ========================================= */
.main-visual {
  position: relative;
  width: 100%;
  margin-top: 80px;
  overflow: hidden;
  line-height: 0; 
}

/* MV画像 */
.mv-img {
  width: 100%;
  height: auto;
  display: block;
}

.mv-img.mv-sp {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.mv-img.mv-pc { display: none; }


.slide-wrapper {
  position: absolute;
  top: 550px;
  left: 4vw;
  width: 100%;
  transform: translateY(-50%);
  z-index: 10;
}

.slide-photos {
  display: flex;
  gap: 24px;
  animation: slide-sp 60s linear infinite;
}

.slide-photos img {
  object-fit: cover;
  border-radius: 8px;
  height: 180px;
}


/* =========================================
   リードセクション
   ========================================= */
.lead-section {
    background-image: url('..//img/designer/lead_bg_pic.png');
    background-size: cover;
    background-position: center;
    padding: 50px 20px 70px 20px;
    position: relative;
    z-index: 1;
}

.lead-text {
    color: #3C566E;
    font-size: 16px;
    line-height: 2.3;
    text-align: left;
    font-weight: 500;
}

  .sp-br {
    display: inline;
}
  .pc-br {
    display: none;
}


.tool-content-section {
    max-width: 335px;
    margin: 0 auto;
    text-align: left;
    padding: 100px 0 0 0;
}

.attraction-content-section {
    max-width: 335px;
    margin: 0 auto;
    text-align: left;
    padding: 70px 0 0 0;
}

.product-content-section {
    max-width: 335px;
    margin: 0 auto;
    text-align: left;
    padding: 50px 0 50px 0;
}

.interview-content-section {
    max-width: 335px;
    margin: 0 auto;
    text-align: left;
    padding: 0 0 50px 0;
}

.principles-content-section {
    max-width: 335px;
    margin: 0 auto;
    text-align: left;
    padding: 50px 0;
}

.description-content-section {
    max-width: none;
    margin: 0;
    padding: 0;
}

.section-bg-wrapper {
    background-color: #FFF; 
    border-radius: 40px 40px 0 0;
    margin-top: -30px;
    position: relative;
    z-index: 5;
}


.content-image-header {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
}
.section-title {
    color: #0666C1;
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 26px;
}
.title-decoration-img {
    width: 90px;
    height: 12px;
    margin-bottom: 26px;
    display: block; 
}
.section-lead {
    color: #0F3B64;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 40px;
    font-weight: 500;
}

.content-block {
    margin-bottom: 50px;
}

.content-block .content-image {
    margin-bottom: 0;
}


.content-block .content-image.product-pc-img {
    display: none;
}


.content-block .text-area.is-product .product-sp-img {
    display: block;
    margin: 20px 0;
}


.text-area.is-product {
    display: flex;
    flex-direction: column;
}
.text-area.is-product .title-wrapper { order: 1; }
.text-area.is-product .product-sp-img { order: 2; }
.text-area.is-product .description    { order: 3; }

.title-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.sub-heading {
    color: #60A9EE;
    font-size: 32px;
    line-height: 1.0;
    margin: 0;
}
.description {
    color: #0F3B64;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    font-weight: 500;
}

/* --- SP：自社プロダクトの並び替え --- */
.product-sp-img {
    display: block;
    margin: 20px 0;
}

.product-pc-img {
    display: none;
}

.text-area.is-product {
    display: flex;
    flex-direction: column;
}

.text-area.is-product .title-wrapper {
    order: 1;
}

.text-area.is-product .product-sp-img {
    order: 2;
}

.text-area.is-product .description {
    order: 3;
    margin-bottom: 0;
}

.interview-sp-img {
    display: block;
    width: 335px;
    margin: 0 auto 20px auto;
}

.interview-pc-img {
    display: none;
}

.content-image-header-interview {
    width: 335px;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
}



.section-title-interview {
    width: 335px;
    color: #0666C1;
    font-size: 36px;
    line-height: 1.3;
    margin: 0 0 26px 20px;
}
.title-decoration-img-interview {
    width: 335px;
    width: 90px;
    height: 12px;
    margin-bottom: 20px;
    display: block;
    margin: 0 0 26px 20px;
}
.section-lead-interview {
    width: 335px;
    color: #0F3B64;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 40px;
    margin: 0 auto 20px auto;
    font-weight: 500;
}

/* =========================================
   ドット背景
   ========================================= */
.content-with-dots {
    background-color: #f9f9f9;
    background-image: radial-gradient(circle, #eeeeee 2px, transparent 2px);
    background-position: 0 0;
    background-size: 32px 32px;
}

/* =========================================
   カルーセル要素 (Swiperラッパー)
   ========================================= */
.carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative; 
    padding-top: 20px;
    padding-bottom: 40px;
    margin: 0 auto;
}

.carousel-wrapper .swiper-slide {
    width: 100%;
    height: auto;
    margin: 0; 
    height: auto;
    overflow: hidden;
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06); 
    box-sizing: border-box; 
}


.card-image-area {
    width: 100%;
    overflow: hidden;
    background-color: lightgray; 
}
.card-top-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-content {
    padding: 16px; 
}
.card-question {
    color: #00529F;
    font-size: 16px;
    line-height: 1.4;
    font-weight: bold;
    margin-bottom: 8px;
    margin-top: 0;
}
.card-text {
    color: #0F3B64;
    font-size: 14px;
    line-height: 1.7;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 0;
}


/* =========================================
   ナビゲーションボタン（左右矢印）
   ========================================= */

.carousel-wrapper .carousel-button-prev::after,
.carousel-wrapper .carousel-button-next::after {
    content: none; 
}


.carousel-button-prev,
.carousel-button-next {
    width: 48px;     
    height: 48px;
    border-radius: 100%;
    background: #00529F no-repeat center;
    background-size: contain;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: auto;
    bottom: 0px; 
    z-index: 100; 
    pointer-events: auto; 
}

.carousel-button-prev {
    background-image: url('..//img/designer/icon-arrow-prev.png');
    left: 20px; 
}

.carousel-button-next {
    background-image: url('..//img/designer/icon-arrow-next.png');
    right: 20px; 
}


/* =========================================
   ページネーション（ドット）
   ========================================= */
.carousel-wrapper .carousel-pagination { 
    position: relative;
    display: block; 
    text-align: center; 
    margin: 0;
    z-index: 12;
    padding-top: 50px;
    padding-bottom: 0;
}

.carousel-wrapper .swiper-pagination-bullet { 
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #DCDCDD; 
    opacity: 1;
}

.carousel-wrapper .swiper-pagination-bullet-active { 
    background-color: #00529F; 
}

/* =========================================
   コンテンツブロックの共通スタイル
   ========================================= */

.title-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    flex-shrink: 0; 
    margin-top: 5px;
}

.sub-heading {
    color: #60A9EE;
    font-size: 32px;
    line-height: 1.0;
    margin: 0;
}

.description {
    color: #0F3B64;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.content-image {
    width: 335px;
    height: auto;
    display: block;
}

.principles-pc {
    display: none;
}
.principles-sp {
    display: block;
}

.two-column-grid {
    width: 100%;
}

.grid-item {
    margin-bottom: 20px;
}


.grid-image {
    display: none;
}

.info-block {
    display: block;
    width: 100%;
    margin-bottom: 26px;
}

.sub-info-main {
    color: #0F3B64;
    font-size: 18px;
    line-height: 1.2;
    font-weight: bold;
    margin-bottom: 5px;
}

.sub-info-detail {
    color: #0F3B64;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
}

.sub-entry {
    color: #0666C1;
    font-size: 32px;
    line-height: 1.5;
    font-weight: bold; 
    margin-top: 20px;
}

/* =========================================
   下部背景エリア (SP/共通)
   ========================================= */
.rainbow_bottom_bg {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: auto;
    aspect-ratio: 750 / 800; 
    background-image: url('..//img/designer/rainbow_bottom_sp.png');
    background-size: 100% auto;
    background-position: center bottom;
    background-repeat: no-repeat;
    margin-top: 50px; 
    padding-bottom: 40px; 
    position: relative;
    z-index: 1;
}

.description-inner {
    max-width: 335px;
    margin: 0 auto;
    text-align: left;
}

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

.footer {
    background: #f0f8ff;
    padding: 40px 20px;
    line-height: 1.3;
    font-size: 14px;
}

.footer__wrap {
    display: flex;
    flex-direction: column;
    padding: 0px;

}


.footer__page-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer__page-link {
    font-weight: 700;
    text-decoration: none;
    color: #343434;
}

.footer__sns-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer__sns-sub-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.footer__policy-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.footer__policy-link {
    display: flex;
    align-items: center;
    font-size: 14px;
    gap: 4px;
    font-weight: 500;
}

.footer__policy-link[target="_blank"]::after {
    content: "";
    background: url('..//img/designer/external-link-icon.svg') no-repeat center center;
    background-size: contain;
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    text-decoration: none;
    color: #343434;
}

.copyright {
    font-size: 10px;
    color: #949494
}


@keyframes slide-sp {
  0% { transform: translateX(0); }
  100% { 
    transform: translateX(calc((233px + 24px) * -8)); 
  }
}

@keyframes slide-pc {
  0% { transform: translateX(0); }
  100% { 
    transform: translateX(calc((224px + 32px) * -8)); 
  }
}

/* =========================================
   375px以下の微調整（レスポンス・スケーリング）
   ========================================= */
@media screen and (max-width: 375px) {


  .tool-content-section,
  .attraction-content-section,
  .product-content-section,
  .interview-content-section,
  .principles-content-section,
  .description-inner {
    max-width: 100%; 
    width: 100%;
    margin: 0; 
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }


  .section-title-interview,
  .title-decoration-img-interview {
    margin-left: 0;
  }

  .section-title,
  .section-title-interview {
    font-size: 8.5vw;
  }

}


/* =========================================
   500px 〜 749px
   ========================================= */
@media screen and (min-width: 500px) {
  .btn-img.btn-sp { display: none !important; }
  .btn-img.btn-pc { display: block !important; }

  .main-visual .mv-img.mv-sp { display: none; }
  
  .main-visual .mv-img.mv-pc {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
  }
  
  .main-visual { 
    margin-top: 0px;
    line-height: 0;
    font-size: 0;
  }
  
  .slide-wrapper {
    top: 75%; 
    left: 0;
    transform: translateY(-50%);
  }
  
  .slide-photos img {
    height: clamp(100px, 12vw, 250px); 
  }
  
  .slide-photos {
    animation: slide-pc 60s linear infinite;
  }

  .lead-section .lead-text {
    text-align: center;
  }

}


/* =========================================
   PCブレークポイント (750px以上) - 全体統合版
   ========================================= */
@media screen and (min-width: 750px) {
    
  .header-inner {
      max-width: 1980px; 
      padding: 0 40px;
  }


  .header-inner .header_logo {
      width: 240px;
      height: auto;
  }

  .header-inner .header-btn {
      width: 200px;
      height: auto;
      flex-shrink: 0;
  }

  .header-inner .header-btn .btn-img.btn-sp {
      display: none;
  } 

  .header-inner .header-btn .btn-img.btn-pc {
      display: block;
      width: 100%;
      height: auto;
  }

 /* --- 1. ヘッダー・MVの調整 --- */
  .main-visual {
      height: auto;
  }

  .mv-img.mv-sp { display: none; }
  .mv-img.mv-pc { display: block; }
  
  .slide-wrapper {
    top: 75%;
    left: 0;  
    transform: translateY(-50%);
  }

  .slide-photos img {
    height: clamp(100px, 12vw, 300px); 
    object-fit: cover;
  }

  .slide-photos {
    gap: 32px; 
    animation: slide-pc 40s linear infinite; 
  }


  .lead-section {
      padding: 80px 0 100px 0;
  }
  
.lead-text {
    font-size: 20px;
    line-height: 2.7;
    text-align: center;
}

  
  .sp-br { display: none; }
  .pc-br { display: inline; }



  section.attraction-content-section,
  section.product-content-section,
  section.tool-content-section,
  section.principles-content-section,
  section.interview-content-section {
    max-width: 930px;
    padding-left: 50px;
    padding-right: 50px;
  }


  section.description-content-section {
    max-width: none;
    width: 100%;
    margin: 0;
  }
  
  .attraction-content-section {
    padding: 100px 0 0 0;
  }

  .product-content-section {
    padding: 100px 0 0 0;
  }
  
  .principles-content-section {
    max-width: 930px;
    margin: 0 auto;
    padding: 100px 0 50px 0; 
}
  

  .content-image-header-interview,
  .section-title-interview,
  .section-lead-interview {
      width: 100%;
      max-width: none;
      margin-left: 0;
      margin-right: 0;
      font-size: 20px;
  }

  .interview-sp-img {
        display: none; /* PCではSP用を隠す */
  }

  .interview-pc-img {
      display: block;
      height: auto;
      /* 上0、右0、下20px、左auto にすることで右側に寄ります */
      margin: 0 0 -30px auto;
      width: 400px;
  }

  /* 💡 PC用被り防止設定 */
  .description-content-section {
    scroll-margin-top: 100px; 
  }

    .footer {
    width: 100%;
    background-color: #f0f8ff;
    padding: 60px 20px;
  }

  .footer__wrap {
    max-width: 1400px; 
    margin: 0 auto;      
    display: flex;
    flex-direction: column;
    align-items: center; 
    padding-left: 0;
    margin-bottom: 20px;
  }

  .footer__page-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center; 
    gap: clamp(15px, 3vw, 40px);
    list-style: none;
    width: 100%;
  }

  .footer__policy-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: clamp(15px, 2vw, 30px);
    list-style: none;
    padding-bottom: 20px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto; 
  }

  .footer__sns-sub-group {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin: 0;
  }


  .footer__sns-list {
    display: flex;
    gap: 16px;
    align-items: center;
    list-style: none;
    margin-bottom: 20px;
  }


  .copyright {
    display: block;
    text-align: center;
    width: 100%;
    margin: 0;
  }

  .footer__page-link,
  .footer__policy-link {
    font-size: 14px;
    white-space: nowrap;
    text-decoration: none;
    color: #343434;
  }

  /* -------------------------------------
     4. レイアウト変更：左右交互配置 (チドリ)
     ------------------------------------- */
    
  .content-block {
      display: flex;
      flex-direction: row; 
      gap: 60px; 
      align-items: center; 
      margin-bottom: 64px; 
  }
  
  .content-block .text-area {
      width: 50%;
      margin-bottom: 0;
  }
  
  .content-block .content-image {
      width: 50%;
  }

  .content-block.is-reverse {
      flex-direction: row-reverse; 
  }
  
  .content-block.is-reverse .text-area {
      text-align: left;
  }

  .content-block .title-wrapper,
  .content-block.is-reverse .title-wrapper {
      justify-content: flex-start;
  }

  .content-block:has(.text-area.is-product) {
      display: flex;
      flex-direction: row; 
      align-items: flex-start; 
      gap: 60px;
  }

  .product-sp-img {
      display: none !important; 
  }

  .product-pc-img {
      display: block !important;
      width: 50%;
      margin: 0;
  }

  .text-area.is-product {
      display: block !important; 
      width: 50%;
      order: unset; 
  }


  
  /* -------------------------------------
     5. サイズ・フォントの調整 (既存の修正を再統合)
     ------------------------------------- */


  .section-title,
  .section-title-interview {
      font-size: 40px; 
      line-height: 1.3;
      margin-bottom: 30px;
  }
  

  .section-lead {
      font-size: 20px;
      line-height: 1.7;
      text-align: left;
      margin-bottom: 60px;
  }
  

  .description {
      font-size: 18px;
      line-height: 1.8;
      text-align: left;
  }


  .sub-heading {
      font-size: 40px;
      text-align: left;
  }


  .sub-info-main {
    font-size: 20px;
    line-height: 1.2;
    font-weight: bold;
  }

  .sub-info-detail {
      font-size: 18px;
      line-height: 1.5;
      font-weight: 500;
  }

  .principles-sp {
      display: none;
  }
  .principles-pc {
      display: block;
      width: 100%;
      height: auto;
      margin-bottom: 50px;
  }



.content-block:has(.two-column-grid) {
    display: block;
    width: 100%;
    max-width: 930px;
    margin: 0 auto 100px;
}


.content-block:has(.two-column-grid) .text-area {
    width: 100%;
}


.two-column-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px 24px;
    margin-top: 30px;
}


.grid-item {
    width: calc(50% - 12px);
    display: flex;
    align-items: flex-start;
}

.grid-image {
    display: block;
    width: 60px;
    flex-shrink: 0;
    margin-right: 20px;
}


  .two-column-grid {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 30px 0;
      margin-top: 20px;
      margin-bottom: 50px;
  }

  .grid-item {
      width: 48%;
      display: flex;
      align-items: flex-start;
      margin-bottom: 0;
  }


  .grid-image {
      display: block;
      width: 60px;
      flex-shrink: 0;
      margin-right: 15px;
  }

  .grid-image img {
      width: 100%;
      height: auto;
  }

  .interview-content-section .carousel-wrapper {
      max-width: 930px;
      margin: 0 auto;
      padding: 40px 0;
  }


  .interview-content-section .carousel-wrapper .swiper-wrapper {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
      width: 100%;
      transform: none;
  }


  .interview-content-section .carousel-wrapper .swiper-slide {
      width: 100%;
      min-height: 400px;
      height: auto;
      display: flex;
      flex-direction: column;
      margin: 0;
  }


  .interview-content-section .card-image-area {
      width: 100%;
      height: auto; 
      background-color: #fff;
      flex-shrink: 0;
  }

  .interview-content-section .card-top-image {
      width: 100%;
      height: 100%;
      object-fit: contain;
  }

 
  .interview-content-section .card-content {
      padding: 16px 20px;
      flex: 1;
      display: flex;
      flex-direction: column;
  }

  .interview-content-section .card-question {
      font-size: 16px;
      line-height: 1.5;
      margin-bottom: 8px;
  }

  .interview-content-section .card-text {
      font-size: 14px;
      line-height: 1.7;
      margin: 0;
      display: block;
      overflow: visible;
  }

  .sub-entry {
    font-size: 50px;
}

  .interview-content-section .carousel-button-prev,
  .interview-content-section .carousel-button-next,
  .interview-content-section .carousel-pagination {
      display: none;
  }

  
  .rainbow_bottom_bg {
      width: 100vw;
      margin-left: calc(50% - 50vw);
      margin-right: auto;
      aspect-ratio: 1440 / 900;
      height: auto;

      background-image: url('..//img/designer/rainbow_bottom_pc.png');
      background-size: 100% auto; 
      background-position: center bottom;
      background-repeat: no-repeat;
      
      position: relative;
      margin-top: 0;


      padding-top: 100px; 
      padding-bottom: 80px;
  }


  .description-inner {
      max-width: 930px;
      margin: 0 auto;
      text-align: left;
      padding-left: 50px;
      padding-right: 50px;
  }

.cv-btn-link {
    display: block;
    width: fit-content;
    margin: 0;
    text-decoration: none;
}


.cv-btn-link .content-image {
    margin: 0;
}

}

/* =========================================
   フェードイン・アニメーション
   ========================================= */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
    will-change: opacity, transform;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}