@charset "UTF-8";

body{
    overflow-x: hidden;
    background-color: var(--color-body);
}
/* ===== Scroll Animation ===== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* =========================
   TOP VIEW
========================= */
.top-view{
  position:relative;
  height:350vh; /* ← 伸ばすのがポイント */
}

/* =========================
   背景（固定）
========================= */
.top-bg{
  position:sticky;
  top:0;
  width:100%;
  height:100vh;

  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.4) 0%,
      rgba(0,0,0,0.02) 40%,
      rgba(0,0,0,0.2) 100%
    ),
    url('../img/top4.jpg') center/cover no-repeat;

  z-index:1;
}

/* =========================
   白もや（下から上に）
========================= */
.top-fog{
  position:sticky;
  top:0;
  width:100%;
  height:100vh;

  z-index:2;

  /* ▼ 白ベタをやめる */
  background: linear-gradient(
    to top,
    var(--color-body) 0%,
    rgba(255,255,255,0.7) 40%,
    rgba(255,255,255,0.2) 70%,
    rgba(255,255,255,0) 100%
  );

  transform:translateY(100%);
  will-change:transform;
}
/* =========================
   ロゴ
========================= */
.top-logo{
  position:absolute; /* ← ここ変更 */
  top:45vh;
  left:8%;
  width: 300px;

  transform:translateY(-50%);
  z-index:5;

  opacity:0;
  transition:all 1.2s ease;
}
.top-logo img{
   width: 100%;
}

.top-logo.show{
  opacity:1;
}

.top-logo p{
  margin-top:10px;
  font-size:20px;
  letter-spacing:2px;
  color: var(--color-text-white);
}

/* =========================
   FOLLOW（固定UI）
========================= */
.follow{
  position:fixed;
  right:30px;
  top:60%;
  transform:translateY(-50%);
  z-index:10;

  display:flex;
  flex-direction:column;
  align-items:center;
  gap:20px;
}

/* 縦文字 */
.follow-text{
  writing-mode: vertical-rl;
  font-size:14px;
  letter-spacing:3px;
  color:var(--color-neutral-light);
}

/* =========================
   SNS（縦並び）
========================= */
.follow-sns{
  display:flex;
  flex-direction:column;
  gap:15px;
}

/* =========================
   アイコン本体（←ここが重要）
========================= */
.sns-icon{
  width:30px;
  height:30px;
  display:block;

  background: var(--color-primary);

  /* ▼ これが無いと表示されない */
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;

  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;

  opacity:0.8;
  transition:0.3s;
}

.sns-icon:hover{
  opacity:1;
  transform:scale(1.2);
}

/* =========================
   各SNS（mask画像）
========================= */
.instagram{
  -webkit-mask-image: url('../img/icon-instagram-white.webp');
  mask-image: url('../img/icon-instagram-white.webp');
}

.x{
  -webkit-mask-image: url('../img/icon-x-white.webp');
  mask-image: url('../img/icon-x-white.webp');
}

.line{
  -webkit-mask-image: url('../img/icon-line-white.webp');
  mask-image: url('../img/icon-line-white.webp');
}

.tiktok{
  -webkit-mask-image: url('../img/icon-tiktok-white.webp');
  mask-image: url('../img/icon-tiktok-white.webp');
}

.facebook{
  -webkit-mask-image: url('../img/icon-facebook-white.webp');
  mask-image: url('../img/icon-facebook-white.webp');
}
/* =========================
   テキスト（上を通る）
========================= */
.scroll-text{
  position:absolute;
  left:10%;
  width:80%;
  z-index:4;
  color:var(--color-neutral-light);


  opacity:0;
  transform:translateY(80px);
  transition:all 1s ease;
}

.scroll-text.show{
  opacity:1;
  transform:translateY(0);
}
.scroll-text h2{
  margin-bottom: 15px;
}

