/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.ql-container{
  font-size: 16px;
  font-family: 'Noto Sans JP', sans-serif;
}

.ql-editor h1{
 /*font-family: "Shippori Mincho", serif; */
 font-weight: 400;
}
.ql-editor h2, .heading-section h2{
  font-size: 1.2em!important;
  padding: 0.5em;
  border-left: 5px solid #000;
  margin: 1em 0 0.5em;
  font-weight: 400;
}

.ql-editor h3, .heading-section h3{
  font-size: 1em!important;
  padding: 0 0.3em;
  border-left: 5px solid #000;
  margin-bottom: 0.5em;
  margin: 1em 0 0.5em;
  font-weight: 400;
}

.ql-editor h4, .heading-section h4{
  font-size: 1em!important;
  padding: 0;
  margin-bottom: 0.5em;
  
  font-weight: 400;
}

.ql-editor p{
  margin-bottom: 5px;
  line-height: 1.5;
  font-size: 1em;
}

.ql-editor ul li:not(.ql-direction-rtl){
  padding-left: 0;
}


/* =========================================
   基本設定
========================================= */
:root {
    --bg-color: #000000;
    --bg-subtle: #111111;
    --text-main: #ffffff;
    --text-sub: #999999;
    --accent-color: #ffffff;
}
html {
    scroll-padding-top: 100px; /* アンカーリンクでのスクロール時にヘッダーの高さ分オフセットを追加 */
}
/* アンカーターゲット要素にスクロールマージンを追加（より確実な方法） */
[id] {
    scroll-margin-top: 100px;
}
body { background-color: var(--bg-color); color: var(--text-main); font-family: 'Noto Sans JP', sans-serif; font-weight: 300; line-height: 1.8; letter-spacing: 0.05em; overflow-x: hidden; }
.font-mincho { font-family: 'Shippori Mincho', serif; }
.font-noto { font-family: 'Noto Sans JP', sans-serif; }
.fs-sm { font-size: 0.875rem; }
.fs-xs { font-size: 0.75rem; }
.ls-1 { letter-spacing: 0.1em; }
.ls-2 { letter-spacing: 0.2em; }
.config-width { max-width: 1000px; margin: 0 auto; }
.section-padding { padding-top: 150px; padding-bottom: 150px; }
.bg-dark-subtle { background-color: var(--bg-subtle) !important; }

/* =========================================
   ユーティリティ
========================================= */
.link-arrow { color: var(--text-main); text-decoration: none; position: relative; padding-right: 40px; transition: opacity: 0.3s; }
.link-arrow::after { content: ''; position: absolute; right: 0; top: 50%; width: 30px; height: 1px; background-color: currentColor; }
.link-arrow:hover { opacity: 0.7; }

