/* ===== 基本設定 & 変数 (hacomono風ライトテーマ) ===== */
:root {
    /* Main Colors */
    --color-primary: #0e161a; /* hacomono風の鮮やかな青 */
    --color-secondary: #FF6A13; /* アクセントカラー (オレンジ) */
    
    /* Text Colors */
    --color-text-dark: #2A2A2A; /* 見出しなど濃いテキスト */
    --color-text-body: #555555; /* 本文のテキスト */
    --color-text-light: #FFFFFF; /* 白文字 */
    --color-text-gray: #888888; /* 薄いグレーのテキスト */

    /* Background Colors */
    --color-bg-body: #FFFFFF;
    --color-bg-light-gray: #F7F9FC; /* セクション背景用の明るいグレー */
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4481EB 0%, #04BEFE 100%);

    /* System */
    --font-family: 'Noto Sans JP', sans-serif;
    --header-height: 70px;
    --border-radius-card: 12px;
    --box-shadow-card: 0 8px 24px rgba(44, 106, 228, 0.1);
}

/* ===== リセット & 共通スタイル ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-family);
    color: var(--color-text-body);
    background-color: var(--color-bg-body);
    line-height: 1.8;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 0;
}

.section-title {
    font-size: 28px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.4;
    color: var(--color-text-dark);
}

.text-highlight {
    background: linear-gradient(transparent 60%, var(--color-secondary) 60%);
    padding: 0 2px;
}

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

/* ===== ボタン ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}
.btn--primary {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
    box-shadow: 0 4px 15px rgba(255, 106, 19, 0.4);
}
.btn--primary:hover {
    background-color: #E65A00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 106, 19, 0.5);
}
/* heroセクション内のセカンダリボタン */
.hero .btn--secondary {
    background-color: transparent;
    color: var(--color-text-light);
    border-color: var(--color-text-light);
}
.hero .btn--secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
}
/* hero以外のセカンダリボタン */
.btn--secondary {
    background-color: var(--color-bg-body);
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn--secondary:hover {
    background-color: #EBF2FF;
}

.btn--large {
    padding: 16px 32px;
    font-size: 18px;
}
.btn--line {
    background-color: #06C755;
    color: var(--color-text-light);
}
.btn--line:hover {
    opacity: 0.9;
}
.btn i { margin-right: 8px; }


/* ===== ヘッダー ===== */
.header {
    width: 100%;
    height: var(--header-height);
    background-color: var(--color-bg-body);
    position: fixed;
    top: 0; left: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}
.header.is-scrolled {
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}
.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.header__logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--color-primary);
    text-decoration: none;
}
.header__nav { display: none; }
.header__cta { display: none; }
.hamburger {
    display: block; background: none;
    border: none; cursor: pointer;
    z-index: 1001;
}
.hamburger span {
    display: block; width: 25px; height: 3px;
    background-color: var(--color-text-dark);
    margin: 5px 0; transition: all 0.3s ease;
}
.hamburger.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.header__nav.is-active {
    display: block; position: fixed;
    top: var(--header-height); left: 0;
    width: 100%; height: calc(100vh - var(--header-height));
    background-color: var(--color-bg-body);
    padding-top: 40px;
}
.header__nav ul { list-style: none; text-align: center; }
.header__nav li a {
    display: block; padding: 20px;
    font-size: 18px; font-weight: 700;
    text-decoration: none; color: var(--color-text-dark);
}


