@charset "UTF-8";
/*
Theme Name: Libero
Template: arkhe
Version: 1.0.0
Author: Taiga.K
*/

/* ========================================================
   美工堂・株式会社LIBERO サイトスタイルシート
   [目次]
   1. Base & Variables
   2. Common (共通パーツ)
   3. Header
   4. Footer
   5. Front Page (TOP)
   ======================================================== */

/* Google Material Iconsの読み込み */
@import url("https://fonts.googleapis.com/icon?family=Material+Icons");

/* ========================================================
   1. Base & Variables
   ======================================================== */
:root {
    /* Colors */
    --color-primary: #E60012;   /* LIBERO Red */
    --color-secondary: #00A0E9; /* Cyan Blue */
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg-light: #F9F9F9;
    --color-bg-service: #D32F2F;
    --color-bg-footer: #2C2C2C;
    --color-white: #FFFFFF;
    --color-border: #DDDDDD;

    /* Layout & Fonts */
    --width-inner: 1100px;
    --font-base: "Noto Sans JP", sans-serif;
}

body {
    font-family: var(--font-base);
    color: var(--color-text);
    line-height: 1.8;
    margin: 0;
	overflow-x: hidden;
}
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; vertical-align: bottom; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
a:hover { opacity: 0.7; }
.inner { max-width: var(--width-inner); margin: 0 auto; padding: 0 20px; }

/* ========================================================
   2. Common
   ======================================================== */
.section { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title__en {
    font-size: 28px; font-weight: 700; color: var(--color-primary);
    letter-spacing: 0.1em; display: block; text-transform: uppercase;
}
.section-title__ja {
    font-size: 13px; font-weight: bold; margin-top: 5px; display: block;
}

/* PC Override */
@media (min-width: 768px) {
    .section { padding: 100px 0; }
    .section-title__en { font-size: 36px; }
    .section-title__ja { font-size: 15px; }
}

/* ========================================================
   3. Header
   ======================================================== */
/* ========================================================
   3. Header (Full Width & Slim Ver.)
   ======================================================== */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: var(--color-white);
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--color-border);
    height: 64px; /* 高さを抑えて横長に見せる */
}

/* フル幅レイアウト */
.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
/* ★修正ポイント: ここで左の空き具合を調整！ */
    padding-left: 40px; 
    padding-right: 0; /* 右はくっつけるので0のまま */
}

/* ロゴ (左端 + 少しマージン) */
.header__logo {
    margin-left: 0; /* 左端の余白 */
    flex-shrink: 0;
}
.header__logo img {
    height: 40px; /* ロゴサイズ調整 */
    width: auto;
    display: block;
}

/* ナビゲーション */
.header__nav {
    display: none; /* スマホ非表示 */
}

/* アクションボタン (右端) */
.header__actions {
    display: none; /* スマホ非表示 */
}