/* =========================
   出現位置をズラす
========================= */
.text1{ top:160vh; }
.text2{ top:210vh; }
.text3{ top:260vh; }
/* =========================
   mobile
========================= */
@media (max-width:768px){
/* =========================
   ロゴ
========================= */
.top-logo{
  position:absolute; /* ← ここ変更 */
  top:25vh;
  left:8%;
  width: 300px;

  transform:translateY(-50%);
  z-index:5;

  opacity:0;
  transition:all 1.2s ease;
}
.top-bg{
  top:0;
  left:0;
  width:100%;
  height:100vh;

  background:

    url('../img/top_res.jpg') center/cover no-repeat;

  z-index:1;
}

.follow{
  position:fixed;
  right:10px;
  top:75%;
  transform:translateY(-50%);
  z-index:10;

  display:flex;
  flex-direction:column;
  align-items:center;
  gap:20px;
}
}

/* =========================
   FEATURE
========================= */
.feature{
    padding:0 20px 120px;
}

/* header */
.feature-header{
    margin:80px auto 120px;
    max-width: 1200px;
}

.feature-header h2{
    font-size:60px;
    letter-spacing:0.1em;
    color: var(--color-primary);
}

.feature-header p{
    font-size:18px;
    font-weight:600;
}

/* =========================
   layout
========================= */
.feature-item{
    max-width:1100px;
    margin:0 auto 280px;
    display:flex;
    align-items:center;
    gap:80px;
}

/* 逆配置 */
.feature-item.reverse{
    flex-direction:row-reverse;
}

/* =========================
   image（2枚構成）
========================= */
.feature-image{
    flex:1;
    position:relative;
    max-width:600px;
}

/* メイン画像 */
.img-main img{
    width:100%;
    display:block;
    border-radius:10px;
    filter:brightness(0.9);
}

/* サブ画像（重なり） */
.img-sub{
    position:absolute;
    bottom:-230px;
    right:-140px;
    width:70%;
}


.img-sub img{
    width:100%;
    border-radius:10px;
    box-shadow:0 20px 40px rgba(0,0,0,0.15);
}

/* 逆のとき */
.feature-item.reverse .img-sub{
    bottom:-190px;   /* ← 少し上げる（重要） */
    left:-120px;
    right:auto;
    width:60%;
}
/* =========================
   番号
========================= */
.feature-number.overlay{
    position:absolute;
    top:20px;
    left:-10px;
    color:#fff;
    z-index:2;
}

.feature-number .num{
    font-size:42px;
}

/* =========================
   text
========================= */
.feature-text{
    flex:1;
}

.feature-text h3{
    display: inline-block;
    font-size:28px;
    color: var(--color-primary);
    position: relative;
}

/* 下線（最初は0） */
.feature-text h3::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;

    width: 0%;
    height: 1px;
    background: var(--color-primary);

    transition: width 0.8s ease;
}

/* 発火時 */
.feature-text h3.active::after{
    width: 100%;
}

.feature-text p{
  margin-top: 30px;
    font-size:15px;
    line-height:1.9;
    margin-bottom:30px;
}

/* ボタン */
.feature-btn{
    display:inline-block;
    background: var(--color-secondary);
    color: var(--color-text-white);
    padding:14px 30px;
    letter-spacing:0.1em;
    text-decoration:none;

    transition: all 0.3s ease;
}

/* 矢印 */
.feature-btn .arrow{
    display:inline-block;
    margin-left:8px;
    transition: transform 0.3s ease;
}

/* hover */
.feature-btn:hover{
    background: var(--color-secondary-70);
}

.feature-btn:hover .arrow{
    transform:translateX(6px);
}
/* =========================
   hover
========================= */
.img-main img,
.img-sub img{
    transition:0.5s;
}