/* =========================================
   ヘッダー
========================================= */
.navbar { padding-top: 20px; padding-bottom: 20px; transition: background-color 0.3s; }
.navbar:hover { background-color: rgba(0,0,0,0.8); }
.navbar.scrolled { background-color: rgba(0,0,0,0.8); }
.navbar-brand { font-family: 'Shippori Mincho', serif; font-size: 1.5rem; letter-spacing: 0.1em; }
.navbar-logo { height: 40px; }
@media (max-width: 767.98px) {
    .navbar-logo { height: 30px; }
}
.nav-link { font-family: 'Shippori Mincho', serif; color: #fff !important; font-size: 0.9rem; letter-spacing: 0.1em; position: relative; }
@media (min-width: 1310px) {
    .nav-link::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 1px; background-color: #fff; transition: all 0.3s; transform: translateX(-50%); }
    .nav-link:hover::after { width: 100%; }
}
.btn-outline-light:hover { background-color: #fff; color: #000; border-color: #fff; }

/* カスタムブレークポイント (1310px) for navbar */
@media (min-width: 1310px) {
    .navbar-expand-custom {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    .navbar-expand-custom .navbar-toggler {
        display: none;
    }
    .navbar-expand-custom .offcanvas {
        position: static;
        z-index: auto;
        flex-grow: 1;
        width: auto !important;
        height: auto !important;
        visibility: visible !important;
        background-color: transparent !important;
        border: 0 !important;
        transform: none !important;
        transition: none;
    }
    .navbar-expand-custom .offcanvas .offcanvas-header {
        display: none;
    }
    .navbar-expand-custom .offcanvas .offcanvas-body {
        display: flex;
        flex-grow: 0;
        padding: 0;
        overflow-y: visible;
    }
    .navbar-expand-custom .navbar-nav {
        flex-direction: row;
    }
    .navbar-expand-custom .navbar-nav .nav-link {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }
}

/* =========================================
   共通セクションヘッダー
========================================= */
.section-title { font-size: 3rem; letter-spacing: 0.1em; line-height: 1; margin-bottom: 10px; }
.section-subtitle { color: var(--text-sub); font-size: 0.9rem; letter-spacing: 0.1em; }

/* =========================================
   メインビジュアル (HERO)
========================================= */
.hero { height: 100vh; width: 100%; padding-top: 80px; position: sticky; top: 0; z-index: 0; overflow: hidden; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; z-index: 0; filter: brightness(0.4); }
.main-content { position: relative; z-index: 2; background-color: var(--bg-color); }
.hero-content { position: relative; z-index: 5; }
.hero-image-collage { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 4; }
.hero-left { padding-left: 5%; padding-right: 5%; }
.hero-title .display-2 { letter-spacing: 0.1em; }
.hero-right { position: relative; height: 80vh; }
.hero-image-item { position: absolute; overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); }
.hero-image-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.hero-image-item:hover img { transform: scale(1.05); }
.hero-image-item:nth-child(1) { width: 45%; height: 40%; top: 10%; left: 5%; z-index: 3; }
.hero-image-item:nth-child(2) { width: 45%; height: 40%; top: 10%; left: 50%; z-index: 3; }
.hero-image-item:nth-child(3) { width: 45%; height: 40%; bottom: 10%; left: 5%; z-index: 3; }
.hero-image-item:nth-child(4) { width: 45%; height: 40%; bottom: 10%; left: 50%; transform: translateY(-50%); z-index: 1; }
.scroll-down { position: absolute; bottom: 50px; left: 5%; transform: translateX(0); z-index: 10; color: #fff; text-decoration: none; font-family: 'Shippori Mincho', serif; font-size: 0.8rem; letter-spacing: 0.2em; }
.scroll-down::after { content: ''; display: block; width: 1px; height: 60px; background-color: #fff; margin: 10px auto 0; animation: scrollLine 2s infinite; }
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 50.1% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* =========================================
   About Us セクション
========================================= */
.about-section { position: relative; min-height: 80vh; overflow: hidden; }
.about-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; z-index: 0; filter: brightness(0.4); }

/* =========================================
   お客様へのお約束 (OUR PROMISE)
========================================= */
.promise-item { border-bottom: 1px solid #222; padding: 2.5rem 0; }
.promise-item:first-child { border-top: 1px solid #222; }
.promise-title { font-size: 2rem; font-weight: 500; }
.promise-number { font-family: 'Shippori Mincho', serif; font-size: 1rem; color: var(--text-sub); margin-right: 0.5rem; }

/* =========================================
   製品一覧 (PRODUCTS)
========================================= */
.product-card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; width: 100%; padding: 2rem 1.5rem; background-color: #000; border: 1px solid #222; text-decoration: none; transition: all 0.3s ease; }
.product-card:hover { transform: translateY(-5px); border-color: var(--text-sub); }
.product-card .icon { margin-bottom: 1.5rem; filter: invert(1); }
.product-card .icon img { max-width: 50%; width: auto; }
.product-card .text { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.product-card .badge { font-family: 'Noto Sans JP', sans-serif; font-size: 0.75rem; font-weight: 400; padding: 0.4em 0.8em; margin-bottom: 1.5rem; }
.badge-free { background-color: #333; color: #ccc; }
.badge-insured { background-color: #ccc; color: #111; }
.product-title { color: var(--text-main); font-size: 1.1rem; font-weight: 500; line-height: 1.6; }

/* =========================================
   お知らせ (NEWS)
========================================= */
.news-list li { transition: background-color 0.3s; }
.news-list li:hover { background-color: rgba(255,255,255,0.05); }
.news-list a:hover .text-secondary { color: #fff !important; transition: color 0.3s; }

/* =========================================
   採用情報 (RECRUIT)
========================================= */
.recruit-section { position: relative; overflow: hidden; padding: 120px 0; }
.recruit-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; z-index: 0; }
.recruit-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); z-index: 1; }
.recruit-section .btn-light { transition: all 0.3s; }
.recruit-section .btn-light:hover { background-color: #fff; color: #000; transform: scale(1.05); }

/* =========================================
   パララックス効果 (PCのみ適用)
========================================= */
@media (min-width: 992px) {
    .about-bg, .recruit-bg { background-attachment: fixed; }
}

/* =========================================
   フッター
========================================= */
.footer { padding-top: 150px; background-color: var(--bg-color); border-top: 1px solid #222;position: relative; }
.footer-logo { font-size: 1.5rem; }
.footer-nav a { color: var(--text-sub); text-decoration: none; font-family: 'Shippori Mincho', serif; font-size: 0.9rem; letter-spacing: 0.1em; transition: color 0.3s; }
.footer-nav a:hover { color: var(--text-main); }
.copyright { /* スタイルはBootstrapクラスで指定済みのため、追加ルールは不要 */ }

/* =========================================
   PAGE TOP ボタン - 【改修版】
========================================= */
.page-top-btn {
    position: fixed;
    top: 85%;
    right: 30px;
    transform: translateY(-50%);
    z-index: 1000;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    text-decoration: none;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}
.page-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
}
.page-top-line {
    display: block;
    width: 1px;
    height: 60px;
    background-color: var(--text-sub);
    margin-bottom: 15px;
    transform-origin: bottom;
    transform: scaleY(0);
    transition: transform 0.4s ease, background-color 0.3s ease;
}
.page-top-text {
    color: var(--text-sub);
    font-family: 'Shippori Mincho', serif;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    transition: color 0.3s;
}
.page-top-btn:hover .page-top-line {
    transform: scaleY(1);
    background-color: var(--text-main);
}
.page-top-btn:hover .page-top-text {
    color: var(--text-main);
}

/* =========================================
   レスポンシブ調整
========================================= */
@media (max-width: 1309.98px) {
    .nav-link::after { display: none; }
}
@media (max-width: 991.98px) {
    .section-padding { padding-top: 100px; padding-bottom: 100px; }
    .section-title { font-size: 2.2rem; }
    .hero { position: static; height: auto; min-height: auto; padding-top: 120px; padding-bottom: 80px; text-align: center; }
    .hero-left { margin-bottom: 60px; }
    .hero-right { position: static; height: auto; }
    .hero-image-collage { position: static; display: flex; flex-direction: row;flex-wrap: wrap;justify-content: center; align-items: center; gap: 30px; }
    .hero-image-item { position: static; width: 80%; height: 250px; max-width: 600px; transform: none !important; }
    .scroll-down { display: none; }
    .recruit-section { padding: 100px 0; }
    .page-top-btn { display: none; } /* スマホでは非表示 */
}
@media (max-width: 767.98px) {
    .hero-title .display-2 { font-size: 2.5rem; }
    .promise-title { font-size: 1.7rem; text-align: center; }
}


/* =========================================
   技術と設備ページ (TECHNOLOGY) - 【新規追加】
========================================= */

/* ページヘッダー */
.page-header {
    position: relative;
    height: 50vh;
    min-height: 300px;
    color: var(--text-main);
    background-color: #000;
}
.page-header-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.5;
}
.page-header-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
}

/* 技術・設備リスト */
.technology-item {
    margin-bottom: 100px;
}
.technology-item:last-child {
    margin-bottom: 0;
}
.tech-category {
    font-size: 0.8rem;
    color: var(--text-sub);
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    display: block;
}
.tech-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}


/* =========================================
   会社概要ページ (COMPANY) - 【新規追加】
========================================= */

/* 会社情報テーブル */
.company-profile-table th,
.company-profile-table td {
    padding: 1.5rem 1rem;
    vertical-align: middle;
}
.company-profile-table th {
    width: 30%;
    font-family: 'Shippori Mincho', serif;
    font-weight: 500;
    color: var(--text-main);
    border-top: 1px solid #222;
}
.company-profile-table td {
    border-top: 1px solid #222;
}
.company-profile-table tr:first-child th,
.company-profile-table tr:first-child td {
    border-top: none;
}

/* 沿革タイムライン */
.timeline {
    position: relative;
    padding-left: 3rem;
    border-left: 1px solid #333;
}
.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}
.timeline-item:last-child {
    padding-bottom: 0;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0.5rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--text-sub);
}
.timeline-year {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.2rem;
    color: var(--text-main);
    font-weight: 500;
}
.timeline-content {
    color: var(--text-sub);
}

/* =========================================
   求人ページ (RECRUIT PAGE) - 【新規追加】
========================================= */

.recruit-item {
    margin-bottom: 100px;
}
.recruit-item:last-child {
    margin-bottom: 0;
}
.recruit-title {
    font-size: 2rem;
    margin-bottom: 2rem;
}
.recruit-details {
    margin-bottom: 2rem;
    font-family: 'Noto Sans JP', sans-serif;
}
.recruit-details dt {
    font-weight: 400;
    color: var(--text-main);
    width: 80px;
    float: left;
    clear: left;
}
.recruit-details dd {
    color: var(--text-sub);
    padding-left: 100px;
    margin-bottom: 1rem;
}

/* =========================================
   お問い合わせページ (CONTACT) - 【新規追加】
========================================= */

.form-label {
    color: var(--text-sub);
    font-size: 0.9rem;
}

.required-mark {
    color: #a94442; /* エラーを示す赤色 */
    margin-left: 0.25rem;
}

.form-control {
    background-color: transparent;
    border: 1px solid #333;
    border-radius: 0;
    color: var(--text-main);
    padding: 0.75rem 1rem;
}
.form-control:focus {
    background-color: #111;
    border-color: var(--text-sub);
    color: var(--text-main);
    box-shadow: none;
}
.form-control::placeholder {
    color: #666;
}

.form-check-input {
    background-color: transparent;
    border: 1px solid #555;
    border-radius: 0;
}
.form-check-input:checked {
    background-color: var(--text-sub);
    border-color: var(--text-sub);
}
.form-check-input:focus {
    box-shadow: none;
    border-color: var(--text-sub);
}
.form-check-label a:hover {
    text-decoration: underline;
}

/* =========================================
   技工物一覧ページ (PRODUCTS PAGE) - 【新規追加】
========================================= */

.product-detail-item {
    margin-bottom: 100px;
    padding-bottom: 100px;
    border-bottom: 1px solid #222;
}
.product-detail-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.product-detail-title {
    font-size: 2.2rem;
    color: var(--text-main);
    position: relative;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}
.product-detail-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 1px;
    background-color: var(--text-sub);
}
.product-detail-title .badge {
    position: absolute;
    top: -1.5em;
    left: 0;
    font-size: 0.7rem;
    padding: 0.3em 0.6em;
}


/* =========================================
   製品詳細ページ (PRODUCT DETAIL) - 【新規追加】
========================================= */

.product-detail-block {
    padding-bottom: 4rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid #222;
}
.product-detail-block:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}
.product-detail-subtitle {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 2rem;
}