/* PC Override */
@media (min-width: 768px) {
    .header__nav {
        display: block;
        margin-left: auto; /* ナビを右寄りにするが、ボタンの手前に配置 */
        margin-right: 30px; /* ボタンとの距離 */
        height: 100%;
    }

    /* メニューリスト */
    .header__list {
        display: flex;
        gap: 0; /* メニュー同士の隙間はpaddingで調整 */
        list-style: none;
        padding: 0;
        margin: 0;
        height: 100%;
        align-items: center;
    }

    /* メニュー項目 */
    .header__item {
        position: relative; /* ドロップダウンの基準 */
        height: 100%;
        display: flex;
        align-items: center;
    }
    
    .header__item > a {
        display: block;
        padding: 0 20px;
        font-weight: bold;
        font-size: 14px;
        color: var(--color-text);
        text-decoration: none;
        line-height: 64px; /* ヘッダーの高さに合わせる */
        position: relative;
    }

    /* 下矢印アイコン（擬似要素） */
    .header__item.has-child > a::after {
        content: "▼";
        font-size: 8px;
        margin-left: 6px;
        vertical-align: middle;
        color: #999;
    }

    /* ---------------------------------
       ドロップダウンメニュー (1階層目)
       --------------------------------- */
	.sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 200px;
        background: #fff;
        
        /* ★修正1: 影を「下方向」に強くずらし、上に漏れないように調整 */
        /* 0(横) 5px(下) 10px(ぼかし) -3px(影を少し縮める) */
        box-shadow: 0 5px 10px -3px rgba(0,0,0,0.15);
        
        opacity: 0;
        visibility: hidden;
        transition: 0.2s;
        transform: translateY(10px);
        padding: 10px 0;
        border-radius: 0 0 4px 4px;
        
        /* リストスタイル初期化 */
        list-style: none !important;
        margin: 0 !important;
    }
	
	.sub-menu li,
    .sub-sub-menu li {
        list-style: none !important;
        margin: 0;
        padding: 0;
    }

    /* ホバーで表示 */
    .header__item:hover .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .sub-menu li {
        width: 100%;
    }
    
    .sub-menu li a {
        display: block;
        padding: 10px 20px;
        font-size: 13px;
        color: var(--color-text);
        transition: background 0.2s;
        border-bottom: 1px solid #f0f0f0;
        text-decoration: none; /* 下線も念のため消す */
    }
    .sub-menu li:last-child a { border-bottom: none; }
    .sub-menu li a:hover {
        background-color: #f9f9f9;
        color: var(--color-primary);
    }
    /* ---------------------------------
       孫メニュー (さらに右に出るやつ)
       --------------------------------- */
    .has-sub-child {
        position: relative; /* 孫メニューの基準 */
    }
    .has-sub-child > a::after {
        content: "▶";
        font-size: 8px;
        float: right;
        margin-top: 4px;
        color: #ccc;
    }

    .sub-sub-menu {
        position: absolute;
        top: 0;
        left: 100%; /* 親の右隣 */
        min-width: 200px;
        background: #fff;
        box-shadow: 0 3px 10px rgba(0,0,0,0.15);
        opacity: 0;
        visibility: hidden;
        transition: 0.2s;
        padding: 10px 0;
        border-radius: 4px;
        margin-left: -2px; /* 少し重ねる */
    }

    /* ホバーで孫表示 */
    .has-sub-child:hover .sub-sub-menu {
        opacity: 1;
        visibility: visible;
    }
    
    .sub-sub-menu li a {
        font-size: 13px;
        padding: 10px 20px;
    }

    /* ---------------------------------
       アクションボタン (右端)
       --------------------------------- */
    .header__actions {
        display: flex;
        height: 100%;
    }
    
    .header__btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 130px; /* 横幅を少し広げて横長感アップ */
        height: 100%; /* ヘッダーの高さ一杯に */
        color: var(--color-white);
        font-weight: bold;
        font-size: 12px;
        line-height: 1.2;
        text-align: center;
        transition: opacity 0.3s;
    }
    .header__btn:hover { opacity: 0.9; }

    .header__btn--blue { background: var(--color-secondary); }
    .header__btn--red { background: var(--color-primary); }

    .btn-icon {
        font-size: 16px;
        margin-bottom: 2px;
        display: block;
    }
}

/* ========================================================
   4. Footer
   ======================================================== */

.footer {
    background-color: #333; /* ダークグレー背景 */
    color: #fff;
    padding: 80px 0 20px;
    font-size: 14px;
}

.footer__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- レイアウト構造 --- */
.footer__content {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-bottom: 60px;
}

/* リンク共通設定 */
.footer a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}
.footer a:hover {
    opacity: 0.7;
}

/* --- 左：会社情報 --- */
.footer__logo img {
    width: 100%;
    /* ★指定: ロゴサイズ制限 */
    max-width: 100px;
    height: auto;
    margin-bottom: 20px;
	filter: brightness(0) invert(1);
}