/* =========================
   mobile
========================= */
@media (max-width: 1200px){

    .feature{
        padding:40px 60px 40px 20px;
    }
    .feature-item {
    max-width: 1100px;
    margin: 0 auto 280px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.feature-text h3 {
    display: inline;
    font-size: 20px;
    padding-bottom: 5px;
    color: var(--color-primary);
    border-bottom: solid 1px var(--color-primary);
}

/* header */
.feature-header{
    margin:80px auto 60px;
    max-width: 1200px;
}

.feature-header h2{
    font-size:40px;
    letter-spacing:0.1em;
    color: var(--color-primary);
}

}
@media (max-width:768px){

    .feature{
        padding:40px 40px 20px 20px;
    }
    .feature-header h2{
    font-size:32px;
    letter-spacing:0.1em;
    color: var(--color-primary);
}

    .feature-item{
        flex-direction:column;
        gap:40px;
        margin-bottom:120px;
    }

    .feature-item.reverse{
        flex-direction:column;
    }

    .feature-image{
        max-width:100%;
    }

    /* =========================
       サブ画像（スマホ）
    ========================= */

/* デフォルト（1・3）→ 左寄せ */
.img-sub{
    position:relative;
    bottom:auto;
    right:auto;
    left:0;
    width:65%;
    margin:-40px 0 0 0;
}

/* 2番目（reverse）→ 右寄せ */
.feature-item.reverse .img-sub{
    left:auto;     /* ← PCの影響を消す */
    right:0;
    bottom: 0;
    margin:-40px 0 0 auto;
}


    .feature-text h3{
        font-size:19px;
    }
}

/* =========================
   SERVICE
========================= */
.service{
    width: 100%;
    overflow: hidden;
}

/* =========================
   各ブロック
========================= */
.service-block{
    display: flex;
    width: 100%;
    height: 400px;
}

/* 逆配置 */
.service-block.reverse{
    flex-direction: row-reverse;
}

/* =========================
   テキスト
========================= */
.service-text{
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 80px;
    background: var(--color-accent);
    
}

/* =========================
   画像ベース
========================= */
.service-img{
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;

    opacity: 0;
    transition: 
        opacity 0.8s ease,
        transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 右から（通常） */
.service-img{
    transform: scale(1.1) translateX(40px);
}

/* 左から（reverse専用） */
.service-block.reverse .service-img{
    transform: scale(1) translateX(0px);
}

/* 表示時は統一 */
.service-img.is-visible{
    opacity: 1;
    transform: scale(1) translateX(0);
}

/* 画像差し替え */
.img1{
    background-image: url("../img/service1.webp");
}
.img2{
    background-image: url("../img/service2.webp");
}
.img3{
    background-image: url("../img/service3.webp");
}

/* =========================
   テキストデザイン
========================= */
.service-num{
    font-size: 14px;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
    color: var(--color-text-muted);
}

.service-text h3{
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--color-text-white);
  }
  
  .service-text p{
    line-height: 1.8;
    font-size: 15px;
    color: var(--color-text-white);
}

@media (max-width:768px){

    .service-block{
        flex-direction: column-reverse;
        height: auto;
    }

    .service-block.reverse{
        flex-direction: column-reverse;
    }

    .service-text,
    .service-img{
        width: 100%;
    }

    .service-img{
        height: 250px;
    }

    .service-text{
        padding: 40px 20px;
    }
}

/* =========================
   ABOUT CEO
========================= */
.about-ceo{
  width:100%;
  margin:0px 0 240px;
}

/* ===== 画像エリア ===== */
.about-visual{
  position:relative;
  width:100%;
  height:600px;
  overflow:hidden;
}

/* 背景 */
.about-bg{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
}

/* 画像（中央） */
.about-image{
  position:absolute;
  top:0;
  left:0;
  transform:none;
  width:100%;
  height:100%;
  padding:0;
}

.about-image img{
  width:100%;
  height:100%;
  object-fit:cover; /* ←これ超重要 */
  border-radius:0;
}
.about-visual::after{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;

  background:rgba(0,0,0,0.2); /* ←ここで暗さ調整 */
  z-index:2;
  pointer-events:none; /* ←クリック邪魔しない */
}
/* ===== テキスト ===== */
.about-content{
  max-width:720px;
  margin:80px auto 0;
  padding:0 20px;
  text-align:center;
}

/* 名前 */
.about-name{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);

  color: var(--color-text-white);
  font-size:48px;
  text-align:center;
  letter-spacing:0.08em;

  z-index:3; /* ←黒オーバーレイより上 */
}
/* 肩書き */
.about-role{
  font-size:18px;
  color:var(--color-neutral-light);
  margin-bottom:24px;
}

/* 本文 */
.about-text{
  font-size:16px;
  line-height:1.9;
  color:var(--color-text);
}

/* =========================
   TABLET
========================= */
@media(max-width:768px){

  .about-ceo{
    margin:0px 0 100px;
  }

  .about-visual{
    height:420px;
  }

  .about-image{
    max-width:100%;
  }

  .about-name{
    font-size:30px;
  }

}