/* カルーセルのカスタマイズ */
.carousel {
    border: 1px solid #222;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(0.7); /* アイコンを少しグレーに */
}

/* =========================================
   納品までの流れページ (FLOW) - 【新規追加】
========================================= */

.flow-item {
    padding: 2.5rem;
    border: 1px solid #222;
    text-align: center;
}
.flow-step {
    display: block;
    font-size: 1.2rem;
    color: var(--text-sub);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}
.flow-title {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}
.flow-arrow {
    position: relative;
    width: 1px;
    height: 80px;
    background-color: #333;
    margin: 0 auto;
}
.flow-arrow::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-bottom: 1px solid #333;
    border-right: 1px solid #333;
    transform: translateX(-50%) rotate(45deg);
}

/* =========================================
   カスタムアコーディオン (FAQ) - 【新規追加】
========================================= */
.custom-accordion .accordion-item {
    background-color: transparent;
    border: 1px solid #222;
    margin-bottom: -1px; /* ボーダーの重なりを調整 */
}
.custom-accordion .accordion-header button {
    background-color: transparent;
    color: var(--text-main);
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    width: 100%;
    text-align: left;
    box-shadow: none;
}
.custom-accordion .accordion-button:not(.collapsed) {
    background-color: #111;
    color: var(--text-main);
}
/* アイコンの色を白に変更 */
.custom-accordion .accordion-button::after {
    filter: invert(1) grayscale(100%) brightness(200%);
}
.custom-accordion .accordion-body {
    color: var(--text-sub);
    background-color: #080808;
}