.footer__company-name {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.footer__address {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.footer__phone {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__phone-icon {
    font-size: 24px;
}

.footer__phone-number {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.05em;
}

/* --- 見出し共通 --- */
.footer__heading {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 25px;
    letter-spacing: 0.05em;
}

.footer__sub-heading {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
}
.mt-20 { margin-top: 20px; }

/* --- リスト共通 --- */
.footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__list li {
    margin-bottom: 12px;
}

.footer__list li a {
    font-size: 13px;
    color: #ccc; /* 少しグレーにして階層感を出す */
}


/* --- 中央：製品グリッド --- */
.footer__product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.footer__product-col {
    width: 100%; /* スマホは1列 */
}


/* --- 右：ナビゲーション --- */
.footer__nav-group {
    margin-bottom: 40px;
}


/* --- コピーライト --- */
.footer__copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    color: #999;
    font-size: 12px;
}


/* ====================================
   PC版レイアウト (1024px以上推奨)
   ==================================== */
@media (min-width: 1024px) {
    .footer__content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0;
    }

    /* 3カラムの幅比率 */
    .footer__left {
        width: 25%;
    }

    .footer__center {
        width: 50%;
        padding: 0 40px; /* 左右に少し余白 */
    }

    /* 右カラム（区切り線あり） */
    .footer__right {
        width: 25%;
        padding-left: 40px;
        /* 中央との境界線 */
        border-left: 1px solid rgba(255,255,255,0.2); 
    }

    /* 製品グリッドの横並び */
    .footer__product-grid {
        flex-wrap: nowrap; /* 横に3つ並べる */
        gap: 20px;
    }
    .footer__product-col {
        width: 33.33%;
    }
    
    .footer__nav-group {
        margin-bottom: 50px;
    }
}

/* ========================================================
   5. Front Page (TOP)
   ======================================================== */
/* MVエリア全体 */
.mv {
    /* ▼▼▼ スマホ用 背景画像 ▼▼▼ */
    /* ここにスマホ用画像のURLを入れてください */
    background-image: url('【スマホ用の画像URL】');
    
    background-repeat: no-repeat;
/* ★修正: 上から64px（スマホヘッダーの高さ）ズラして開始 */
    background-position: center 64px; 
    
    background-size: cover;
    padding: 100px 0 60px;
    
    position: relative; 
    /* ★修正: hidden を visible に変更！ */
    /* これではみ出したスライダーが見えるようになります */
    overflow: visible; 
    width: 100%;
}

.mv__inner {
    /* innerはあくまでテキスト用にする */
    position: relative;
    z-index: 2; /* 画像より手前に文字を表示 */
}

/* タイトル画像 (スマホ) */
.mv__title img {
    width: 80%;
    max-width: 400px;
    height: auto;
    margin-bottom: 20px;
}

/* アニメーション画像 (スマホ：普通に下に表示) */
.mv__image {
    width: 100%;
    text-align: center;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}
.mv__image img {
    max-width: 80%; /* スマホでは少し小さめに */
}

.mv__lead { margin-bottom: 30px; font-weight: bold; }

/* MVボタン（取扱商品を見る）調整版 */
.mv__btn {
    display: inline-block;
    position: relative;
    background: #fff;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    
    /* 左の余白を少し広げて、アイコン(46px)との距離を確保 */
    padding: 15px 40px 15px 65px; 
    
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
    transition: all 0.3s ease;
}

.mv__btn:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 0, 18, 0.2);
}

/* 左側の赤い丸（大雅さんの調整値） */
.mv__btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0; /* 左端ピッタリ */
    transform: translateY(-50%);
    width: 46px; /* 少し大きく */
    height: 46px;
    background: var(--color-primary);
    border-radius: 50%;
    transition: background 0.3s;
}

.mv__btn:hover::before {
    background: #fff;
}

/* 丸の中の白い矢印（位置合わせ） */
.mv__btn::after {
    content: "";
    position: absolute;
    top: 50%;
    
    /* ★修正: 赤丸(46px)の中心(23px)に合わせる */
    left: 20px; 
    
    transform: translateY(-50%) rotate(45deg);
    width: 6px;
    height: 6px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transition: border-color 0.3s;
}

.mv__btn:hover::after {
    border-color: var(--color-primary);
}

.mv-slider {
    display: none;
}
/* ====================================
   PC版 (768px以上) の設定
   ==================================== */
