/* ロゴのカラーコード　#f4b91d */

/* 共通項目 */
body{
    font-family: 'ヒラギノ丸ゴ ProN','Hiragino Maru Gothic ProN','Yu Gothic UI','ヒラギノ角ゴシック','Hiragino Sans',sans-serif;
    /* font-family: 'Noto Sans JP', sans-serif; */
    font-size: 18px;
    margin: 50px 380px;
    background-color: #E3DAD0;
}
.carbon_dark{
    background-color: #ABABAB;
}
.leather_warm{
    background-color: #dcc4b4;
}

html * {
    box-sizing: border-box;
    /* outline: 1px dotted red; */
}

a {
    text-decoration: none;
    color: black;
}
img {
    border-radius: 5px;
}

/* head */
header{
    /* background-color: yellow; */
    width: 100%;
    /* height: 100px; */
    display: flex;
    align-items: center;
}
header a{
    text-decoration: none;
    font-family: "AR PCrystalRgothic JIS", "游ゴシック", "Yu Gothic", sans-serif;
    /* margin-left: 20px; */
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px; 
    margin-bottom: 10px;
}
.logo{
    height: 68px;
}
/* .logotype {
    height: 60px;
} */

/* main */
.main{
    width: 100%;
    margin-bottom: 30px;
}
.image_1{
    position: relative; 
    margin-bottom: 30px;
}
.image_1 img{
    display: block;
    width: 100%;
    height: auto;
}
.image_1 p {
    /* 絶対配置で画像の上に重ねる */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Flexboxでテキストを画像コンテナの中心に持ってくる */
    display: flex;
    justify-content: center; /* 水平方向の中央 */
    align-items: center;     /* 垂直方向の中央 */
    
    /* テキストのスタイル調整 */
    color: rgb(0, 0, 0); /* テキスト色を白に (画像によっては見やすい色に調整) */
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    line-height: 1.5;
    padding: 10px;
    margin: 0; /* pタグのデフォルトマージンをリセット */
}
.controlled-text {
    display: flex;
    flex-direction: column; /* 縦に積み重ねる */
    align-items: center;    /* 垂直方向の中心に揃える */
    text-align: center;     /* テキストを中央寄せ */
}

.controlled-text span {
    /* 必要に応じて、特定の行だけフォントサイズやマージンを調整できます */
    margin-bottom: 0px;
}
/* @media (max-width: 768px) {
    .image_1 p {
        font-size: 1rem;
    }
} */

/* ケース */
.buc{
    height: 50%;
    display:flex;
    /* justify-content:center; */
    align-items:center;
    margin-bottom: 10px;
    font-size: 1.5rem;
}
.buc img{
    height: 55px;
    margin-right: 10px;
}
.case_image{
    position: relative; 
}
.case_image img{
    display: block;
    width: 100%;
    height: auto;
}
.case_image span img {
    width: 40%;
    height: 20%;
}
.case_image p {
    /* 絶対配置で画像の上に重ねる */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Flexboxでテキストを画像コンテナの中心に持ってくる */
    display: flex;
    justify-content: center; /* 水平方向の中央 */
    align-items: end;     /* 垂直方向の中央 */
    
    /* テキストのスタイル調整 */
    color: rgb(0, 0, 0); /* テキスト色を白に (画像によっては見やすい色に調整) */
    font-size: 1.5rem;
    /* font-weight: bold; */
    text-align: center;
    line-height: 1.5;
    padding: 10px;
    margin: 0; /* pタグのデフォルトマージンをリセット */
}
.case_image span {
    /* 絶対配置で画像の上に重ねる */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Flexboxでテキストを画像コンテナの中心に持ってくる */
    display: flex;
    justify-content: center; /* 水平方向の中央 */
    align-items: top;     /* 垂直方向の中央 */
    
    /* テキストのスタイル調整 */
    color: rgb(0, 0, 0); /* テキスト色を白に (画像によっては見やすい色に調整) */
    font-size: 3.75rem;
    text-align: center;
    line-height: 1.5;
    padding: 10px;
    margin: 0; /* pタグのデフォルトマージンをリセット */
}
.case_logo img{
    width: 50%!important;
    height: 20px !important;
    height: 20px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 2;
}
.comment {
    display: flex;
    border: solid 1px #000000;
    margin-bottom: 10px;
}
.comment img {
    width: 30%;
}
:root {
    --gap: 10px; 
}
.case {
    display: flex;
    flex-wrap: wrap; 
    /* 負のマージンで、コンテナの左右の端にアイテムが密着するように相殺 */
    margin-left: calc(-1 * var(--gap)); 
    margin-right: calc(-1 * var(--gap)); 
    margin-bottom: 50px;
}
.case > div {
    /* アイテム間の間隔を確保するため、左右にパディングを設定 */
    padding-left: var(--gap);
    padding-right: var(--gap);
    
    /* 4列レイアウトのための幅設定 */
    width: 33.33%; /* スマホ（デフォルト）で4列表示 */
    box-sizing: border-box; /* paddingを含めた幅で計算 */
    
    /* 縦方向のスペース */
    /* margin-bottom: var(--gap); */
}
.case a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
}
.case img {
    max-width: 100%;
    height: auto;
    display: block;
}
.product-item a {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
}