/* ファーストビュー */
.hero {
    padding-top: var(--header-height);
    background-image: linear-gradient(to right, rgba(0, 40, 100, 0.65), rgba(0, 0, 0, 0.55));
    background-size: cover;
    background-position: center;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    min-height: 80vh;
    position: relative;
}
.hero__container { text-align: center; }
.hero__title {
    font-size: 30px;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 16px;
    margin-top: 50px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero__subtitle {
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 32px;
    opacity: 0.9;
}

.hero .img-left {
    height: 320px;
    border-radius: 8px;
}

.hero .img-right {
    height: 310px;
    width: 140px;
    border-radius: 8px;
    object-fit: cover;
}

.hero__cta {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

/* お悩み */
.problems {
    background-image: linear-gradient(to right, rgba(0, 40, 100, 0.5), rgba(0, 0, 0, 0.4));
    background-size: cover;
    background-position: center;
    color: var(--color-text-light);
}

.problems .section-title {
    color: var(--color-text-light);
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.problems__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto 30px;
}

.problem-item {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 16px;
    border-radius: var(--border-radius-card);
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    color: var(--color-text-light);
    transition: background-color 0.3s ease;
}

.problem-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.problem-item i {
    color: var(--color-secondary);
    font-size: 24px;
    margin-right: 12px;
}

.problems__solution {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-light);
}

/* 選ばれる理由 */
.features {
    background: var(--gradient-primary);
    color: var(--color-text-light);
}
.features .section-title {
    color: var(--color-text-light);
}
.features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 30px;
    border-radius: var(--border-radius-card);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.feature-card__icon i {
    font-size: 48px;
    color: var(--color-text-light);
    margin-bottom: 16px;
}
.feature-card__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text-light);
}
.feature-card__text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    text-align: left;
}


/* 実績・導入事例 */
.results { background-color: var(--color-bg-light-gray); }
.results__banner {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 30px;
    border-radius: var(--border-radius-card);
    text-align: center;
    margin-bottom: 60px;
}
.results__banner h3 { font-size: 28px; font-weight: 900; margin: 8px 0; }
.text-highlight-large { font-size: 1.5em; color: var(--color-secondary); }
.results__testimonials { display: flex; flex-direction: column; gap: 40px; }
.testimonial {
    background: var(--color-bg-body);
    padding: 24px;
    border-radius: var(--border-radius-card);
    box-shadow: var(--box-shadow-card);
    flex-direction: column;
    text-align: center;
}
.testimonial__img {
    width: 80px; height: 80px;
    border-radius: 50%; object-fit: cover;
    float: none; margin-right: 20px;
}
.testimonial__text { font-style: italic; margin-bottom: 16px; }
.testimonial__author {
    font-weight: 700;
    color: var(--color-text-gray);
    font-style: normal; font-size: 14px;
}


/* システム画面紹介 */
.screenshots .section-title { margin-bottom: 20px; }
.screenshots__gallery { display: grid; grid-template-columns: 1fr; gap: 20px; }
.screenshots__gallery img {
    width: 100%;
    border-radius: var(--border-radius-card);
    box-shadow: var(--box-shadow-card);
}