@media (min-width: 768px) {
.mv {
        /* ヘッダーの高さ分、コンテンツ開始位置を下げる */
        /* padding-top は「中の文字」の位置調整用 */
        padding: 180px 0 100px;
        min-height:100vh;
        
        /* ▼▼▼ 画像設定の変更点 ▼▼▼ */
        background-image: url('https://development-test.bikodo.com/wp-content/uploads/2025/12/fv-back.png');
        
        /* 修正1: 横幅100%、高さは自動（なりゆき）にする */
        /* これで左右が見切れることがなくなります */
        background-size: 100% auto;
        
        /* 修正2: 開始位置は「上から80px」でOK */
        /* 横幅基準(100%)になったので、centerでもtopでも左右は変わりませんが、
           念のため top 80px にして「上辺」を基準にします */
        background-position: center 64px;
        
        /* 背景画像が途中で切れた時に繰り返さない */
        background-repeat: no-repeat;
    }
    
    .mv__content {
        width: 45%; /* テキストエリアの幅 */
    }
    
    /* タイトル画像 (PC) */
    .mv__title img {
        width: 100%;
        max-width: 500px;
    }

    /* ★ここが右端配置の魔法！ */
    .mv__image {
        position: absolute; /* 浮遊させる */
        top: 40%;           /* 上下の真ん中 */
        right: 0;           /* ★画面の右端にピッタリ！ */
        transform: translateY(-50%); /* 上下中央補正 */
        
        width: 55%;         /* 画面半分の幅を使う */
        margin-top: 0;
        text-align: right;  /* 画像自体を右寄せ */
    }
    
    .mv__image img {
        max-width: 90%; /* 右端すぎないように調整 */
    }
	
.mv-slider {
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 200px; 
        
        /* ★修正: overflowの設定を削除 or visibleにする */
        overflow: visible; 
        /* 元あった overflow-x: hidden; は消してください！ */
        
        transform: translateY(50%);
        z-index: 10;
        pointer-events: none;
    }

    .mv-slider__track {
        display: flex;
        width: max-content;
        /* アニメーション時間は枚数に合わせて調整 */
        animation: loop-slide-right 40s infinite linear;
        pointer-events: auto;
        
        /* 縦に伸びた時に切れないようにpaddingを入れておく */
        padding: 40px 0; 
        margin-top: -40px; /* padding分を相殺して位置戻し */
    }

    .mv-slider__track:hover {
        animation-play-state: paused;
    }

    /* 個々の画像アイテム */
    .mv-slider__item {
        display: block;
        
        /* ★修正: 横長のサイズに変更 */
        width: 220px;
        height: 140px;
        
        margin: 0 15px;
        border-radius: 15px;
        overflow: hidden;
        transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease; /* 動きを少しバネっぽく */
        background: #fff;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        flex-shrink: 0;
    }

    .mv-slider__item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* ★修正: ホバー時のアクション（縦にビヨーン） */
    .mv-slider__item:hover {
        /* 横は1.05倍、縦は1.3倍に伸ばす */
        transform: scale(1.05, 1.3);
        
        box-shadow: 0 15px 30px rgba(0,0,0,0.2);
        z-index: 2;
        position: relative; /* 重なり順を確実に上にする */
    }

    /* アニメーション定義 */
    @keyframes loop-slide-right {
        0% { transform: translateX(-50%); }
        100% { transform: translateX(0); }
    }
}

/* ====================================
   ABOUT US セクション
   ==================================== */