.product-item img {
    display: block;
    width: 100%;
    height: auto;
}

.product-item p {
    position: absolute;
    top: 1px;
    left: 50%;
    transform: translateX(-50%);

    margin: 0;
    color: #000;
    font-size: 42px;
    font-weight: 900;
    /* font-family: Arial, sans-serif; */
    letter-spacing: 1px;

    text-align: center;
    width: 100%;
}
/* パターン２　要確認 */
.case2 {
    display: flex;
    justify-content: space-between; 
    flex-wrap: wrap; /* 横一列を維持し、折り返さない */
    width: 100%;       /* 親要素の幅いっぱいに広げる */
    margin-top: 10px;
}
.case2 > div {
    width: 24%; /* 例: 31%に設定し、アイテム間に隙間を作る */
    margin-bottom: 10px;
    text-align: center;
}
.case2 img {
    width: 100%; /* 親divの幅いっぱいに広げる */
    height: auto;
    display: block;
}
.case2 p{
    /* margin-top: 10px; */
    font-size: 0.8rem;
    text-align: center;
    color: #333;
}


/* ホルダー */
.holder_image{
    position: relative; 
    margin-top: 10px;
}
.holder_image img{
    display: block;
    width: 100%;
    height: auto;
}
.holder_image span img {
    width: 40%;
    height: 20%;
}
.holder_image p {
    /* 絶対配置で画像の上に重ねる */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Flexboxでテキストを画像コンテナの中心に持ってくる */
    display: flex;
    justify-content: center; /* 水平方向の中央 */
    align-items: end;     /* 垂直方向の中央 */
    
    /* テキストのスタイル調整 */
    color: rgb(0, 0, 0); /* テキスト色を白に (画像によっては見やすい色に調整) */
    font-size: 1.5rem;
    /* font-weight: bold; */
    text-align: center;
    line-height: 1.5;
    padding: 20px;
    margin: 0; /* pタグのデフォルトマージンをリセット */
}
.holder_image span {
    /* 絶対配置で画像の上に重ねる */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Flexboxでテキストを画像コンテナの中心に持ってくる */
    display: flex;
    justify-content: center; /* 水平方向の中央 */
    align-items: top;     /* 垂直方向の中央 */
    
    /* テキストのスタイル調整 */
    color: #fff; /* テキスト色を白に (画像によっては見やすい色に調整) */
    font-size: 3.75rem;
    text-align: center;
    line-height: 1.5;
    padding: 10px;
    margin: 0; /* pタグのデフォルトマージンをリセット */
}

.holder_info a {
    position: relative; /* pタグの絶対配置の基準 */
    display: block; /* リンク全体をブロック要素にする */
    text-decoration: none;
    color: inherit;
    width: 100%;
}
.holder_info img {
    display: block;
    width: 100%;
    height: auto;
}
.holder_info p {
    position: absolute;
    top: 0; /* 画像の上端に配置 */
    left: 50%; /* 水平方向の中央に移動させる準備 */
    
    /* translateX(-50%)で要素の幅の50%分左に戻し、完全に中央に配置 */
    transform: translateX(-50%); 

    /* スタイル調整 */
    color: rgb(0, 0, 0); /* テキスト色を白に */
    padding: 10px 10px;
    font-size: 1.5rem;
    text-align: center;
    white-space: nowrap; /* テキストの折り返しを防ぐ */
    margin: 0; /* デフォルトマージンをリセット */
    border-radius: 0 0 5px 5px; /* 下端を少し丸める */
}