/* =========================
   MOBILE
========================= */
@media(max-width:500px){

  .about-visual{
    height:300px;
  }

  .about-name{
    font-size:24px;
  }

  .about-role{
    font-size:16px;
  }

  .about-text{
    font-size:15px;
  }

}


.column{
  max-width:100%;
  margin:120px auto;
  padding:120px 40px;
  text-align:center;
  background: var(--color-secondary-light-70);
}

/* ===== タイトル ===== */
.column-header{
  margin-bottom:70px;
}

.column-sub{
  font-size:14px;
  letter-spacing:2px;
  color: var(--color-primary-light-90);
  margin-bottom:10px;
}

.column-title{
  font-size:34px;
  font-weight:600;
  margin-bottom:15px;
  color: var(--color-neutral-light);
}

.column-desc{
  font-size:14px;
  color:var(--color-neutral-surface);
  line-height:1.8;
}

/* ===== カラム ===== */
.column-inner{
  display:flex;
  justify-content:center;
  gap:50px;
  flex-wrap:wrap;
  align-items:flex-start; /* 高さを揃えずに個別に設定可能 */
}

.column-item{
  width:30%;
  max-width: 320px;
  transition:1s;
}

/* PC表示のみで高さずらし */
@media(min-width:1025px){
  .column-item:nth-child(1){
    margin-top:0px;   /* 1つ目は上に揃える */
  }
  .column-item:nth-child(2){
    margin-top:160px;  /* 2つ目は下にずらす */
  }
  .column-item:nth-child(3){
    margin-top:90px;  /* 3つ目は中間くらい */
  }
}
/* ===== カードデザイン ===== */
.column-card{
  background:#fff;
  border-radius:12px;
  box-shadow:0 10px 20px rgba(0,0,0,0.08);
  overflow:hidden;
  transition:0.3s;
}

.column-card:hover{
  transform:translateY(-10px);
  box-shadow:0 20px 30px rgba(0,0,0,0.15);
}

/* 画像 */
.column-card img{
  width:100%;
  height:250px;
  object-fit:cover;
}

/* テキスト部分 */
.column-info{
  padding:20px;
  text-align:left;
}

.column-category{
  font-size:12px;
  color:var(--color-primary-light-70);
  text-transform:uppercase;
  letter-spacing:1px;
}

.column-name{
  font-size:20px;
  margin:8px 0;
  color:var(--color-primary);
}

.column-text{
  font-size:14px;
  line-height:1.6;
  color:var(--color-neutral-surface);
}

/* ===== レスポンシブ ===== */
@media(max-width:1024px){
  .column-item{
    width:45%;
    margin-bottom:30px;
  }
}

@media(max-width:768px){
  .column{
    padding:100px 20px;
  }

  .column-item{
    width:100%;
  }

  .column-card img{
    height:200px;
  }

  .column-title{
    font-size:26px;
  }
}

/* ===== News ===== */
.news-section{
  padding:100px 20px;
}

.news-inner{
  max-width:1000px;
  margin:0 auto;
}

/* ===== タイトル ===== */
.news-header{
  margin-bottom:100px;
  position:relative;
  text-align: center;
  color: var(--color-neutral-surface);
}

/* アクセントライン */
.news-header::before{
  content:"";
  position:absolute;
  left:50%;
  bottom:-10px;
  transform:translateX(-50%);
  width:60px;
  height:3px;
  background:var(--color-neutral-surface);
}
.news-title{
  font-size:42px;
  font-weight:700;
  margin-bottom:5px;
}

.news-sub{
  font-size:14px;
}

/* ===== リスト ===== */
.news-list{
  list-style:none;
  padding:0;
}

/* カード風 */
.news-item{
  border-bottom:1px solid var(--color-text-muted);
}

.news-item:first-child{
  border-top:1px solid var(--color-text-muted);
}

.news-item a{
  display:block;
  padding:22px 10px;
  text-decoration:none;
  color:inherit;
  transition:0.3s;
}

/* hoverで軽く浮く */
.news-item a:hover{
  background:rgba(0,0,0,0.02);
  padding-left:20px;
}