/* 出席管理紹介 */
.visits { background-color: #222222; }
.visits .section-title { margin-bottom: 20px; color: #ffffff; }
.visits__gallery { display: grid; grid-template-columns: 1fr; gap: 20px; }
.visits__gallery img, .visits__gallery video {
    width: 100%;
    border-radius: var(--border-radius-card);
    box-shadow: var(--box-shadow-card);
    object-fit: cover;
}

/* システム説明動画 */
.videos { background-color: #222222; }
.videos .section-title { margin-bottom: 20px; color: #ffffff; }
.videos__gallery { display: grid; grid-template-columns: 1fr; gap: 20px; }
.videos__gallery img, .videos__gallery video {
    width: 100%;
    border-radius: var(--border-radius-card);
    box-shadow: var(--box-shadow-card);
    object-fit: cover;
}

.interviews {
    padding: 60px 0;
    background-color: #f9f9f9;
}
.interviews__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.interview-btn {
    display: flex; /* Flexboxを有効にする */
    align-items: center; /* 垂直方向中央揃え */
    width: 100%;
    padding: 20px 10px;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    line-height: 1.6;
}
.interview-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.interview-btn::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('img/play.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 10px;
    flex-shrink: 0;
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0,0,0,0.8);
    animation: fadeIn 0.3s;
}
.modal-content {
    position: relative;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    animation: slideIn 0.3s;
}
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.close-modal {
    color: #fff;
    position: absolute;
    top: -30px;
    right: 0px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}
.close-modal:hover {
    color: #ccc;
}
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}
@keyframes slideIn {
    from {transform: translateY(-50px);}
    to {transform: translateY(0);}
}

/* 導入フロー */
.flow { background-color: var(--color-bg-light-gray); }
.flow__steps { display: flex; flex-direction: column; gap: 30px; margin-bottom: 50px; }
.flow-step {
    background: var(--color-bg-body);
    padding: 24px; border-radius: var(--border-radius-card);
    position: relative; box-shadow: var(--box-shadow-card);
}
.flow-step__number {
    position: absolute; top: -15px; left: 20px;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    width: 40px; height: 40px;
    border-radius: 50%; display: flex;
    justify-content: center; align-items: center;
    font-size: 20px; font-weight: 700;
}
.flow-step__title { font-size: 20px; margin-bottom: 10px; padding-top: 10px; color: var(--color-text-dark); }
.flow__price-cta { text-align: center; }
.price-text { margin-bottom: 24px; font-weight: 700; color: var(--color-text-dark); }


/* FAQ */
.faq__list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #e0e0e0; }
.faq-item:first-child { border-top: 1px solid #e0e0e0; }
.faq-item__q {
    width: 100%; background: none; border: none;
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 0; font-size: 18px; font-weight: 700;
    text-align: left; cursor: pointer; color: var(--color-text-dark);
}
.faq-item__q i { transition: transform 0.3s ease; color: var(--color-primary); }
.faq-item.is-open .faq-item__q i { transform: rotate(180deg); }
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.faq-item.is-open .faq-item__a { max-height: 300px; }
.faq-item__a p { padding: 0 10px 20px; }


/* お問い合わせフォーム */
.contact { background-color: var(--color-bg-light-gray); }
.contact__lead { text-align: center; max-width: 600px; margin: 0 auto 40px; }
.contact__form {
    background: var(--color-bg-body);
    padding: 30px 0; border-radius: var(--border-radius-card);
    max-width: 700px; margin: 0 auto 20px;
    box-shadow: var(--box-shadow-card);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--color-text-dark); }
.form-group .required {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
    font-size: 12px; padding: 2px 6px;
    border-radius: 4px; margin-left: 8px;
}
.form-group input, .form-group textarea {
    width: 100%; padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px; font-size: 16px;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(44, 106, 228, 0.2);
}
.form-submit { text-align: center; }


/* ===== フッター ===== */
.footer {
    background-color: var(--color-text-dark);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
}


/* ======================================= */
/* ===== レスポンシブ (タブレット以上) ===== */
/* ======================================= */
@media (min-width: 768px) {
    .section-title { font-size: 32px; }
    .sp-only { display: none; }
    .pc-only { display: block; }
    
    .header__nav { display: block; }
    .header__nav ul { display: flex; list-style: none; gap: 24px; }
    .header__nav li a { font-size: 15px; font-weight: 700; text-decoration: none; color: var(--color-text-dark); }
    .header__cta { display: block; }
    .hamburger { display: none; }

    .hero__title { font-size: 48px; }
    .hero__subtitle { font-size: 18px; }
    .hero__cta { flex-direction: row; justify-content: center; }

    .hero .img-left { height: 450px; }
    .hero .img-right { height: 430px; width: auto; }

    .problems__list { max-width: none; flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .problem-item { width: calc(50% - 10px); }

    .features__grid { grid-template-columns: repeat(2, 1fr); }

    .testimonial { }
    .testimonial__img { float: none; margin-right: 30px; width: 100px; height: 100px; }

    .flow__steps { flex-direction: row; align-items: flex-start; }
    .flow-step { flex: 1; }

    .contact__form { padding: 20px; }
}


/* ======================================= */
/* ===== レスポンシブ (PC) ===== */
/* ======================================= */
@media (min-width: 1024px) {
    section { padding: 80px 0; }
    .section-title { font-size: 36px; margin-bottom: 60px; }
    .header__nav ul { gap: 32px; }
    .hero { min-height: 70vh; }
    .hero__title { font-size: 56px; }
    .hero .img-left { }
    .hero .img-right {  }
    .features__grid { grid-template-columns: repeat(4, 1fr); }
    .results__testimonials { flex-direction: row; gap: 30px; }
    .testimonial {  }
    .testimonial__img { margin-right: 0; margin-bottom: 20px; }
    .screenshots__gallery { grid-template-columns: repeat(3, 1fr); }
    .visits__gallery {     display: flex; justify-content: center; gap: 20px; }
    .visits__gallery img { width: 30%; max-width: 400px; }
    .videos__gallery {     display: flex; justify-content: center; gap: 20px; }
    .videos__gallery video { width: 100%; max-width: auto; }
}

/* ======================================= */
/* ===== スクロールアニメーション ===== */
/* ======================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.hero__title.fade-in { transition-delay: 0.2s; }
.hero__subtitle.fade-in { transition-delay: 0.4s; }
.hero__cta.fade-in { transition-delay: 0.6s; }


/* ======================================= */
/* ===== LINE 固定ボタン (FAB) ===== */
/* ======================================= */
.line-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999; /* 他の要素より手前に表示 */
    
    background-color: #06C755; /* LINEグリーン */
    color: #ffffff;
    
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;

    padding: 12px 20px; /* 内側の余白 */
    border-radius: 50px; /* 角丸の長方形（ピル形状） */
    
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.line-fab:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.line-fab i {
    font-size: 24px;
    margin-right: 8px; /* テキストとの間に余白 */
}

.line-fab__text {
    display: inline;
    font-weight: 700;
    font-size: 16px;
}


  :root{
    --bar-h: 80px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --green: #178d4b;
  }
  body{ padding-bottom: calc(var(--bar-h) + var(--safe-bottom)); }

  .bottom-cta{
    position: fixed; left:0; right:0; bottom:0;
    height: calc(var(--bar-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: var(--green);
    color:#fff;
    display:grid; grid-template-columns: 1.1fr 1fr 1fr;
    box-shadow: 0 -4px 16px rgba(0,0,0,.25);
    z-index: 9999;
  }

  .cta-left{
    color:#fff;
    display:flex; flex-direction:column; justify-content:center; align-items:center;
    gap:.25rem; padding:.6rem 1rem;
    border-right:1px solid rgba(255,255,255,.3);
  }
  .cta-left .title{ font-weight:700; font-size: clamp(14px, 2.6vw, 18px); }
  .cta-left .arrows{ color: #ff0000; padding: 2px; background-color: #fff; letter-spacing:.15em; }

  .cta-btn{
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    text-decoration:none; color:#fff; gap:.3rem;
    border-left:1px solid rgba(255,255,255,.25);
  }
  .cta-btn .icon{
    width:26px; height:26px; display:block; object-fit: contain;
  }
  .cta-btn .label{ font-weight:700; font-size: clamp(12px, 2.4vw, 16px); }
  .cta-btn:active{ filter: brightness(.92); }
  .cta-btn.line{ background: rgba(0,0,0,.04); }

  @media (max-width: 420px){
    .bottom-cta{ grid-template-columns: .9fr 1fr 1fr; }
    .cta-left{ margin-left:8px; padding:.45rem .7rem; }
  }

  @media (prefers-reduced-motion: no-preference){
    .cta-btn, .cta-left{ transition: transform .15s ease, filter .15s ease; }
    .cta-btn:hover{ transform: translateY(-2px); }
  }
