/* ================================================
   Utility Classes - Bootstrapの代替
   ================================================ */

/* Container */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 大画面でのコンテナ調整 */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1500px;
    }
}

@media (min-width: 1920px) {
    .container {
        max-width: 1700px;
    }
}

@media (min-width: 2560px) {
    .container {
        max-width: 2000px;
    }
}

/* Spacing Utilities */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mt-10 { margin-top: 5rem; }

.mb-3 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 3rem; }

.my-3 { margin-top: 1rem; margin-bottom: 1rem; }
.my-5 { margin-top: 3rem; margin-bottom: 3rem; }

.mx-3 { margin-left: 1rem; margin-right: 1rem; }
.mx-5 { margin-left: 3rem; margin-right: 3rem; }

.ms-auto { margin-left: auto; }
.me-0 { margin-right: 0; }
.me-auto { margin-right: auto; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-3 { padding: 1rem; }
.p-5 { padding: 3rem; }

.px-3 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 3rem; padding-right: 3rem; }

.py-0 { padding-top: 0; padding-bottom: 0; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.pt-01 { padding-top: 0.1rem; }
.pt-5 { padding-top: 3rem; }

.pb-3 { padding-bottom: 1rem; }

.pr-3 { padding-right: 1rem; }

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-white { color: #fff; }
.text-navy { color: navy; }
.text-pink { color: #e91e63; }
.text-decoration-none { text-decoration: none; }

.font-weight-bold { font-weight: bold; }
.font-weight-bolder { font-weight: bolder; }

.fs-1 { font-size: 1rem; }
.fs-4 { font-size: 1.25rem; }
.fs-5 { font-size: 1.125rem; }
.fs-h5 { font-size: 1.125rem; }
.fs-nav { font-size: 0.88rem; }

.lh-1 { line-height: 1; }
.lh-4 { line-height: 1.4; }
.lh-5 { line-height: 1.5; }
.lh-7 { line-height: 1.7; }
.lh-8 { line-height: 1.8; }
.lh-10 { line-height: 2; }

.ls-3 { letter-spacing: 0.3em; }

.text-mincho { font-family: serif; }
.clarendon-text-pro { font-family: 'Clarendon', serif; }

.m-0 { margin: 0; }
.indent-1 { text-indent: 1em; }

/* Display Utilities */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }

@media (min-width: 768px) {
    .d-md-table-cell { display: table-cell; }
}

@media (min-width: 1200px) {
    .d-xl-block { display: block; }
}

/* Background Colors */
.bg-white { background-color: #fff; }
.bg-blue { background-color: #007bff; }
.bg-pink { background-color: #e91e63; }
.bg-lpink { background-color: #fce4ec; }
.bg-lgray { background-color: #f8f9fa; }
.bg-light { background-color: #f8f9fa; }
.bg-dark { background-color: #343a40; }
.bg-body-tertiary { background-color: #f8f9fa; }

/* Border Utilities */
.border { border: 1px solid #dee2e6; }
.border-rounded { border-radius: 0.25rem; }
.rounded { border-radius: 0.25rem; }

.bb-dark { border-bottom: 1px solid #343a40; }

.hr-pink {
    border: 0;
    border-top: 2px solid #e91e63;
}

/* Image Utilities */
.img-fluid, .img-responsive {
    max-width: 100%;
    height: auto;
}

.img-youtube {
    cursor: pointer;
}

/* List Utilities */
.list-group {
    list-style: none;
    padding-left: 0;
}

.list-group-item {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #dee2e6;
}

.list-group-item-danger {
    background-color: #f8d7da;
}

.list-group-item-success {
    background-color: #d4edda;
}

.list-group-flush .list-group-item {
    border-width: 0 0 1px;
}

.list-inline {
    padding-left: 0;
    list-style: none;
}

.list-inline-item {
    display: inline-block;
    margin-right: 0.5rem;
}

.list-none {
    list-style: none;
}

.upper-roman {
    list-style-type: upper-roman;
}

.lower-roman {
    list-style-type: lower-roman;
}

.ml-3 { margin-left: 1rem; }
.disk { list-style-type: disc; }

/* Height Utilities */
.h-100, .full-height { height: 100%; }
.h-3 { height: 3rem; }

/* Width Utilities */
.w-100 { width: 100%; }

/* Flexbox Utilities */
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }

/* Position Utilities */
.fixed-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}

/* Offset for Pure.css Grid */
.offset-lg-1 { margin-left: 8.33333%; }
.offset-lg-2 { margin-left: 16.66667%; }

@media (max-width: 1023px) {
    .offset-lg-1, .offset-lg-2 { margin-left: 0; }
    .mt-lg-0 { margin-top: 0; }
}

@media (min-width: 1024px) {
    .mt-lg-0 { margin-top: 0; }
    .mx-lg-5 { margin-left: 3rem; margin-right: 3rem; }
    .px-lg-3 { padding-left: 1rem; padding-right: 1rem; }
    .px-lg-5 { padding-left: 3rem; padding-right: 3rem; }
    .p-lg-5 { padding: 3rem; }
}

/* Table Utilities */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table td,
.table tr {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
}

.table-bordered td,
.table-bordered tr {
    border: 1px solid #dee2e6;
}

/* Modal & Form Utilities */
.hide {
    display: none !important;
}

.show {
    display: block !important;
}

.fade {
    opacity: 0;
    transition: opacity 0.15s linear;
}

.fade.show {
    opacity: 1;
}

/* Copy */
.copy {
    display: block;
}

/* Valign */
.valign-outer5 {
    display: table;
    height: 100%;
}

.valign-inner {
    display: table-cell;
    vertical-align: middle;
}

/* Custom classes from original Bootstrap */
.starter-template {
    padding: 3rem 1.5rem;
    text-align: center;
}

/* Swiper Customization */
.swiper {
    width: 100%;
    height: 50vw; /* ビューポート幅の50%で高さを動的に設定 */
    max-height: 500px; /* 最大高さを制限 */
    min-height: 300px; /* 最小高さを設定 */
}

.swiper-slide {
    height: 100%;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像のアスペクト比を保持してコンテナにフィット */
    display: block;
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
    .swiper {
        height: 45vw;
        max-height: 450px;
    }
}

@media (max-width: 992px) {
    .swiper {
        height: 40vw;
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .swiper {
        height: 35vw;
        max-height: 350px;
        min-height: 250px;
    }
}

@media (max-width: 576px) {
    .swiper {
        height: 30vw;
        max-height: 300px;
        min-height: 200px;
    }
}

/* 大画面での調整 */
@media (min-width: 1400px) {
    .swiper {
        height: 55vw;
        max-height: 600px;
    }
}

@media (min-width: 1600px) {
    .swiper {
        height: 50vw;
        max-height: 700px;
    }
}

@media (min-width: 1920px) {
    .swiper {
        height: 45vw;
        max-height: 800px;
    }
}

@media (min-width: 2560px) {
    .swiper {
        height: 40vw;
        max-height: 900px;
    }
}

.swiper-pagination {
    bottom: 10px !important;
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: block;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem auto;
    max-width: 500px;
}

.modal-fullscreen .modal-dialog {
    width: 100%;
    max-width: none !important;
    height: 100%;
    margin: 0;
}

@media (min-width: 1024px) {
    .modal-fullscreen .modal-content {
        height: auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-fullscreen .modal-header img {
        max-width: 100%;
        height: auto;
    }
    
    .modal-fullscreen .modal-body img {
        max-width: 100%;
        height: auto;
    }
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    outline: 0;
}

.modal-fullscreen .modal-content {
    height: 100%;
    border: 0;
    border-radius: 0;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: 0.3rem;
    border-top-right-radius: 0.3rem;
}

.modal-title {
    margin-bottom: 0;
    line-height: 1.5;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem;
    border-top: 1px solid #dee2e6;
}

.vid_contents {
    width: 100%;
}

.vid_main {
    width: 100%;
    max-width: 920px;
}

/* Back to Top Button */
.s-back-to-top {
    position: fixed;
    right: 50px;
    bottom: -50px;
    display: flex;
    width: 30px;
    height: 30px;
    z-index: 9;
    text-align: center;
    transition-duration: 300ms;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.7, 1, 0.7, 1);
    text-decoration: none;
    align-items: center;
    justify-content: center;
}

.s-back-to-top i {
    font-size: 2rem;
    color: rgba(237, 20, 89, 0.3);
    transition-duration: 300ms;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.7, 1, 0.7, 1);
}

.s-back-to-top:hover i {
    color: #ed1459;
}

.s-back-to-top:focus, .s-back-to-top:hover {
    text-decoration: none;
}

/* The button becomes visible */
.s-back-to-top.show {
    bottom: 50px;
    opacity: 0.8;
}

.s-back-to-top.show:hover {
    opacity: 1;
}

/* If the user keeps scrolling down, the button is out of focus and becomes less visible */
.s-back-to-top.-zoom-out {
    opacity: 0.6;
}

/* Image Centering */
.pure-u-lg-1-2 img[src*="clothes_img03.jpg"] {
    display: block;
    margin: 0 auto;
}

/* Pure.css Form Adjustments */
.pure-control-group {
    margin-bottom: 1rem;
}

.pure-input-1 {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    font-size: 1rem;
}

.pure-input-1:focus {
    border-color: #e91e63;
    outline: none;
}

.pure-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.pure-button {
    background-color: #e91e63;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 1rem;
}

.pure-button:hover {
    background-color: #c2185b;
}

.btn-submit {
    background-color: #e91e63;
    color: #fff;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: bold;
}

.btn-submit:hover {
    background-color: #c2185b;
}

/* Pure.css Responsive Grid Extensions */
@media (min-width: 1280px) {
    .pure-u-xl-1-2 {
        width: 50%;
    }
}

/* ================================================
   Equal Height Blocks (Tokyo / TFCラボ説明)
   ================================================ */

/* メインコンテナ */
.equal-height-blocks {
    display: flex;
    align-items: stretch;
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
}

/* Pure.cssのグリッドを無効化（!important必須） */
.equal-height-blocks .pure-u-lg-1-3,
.equal-height-blocks .pure-u-lg-2-3 {
    float: none !important;
    display: flex !important;
    flex-direction: column;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

/* 左側ブロック（Tokyo画像：1/3幅） */
.equal-height-blocks .pure-u-lg-1-3 {
    flex: 0 0 33.333% !important;
}

/* 右側ブロック（TFCラボ説明：2/3幅） */
.equal-height-blocks .pure-u-lg-2-3 {
    flex: 0 0 66.666% !important;
}

/* ブロックコンテンツ共通 */
.block-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* 濃紺ブロック（TFCラボ説明） */
.bg-blue.block-content {
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    height: 100%;
    padding-bottom: 0;
}

/* 左側ブロック（Tokyo画像）のコンテンツ */
.equal-height-blocks .pure-u-lg-1-3 .block-content {
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 0 20px 0 0;
}

/* 画像のスタイル */
.block-content img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Evidence Acquisition Testingセクションの調整 */
.equal-height-blocks .pure-g {
    gap: 20px;
}

.equal-height-blocks .pure-u-lg-5-12 {
    padding: 0 10px;
}

/* ================================================
   Remixiconカスタマイズ
   ================================================ */

/* アイコンのサイズ調整 */
.ri-checkbox-blank-circle-fill {
    font-size: 0.5em;
    vertical-align: middle;
}

/* ================================================
   Evidence Acquisition Testing
   ================================================ */

.bg-white h5 {
    font-size: 1.6rem;
}

/* ================================================
   会社案内セクション
   ================================================ */

/* 画像を横並びに（タブレット以上） */
@media (min-width: 768px) {
    #com-profile .pure-g {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -15px;
    }
    
    #com-profile .pure-u-md-1-2 {
        flex: 0 0 50%;
        max-width: 50%;
        box-sizing: border-box;
    }
    
    #com-profile .pure-u-md-1-2.px-3 {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* 情報部分の行間 */
#com-profile .lh-10 {
    line-height: 2;
}

/* ================================================
   レスポンシブ対応（タブレット以下）
   ================================================ */

@media (max-width: 991px) {
    /* Equal Height Blocksを縦並びに */
    .equal-height-blocks {
        flex-direction: column;
    }
    
    .equal-height-blocks .pure-u-lg-1-3,
    .equal-height-blocks .pure-u-lg-2-3 {
        flex: 1 1 100%;
        padding: 0;
        margin-bottom: 20px;
    }
    
    .block-content {
        min-height: auto;
    }
    
    /* TFCラボ説明ブロックの調整 */
    .bg-blue.block-content {
        padding-top: 20px;
        padding-bottom: 20px;
        line-height: 1.6;
    }
}

/* ================================================
   Responsive Navbar 2 Style
   ================================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fce4ec; /* bg-lpinkと同じ色 */
    z-index: 1020;
    padding: 0;
    height: 70px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 15px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-brand img {
    width: 200px;
    height: auto;
}

.navbar-toggle {
    display: none;
    background: #fff;
    border: 2px solid #dc1d55;
    color: #dc1d55;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.navbar-toggle:hover {
    background: #dc1d55;
    color: #fff;
}

.nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.nav-item {
    position: relative;
}

.nav-item a {
    text-decoration: none;
    color: #333;
    font-size: 12px;
    font-weight: bold;
    padding: 10px 4px;
    display: block;
    position: relative;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.nav-item a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #e91e63; /* ピンク色の下線 */
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-out;
}

.nav-item a:hover {
    color: #e91e63;
}

.nav-item a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-item-cta {
    margin-left: 20px;
}

.nav-cta {
    background: #e91e63 !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 4px;
    font-weight: bold;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: #c2185b !important;
    color: white !important;
}

/* デフォルトは改行なし */
.nav-break {
    display: none;
}

/* PC表示時（1200px以上）のみ改行を表示 */
@media (min-width: 1200px) {
    .nav-break {
        display: block;
    }
}

@media (max-width: 1199px) {
    .navbar-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        height: calc(100vh - 60px);
        background: #fce4ec;
        flex-direction: column;
        padding: 15px 20px 0 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        overflow-y: auto;
        box-sizing: border-box;
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
        margin: 3px 0;
    }
    
    .nav-item a {
        font-size: 16px;
        padding: 8px 0;
        display: block;
        line-height: 1.1;
    }
    
    .nav-item:last-child {
        margin-bottom: 0;
    }
    
    .nav-item-cta {
        margin-left: 0;
        margin-top: 5px;
    }
    
    .nav-cta {
        display: inline-block;
        padding: 10px 30px !important;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 60px;
    }
    
    .navbar-brand img {
        width: 150px;
        height: auto;
    }
    
    .nav {
        top: 60px;
        height: calc(100vh - 60px);
    }
}

/* ================================================
   Q&A Carousel
   ================================================ */
.qa-carousel-section {
    padding: 2rem 0;
    margin: 2rem 0;
}

.qa-title {
    text-align: center;
    color: #dc1d55;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 2rem;
}

/* Responsive font sizes for qa-title */
@media (max-width: 768px) {
    .qa-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .qa-title {
        font-size: 1.4rem;
    }
}

.qa-carousel {
    position: relative;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
    height: 8rem;
}

.qa-carousel .swiper {
    position: relative;
    width: 100%;
    height: 100%;
}

.qa-carousel .qa-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    height: 8rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.qa-carousel .qa-card[data-qa-target] {
    cursor: pointer;
}

.qa-carousel .qa-card[data-qa-target]:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.qa-card-header {
    background-color: #e9ecef;
    color: #dc1d55;
    padding: 0.4rem 0.5rem;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    width: 100%;
}

.qa-card-header span {
    font-size: 1.4rem;
}

.qa-card-body {
    padding: 0 0.5rem 0.5rem 0.5rem;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.qa-card-title {
    font-size: 1rem;
    font-weight: bold;
    margin: 0;
    line-height: 1.3;
    color: #333;
}

/* Navigation Buttons */
.qa-carousel .swiper-button-prev,
.qa-carousel .swiper-button-next {
    position: absolute;
    top: 4rem;
    width: 2.5rem;
    height: 2.5rem;
    background-color: #dc1d55;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
}

.qa-carousel .swiper-button-prev:hover,
.qa-carousel .swiper-button-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.qa-carousel .swiper-button-prev {
    left: 1.6rem;
}

.qa-carousel .swiper-button-next {
    right: 1.6rem;
}

.qa-carousel .swiper-button-prev::after,
.qa-carousel .swiper-button-next::after {
    font-size: 1.6rem;
}

/* Tablet */
@media (max-width: 1024px) {
    .qa-carousel .swiper-button-prev {
        left: 0.8rem;
    }
    
    .qa-carousel .swiper-button-next {
        right: 0.8rem;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .qa-carousel {
        padding: 0 10px;
        height: 11rem;
    }
    
    .qa-card {
        height: 11rem;
    }
    
    .qa-carousel .swiper-button-prev,
    .qa-carousel .swiper-button-next {
        width: 2.8rem;
        height: 2.8rem;
        top: 5.5rem;
    }
    
    .qa-carousel .swiper-button-prev::after,
    .qa-carousel .swiper-button-next::after {
        font-size: 1.4rem;
    }
}

