/* --- 基本設定 --- */
:root {
    --font-sans: "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック体", YuGothic, sans-serif;
    --font-serif: "游明朝", YuMincho, "Hiragino Mincho ProN W3", "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
    --font-condensed: "Roboto Condensed", sans-serif;
    --color-primary: #f2d300;
    --color-dark: #181818;
    --color-light: #fff;
    --color-text: #333;
}

* {
  box-sizing: border-box;
}

.pc { display: block !important; }
.sp { display: none !important; }

@media screen and (max-width: 768px) {
  .pc { display: none !important; }
  .sp { display: block !important; }
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--color-dark);
    color: var(--color-text);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

h1, h2, h3 {
    font-weight: normal;
}

/* --- ヘッダー --- */
.header {
    background-color: transparent;
    color: var(--color-light);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background-color 0.4s ease;
}
.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header.is-scrolled {
    background-color: #000000d6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: 90%;
    margin: 0 auto;
}

.header-logo img {
    height: 40px;
    width: auto;
    display: block;
}

/* --- 共通ボタンスタイル --- */
.hd-btn {
    display: inline-block;
    padding: 9px 20px;
    border: 1px solid var(--color-primary);
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.hd-btn::after {
    content: '▶';
    font-size: 0.7em; /* アイコンのサイズを少し小さくしてバランスを調整 */
    display: inline-block;
    transition: transform 0.3s ease;
    margin-left: 15px;
}

/* ホバー時に矢印が少し動くアニメーション */
.hd-btn:hover::after {
    transform: translateX(4px);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
}
.btn-outline:hover {
    background-color: var(--color-light);
    color: var(--color-dark);
}

.btn-solid {
    background-color: var(--color-primary);
    color: var(--color-dark);
}
.btn-solid:hover {
    background-color: var(--color-light);
    color: var(--color-dark);
}

.nav-items {
    display: flex;
}

.nav-item a {
    padding: 10px 15px;
    display: block;
    transition: color 0.3s;
}
.nav-item a:hover {
    color: var(--color-primary);
}

.header-buttons {
    display: flex;
    gap: 10px;
}
@media screen and (max-width: 768px) {
	.btn-outline {margin-bottom: 15px;}
	.header-buttons a {width: 100%;}
}

/* --- ハンバーガーメニュー --- */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.hamburger-bar {
    background-color: var(--color-light);
    height: 3px;
    width: 100%;
    display: block;
    position: absolute;
    left: 0;
    transition: all 0.3s;
}
.hamburger-bar:nth-child(1) { top: 0; }
.hamburger-bar:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-bar:nth-child(3) { bottom: 0; }

.hamburger.is-active .hamburger-bar:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.hamburger.is-active .hamburger-bar:nth-child(2) { opacity: 0; }
.hamburger.is-active .hamburger-bar:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* --- ヒーローセクション --- */
/* --- ヒーローセクション全体 --- */
.hero {
    position: relative;
    height: 100vh; /* ★高さを90vhから100vhに修正 */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

/* --- 背景動画 --- */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
}

/* --- 暗いフィルター（オーバーレイ） --- */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* --- 中央のコンテンツ --- */
.hero-content {
    position: relative;
    z-index: 10;
}

@keyframes unblur {
  from {
    filter: blur(10px);
    opacity: 0;
  }
  to {
    filter: blur(0);
    opacity: 1;
  }
}

.hero h1 {
   font-family: "Roboto Condensed", sans-serif; 
   font-weight: normal;
   font-size: 2rem;
   letter-spacing: 0.1em;
   animation: unblur 1.5s cubic-bezier(0.2, 1, 0.3, 1) 0.5s forwards;
   opacity: 0;
}
.hero-tagline-jp {
    font-size: 3.5rem;
    line-height: 1.5;
    margin-bottom: 10px;
    animation: unblur 1.5s cubic-bezier(0.2, 1, 0.3, 1) 0.8s forwards;
    opacity: 0;
}
.hero-tagline-en {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 1rem;
    letter-spacing: 0.1em;
    animation: unblur 1.5s cubic-bezier(0.2, 1, 0.3, 1) 1.1s forwards;
    opacity: 0;
}


/* スクロールダウン矢印 */
.scroll-down-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) rotate(-45deg);
    width: 20px;
    height: 20px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    opacity: 0;
    animation: bounce 2s infinite 1.5s;
    z-index: 10;
}