.about {
    /* 背景：薄いグレーのドット柄をCSSで描画 */
    background-color: #fff;
    background-image: radial-gradient(#ddd 2px, transparent 2px);
    background-size: 30px 30px; /* ドットの間隔 */
    position: relative;
    padding-bottom: 100px;
}

/* セクションタイトル微調整 */
.section-title__en {
    color: var(--color-primary);
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 0.1em;
    line-height: 1;
    margin: 0;
}
.section-title__ja {
    font-size: 13px;
    font-weight: bold;
    color: #333;
    margin-top: 10px;
    display: block;
    letter-spacing: 0.05em;
}

/* コンテンツエリア */
.about__content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.about__img img {
    width: 100%;
    height: auto;
}

.about__text-head img {
    width: 100%;
    max-width: 400px; /* 見出し画像が大きくなりすぎないように */
    margin-bottom: 30px;
}

.about__text p {
    font-size: 15px;
    line-height: 2.2; /* 行間広めで読みやすく */
    font-weight: 500;
    text-align: justify; /* 両端揃え */
}

/* PC版レイアウト */
@media (min-width: 768px) {
/* PC版レイアウト (ABOUT US) */
@media (min-width: 768px) {
    .about {
        padding-top: 120px; 
        margin-top: 0; 
    }

    .section-title {
        margin-bottom: 60px;
    }

    .section-title__en {
        font-size: 40px;
    }

    .about__content {
        display: flex;
        
        /* ★修正: row (通常) に戻す！これで 左:画像 / 右:テキスト になります */
        flex-direction: row; 
        
        align-items: center;
        justify-content: space-between;
        gap: 60px;
    }

    .about__img {
        width: 45%; 
        display: flex;
        /* ★修正: 左側に置くので、画像も左寄せ(start)に */
        justify-content: flex-start; 
    }

    .about__text {
        width: 48%; 
    }
    
    /* テキスト内の見出し画像は左寄せのままでOK */
    .about__text-head img {
        margin-left: 0;
    }
}
}

/* ABOUT PC Override */
@media (min-width: 768px) {
    .about__content { flex-direction: row-reverse; align-items: center; gap: 60px; }
    .about__img { width: 48%; }
    .about__text { width: 48%; }
    .about__head { font-size: 28px; }
	
	.about {
        padding-top: 120px; 
        margin-top: 0; 
    }

    .section-title {
        margin-bottom: 60px;
    }

    .section-title__en {
        font-size: 40px;
    }

/* PC版レイアウト (ABOUT US) */
@media (min-width: 768px) {
    /* ...上部の余白設定などはそのまま... */

    .about__content {
        display: flex;
        
        /* ★重要：物理的な順番通りに並べる設定 */
        flex-direction: row; 
        
        align-items: center;
        justify-content: space-between;
        gap: 60px;
    }

    /* 画像エリアの設定 */
    .about__img {
        width: 45%; 
        display: flex;
        justify-content: flex-start; /* 左寄せ */
    }

    /* テキストエリアの設定 */
    .about__text {
        width: 48%; 
    }
    
    .about__text-head img {
        margin-left: 0;
    }
}
}

/* ====================================
   SERVICE セクション
   ==================================== */
.service {
    background-color: var(--color-primary); /* 赤背景 */
    color: var(--color-white);
    
    /* ★修正: 上の2方向だけ角丸にする */
    border-radius: 60px 60px 0 0;
    
    margin: 0 20px; /* スマホでの左右余白 */
    padding: 60px 0;
}

.service__grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

/* カード共通設定 */
.service-card {
    background: var(--color-white);
    color: var(--color-text);
    width: 100%;
    border-radius: 20px; /* カード自体の角丸（デザインに合わせて調整可） */
    overflow: hidden; /* 画像のはみ出し防止 */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-card__img-wrap {
    width: 100%;
    height: 200px; /* スマホでの画像の高さ */
}

.service-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 隙間なく埋める */
}

.service-card__body {
    padding: 20px;
    text-align: center;
}

.service-card__title {
    color: var(--color-primary);
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: bold;
}

.service-card__desc {
    font-size: 14px;
    line-height: 1.6;
}

/* ====================================
   SERVICE セクション
   ==================================== */
.service {
    background-color: var(--color-primary); /* 赤背景 */
    color: var(--color-white);
    
    /* ★修正1: 画面幅いっぱいにする */
    width: 100%;
    margin: 0; /* 左右の余白を削除 */
    padding: 60px 0;
    
    /* 上の2方向だけ角丸（PCで見た時に自然なカーブ） */
    border-radius: 60px 60px 0 0;
}

.service__grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

/* カード共通設定 */
.service-card {
    background: var(--color-white);
    color: var(--color-text);
    width: 100%;
    
    /* ★修正2: 左下と右上だけ角丸にする */
    border-radius: 0 30px 0 30px;
    
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-card__img-wrap {
    width: 100%;
    height: 200px; /* スマホでの画像の高さ */
}

.service-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 隙間なく埋める */
}

.service-card__body {
    padding: 20px;
    text-align: center;
}

.service-card__title {
    color: var(--color-primary);
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: bold;
}

.service-card__desc {
    font-size: 14px;
    line-height: 1.6;
}

/* ボタン（以前と同じデザイン） */
.service__btn {
    display: inline-block;
    position: relative;
    background: #fff;
    color: var(--color-primary);
    border: 1px solid #fff; 
    padding: 15px 40px 15px 65px;
    margin-top: 50px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
    transition: all 0.3s ease;
}

.service__btn:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 左側の赤い丸アイコン */
.service__btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    background: var(--color-primary);
    border-radius: 50%;
    transition: background 0.3s;
}
.service__btn:hover::before { background: #fff; }

/* 丸の中の矢印 */
.service__btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%) rotate(45deg);
    width: 6px;
    height: 6px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transition: border-color 0.3s;
}
.service__btn:hover::after { border-color: var(--color-primary); }

.service__action { text-align: center; }


/* ====================================
   PC版 (768px以上) のレイアウト
   ==================================== */