/* 横並び */
.news-row{
  display:flex;
  align-items:center;
  gap:20px;
}

/* 日付 */
.news-date{
  width:110px;
  font-size:13px;
  color:var(--color-neutral-surface);
}

/* カテゴリ（アクセント） */
.news-category{
  font-size:12px;
  padding:4px 10px;
  border-radius:999px;
  background:var(--color-primary-light-90);
  color:var(--color-text-white);
  font-weight:600;
}

/* テキスト */
.news-text{
  flex:1;
  font-size:15px;
}

/* ===== ボタン ===== */
.news-footer{
  margin-top:40px;
  text-align:right;
}

.news-more{
  display:inline-block;
  padding:8px 30px;
  border-radius:999px;
  background:var(--color-primary);
  color:#fff;
  text-decoration:none;
  font-weight:600;
  transition:0.3s;
}

.news-more:hover{
  background:#fff;
  color:var(--color-primary);
  border:1px solid var(--color-primary);
}

/* ===== SP ===== */
@media(max-width:768px){

  .news-section{
    padding:60px 25px;
  }

  .news-row{
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
  }

  .news-date{
    width:auto;
  }
}




/* ===== 全体 ===== */
.blog{
  margin:120px 0;
  padding-left:40px;
}

/* ===== header ===== */
.blog-header{
  max-width:1100px;
  margin:0 auto 20px;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
}

.blog-title{
  font-size:48px;
  color:var(--color-primary);
}

.blog-sub{
  font-size:14px;
  color:var(--color-neutral-surface);
}

/* ===== nav ===== */
.blog-nav{
  display:flex;
  gap:10px;
}

.blog-btn{
  width:42px;
  height:42px;
  border-radius:50%;
  border:1px solid var(--color-text-muted);
  background:#fff;
  cursor:pointer;
}

.blog-btn:hover{
  background:var(--color-primary);
  color:#fff;
}

/* ===== slider ===== */
.blog-slider{
  max-width:1100px;
  margin:0 auto;
  overflow:hidden;
  padding:40px 30px 50px 20px;
}

.blog-track{
  display:flex;
  gap:40px;
  transition:0.5s;
}

/* ===== カード（横レイアウト） ===== */
.blog-card{
  min-width:100%; /* ← これだけで1枚表示 */
  display:flex;
  gap:50px; /* ← 少し広げると高級感 */
  align-items:center;
}

/* ===== 画像 ===== */
.blog-image{
  width:55%;
  border-radius:12px;
  overflow:hidden;
}

.blog-image img{
  width:100%;
  height:200px;
  object-fit:cover;
}

/* ===== コンテンツ全体 ===== */
.blog-content{
  width:45%;
  display:flex;
  flex-direction:column;
  gap:12px;
}

/* ===== 上部メタ ===== */
.blog-meta{
  display:flex;
  align-items:center;
  gap:12px;
}

/* タグ */
.blog-tag{
  font-size:11px;
  letter-spacing:0.15em;
  color:var(--color-primary);
  border:1px solid var(--color-primary);
  padding:4px 10px;
  border-radius:20px;
}

/* 日付 */
.blog-date{
  font-size:12px;
  color:var(--color-neutral-surface);
  letter-spacing:0.08em;
}

/* ===== タイトル ===== */
.blog-content h3{
  font-size:20px;
  line-height:1.6;
  position:relative;
  padding-bottom:10px;
}

/* 下線アクセント */
.blog-content h3::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:40px;
  height:2px;
  background:var(--color-primary);
  transition:0.4s;
}

/* hoverで伸びる */
.blog-card:hover h3::after{
  width:80px;
}

/* ===== 説明文 ===== */
.blog-excerpt{
  font-size:13px;
  line-height:1.8;
  color:var(--color-neutral-surface);
}

/* ===== リンク ===== */
.blog-link{
  margin-top:8px;
  font-size:12px;
  letter-spacing:0.12em;
  text-decoration:none;
  color:var(--color-primary);
  position:relative;
  width:fit-content;
}

/* 矢印アニメ */
.blog-link::after{
  content:"→";
  margin-left:6px;
  transition:0.3s;
}

.blog-card:hover .blog-link::after{
  transform:translateX(6px);
}