.holder {
    display: flex; /* Flexコンテナにする */
    
    /* ★アイテム間の隙間を均等に設定し、両端はコンテナの端に密着させる★ */
    justify-content: space-between; 
    
    flex-wrap: nowrap; /* 横一列を維持し、折り返さない */
    width: 100%;       /* 親要素の幅いっぱいに広げる */
    margin-top: 10px;
}
.holder > div {
    /* アイテムの幅を均等に設定（この場合は3つなので、33.333%以下） */
    /* justify-content: space-between; を使う場合、widthは均等幅以下にする */
    width: 32%; /* 例: 31%に設定し、アイテム間に隙間を作る */
    
    /* 内部の画像を中央寄せにするための設定 */
    text-align: center;
}
.holder img {
    width: 100%; /* 親divの幅いっぱいに広げる */
    height: auto;
    display: block;
}
/* パターン２　　要確認 */
.holder2 {
    display: flex;
    justify-content: space-between; 
    flex-wrap: wrap; /* 横一列を維持し、折り返さない */
    width: 100%;       /* 親要素の幅いっぱいに広げる */
    margin-top: 10px;
}
.holder2 > div {
    width: 32%; /* 例: 31%に設定し、アイテム間に隙間を作る */
    margin-bottom: 10px;
    text-align: center;
}
.holder2 img {
    width: 100%; /* 親divの幅いっぱいに広げる */
    height: 90%;
    display: block;
}


.holder_4th {
    /* 必要に応じて、PCレイアウトでこのdiv自体を非表示にする */
    display: none; 
}


/*  */
.image-container {
    display: flex; /* 子要素（aタグ）をFlexアイテムとして配置 */
    flex-direction: column; /* 子要素を縦方向に並べる */
    align-items: center; /* 子要素を水平方向に中央揃え */
    
    /* 枠線や背景色が必要であれば追加 */
    /* border: 1px solid #eee;
    background-color: #fff;
    padding: 10px;
    border-radius: 8px; */
}
.image-container a {
    display: flex;
    flex-direction: column; /* imgとpを縦に並べる */
    align-items: center; /* 画像とテキストを中央揃え */
    text-decoration: none; /* 下線を削除 */
    color: inherit; /* テキスト色を親から継承 */
    width: 100%; /* 親コンテナの幅いっぱいに */
    height: 100%; /* 親コンテナの高さいっぱいに（flex-growで調整される） */
}
.image-container img {
    /* 画像の最大幅を親要素（aタグ）の幅に合わせる */
    max-width: 100%; 
    /* 高さは自動調整で縦横比を維持 */
    height: 100%; 
    /* ここで固定の高さを指定しないことがポイント */
    
    /* 画像が占めるスペース（ Flexアイテムとして） */
    flex-shrink: 0; /* 画像は縮小しない */
    flex-grow: 0;   /* 画像は拡大しない */
    
    /* object-fitは、もしimgタグに固定の高さが必要になった場合に使用します。
       今回はheight: autoなので通常は不要ですが、参考として残します。
    object-fit: contain; 
    object-position: center; */
}
.image-container p, .case p {
    margin-top: 10px; /* 画像とテキストの間に余白 */
    font-size: 0.8rem;
    text-align: center; /* テキストを中央揃え */
    color: #333;
    /* font-weight: bold; */
    
    /* テキストが画像の下に収まるように、flexアイテムとして設定 */
    flex-shrink: 0; /* テキストは縮小しない */
    flex-grow: 0;   /* テキストは拡大しない */
}

.jc_image{
    margin-top: 30px!important;
}

.ck_image p{
    padding: 1px!important;
}

.chalk_top {
    margin-top: 35px;
    margin-bottom: 20px;
    display: flex;         /* 横並びにする */
    gap: 15px;            /* 写真同士の隙間（お好みで） */
    align-items: stretch; /* 子要素の高さを揃える */
}