@media (min-width: 768px) {
    .service {
        padding: 100px 0;
        border-radius: 100px 100px 0 0; /* 大きくカーブ */
    }

    .service__grid {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
        flex-wrap: wrap;
        
        max-width: 1200px;
        margin: 0 auto;
        
        /* ★修正3: Flexboxで高さを強制的に揃える */
        align-items: stretch; 
    }

    .service-card {
        display: flex;
        flex-direction: row;
        width: 30%; /* 3つ並べるため */
        max-width: 360px; /* PCでの最大幅 */
        
        /* カード自体の高さも親に合わせて伸ばす */
        height: auto; 
    }

    .service-card__img-wrap {
        width: 40%;
        
        /* ★修正3: 画像エリアの高さをカードいっぱいに伸ばす */
        height: auto; 
        min-height: 100%;
    }
    
    .service-card__img-wrap img {
        height: 100%; /* 画像を縦に伸ばしてカバーする */
        object-fit: cover;
    }

    .service-card__body {
        width: 60%;
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 20px 15px;
    }
    
    .service-card__title {
        font-size: 20px;
    }
    
    .service-card__desc {
        font-size: 13px;
    }
}

/* ====================================
   PRODUCT SEARCH セクション (完成版)
   ==================================== */
.product-search {
    background-color: #fff;
    background-image: radial-gradient(#ddd 2px, transparent 2px);
    background-size: 30px 30px;
    padding: 80px 0;
}

.product-search__container {
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    padding: 60px 40px;
    
    /* ★修正: 枠を1400pxまで広げる */
    max-width: 1400px; 
    margin: 0 auto;
}

.product-search .section-title {
    margin-bottom: 40px;
}

/* --- カードグリッド --- */
.product-search__grid {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 30px;
    margin-bottom: 50px;
    
    /* ★修正: 中身が広がりすぎないように幅制限して中央寄せ */
    /* これで「枠は広いけど中身のサイズはそのまま」になります */
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* 製品カード */
.product-card {
    display: block;
    position: relative;
    width: 100%;
    border-radius: 0 30px 0 30px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #f5f5f5;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.product-card__img {
    width: 100%;
    aspect-ratio: 1.8 / 1;
}
.product-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ラベル */
.product-card__label {
    position: absolute;
    top: 0;
    left: 0;
    background: #fff;
    color: var(--color-text);
    font-size: 13px;
    font-weight: bold;
    padding: 6px 18px;
    border-radius: 0 0 20px 0;
    z-index: 2;
}

/* 矢印アイコン */
.product-card__arrow {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    border-radius: 50%;
    z-index: 2;
    transition: transform 0.3s ease;
}
.product-card__arrow::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 5px;
    height: 5px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}
.product-card:hover .product-card__arrow { transform: scale(1.1); }


/* --- 絞り込み検索フォーム --- */
.search-filter {
    border-top: 1px solid #eee;
    padding-top: 40px;
    
    /* ★修正: こちらも幅制限して中央寄せ */
    max-width: 800px; 
    margin: 0 auto;
}

.search-filter__title {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}
.search-filter__title::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: var(--color-primary);
    margin: 8px auto 0;
}

/* 検索行 */
.search-filter__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}
.search-filter__row::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
}
.search-filter__row:last-of-type { border-bottom: none; }
.search-filter__row:last-of-type::after { display: none; }

.search-filter__label {
    font-weight: bold;
    font-size: 14px;
    width: 100%;
    margin-bottom: 10px;
}

.search-filter__options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ラジオボタン */
.search-filter__check input { display: none; }
.search-filter__check span {
    display: inline-block;
    padding: 8px 20px;
    background: #f5f5f5;
    color: #666;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}
.search-filter__check input:checked + span {
    background: #ffe5e5;
    color: var(--color-primary);
    font-weight: bold;
    box-shadow: 0 0 0 1px var(--color-primary) inset;
}

/* --- 絞り込みボタン（Googleアイコン版） --- */
.search-filter__submit {
    text-align: center;
    margin-top: 50px;
}

.search-filter__submit button {
    display: inline-flex; /* アイコンと文字を横並びに */
    align-items: center;
    justify-content: center;
    gap: 10px; /* アイコンと文字の間隔 */
    
    width: 100%;
    max-width: 300px;
    padding: 15px 0;
    
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-filter__submit button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 0, 18, 0.2);
    opacity: 1;
}

