* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/*=========================================
#共通
=========================================*/
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    display: flex;
    justify-content: start;
    align-items: center;
    padding: 10px 0px;
    background-color: #002a57;
    color: rgb(255, 255, 255);
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 999;
    transition: transform 0.3s ease;
    flex-direction: row;
}

footer {
    display: flex; /* フレックスボックスを使用 */
    justify-content: center; /* 水平方向に中央揃え */
    align-items: center; /* 垂直方向に中央揃え */
    text-align: center; /* テキストを中央揃え */
    padding: 10px 0px;
    background-color: #002a57;
    color: white;
    position: sticky;
    width: 100%;
}

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

main {
    background: url(/img/back02.png) right top no-repeat;
    background-size: cover;
}

/*=========================================
#ボタン
=========================================*/
/* ボタンの基本スタイル */
.button-link {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 10px;
    background-color: #00b13e;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    text-decoration: none;
    border-radius: 50px;
    position: relative;
    overflow: hidden; /* エフェクトがボタンの外にはみ出さないように */
    transition: background-color 0.3s ease;
    min-width: 150px;
}

/* 光が走るエフェクト */
.button-link::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -150%;
    width: 150%;
    height: 200%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(45deg);
    transition: left 0.4s ease;
}

/* ボタンのマウスオーバー時の光の動き */
.button-link:hover::before {
    left: 100%;
    transition: left 0.6s ease;
}

/* ボタンのマウスオーバー時の拡大効果 */
/*
.button-link:hover {
    transform: scale(1.05);
}
*/

/*=========================================
#画像サイズ
=========================================*/

.logo img {
    height: 60px;
    padding: 0px 20px;
}

.tel img {
    height: 45px;
    padding: 0px 20px;
}

.address img {
    height: 50px;
    padding: 0px 20px;
}

.contact img {
    height: 50px;
    padding: 0px 5px;
}

.contact-sp img {
    height: 45px;
    padding: 0px 10px;
}

/*=========================================
#要素まとめエリア
=========================================*/
/* 縦並び配置クラス */
.vertical-icons {
    display: flex;
    flex-direction: column; /* アイコンを縦に並べる */
}

/* 右寄せ配置クラス */
.header-icons-right {
    display: flex;
    align-items: center;
    margin-left: auto; /* アイコンを右端に配置 */
}
/* 左寄せ配置クラス */
.header-icons-left {
    display: flex;
    align-items: center;
    margin-right: auto; /* アイコンを左端に配置 */
}

/*=========================================
#PC用メニュー
=========================================*/
nav ul {
    display: flex;
    list-style: none;
    margin-top: 0;
    margin-bottom: 0;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: rgb(255, 255, 255);
/*    font-weight: bold; */
    font-size: 1.2em;
    text-decoration: none;
    position: relative; /* アニメーション用の位置指定 */
}

nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: rgb(177, 199, 255);
    transition: width 0.3s ease; /* アニメーション速度 */
}

nav ul li a:hover::after {
    width: 100%; /* ホバー時に左から右にアンダーラインが広がる */
}

/*=========================================
#画像ホバーアニメーション（ヘッダーボタン）
=========================================*/
.icon-link img {
    transition: opacity 0.3s ease;
}

.icon-link img:hover {
    opacity: 0.8; /* ホバー時に少し透明に */
}

/*=========================================
#画像ホバーアニメーション（記事内）
=========================================*/
.img-link img {
    transition: opacity 0.5s ease;
}

.img-link img:hover {
    transform: scale(1.05);
    opacity: 0.8; /* ホバー時に少し透明に */
}

/*=========================================
#レスポンシブ対応
=========================================*/
/* スマホ表示時に非表示にするクラス */
.hide-on-mobile {
    display: block; /* PC時に表示 */
}

/* PC表示時に非表示にするクラス */
.hide-on-pc {
    display: none; /* PC時に非表示 */
}

/* 画面幅縮小時表示用 */
@media (max-width: 1041px) {

    .hide-on-mobile {
        display: none; /* スマホ時に非表示 */
    }

    .hide-on-pc {
        display: block; /* スマホ時に表示 */
    }
}

/* スマホ表示用 */
@media (max-width: 768px) {
    .logo img {
        height: 50px;
    }

    .contact img {
        height: 65px;
    }

    .contact-sp img {
        height: 30px;
    }

}
/*=========================================
#ヘッダーのスクロールアニメーション
=========================================*/
.hidden {
    transform: translateY(-100%);
}