.chalk_info {
    flex: 1;              /* 横幅を均等に分配する */
    display: flex;
    flex-direction: column; /* テキストと画像を縦に並べる */
}

.chalk_info p {
    text-align: center;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 14px;
}

.chalk_info img {
    width: 100%;          /* 親要素の幅いっぱいに広げる */
    height: 250px;        /* ★ここでお好みの高さを固定する */
    object-fit: cover;    /* ★重要：アスペクト比を保ったまま枠を埋める */
    border-radius: 8px;   /* 角丸にする（元画像に合わせて） */
}


/*  foot */
.footer{
    background-color: rgba(179, 177, 177, 0.2);
    height: 140px;
}
.foot {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
}
.foot p {
    font-size: 1.25rem;
}
.foot i {
    margin: 0px 5px;
}

footer {
    height: 30px;
    margin-bottom: 30px;
}
footer > p{
    text-align: center;
    font-size: 15px;
}
.hr-dots {
    background-color: #fff;
    border-top: 2px dashed #8c8b8b;
    
}

/* ********* company.com *********** */
.company-profile-table {
    width: 100%; /* テーブルを幅いっぱいに広げる */
    border-collapse: collapse; /* 罫線を1本にする */
    margin-bottom: 20px;
    margin-top: 20px;
}

.company-profile-table th, 
.company-profile-table td {
    padding: 10px 15px; /* セル内の余白 */
    border: 1px solid #ccc; /* 罫線 */
    line-height: 1.6;
    vertical-align: top; /* セル内の内容を上端に揃える */
}

/* 項目名（<th>）のスタイル */
.company-profile-table th {
    width: 30%; /* 項目名の幅を30%に固定 */
    background-color: #f7f7f7; /* 背景色 */
    text-align: left; /* 左寄せ */
    font-weight: bold;
}

/* 内容（<td>）のスタイル */
.company-profile-table td {
    width: 70%; 
    text-align: left; /* 左寄せ */
}
.company-profile-table th{
    background-color: rgba(128, 128, 128, 0.224);
}