/* ===== dots ===== */
.blog-dots{
  display:flex;
  justify-content:center;
  gap:10px;
}

.blog-dots span{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#ccc;
  cursor:pointer;
}

.blog-dots span.active{
  background:var(--color-primary);
}

/* ===== footer ===== */
.blog-footer{
  margin-top:40px;
  text-align:right;
}

.blog-more{
  padding:8px 30px;
  border-radius:999px;
  background:var(--color-primary);
  color:#fff;
  text-decoration:none;
}

/* ===== SP ===== */
@media(max-width:768px){

  .blog-card{
    min-width:100%;
    flex-direction:column;
  }

  .blog-image,
  .blog-content{
    width:100%;
  }

}


.journal{
  padding:120px 0;
  overflow:hidden;
}

.journal-title{
  text-align:center;
  font-size:32px;
  letter-spacing:4px;
  margin-bottom:60px;
}

.journal-slider{
  position:relative;
  width:100%;
  overflow:hidden;
}

.journal-track{
  display:flex;
  transition:transform 0.5s ease;
}

/* サイズは全部同じ */
.journal-slide{
  position:relative;
  flex:0 0 50%;
}

/* 画像 */
.journal-slide img{
  width:100%;
  height:420px;
  object-fit:cover;
  display:block;
}

/* テキスト */
.journal-text{
  position:absolute;
  left:20px;
  bottom:20px;
  color:#fff;
  max-width:60%;
}

.journal-text h3{
  font-size:16px;
  margin:0 0 6px;
  font-weight:600;
}

.journal-text p{
  font-size:13px;
  line-height:1.6;
  margin:0;
  background:rgba(0,0,0,0.4);
  padding:8px 12px;
}
/* サイドホバー */
.journal-slide:not(.is-center):hover img{
  opacity:0.7;
}

/* 矢印 */
.journal-prev,
.journal-next{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:5;
  width:44px;
  height:44px;
  border-radius:50%;
  border:none;
  background:#fff;
  cursor:pointer;
}

.journal-prev{
  left: calc(25% - 20px);
}

.journal-next{
  right: calc(25% - 20px);
}

/* SP */
@media(max-width:768px){

  .journal-slide{
    flex:0 0 80%;
  }

  .journal-slide img{
    height:400px;
  }

  .journal-prev{
    left:5%;
  }

  .journal-next{
    right:5%;
  }
  /* テキスト */
.journal-text{
  position:absolute;
  left:20px;
  bottom:20px;
  color:#fff;
  max-width:85%;
}

}


.case{
  padding:100px 20px;
}

/* header */
.case-header{
    margin:80px auto 120px;
    max-width: 1200px;
}

.case-header h2{
    font-size:60px;
    letter-spacing:0.1em;
    color: var(--color-primary);
}

.case-header p{
    font-size:18px;
    font-weight:600;
}


.case-slider{
  position:relative;
  max-width:1000px;
  margin:0 auto;
  overflow:hidden;
}

.case-track{
  display:flex;
  transition:transform 0.5s ease;
}

/* 1枚100% */
.case-slide{
  flex:0 0 100%;
  position:relative;
  border-radius: 20px;
    overflow:hidden;
}

/* 画像 */
.case-slide img{
  width:100%;
  height:420px;
  object-fit:cover;
  display:block;
}

/* テキスト全体を右上に */
.case-text{
  position:absolute;
  top:0;
  right:0;

  width:45%;
  height:100%;

  color:#fff;
  padding:40px 50px;

  display:flex;
  flex-direction:column;
  justify-content:flex-end;

  /* 👇 斜めパネル */
  background:linear-gradient(
    135deg,
    rgba(0,0,0,0.7) 0%,
    rgba(0,0,0,0.4) 60%,
    rgba(0,0,0,0) 100%
  );

  clip-path: polygon(
    20% 0,
    100% 0,
    100% 100%,
    0 100%
  );
}

/* タイトル強め */
.case-text h3{
  font-size:24px;
  margin-bottom:10px;
  font-weight:700;
}

/* 説明 */
.case-text p{
  font-size:14px;
  line-height:1.7;
  background:none;
  padding:0;
}