/* =========================================
   ブログ一覧ページ (BLOG) - 【新規追加】
========================================= */

.blog-card {
    display: block;
    background-color: #111;
    border: 1px solid #222;
    text-decoration: none;
    height: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--text-sub);
}
.blog-card-img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-card-body {
    padding: 1.5rem;
}
.blog-card-meta {
    font-size: 0.8rem;
    color: var(--text-sub);
    margin-bottom: 0.5rem;
}
.blog-card-title {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 500;
}

/* =========================================
   カスタムページネーション - 【新規追加】
========================================= */

.custom-pagination .page-item .page-link {
    background-color: transparent;
    border: 1px solid #333;
    color: var(--text-sub);
    border-radius: 0 !important;
    margin: 0 2px;
    box-shadow: none;
}
.custom-pagination .page-item .page-link:hover {
    background-color: #222;
    border-color: #555;
}
.custom-pagination .page-item.active .page-link {
    background-color: var(--text-sub);
    border-color: var(--text-sub);
    color: #000;
}
.custom-pagination .page-item.disabled .page-link {
    background-color: transparent;
    border-color: #222;
    color: #444;
}


/* =========================================
   ブログ詳細ページ (BLOG POST) - 【新規追加】
========================================= */

/* パンくずリスト */
.breadcrumb-section {
    padding-top: 120px; /* 固定ヘッダー分 */
    padding-bottom: 2rem;
}
.breadcrumb {
    margin-bottom: 0;
}
.breadcrumb-item {
    font-size: 0.8rem;
}
.breadcrumb-item a {
    color: var(--text-sub);
    text-decoration: none;
}
.breadcrumb-item a:hover {
    color: var(--text-main);
}
.breadcrumb-item.active {
    color: var(--text-main);
}
.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-sub);
    content: '>';
}