/*=========================================
#スマホ用メニュー（ハンバーガー）
=========================================*/
.hamburger {
    position: fixed;
    top: 20px;
    right: 10px;
    z-index: 150;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.hamburger.is-active span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(135deg);
}

.hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(-135deg);
}

.hamburger span {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    transition: transform .3s;
}

.hamburger.is-active span {
    background-color: #ffffff;
}

.hamburger span:nth-child(1) {
    top: 30%;
}

.hamburger span:nth-child(2) {
    top: 60%;
}

.hamburger span:nth-child(3) {
    top: 90%;
}

.space{
    width: 30px;
}
/*=========================================
#drawer
=========================================*/
.drawer {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 130;
    width: 100%;
    height: 100vh;
    background-color: #333333;
    transition: opacity .3s, visibility .3s;
}

.drawer.is-active {
    visibility: visible;
    opacity: 1;
}

.drawer-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.drawer__list {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    gap: 50px;
    list-style: none;
}

.drawer__link {
    color: #ffffff;
}

/*=========================================
#メイン画面用
=========================================*/
/* 背景画像部分 */
.hero-banner {
    background-image: url('/img/top.jpg'); /* 必要に応じてパスを修正 */
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 500px; /* 必要に応じて高さを変更 */
    position: relative;
}

/* キャッチコピーのスタイル */
.hero-text {
    position: absolute;
    bottom: 20px;
    left: 10px;
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    white-space: nowrap; /* テキストを1行にする */
    overflow: hidden; /* 親要素からはみ出した部分を隠す */
    width: 0; /* 初期状態で非表示 */
    padding-left: 10px;
    animation: slide-in 3s forwards; /* 左から出現するアニメーション */
}

.ab_center{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  }

/* アニメーションの定義 */
@keyframes slide-in {
    0% {
        width: 0; /* 初期状態：文字は隠れる */
    }
    100% {
        width: 100%; /* 最終状態：文字がすべて表示される */
    }
}


/* コンテナの共通スタイル */
.responsive-container {
    display: flex;
    flex-wrap: wrap; /* 子要素が折り返せるようにする */
    gap: 20px; /* 要素間の隙間 */
    width: 100%;
    padding-top: 10px;
    padding-bottom: 20px;
    padding-left: 10px;
    padding-right: 10px;
    text-align: center;
    justify-content: center;
}

/* 左から並ぶ（デフォルト） */
.left-align {
    flex-direction: row; /* 左揃え */
}

/* 右から並ぶ */
.right-align {
    flex-direction: row-reverse; /* 右揃え */
}

.parent {
    display: flex; /* フレックスボックスで配置 */
    justify-content: center; /* 水平方向の中央揃え */
    align-items: center; /* 垂直方向の中央揃え */
    margin-left:40px;
    margin-right:40px;
    flex-direction:column;
}

.top-img{
    width: 60%;
    height: auto;
}

.img-large{
    max-width: 900px;
    width: 100%;
    height: auto;
}

.top-txt{
    text-align: left;
    margin-left:30px;
    vertical-align: middle;
    font-size: 1.0em; /* サイズを大きくする */
    font-family: serif;
    color: #4d4d4d; /* 濃い目のグレー */
}
.inner-img{
    max-width: 500px;
    width: 100%;
    height: auto;
}

.inner-txt{
    text-align: center;
    vertical-align: middle;
    font-size: 1em; /* サイズを大きくする */
    font-family: serif;
    color: #4d4d4d; /* 濃い目のグレー */
    margin-top:5px;
    margin-bottom:30px;
}
.txt-left{
    text-align: left;
}
.txt-right{
    text-align: right;
}

.txt-vertical-center {
    display: flex;
    align-items: center; /* 縦方向に中央揃え */
}

/* 文字列背景画像 */
.txt-back {
/*    background-image: url('/img/msgback.png');  */
    background-size: cover;
    background-position: center;
    max-width: 500px;
    width: 100%;
    height: auto; /* 必要に応じて高さを変更 */
    position: relative;
}

h1 {
    font-family: "Times New Roman", "ヒラギノ明朝 Pro W6", "Hiragino Mincho Pro", "ＭＳ Ｐ明朝", "MS PMincho", serif;
    text-align: center;
    color: #4d4d4d; /* 濃い目のグレー */
    font-weight: bold; /* 太字に設定 */
    margin: 30pt;
    position: relative; /* 下線用の疑似要素を配置するために必要 */
}