/* アイコン自体の調整 */
.search-filter__submit .material-icons {
    font-size: 24px; /* アイコンサイズ */
}

/* --- 絞り込みボタン（SVG埋め込み版） --- */
.search-filter__submit {
    text-align: center;
    margin-top: 50px;
}

.search-filter__submit button {
    display: inline-flex; /* アイコンと文字を横並びに */
    align-items: center;  /* 上下中央揃え */
    justify-content: center; /* 左右中央揃え */
    gap: 15px; /* アイコンと文字の間隔 */
    
    width: 100%;
    max-width: 400px; /* 画像に合わせて少し横幅を広げました */
    padding: 15px 0;
    
    background: var(--color-primary); /* 赤 */
    color: #fff;
    border: none;
    
    /* ★修正: カプセル(50px)をやめて、理想画像の「少し丸い四角」にする */
    border-radius: 10px; 
    
    font-size: 20px; /* 文字サイズも少し大きく */
    font-weight: bold;
    letter-spacing: 0.1em; /* 文字間を少し空けて読みやすく */
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-filter__submit button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 0, 18, 0.3);
    opacity: 0.9;
}

/* 埋め込んだSVGアイコンの設定 */
.search-filter__submit button svg {
    width: 32px;  /* アイコンの大きさ */
    height: 32px;
    fill: #fff;   /* アイコンの色（白） */
}

/* --- 絞り込みボタン（SVG埋め込み版・修正済み） --- */
.search-filter__submit {
    text-align: center;
    margin-top: 50px;
}

.search-filter__submit button {
    display: inline-flex; /* アイコンと文字を横並びに */
    align-items: center;  /* 上下中央揃え */
    
    /* ★修正: 中央揃えをやめて、自然な左詰めに */
    /* justify-content: center; を削除 */
    
    gap: 15px; /* アイコンと文字の間隔 */
    
    width: 100%;
    /* ★修正: サイズをコンパクトに（約1/3スケールを意識して調整） */
    max-width: 280px; 
    
    /* ★修正: 左側にアイコン用の余白を作る */
    padding: 12px 25px; 
    
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 10px; /* 角丸四角 */
    
    /* ★修正: 文字サイズも少し小さく */
    font-size: 16px; 
    font-weight: bold;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-filter__submit button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 0, 18, 0.3);
    opacity: 0.9;
}

/* 埋め込んだSVGアイコンの設定 */
.search-filter__submit button svg {
    /* ★修正: アイコンサイズも少し小さく */
    width: 24px;
    height: 24px;
    fill: #fff;
    flex-shrink: 0; /* 縮まないように固定 */
}

/* PC版レイアウト調整 */
@media (min-width: 768px) {
    .product-search { padding: 100px 0; }
    
    .product-search__grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 30px;
    }

    .search-filter__label {
        width: 180px; 
        margin-bottom: 0;
    }
}

/* ====================================
   MERIT セクション
   ==================================== */
.merit {
    /* SERVICEの色違い（薄いグレー） */
    background-color: #f5f5f5; 
    
    width: 100%;
    margin: 0;
    padding: 100px 0;
    
    /* 上の2方向だけ角丸（SERVICEと統一感） */
    border-radius: 60px 60px 0 0;
}

.merit .section-title {
    margin-bottom: 50px;
}

/* --- カードグリッド --- */
.merit__grid {
    display: flex;
    flex-direction: column; /* スマホは縦並び */
    gap: 30px;
    align-items: center;
    max-width: 1200px; /* 全体の幅制限 */
    margin: 0 auto;
    padding: 0 20px;
}