/* (bounceアニメーションの定義は変更なし) */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        opacity: 1;
        transform: translateY(0) rotate(-45deg);
    }
    40% {
        transform: translateY(-20px) rotate(-45deg);
    }
    60% {
        transform: translateY(-10px) rotate(-45deg);
    }
}


/* --- PC表示用のレイアウト（修正版） --- */
@media screen and (min-width: 1024px) {
    .hero-video {
        width: 80%;
        height: 100%;
        top: 0;
        left: auto;
        right: 0;
        transform: none;
        min-width: 0;
        min-height: 0;
        object-fit: cover;
        z-index: 1;
    }
    
    .hero::before {
        width: 80%;
        left: auto;
        right: 0;
        z-index: 2;
    }
    
    .hero-content {
        position: absolute;
        left: 5%;
        top: 60%;
        transform: translateY(-50%);
        text-align: left;
        max-width: 80%;
        z-index: 3;
    }
    
    .scroll-down-arrow {
        left: 10%;
        transform: translateX(0) rotate(-45deg);
        margin-left: 10px;
    }
}

/* --- スマートフォン向けの調整 --- */
@media screen and (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    .hero-tagline-jp {
        font-size: 1.5rem;
    }
}

/* --- コンセプトセクション --- */
.concept {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 120px 20px;
    background-image: url('image/concept-main.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--color-light);
    text-align: center;
    font-family: var(--font-serif);
}

.concept::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.concept-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.concept-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
}

.title-line-wrapper { overflow: hidden; }
.title-line {
    display: block;
    transform: translateY(110%);
    transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}
.concept-container.is-visible .title-line { transform: translateY(0); }

.concept-divider {
    width: 50px;
    height: 2px;
    background-color: var(--color-light);
    margin: 30px auto;
    transform: scaleX(0);
    transition: transform 1s ease-out 0.5s;
}
.concept-container.is-visible .concept-divider { transform: scaleX(1); }

.concept-description {
    font-size: 1rem;
    line-height: 2.2;
}

.desc-line-wrapper { overflow: hidden; }
.desc-line {
    display: block;
    transform: translateY(110%);
    transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}
.concept-container.is-visible .desc-line-wrapper:nth-child(1) .desc-line { transition-delay: 0.8s; transform: translateY(0); }
.concept-container.is-visible .desc-line-wrapper:nth-child(2) .desc-line { transition-delay: 0.9s; transform: translateY(0); }
.concept-container.is-visible .desc-line-wrapper:nth-child(3) .desc-line { transition-delay: 1.0s; transform: translateY(0); }
.concept-container.is-visible .desc-line-wrapper:nth-child(4) .desc-line { transition-delay: 1.1s; transform: translateY(0); }

/* --- 共通セクション見出し --- */
.section-heading-wrapper {
    position: relative;
    text-align: center;
}
.section-heading-en {
    font-family: var(--font-condensed);
    font-weight: 100;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}
.section-heading-jp {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}
.section-heading-en.is-visible,
.section-heading-jp.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- 使い方紹介セクション --- */
.use-cases {
    padding: 120px 0;
    overflow: hidden;
}
.use-cases-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.use-cases .section-heading-wrapper { margin-bottom: 60px; color: var(--color-light); }
.use-cases .section-heading-en {
  position: absolute;
  top: 35%;               /* セクション中央基準 */
  left: 50%;
  transform: translate(-50%, -40%); /* X=中央, Y=やや下げる（好みで調整） */
  opacity: 0;
  transition: opacity .6s ease, transform .6s ease;
  z-index: 2;             /* 下のセクションにかぶせる */
  font-size: 5.5rem;
}