/* 下のボタン */
.case-controls{
  display:flex;
  justify-content:center;
  gap:15px;
  margin-top:20px;
}

.case-controls button{
  width:45px;
  height:45px;
  border:none;
  border-radius:50%;
  background:var(--color-secondary);
  color:#fff;
  font-size:18px;
  cursor:pointer;
}

/* SP */
@media(max-width:768px){

  .case-slide img{
    height:300px;
  }
      .case-header h2{
    font-size:32px;
    letter-spacing:0.1em;
    color: var(--color-primary);
}
.case-header{
    margin:80px auto 50px;
    max-width: 1200px;
}


  .case-text{
    max-width:100%;
  }
    .case-slide img{
    height:300px;
  }

  .case-text{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    top:auto;

    width:100%;
    height:auto;

    padding:20px;

    /* 斜めやめる */
    clip-path:none;

    /* 背景しっかり */
    background:linear-gradient(
      to top,
      rgba(0,0,0,0.8) 0%,
      rgba(0,0,0,0.5) 60%,
      rgba(0,0,0,0) 100%
    );
  }

  .case-text h3{
    font-size:18px;
  }

  .case-text p{
    font-size:13px;
    line-height:1.6;
  }
}


/* ===== タイトル中央 ===== */
.company-header{
  text-align:center;
  margin-bottom:30px;
}

.company-title{
  font-size:34px;
  font-weight:600;
  color: var(--color-neutral-light);
  display:inline-block;
}

/* 左の線いらないなら消す */
.company-title::before{
  display:none;
}

/* ===== 横線 ===== */
.company-line{
  width:100%;
  height:1px;
  background:var(--color-primary-light-30);
  margin:30px 0;
}

/* ===== info横並び ===== */
.company-info{
  margin: 0 auto;
  max-width: 350px;
}

/* ===== 各行（横並び） ===== */
.company-item{
  display:flex;
  align-items:flex-start;
  padding-bottom:15px;
}

/* 左ラベル */
.company-item h4{
  width:120px;
  flex-shrink:0;

  font-size:12px;
  letter-spacing:2px;
  color:var(--color-primary);
}

/* 右テキスト */
.company-item p{
  flex:1;
  font-size:15px;
  color:var(--color-text);
}

/* ===== マップ ===== */
.company-map{
  width:100%;
  max-width: 500px;
  margin: 0 auto 100px;
  height:250px;
  overflow:hidden;
  box-shadow:0 20px 40px rgba(0,0,0,0.15);
}

.company-map iframe{
  width:100%;
  height:100%;
  border:0;
}

/* ===== スマホ ===== */
@media(max-width:768px){

  .company-info{
    flex-direction:column;
  }

  .company-item{
    flex-direction:column;
    gap:5px;
  }

  .company-item h4{
    width:100%;
  }

  .company-map{
    height:250px;
  }
}

/* テーマ色変更 */


.theme-demo{
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
}

/* キャラ */
.theme-character{
  cursor: pointer;
  position: absolute;
  bottom: -50px;
  right: -50px;
  z-index: 10;
  rotate: -20deg;
}

.theme-character img{
  width: 110px;
}

/* 吹き出し */
.theme-bubble{
  position: absolute;
  bottom: 0px;
  right: 0;
  background: #fff;
  padding: 15px 22px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  color: #333;
  width: 300px;
  font-size: 16px;
  font-weight: bold;
  animation: fadeInUp 0.3s ease;
}

/* しっぽ（キャラ方向に） */
.theme-bubble::after{
  content: '';
  position: absolute;
  bottom: -8px;
  right: 20px;
  border: 8px solid transparent;
  border-top-color: #fff;
}


/* 色ボタン */
.theme-colors{
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.theme-colors button{
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

/* 色 */
button[data-theme="default"]{
  background: #fff;
  border: 2px solid #333333;
}
button[data-theme="blue"]{ background:#3ca2ca; }
button[data-theme="green"]{ background:#b475b9; }
button[data-theme="dark"]{ background:#a3511a; }

/* 閉じる */
.theme-close{
  position: absolute;
  top: -10px;
  left: -10px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 16px;
}

/* アニメ */
@keyframes fadeInUp{
  from{
    opacity:0;
    transform:translateY(20px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}