/* 記事本体 */
.post-header {
    text-align: center;
}
.post-meta {
    color: var(--text-sub);
    font-size: 0.9rem;
}
.post-title {
    font-size: 2.8rem;
}
.post-content {
    font-size: 1rem;
}
.post-content h2 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #222;
}
.post-content p,
.post-content ul,
.post-content blockquote {
    margin-bottom: 1.5rem;
}
.post-content ul {
    padding-left: 1.5rem;
}
.post-content blockquote {
    border-left: 3px solid var(--text-sub);
    padding-left: 1.5rem;
    font-style: italic;
    color: #ccc;
}

/* 記事ナビゲーション */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid #222;
}
.post-navigation a {
    color: var(--text-sub);
    text-decoration: none;
    font-family: 'Shippori Mincho', serif;
}
.post-navigation a:hover {
    color: var(--text-main);
}

/* =========================================
   ネオン効果 (NEON EFFECT) - 【新規追加】
========================================= */

/* 赤いネオン効果 */
.neon-red {
    text-shadow:
        0 0 5px #ff0000,
        0 0 10px #ff0000,
        0 0 20px #ff0000,
        0 0 40px #ff0000,
        0 0 80px #ff0000,
        0 0 120px #ff0000;
}

/* 青いネオン効果 */
.neon-blue {
    text-shadow:
        0 0 5px #00bfff,
        0 0 10px #00bfff,
        0 0 20px #00bfff,
        0 0 40px #00bfff,
        0 0 80px #00bfff,
        0 0 120px #00bfff;
}

/* =========================================
   写真スクロールセクション (RECRUIT PAGE)
========================================= */
.photo-scroll-section {
    padding: 60px 0;
    overflow: hidden;
    background-color: var(--bg-color);
}

.scroll-row {
    overflow: hidden;
    margin-bottom: 15px;
}
.scroll-row:last-child {
    margin-bottom: 0;
}

.scroll-track {
    display: flex;
    width: max-content;
}

.scroll-item {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    margin-right: 15px;
}
.scroll-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* 右方向へスクロール */
.scroll-right .scroll-track {
    animation: scrollRight 50s linear infinite;
}

/* 左方向へスクロール */
.scroll-left .scroll-track {
    animation: scrollLeft 50s linear infinite;
}

@keyframes scrollRight {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollLeft {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* ホバー時にアニメーション一時停止 */
.scroll-row:hover .scroll-track {
    animation-play-state: paused;
}

/* レスポンシブ調整 */
@media (max-width: 767.98px) {
    .photo-scroll-section {
        padding: 40px 0;
    }
    .scroll-item {
        width: 150px;
        height: 112px;
        margin-right: 10px;
    }
    .scroll-row {
        margin-bottom: 10px;
    }
}