/* 表示時：Y方向を戻してフェードイン */
.use-cases .section-heading-en.is-visible {
  transform: translate(-50%, -50%); /* 中央に収まる */
  opacity: 1;
}
.use-cases .section-heading-jp { font-size: 1rem; }

/* レーン外側（上段・下段ともに共通） */
.rail{
  display:flex;
  overflow:hidden;
  /* 両端をフェードさせて“流れていく感”を演出 */
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  margin-block: 24px;
}

/* レーン内のトラック（横並び） */
.track{
  display:flex;
  gap:30px;
  width:max-content;         /* 無限レーンに必須 */
  will-change: transform;
}

/* 上段＝右→左、下段＝左→右（速度はお好みで） */
.rail-top  .track{ animation: marqueeLeft  32s linear infinite; }
.rail-bottom .track{ animation: marqueeRight 36s linear infinite; }

/* ホバーで一時停止（任意） */
.rail:hover .track{ animation-play-state: paused; }

/* 右→左：2セット分の半分だけ送る（継ぎ目ゼロ） */
@keyframes marqueeLeft{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* 左→右（逆向き） */
@keyframes marqueeRight{
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* カード（既存デザインを流用） */
.item{
  flex:0 0 420px;
  height:300px;
  border-radius:8px;
  background-position:center;
  background-size:cover;
  position:relative;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  color:var(--color-light);
}
.item::before{
  content:'';
  position:absolute;
  inset:0;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,0) 60%);
}
.item-content{ position:relative; padding:30px; width:100%; text-align:left; }
.item-title{ font-family:var(--font-condensed); font-size:1.5rem; }
.item-title span{ font-size:.9rem; margin-left:15px; }
.item-text{ font-size:1rem; margin:0; color:rgba(255,255,255,.8); }

/* レスポンシブ：幅・高さ・速度微調整 */
@media (max-width:1024px){
  .item{ flex-basis:260px; height:320px; }
  .rail-top  .track{ animation-duration:28s; }
  .rail-bottom .track{ animation-duration:32s; }
}
@media (max-width:600px){
  .item{ flex-basis:220px; height:280px; }
  .rail-top  .track{ animation-duration:24s; }
  .rail-bottom .track{ animation-duration:28s; }
}


/* --- 選ばれる理由セクション --- */
.reasons {
    position: relative;
    background-image: url('image/reasons.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 20px;
    overflow: hidden;
}
.reasons::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(24, 24, 24, 0.7);
    z-index: 1;
}
.reasons-container {
    max-width: 1500px;
    width: 96%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.reasons .section-heading-wrapper { margin-bottom: 80px; }
.reasons .section-heading-en {
    color: var(--color-light);
    font-size: 4rem;
    letter-spacing: 0.05em;
    margin: 0;
    transition-delay: 0.1s;
}
.reasons .section-heading-jp {
    color: #ccc;
    font-size: 1rem;
    margin-top: 15px;
}

.reasons-grid {
    padding-top: 80px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}
.reason-card {
    background-color: #ffffffd6;
    padding-bottom: 40px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}
.reason-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.reason-number {
    font-family: var(--font-condensed);
    position: absolute;
    top: -25px;
    left: -15px;
    font-size: 6rem;
    font-weight: bold;
    color: transparent;
    -webkit-text-stroke: 1px #f2d300;
    text-stroke: 1px #f2d300;
    z-index: 0;
}
.reasons-grid .reason-card:nth-child(1) .reason-number::before { content: "01"; }
.reasons-grid .reason-card:nth-child(2) .reason-number::before { content: "02"; }
.reasons-grid .reason-card:nth-child(3) .reason-number::before { content: "03"; }
.reasons-grid .reason-card:nth-child(4) .reason-number::before { content: "04"; }
.reasons-grid .reason-card:nth-child(5) .reason-number::before { content: "05"; }
.reasons-grid .reason-card:nth-child(6) .reason-number::before { content: "06"; }

.reason-icon { margin-bottom: 20px; }
.reason-icon img {
    width: 100%;
    border-radius: 10px 10px 0 0;
    display: block;
}
.reason-title {
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.6;
    margin: 0;
}
.reason-card p {
    text-align: left;
    padding: 0 25px;
}

/* --- 事例紹介セクション --- */
.works {
    background-color: #e3e3e3;
    padding: 120px 50px;
    overflow: hidden;
}
.works-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    gap: 60px;
}