/* @media (max-width: 768px) { */
@media (max-width: 1200px) {
    body{
        font-family: 'ヒラギノ丸ゴ ProN','Hiragino Maru Gothic ProN','Yu Gothic UI','ヒラギノ角ゴシック','Hiragino Sans',sans-serif;
        /* font-family: 'Noto Sans JP', sans-serif; */
        font-size: 16px;
        margin: 15px;
        width: auto;
    }
    h2{
        font-size: 1rem;
    }
    header{
        width: 100%;
        display: flex;
        align-items: center;
    }
    header a{
        text-decoration: none;
        font-family: "AR PCrystalRgothic JIS", "游ゴシック", "Yu Gothic", sans-serif;
        /* margin-left: 20px; */
        font-size: 1.5rem;
    }
    .logo{
        width: 40%;
        height: auto;
    }
    .logotype {
        height: 25px;
    }
    .image_1{
        margin-bottom: 20px;
    }
    .image_1 p {
        font-size: 1.25rem!important;
    }
    .buc{
        height: 20%;
        display:flex;
        /* justify-content:center; */
        align-items:center;
        margin-bottom: 10px;
        font-size: 1rem;
    }
    .buc img{
        height: 25px;
        margin-right: 5px;
    }
    .case_image p{
        font-size: 0.7rem;
        /* font-weight: bold; */
        padding: 5px;
    }
    .holder_image p{
        font-size: 1rem;
        text-align: center;
        color: #333;
        padding: 10px;
    }
    
    /* パターン１　要確認 */
    .case {
        display: grid;
        /* 画面幅に合わせて2列を等間隔で配置 */
        grid-template-columns: repeat(2, 1fr);
        /* アイテム間の余白 */
        gap: 15px;
        /* padding-bottom: 15px; */
        margin: 0px;
        margin-bottom: 25px;
    }
    .case > div {
        /* 必要に応じて枠線などを設定 */
        /* border: 1px solid #ddd;
        border-radius: 8px;
        background-color: #fff;
        padding: 10px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        height: 230px;
        width: auto;
        margin-bottom: 0px; */
        border-radius: 8px;
        padding: 0px;
        height: auto;
        width: auto;
        margin-bottom: 10px;

    }
    .case a {
        display: flex;
        flex-direction: column;
        align-items: center; /* 中央寄せ */
        text-decoration: none;
        color: inherit;
    }
    .case img {
        /* 親要素の幅に合わせて縮小 */
        max-width: 100%;
        /* 縦横比を維持 */
        height: auto;
        display: block;
    }
    .case p{
        /* margin-top: 10px; */
        font-size: 0.75rem;
        text-align: center;
        color: #333;
    }

    /* パターン２　要確認 */
    .case2 {
        display: flex;
        justify-content: space-between; 
        flex-wrap: wrap; /* 横一列を維持し、折り返さない */
        width: 100%;       /* 親要素の幅いっぱいに広げる */
        margin-top: 10px;
    }
    .case2 > div {
        width: 24%; /* 例: 31%に設定し、アイテム間に隙間を作る */
        margin-bottom: 10px;
        text-align: center;
    }
    .case2 img {
        width: 100%; /* 親divの幅いっぱいに広げる */
        height: auto;
        display: block;
    }
    .case2 p{
        /* margin-top: 10px; */
        font-size: 0.4rem;
        text-align: center;
        color: #333;
    }



    /* パターン１　　要確認 */
    .holder {
        display: flex; 
        justify-content: space-between; 
        flex-wrap: wrap; /* 横一列を維持し、折り返さない */
        width: 100%;       /* 親要素の幅いっぱいに広げる */
        margin-top: 10px;
    }
    .holder > div {
        width: 49%; /* 例: 49%に設定し、アイテム間に隙間を作る */
        margin-bottom: 5px;
        text-align: center;
    }
    .holder img {
        width: 100%; /* 親divの幅いっぱいに広げる */
        height: auto;
        display: block;
    }
    /* パターン２　　要確認 */
    .holder2 {
        display: flex;
        justify-content: space-between; 
        flex-wrap: wrap; /* 横一列を維持し、折り返さない */
        width: 100%;       /* 親要素の幅いっぱいに広げる */
        margin-top: 10px;
    }
    .holder2 > div {
        width: 32%; /* 例: 31%に設定し、アイテム間に隙間を作る */
        margin-bottom: 10px;
        text-align: center;
    }
    .holder2 img {
        width: 100%; /* 親divの幅いっぱいに広げる */
        height: 90%;
        display: block;
    }











    .holder_4th {
        /* 768px以下になったらdivを表示（レイアウトを調整） */
        display: block; /* または flex, grid など */
        /* その他のスマホ向けレイアウト調整 */
        width: 100%;
        /* margin-top: 15px; */
    }


    

    /* --- 4. 最初のアイテムのテキスト（詳細はこちらから）の調整 --- */
    .holder_info a {
        text-decoration: none;
        color: inherit;
        display: block;
        position: relative; 
    }

    .holder_info p {
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 100%;
        
        /* スタイル */
        /* background-color: rgba(0, 0, 0, 0.7); */
        color: white;
        text-align: center;
        padding: 5px 0;
        margin: 0;
        font-size: 0.9rem;
    }

    .jc_image p{
        font-size: 0.7rem;
        /* font-weight: bold; */
        padding: 5px;
    }










     /* ***** comany.html ********* */
     .company-profile-table th, td {
        text-align: center;
        font-size: 0.5rem;
        border: 1px solid #ccc;
        padding: 10px;
        text-align: left;
        white-space: nowrap;
        align-items: center;
    }
    .company-profile-table th{
        background-color: rgba(128, 128, 128, 0.224);
    }

    /*  foot */
    .foot {
        display: flex;
        justify-content: space-around;
    }
    .foot p {
        font-size: 0.7rem;
        margin: 5px 0px;
    }
    .foot i {
        margin: 0px 5px;
    }

    .footer {
        margin-top: 30px;
        height: 100px;
        padding: 10px;
    }
    footer > p{
        text-align: center;
        font-size: 0.5rem;
    }
    .foot p:nth-child(3) img{
        width: 85px; 
        height: auto;
        vertical-align: middle; /* テキストなどと並ぶ場合に中央に揃える */
    }
}