/* カード本体 */
.merit-card {
    background: #fff;
    width: 100%;
    max-width: 320px; /* カードの幅 */
    height: 420px;    /* 高さを固定して5:5を作る */
    
    /* 4つ角すべて角丸 */
    border-radius: 20px;
    
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* --- 上半分 (画像エリア) --- */
.merit-card__top {
    height: 50%; /* 高さ半分 */
    background: #fff;
    display: flex;
    align-items: center; /* 上下中央 */
    justify-content: center; /* 左右中央 */
    position: relative;
}

/* 中央の丸い枠 */
.merit-card__circle {
    width: 140px;
    height: 140px;
    background: #ddd; /* 画像がない時の色 */
    border-radius: 50%; /* 正円 */
    overflow: hidden;
}

.merit-card__circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- 下半分 (テキストエリア) --- */
.merit-card__body {
    height: 50%; /* 高さ半分 */
    padding: 10px 20px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.merit-card__title {
    color: var(--color-primary);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.5;
}

.merit-card__desc {
    font-size: 13px;
    line-height: 1.8;
    color: #666;
    margin: 0;
}


/* PC版レイアウト */
@media (min-width: 768px) {
    .merit {
        border-radius: 100px 100px 0 0; /* カーブを大きく */
        padding: 120px 0;
    }

    .merit__grid {
        flex-direction: row; /* 横並び */
        justify-content: center;
        gap: 40px;
        flex-wrap: wrap;
    }
}

/* ====================================
   FLOW セクション
   ==================================== */
.flow {
    background: #fff;
    padding: 100px 0;
}

.flow__container {
    max-width: 1400px; /* 横並びにするので広めに */
    margin: 0 auto;
    padding: 0 20px;
}

.flow .section-title {
    margin-bottom: 60px;
}

/* --- リスト（Flexboxで横並び） --- */
.flow__list {
    display: flex;
    flex-wrap: wrap; /* スマホ用に折り返し許可 */
    justify-content: center;
    align-items: flex-start; /* 上揃え */
    gap: 10px; /* アイテム間の最低限の隙間 */
}

/* --- 各ステップ (アニメーション対象) --- */
.flow__item {
    width: 180px; /* 幅固定 */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    
    /* ★アニメーション初期状態：上(-50px)にいて透明 */
    opacity: 0;
    transform: translateY(-50px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1); /* ふんわり降りてくるイージング */
}

/* ★アニメーション発火時 */
.flow__item.is-active {
    opacity: 1;
    transform: translateY(0);
}

/* 順番に遅れて出てくる設定 (STEP1~5) */
/* .flow__item は「矢印」を含まない兄弟要素ではないため、js-flow-animクラスで制御してもOKですが、
   今回は構造上、flow__list直下の子要素として数えます */
/* アイテム1 */
.flow__list > .flow__item:nth-child(1).is-active { transition-delay: 0s; }
/* アイテム2 (要素順だと3番目) */
.flow__list > .flow__item:nth-child(3).is-active { transition-delay: 0.2s; }
/* アイテム3 (要素順だと5番目) */
.flow__list > .flow__item:nth-child(5).is-active { transition-delay: 0.4s; }
/* アイテム4 (要素順だと7番目) */
.flow__list > .flow__item:nth-child(7).is-active { transition-delay: 0.6s; }
/* アイテム5 (要素順だと9番目) */
.flow__list > .flow__item:nth-child(9).is-active { transition-delay: 0.8s; }


/* ラベル (STEP XX) */
.flow__label {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    display: block;
    color: #333;
}

/* 丸枠画像 */
.flow__circle {
    width: 130px;
    height: 130px;
    background: #ddd;
    border-radius: 50%;
    margin-bottom: 20px;
    overflow: hidden;
}
.flow__circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 見出し */
.flow__title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* 詳細テキスト */
.flow__desc {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    text-align: center;
}


/* --- 矢印 --- */
.flow__arrow {
    width: 30px;
    height: 130px; /* 丸画像の高さに合わせて位置調整 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 20px; /* 文字分少し上げる */
}

/* CSSで赤い三角矢印を描画 */
.flow__arrow::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--color-primary); /* 赤 */
    border-right: 2px solid var(--color-primary);
    transform: rotate(45deg);
}

/* --- PC版レイアウト調整 --- */
@media (min-width: 768px) {
    .flow__list {
        flex-wrap: nowrap; /* PCは絶対横並び */
        justify-content: space-between; /* 均等配置 */
        gap: 0;
    }
    
    .flow__item {
        width: 18%; /* 5等分に近い幅 */
    }
    
    .flow__arrow {
        width: 5%; /* 隙間の幅 */
    }
}

/* --- スマホ版レイアウト調整 --- */
@media (max-width: 767px) {
    .flow__list {
        flex-direction: column; /* 縦並び */
        align-items: center;
    }
    
    .flow__arrow {
        height: 40px;
        transform: rotate(90deg); /* 下向きにする */
        padding: 0;
        margin: 10px 0;
    }
    
    /* スマホでは遅延なしでサクサク出した方が良い場合もありますが、
       今回は演出優先でそのままにします */
}