.works .section-heading-en {
    color: #333;
    margin: 0;
}
.works .section-heading-jp {
    color: #555;
}

.case-data { flex: 1; text-align: left; }
.works .section-heading-wrapper {
    text-align: left;
    margin: 0 auto;
    max-width: 1400px;
}
.works .section-heading-en {
    font-size: 4rem;
    color: var(--color-text);
}
.works .section-heading-jp {
    color: #555;
    font-size: 1rem;
    margin-top: 15px;
}

.data-list { margin: 0; }
.data-item {
    display: flex;
    border-bottom: 1px solid #b1b1b1;
    padding: 20px 0;
}
.data-item:first-child { border-top: 1px solid #b1b1b1; }
.data-item dt {
    font-weight: bold;
    flex: 0 0 120px;
}
.data-item dd {
    margin: 0;
    flex: 1;
    line-height: 1.6;
}

.case-slider { flex: 1.3; min-width: 0; }
.case-swiper {
    width: 100%;
    height: 500px;
    border-radius: 8px;
}
.case-swiper .swiper-slide {
    background-position: center;
    background-size: cover;
}
.case-swiper .swiper-button-prev,
.case-swiper .swiper-button-next { color: var(--color-light); }
.case-swiper .swiper-pagination-bullet { background-color: rgba(255,255,255,0.7); }
.case-swiper .swiper-pagination-bullet-active { background-color: var(--color-light); }

/* --- 納品までの流れセクション --- */
/* ▼▼ 「納品までの流れ」セクションのスタイル（斜線表示 修正版） ▼▼ */
.flow {
    padding: 120px 20px;
    overflow: hidden;
}

.flow-container {
    max-width: 1000px;
    margin: 0 auto;
}
.flow .section-heading-wrapper {
    text-align: center;
    margin-bottom: 80px;
    color: var(--color-light);
}
.flow .section-heading-en { font-size: 4rem; margin: 0; }
.flow .section-heading-jp { font-size: 1rem; margin-top: 15px; }

.flow-steps-wrapper {
    position: relative;
}

.flow-step-item {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
}

.flow-step-item:not(:last-child) {
    margin-bottom: 80px;
}

.flow-step-item:nth-child(even) {
    flex-direction: row-reverse;
}


/* --- 斜めの線 --- */
.flow-step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 2px;
    
    background-image: linear-gradient(to right, #ccc 50%, transparent 50%);
    background-size: 12px 2px;
    background-repeat: repeat-x;
    
    top: 100%;
    
    transform: scaleX(0);
    transition: transform 0.8s ease-out;
    /* z-indexの指定を削除 */
}

/* 奇数番目のステップ（左上から右下） */
.flow-step-item:nth-child(odd):not(:last-child)::after {
    left: 50%;
    transform-origin: left center;
    transform: translateX(-50%) rotate(30deg) scaleX(0);
}

/* 偶数番目のステップ（右上から左下） */
.flow-step-item:nth-child(even):not(:last-child)::after {
    right: 50%;
    transform-origin: right center;
    transform: translateX(50%) rotate(-30deg) scaleX(0);
}

/* スクロールで表示されたら線を伸ばす */
.flow-step-item.is-visible:not(:last-child)::after {
    transition-delay: 0.5s;
}
.flow-step-item:nth-child(odd).is-visible:not(:last-child)::after {
    transform: translateX(-50%) rotate(30deg) scaleX(1);
}
.flow-step-item:nth-child(even).is-visible:not(:last-child)::after {
    transform: translateX(50%) rotate(-30deg) scaleX(1);
}


/* --- コンテンツ --- */
.flow-step-image {
    flex: 1;
    min-width: 0;
    position: relative; 
    z-index: 2; /* ★線より手前に表示 */
}

.flow-step-image img {
    width: 100%;
    border-radius: 8px;
    display: block;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.flow-step-content {
    flex: 1;
    position: relative;
    z-index: 2; /* ★線より手前に表示 */
}

.flow-step-number {
    font-family: var(--font-condensed);
    display: block;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.flow-step-title {
    color: var(--color-light);
    font-size: 1.75rem;
    margin: 0 0 20px 0;
}

.flow-step-desc {
    margin: 0;
    line-height: 1.8;
    color: #ccc;
}

/* --- レスポンシブ調整 --- */
@media screen and (max-width: 768px) {
    .flow {
        padding: 80px 20px;
    }

    .flow-step-item,
    .flow-step-item:nth-child(even) {
        flex-direction: column;
        gap: 30px;
    }

    .flow-step-item:not(:last-child) {
        margin-bottom: 60px;
    }
    
    .flow-step-item:not(:last-child)::after {
        display: none;
    }

    .flow-step-title {
        font-size: 1.5rem;
    }
}

/* --- よくある質問セクション --- */
.faq {
    background-color: #e3e3e3;
    padding: 120px 20px;
    overflow: hidden;
}
.faq-container { max-width: 1080px; width: 96%; margin: 0 auto; }
.faq .section-heading-wrapper { text-align: center; margin-bottom: 60px; }
.faq .section-heading-en { font-size: 4rem; color: var(--color-text); margin: 0; }
.faq .section-heading-jp { font-size: 1rem; color: #555; margin-top: 15px; }

.faq-list {
    margin-top: 60px;
    display: grid;
    gap: 50px;
}
.faq-card {
    background-color: var(--color-light);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.faq-question {
    font-size: 1.25rem;
    font-weight: bold;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 15px 0;
    border-bottom: 1px solid #adadad;
    padding-bottom: 20px;
}
.faq-q-icon {
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1.2;
}
.faq-answer {
    padding-left: 34px;
    line-height: 1.8;
}
.faq-answer p { margin: 0; }

/* --- CTAセクション --- */
.cta {
    padding: 120px 20px;
    overflow: hidden;
    background-color: #000;
}
.cta-container {
    max-width: 85%;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
}
.cta-image-wrapper { flex: 1; }
.cta-main-image { max-width: 100%; position: relative; z-index: 2; }
.cta-content {
    color: var(--color-light);
    flex: 1;
    overflow: hidden; 
}
.cta-title { font-size: 2.5rem; line-height: 1.4; margin: 0 0 20px 0; }
.cta-title span{display: block; color: var(--color-primary);}
.cta-text { font-size: 1rem; line-height: 1.8; color: #ccc; margin-bottom: 40px; }


/* ===== CTA：出現＆定期シャイン ===== */
.cta-buttons {
    display: flex;
    gap: 15px;
}
.cta-content.is-visible .cta-buttons {
    opacity: 1;
    transform: translateY(0);
}
.cta a {
    display: flex;
    justify-content: center;
    align-items: center;
	width:100%;
	margin:0 auto;
    padding: .9em 1.3em;
    border: none;
    border-radius: 5px;
    background-color: var(--color-dark);
    color: #fff;
    font-weight: 600;
    font-size: 1.1em;
    transition: 0.3s;
}
.cta .btn-outline{border: 1px solid var(--color-primary); color: var(--color-primary);}

.cta .btn-solid{background-color: var(--color-primary); color: var(--color-dark);}
.cta-content.is-visible .cta a {
    opacity: 1;
    transform: translateY(0);
}
.cta a::after {
    transform: rotate(45deg);
    width: 5px;
    height: 5px;
    margin-left: 10px;
    content: '';
}
.cta .btn-outline::after {border-top: 2px solid var(--color-primary);
    border-right: 2px solid var(--color-primary);
}
.cta .btn-solid::after {border-top: 2px solid var(--color-dark);
    border-right: 2px solid var(--color-dark);
}
.cta .btn-outline:hover{background: var(--color-text); border-color: var(--color-text); color: var(--color-light);}
.cta .btn-solid:hover{background: var(--color-text); color: var(--color-primary);}



/* --- フッター --- */
.footer {
    background-color: #111;
    color: #a0a0a0;
    padding: 80px 20px 0;
    font-size: 0.875rem;
}
.footer-container { max-width: 85%; margin: 0 auto; }
.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    padding-bottom: 60px;
}
.footer-brand { flex: 1; }
.footer-logo img { height: 30px; width: auto; }
.footer-address { margin-top: 20px; line-height: 1.8; }
.footer-nav { flex: 1.5; display: flex; justify-content: space-between; gap: 40px; }
.footer-sitemap { display: flex; gap: 40px; }
.sitemap-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.sitemap-links a { color: #a0a0a0; transition: color 0.3s; }
.sitemap-links a:hover { color: var(--color-light); }
.footer-social { display: flex; gap: 15px; }
.footer-social a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #444;
    border-radius: 50%;
    color: #a0a0a0;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.footer-social a:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #111;
}
.footer-bottom {
    border-top: 1px solid #444;
    padding: 30px 0;
    text-align: center;
}
.copyright { margin: 0; font-size: 0.75rem; }


/* --- アニメーション遅延設定 --- */
.reason-card.animation-target:nth-child(2) { transition-delay: 0.1s; }
.reason-card.animation-target:nth-child(3) { transition-delay: 0.2s; }
.reason-card.animation-target:nth-child(4) { transition-delay: 0.3s; }
.reason-card.animation-target:nth-child(5) { transition-delay: 0.4s; }
.reason-card.animation-target:nth-child(6) { transition-delay: 0.5s; }
.flow-step-item.animation-target:nth-child(2) { transition-delay: 0.1s; }
.flow-step-item.animation-target:nth-child(3) { transition-delay: 0.2s; }
.flow-step-item.animation-target:nth-child(4) { transition-delay: 0.3s; }
.flow-step-item.animation-target:nth-child(5) { transition-delay: 0.4s; }
.flow-step-item.animation-target:nth-child(6) { transition-delay: 0.5s; }
.faq-card.animation-target:nth-child(2) { transition-delay: 0.1s; }
.faq-card.animation-target:nth-child(3) { transition-delay: 0.2s; }
.faq-card.animation-target:nth-child(4) { transition-delay: 0.3s; }
.faq-card.animation-target:nth-child(5) { transition-delay: 0.4s; }
.faq-card.animation-target:nth-child(6) { transition-delay: 0.5s; }
.faq-card.animation-target:nth-child(7) { transition-delay: 0.6s; }

/* --- レスポンシブ --- */
@media screen and (max-width: 1024px) {
    .reasons-grid { grid-template-columns: repeat(2, 1fr); }
    .works-container { flex-direction: column-reverse; }
    .case-slider { width: 100%; margin-top: 40px; }
}

@media screen and (max-width: 768px) {
    .header-container { max-width: 92%; }
    .hamburger { display: block; }
    .header-nav {
        display: block; 
        position: fixed;
        inset: 0 0 0 auto;
        width: min(80vw, 320px);
        background: #000;
        transform: translateX(100%);
        transition: transform .3s ease;
        padding: 100px 24px 24px;
        z-index: 999;
        color: #fff;
    }
    .header-nav.is-active { transform: translateX(0); }
    .nav-items {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .nav-item a {
        padding: 14px 8px;
        border-bottom: 1px solid #333; /* 区切り線を追加すると見やすいです */
    }
    .nav-item a:hover {
        background-color: #222; /* ホバー色を調整 */
    }
    .header-buttons {
        flex-direction: column; /* 縦並び */
        margin-top: 30px; /* 上のメニューとの余白 */
        gap: 15px;
    }

    .hero h1 { font-size: 3rem; }
    .hero-tagline-jp { font-size: 1.5rem; }

    .concept { min-height: 60vh; padding: 80px 20px; }
    .concept-title { font-size: 1.75rem; }
    .concept-description { font-size: 0.9rem; }

    .use-cases { margin-top: 60px; }
    .use-cases .section-heading-en { font-size: 3rem; }
    .item { flex: 0 0 280px; height: 350px; }

    .reasons { padding: 80px 20px; }
    .section-heading-en,
    .reasons .section-heading-en,
    .works .section-heading-en,
    .flow .section-heading-en,
    .faq .section-heading-en { font-size: 2.5rem; }
    .reasons-grid { grid-template-columns: 1fr; }
    .reason-number { font-size: 2.5rem; top: -10px; left: -10px; width: 50px; height: 50px; }

    .works { padding: 80px 20px; }
    .case-swiper { height: 400px; }

    .flow { padding: 80px 20px; }
    .flow-step-item,
    .flow-step-item:nth-child(even) { flex-direction: column; gap: 30px; }
    .flow-step-item:not(:last-child) { margin-bottom: 60px; }
    .flow-step-item:not(:last-child)::after { display: none; }
    .flow-step-title { font-size: 1.5rem; }

    .faq { padding: 80px 20px; }
    .faq-list { gap: 30px; }
    .faq-card{padding: 10px;}
    .faq-question{font-size: 1rem;padding-bottom: 7px;}
    .faq-answer{padding-left: 0;}

    .cta { padding: 80px 20px; }
    .cta-container { flex-direction: column; text-align: center; }
    .cta-image-wrapper { margin-bottom: 50px; }
    .cta-title { font-size: 1.5rem; }
    .cta-buttons { flex-direction: column;}
    .cta-button{ font-size: 1.2rem; width: 100%;}
	.cta a {width: 80%;}

    .footer { padding-top: 60px; }
    .footer-main { flex-direction: column; text-align: center; }
    .footer-nav { flex-direction: column; align-items: center; }
    .footer-sitemap { margin-bottom: 40px; }
    .footer-logo img { margin: 0 auto; }
}

/* === Common reveal animation (added) === */
.animation-target{opacity:0;transform:translateY(14px);transition:opacity .6s ease,transform .6s ease}
.animation-target.is-visible{opacity:1;transform:none}
@media (prefers-reduced-motion: reduce){
  .animation-target{opacity:1;transform:none;transition:none}
}

/* === iOS perf: disable fixed background on mobile (added) === */
@media (max-width:1024px){
  .concept, .reasons{ background-attachment: scroll; }
}

/* フローティングCTA */
.floating-cta{
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;           /* 背景はクリック可 */
  opacity: 0;
  transform: translateY(16px);
  visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s linear;
  z-index: 9999;
}
.floating-cta.is-visible{
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}
.floating-cta__row{
  pointer-events: auto;           /* ボタンのみクリック可 */
  display: inline-flex;
  gap: 10px;
  background: rgba(0,0,0,.06);
  backdrop-filter: blur(4px);
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

/* ボタン共通 */
.floating-cta__btn{
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 12px 16px;
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  transform: translateZ(0);
}
.floating-cta__btn:hover{ filter: brightness(.96); }
.floating-cta__btn:active{ transform: translateY(1px); }
.floating-cta__icon{ flex: 0 0 auto; }

/* 個別色 */
.floating-cta__btn--tel{
  background: #575757;  /* ダーク */
  color: #fff;
}
.floating-cta__btn--line{
  background: #06C755;  /* LINEグリーン */
  color: #fff;
}
.floating-cta__btn--mail{
  background: #f2d300;  /* ご指定色 */
  color: #000;
}

/* PCは右下寄せ配置 */
@media (min-width: 1024px){
  .floating-cta{
    justify-content: flex-end;
  }
}

@media (max-width: 360px){
  .floating-cta__row{ flex-wrap: wrap; }	
}
@media (prefers-reduced-motion: reduce){
  .floating-cta{ transition: none; }
  .floating-cta__btn:active{ transform: none; }
}

@media screen and (max-width: 768px) {
	.floating-cta {bottom: 0;}
	.floating-cta__btn{padding: 12px 12px; font-size: 0.9rem;}
	.floating-cta__row {gap: 6px;padding: 8px 0;width: 100%;justify-content: center;}
}