/* 下線のスタイル */
h1::after {
    content: ""; /* 空の疑似要素を使う */
    position: absolute;
    left: 50%; /* 下線を中央揃え */
    transform: translateX(-50%);
    bottom: -10px; /* 下線を文字の下に配置 */
    width: 40%; /* 下線の幅を指定 */
    height: 3px; /* 下線の太さ */
    background-color: #006400; /* 濃い緑 */
    border-radius: 2px; /* 角を丸くして柔らかい印象に */
}


/* h2のスタイル */

h2 {
    font-family: sans-serif,"Times New Roman", serif;
    color: #100049; /* より濃いグレーで強調 */
    font-size: 2.5em; /* サイズを大きく */
    font-weight: bold; /* 太字で見出し感をアップ */
 /*   text-transform: uppercase; /* すべて大文字にする */
 /*   letter-spacing: 2px; /* 文字間隔を広げる */
    padding-bottom: 3px; /* 下線と文字の間隔を調整 */
    margin-bottom: 0px; /* セクションとの間隔を調整 */
    margin-left: 20px;
    line-height: 0.8;
  }
  
  .sub {
    font-family: "Times New Roman", serif;
    color: #41279e; /* 濃いグレーで視認性を高める */
    font-size: 0.5em; /* サイズをさらに大きく */
    text-transform: uppercase; /* すべて大文字にする */
    letter-spacing: 2px; /* 文字間隔を広げる */
    text-align: left; /* 中央揃えで目立たせる */
    position: relative; /* 下線用の疑似要素の配置に必要 */
    font-weight: bold;
  }
  
  .sub::after {
    content: ""; /* 疑似要素を使って下線を作成 */
    position: absolute;
    left: 0%; /* 中央揃え */
    width: 100%; /* 下線の幅を調整 */
    height: 4px; /* 下線の太さ */
    background: linear-gradient(to right, #3000b3, #ffffff); /* グラデーション下線 */
    border-radius: 2px; /* 丸みをつけて柔らかい印象に */
  }

h3 {
    font-family: "Times New Roman", serif;
    color: #41279e; /* 濃いグレーで視認性を高める */
    font-size: 1.3em; /* サイズをさらに大きく */
    text-transform: uppercase; /* すべて大文字にする */
    letter-spacing: 2px; /* 文字間隔を広げる */
    text-align: left; /* 中央揃えで目立たせる */
    position: relative; /* 下線用の疑似要素の配置に必要 */
    font-weight: bold;
    padding-bottom: 3px; /* 下線と文字の間隔を調整 */
    margin-bottom: 50px; /* セクションとの間隔を調整 */
    margin-left: 20px;
    line-height: 0.8;
  }

  h3::after {
    content: ""; /* 疑似要素を使って下線を作成 */
    position: absolute;
    left: 0%; /* 中央揃え */
    width: 100px; /* 下線の幅を調整 */
    height: 4px; /* 下線の太さ */
    bottom:-10px;
    background: linear-gradient(to right, #3000b3, #ffffff); /* グラデーション下線 */
    border-radius: 2px; /* 丸みをつけて柔らかい印象に */
  }
/* セクション */
.info-section {
    background-color: white;
    margin: 20px auto;
    padding: 20px;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.info-section h2 {
    font-family: "Times New Roman", serif;
    color: #960035;
    font-size: 1.4em;
    margin-bottom: 10px;
}

.info-section p {
    font-size: 1em;
    color: #555555;
    margin: 0;
}

.info-section-no-box {
    background-color: white;
    margin: 0px 0px;
    padding: 0px;
    max-width: auto;
}

#top01 {
    padding-top: 50px;
    padding-bottom: 50px;
    background: url(/img/back03.png) left top no-repeat;
    background-size: 150px;
}

#top02 {
    padding-top: 50px;
    padding-bottom: 50px;
    background: url(/img/back03.png) left top no-repeat;
    background-size: 150px;

}

figure {
    position: relative; /* 必須: figcaptionのposition基準を指定 */
    display: inline-block; /* インライン要素としての画像対応 */
    margin: 0; /* 必要に応じて調整 */
}

figure img {
    display: block; /* 不要な余白を排除 */
    height: auto;
    border-radius: 10px;
}

figure figcaption {
    position: absolute;
    display: block;
    bottom: 1em;
    left: 1em;
    color: #000561;
    font-size: 1.5rem; 
    font-weight: bold;
}

/*=========================================
#メイン画面の動画部用
=========================================*/
/* セクションのスタイル */
.info-section3 {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* 動画のスタイル */
.video-pc {
    position: absolute;
    top: 0;
    left: 0; /* 左寄せ */
    object-fit: cover; /* 動画が左右や上下に切れるようにカバーする */
}


/* 右下に重ねて表示する画像のスタイル */
.overlay-text {
    position: absolute;
    bottom: 0px; /* 動画の右下から20pxの余白を持たせる */
    right: 0px; /* 右側から20pxの余白を持たせる */
    width: 500px; /* 画像の幅を調整 */
    height: auto; /* アスペクト比を維持して画像の高さを自動調整 */
    z-index: 10; /* 動画より前面に表示するためにz-indexを設定 */
}

/*=========================================
#会社概要の表用
=========================================*/
/* テーブルスタイル */
.company-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
}

.company-table th, .company-table td {
    border: 1px solid #b7b7b7;
    border-left: none; /* 左の罫線を非表示 */
    border-right: none; /* 右の罫線を非表示 */
    padding: 15px;
    text-align: left;
    vertical-align: top;
}

.company-table th {
    background-color: rgba(172, 172, 172, 0.2);
    font-weight: bold;
    color: #0056b3;
    width: 30%;
}

.company-table td {
    color: #555555;
}

.company-table a {
    color: #0056b3;
    text-decoration: none;
}

.company-table td ul{
    margin-left: 20px;
}

.company-table a:hover {
    text-decoration: underline;
}

/*=========================================
#お問い合わせフォーム用
=========================================*/
.form-section {
    margin: 20px auto;
    padding: 20px;
    max-width: 600px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #0056b3;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0056b3;
}

textarea {
    resize: vertical;
}

.required {
    color: red;
    font-weight: bold;
}

.form-actions {
    text-align: center;
}

.form-actions button {
    background-color: #0056b3;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
}

.form-actions button:hover {
    background-color: #003d80;
}

/*=========================================
#取扱い品目用
=========================================*/
/* グリッドコンテナ */
.grid-container {
    display: grid;
    gap: 10px; /* 要素間の隙間 */
    padding: 20px;
    margin: 0 auto;
    max-width: 1200px;
    /* PC: 5列、スマホ: 2列 */
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* グリッドアイテム */
.grid-item {
    background-color: #0056b3;
    color: white;
    font-size: 1.2em;
    text-align: center;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


/*=========================================
#社員紹介用
=========================================*/
.people-container {
    position: relative; /* 子要素を絶対位置で配置する基準にする */
    display: flex; /* フレックスボックスを使用 */
    }
@media (max-width: 768px) {
        .people-container {
            display: flex; /* フレックスボックスで配置 */
            justify-content: center; /* 水平方向の中央揃え */
            align-items: center; /* 垂直方向の中央揃え */
            flex-direction:column;
        }
    }
.people-container img {
    position: absolute; /* 画像を自由に配置可能にする */
    bottom: 0;
    right: 0; /* 右揃え */
    width: 70%; /* 画像の大きさを調整 */
    height: auto; /* アスペクト比を保つ */
    z-index: 1; /* 背景として扱う */
}

@media (max-width: 768px) {
    .people-container img {
        position: relative;
        width: 80%; /* 画像の大きさを調整 */
    }
}
.people-text {
    position: relative; /* 基準に影響されず、画像の上に配置 */
    z-index: 2; /* 画像より前面に表示 */
    color: black; /* テキスト色 */
    font-size: 20px; /* 必要に応じてフォントサイズを調整 */
    padding: 20px; /* 文章の余白 */
    background-color: rgba(255, 255, 255, 0.7); /* 半透明の背景を追加 */
    max-width: 40%; /* 文章の幅を調整 */
    margin-top:50px;
    margin-bottom:100px;
}
@media (max-width: 768px) {
    .people-text {
        max-width: 80%; /* 画像の大きさを調整 */
        margin-top:0px;
        margin-bottom:0px;
    }
}

div .q1 {
    color: #005900;
    font-size: 1.5rem; 
    font-weight: bold;
}

div .q2 {
    color: #130059;
    font-size: 1.5rem; 
    font-weight: bold;
}

/*=========================================
#スライドインアニメーション用
=========================================*/
/* 初期状態: 非表示で少し右にずらす */
.slide-in {
    opacity: 0;
    transform: translateY(-50px); /* 横方向に100pxずらす */
    transition: opacity 1.5s ease, transform 1.5s ease; /* アニメーション効果 */
}

/* 表示状態: 画面内に入った際に適用 */
.slide-in.visible {
    opacity: 1;
    transform: translateY(0); /* 元の位置に戻す */
}