.container {
    width: 90%;
    max-width: 1120px;
    margin: 0 auto;
    position: relative;
}

.flex {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
}

/* ヘッダー */
header {
    width: 90%;
    max-width: 1340px;
    margin: 0 auto;
    padding: 5px 0;
    position: sticky;
    z-index: 999;
    top: 0;
    background-color: #f5f5f5;
    opacity: 0.8;
}

.logo {
    text-align: center; /* インライン要素を中央揃え */
    width: 100%; /* 横幅を100%にする */
}

.logo img {
    display: block; /* インライン要素をブロック化 */
    margin: 0 auto; /* 水平方向の中央揃え */
    width: 150px;
    height: auto;
}

.header_menu {
    display: flex;
    justify-content: space-evenly; /* 各要素の間と左右の余白を均等に */
    width: 90%; /* 必要に応じて幅を指定 */
}

li {
    list-style: none;
}

.header_menu li a {
    transition: .3s;
    font-size: 15px;
    text-decoration: none;
}

.header_menu li a:hover {
    color: #0000FF;
    transition: .3s;
}

.header_menu li span {
    display: block; /* 下の行に配置 */
    font-size: 10px; /* 文字を小さめに */
    color: gray; /* 色を少し薄く */
    margin-top: 1px; /* 上の文字との間隔 */
}

/* ハンバーガーメニューのボタン */
.hamburger {
    display: none; /* PCでは非表示 */
    position: absolute;
    top: 15px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
}

/* ハンバーガーメニューのライン */
.hamburger span {
    display: block;
    width: 30px;
    height: 4px;
    background: #333;
    margin: 6px 0;
    transition: 0.3s;
}

/* ナビゲーションのスタイル */
nav {
    display: flex; /* PCでは通常表示 */
}

/* スマホ用のナビゲーション（非表示） */
@media (max-width: 991.98px) {
    .hamburger {
        display: block; /* スマホで表示 */
    }

    nav {
        display: none; /* スマホでは最初は非表示 */
        position: absolute;
        top: 60px;
        right: 0;
        width: 50%;
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        align-items: center; /* 中央寄せ */
    }

    nav.active {
        display: flex; /* ハンバーガーメニューが開いたら表示 */
    }

    /* メニューを縦並びに */
    .header_menu {
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding: 10px 0; /* 上下の余白を小さく */
    }

    .header_menu li {
        width: 100%;
        padding: 10px 0; /* 各メニューの間隔を狭く */
        border-bottom: 0.5px solid #ccc; /* 区切り線を薄く */
    }

    .header_menu li:last-child {
        border-bottom: none;
    }

    .header_menu li a {
        display: block;
        width: 100%;
        font-size: 16px; /* 日本語メニューの文字サイズ */
        color: #333;
        padding: 5px 0;
    }

    .header_menu li span {
        display: block; /* 英語表記を表示 */
        font-size: 12px; /* 英語表記を小さめに */
        color: #666; /* 少し薄い色に */
        margin-top: 3px; /* 日本語との間隔 */
    }
}

/* パンくずリスト */
.breadcrumb {
    font-size: 12px;
    margin: 10px 0px;
    max-width: 1120px;
}

.breadcrumb ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    margin: 0;
}

.breadcrumb li {
    display: inline;
}

.breadcrumb a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb li:not(:last-child)::after {
    content: " / ";
    margin-left: 5px;
    margin-right: 5px;
    color: #666;
}

.breadcrumb i {
    margin-right: 5px;
    color: #666;
}

/* メイン（スライドショー） */
#top {
    position: relative;
    width: 100%;
    height: 540px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

/* スライドショーのコンテナ */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 540px;
    overflow: hidden;
}

/* 各スライド */
.slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* アクティブなスライドを表示 */
.slide.active {
    opacity: 1;
    display: block; /* アクティブなスライドだけ表示 */
}

/* 追加の残像効果 */
.slide.fade-out {
    opacity: 0.5; /* 残像の濃さ */
}

/* スライドのテキスト */
.slide-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.2); /* 背景の透明度 */
    padding: 20px;
    border-radius: 8px;
}

.slide-text h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.slide-text p {
    font-size: 18px;
    font-weight: 500;
}

/* 矢印ボタン */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 5px;
    z-index: 10;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 2);
}

@media (max-width: 991.98px) {
    #top,
    .slideshow-container {
        height: 300px; /* ←スマホ時の高さを縮小 */
    }

    .slide-text h1 {
        font-size: 24px; /* テキストも少し縮小 */
    }

    .slide-text p {
        font-size: 14px;
    }
}

/* philosophy*/
#philosophy {
    margin-bottom: 50px;
    text-align: center;
}

.title {
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
    margin-top: 90px;
    display: inline-block;
    border-bottom: solid 2px #808080;
}

.philosophy-section {
    display: flex;
    justify-content: space-between; /* 均等配置 */
    gap: 20px; /* 余白を追加 */
    text-align: center; /* テキスト中央寄せ */
}

.philosophy-box {
    width: 30%;
    border: 2px solid transparent; /* 初期の枠線（透明） */
    padding: 10px;
    transition: border-color 0.3s ease; /* 枠線の色が変わるエフェクト */
    cursor: pointer; /* カーソルをポインターに */
}

.philosophy-box:hover {
    border-color: #808080; /* カーソルをのせた時に枠線の色が変わる */
    background-color: rgba(0, 0, 0, 0.1); /* 背景色を少し暗く */
}

.sub_title {
    font-size: 20px;
    margin-bottom: 10px;
}

.text {
    font-size: 15px;
    line-height: 1.8;
}

/* スマホ表示（縦並びにする） */
@media (max-width: 991.98px) {
    .philosophy-section {
        flex-direction: column; /* 縦並びに変更 */
        align-items: center; /* 中央揃え */
    }

    .philosophy-box {
        width: 95%; /* スマホでは少し広めに */
        margin-bottom: 20px; /* 各ボックスの間隔 */
    }

    .philosophy-box:last-child {
        margin-bottom: 0; /* 最後のボックスの下部余白をなくす */
    }
}

/* Instagram */
#instagram {
    text-align: center;
}

#instagram a {
    display: block; /* 下の行に配置 */
    font-size: 15px; /* 文字を小さめに */
    color: gray; /* 色を少し薄く */
    margin-bottom: 10px; /* 上の文字との間隔 */
}

.instagram-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* embedsocialへのリンクを非表示 */
.embedsocial-hashtag .feed-powered-by-es {
    display: none !important;
}

/* 事業・会社案内 */
#business-index {
    text-align: center;
}

#business-index a {
    display: block; /* 下の行に配置 */
    font-size: 15px; /* 文字を小さめに */
    color: gray; /* 色を少し薄く */
    margin-top: 0; /* 上の文字との間隔 */

}

.business-index-section {
    width: 100%;
}

.business-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0px;
}

.business-index {
    width: 50%;
    box-sizing: border-box;
}

.business-index img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
}

.business-index-text {
    width: 45%;
    text-align: left;
    width: 40%; /* 写真とテキストを並べるための幅設定 */
    display: flex;
    flex-direction: column;
    justify-content: center; /* テキストを縦中央に配置 */
}

.more {
    text-align: right;
    margin: 20px;
}

.more a {
    text-decoration: none;
    color: #0056b3;
    font-weight: bold;
}

/* スマホ表示（写真とテキストを交互に並べる） */
@media (max-width: 991.98px) {
    .business-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .business-index, .business-index-text {
        width: 100%;
        margin-bottom: 20px;
    }

    /* 画像とテキストの順番を調整 */
    .business-index.photo.order1 { order: 1; }
    .business-index-text.order2 { order: 2; }
    .business-index.photo.order3 { order: 3; }
    .business-index-text.order4 { order: 4; }

    .business-index .photo {
        margin-bottom: 10px; /* 写真とテキストの間隔 */
    }

    .business-index-text {
        text-align: center;
    }
}

/* footer */
footer {
    text-align: center;
    margin: 90px 0;
}
span{
    font-size: 15px;
}
.copyright {
    font-size: 12px;
    margin-top: 10px;
}

.social-icons {
    display: flex;
    justify-content: center; /* アイコンを中央に配置 */
    gap: 15px; /* アイコン間のスペース */
    margin-bottom: 10px; /* 会社ロゴとの間隔 */
}

.social-icons img {
    width: 30px; /* アイコンサイズ調整 */
    height: auto;
    transition: opacity 0.3s;
}

.social-icons img:hover {
    opacity: 0.7; /* ホバー時に少し透明に */
}
.social-icons a {
    position: relative;
    display: inline-block;
}

.social-icons a::after {
    content: attr(data-title); /* カスタム属性の値を表示 */
    position: absolute;
    bottom: -25px; /* アイコンの下に表示 */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.social-icons a:hover::after {
    opacity: 1;
    visibility: visible;
}

.tiktok-icon img {
    opacity: 0.7; /* 少し薄くする */
    filter: grayscale(30%); /* グレーを足す（オプション） */
}

.tiktok-icon img:hover {
    opacity: 0.5; /* 通常のホバーと同じ透明度に */
}

/* 事業案内 */
#business {
    text-align: center;
}

.business-datails {
    width: 48%; /* 写真とテキストを並べるための幅設定 */
    flex: 1;
}

.business-datails.photo {
    margin-top: 100px;
}

.business-datails.photo img {
    width: 100%;
    height: auto;
    max-width: 500px; /* 写真の最大幅を設定（お好みで調整） */
    border-radius: 5px; /* 写真の角を少し丸くする */
}

.business-datails-text {
    width: 40%; /* 写真とテキストを並べるための幅設定 */
    display: flex;
    flex-direction: column;
    justify-content: center; /* テキストを縦中央に配置 */
    align-items: center; /* 横中央に配置 */
    text-align: center; /* テキストを中央揃え */
}

.business-datails-text h3 {
    text-align: center;
}

.business-datails-text p {
    text-align: left;
}

/* スマホ表示（縦並びに変更） */
@media (max-width: 991.98px) {
    .business {
        flex-direction: column; /* 縦並びに変更 */
        align-items: center; /* 中央揃え */
    }

    .business-datails,
    .business-datails-text {
        width: 100%; /* 縦並びになった時、ボックスを広めに */
        margin-bottom: 20px; /* 各ボックスの間隔 */
    }

    .business-datails:last-child,
    .business-datails-text:last-child {
        margin-bottom: 0; /* 最後のボックスの下部余白をなくす */
    }

    .business-datails img {
        max-width: 100%; /* スマホでは画像を画面いっぱいに広げる */
    }
}

/* 会社案内 */
#ceo {
    text-align: center;
}

.ceo-photo {
    width: 50%; /* 画像の幅を指定 */
    max-width: 350px; /* 必要なら最大幅を設定 */
    margin-top: 50px;
}

.ceo-photo img {
    width: 100%; /* 画像を親要素の幅に合わせる */
    height: auto;
    display: block;
    border-radius: 5px;
}

.ceo-text {
    text-align: left;
    line-height: 30px;
    width: 65%; /* テキスト部分の幅を指定 */
    margin-top: 50px;
}

/* スマホ用のスタイル */
@media (max-width: 991.98px) {
    .ceo-message {
        flex-direction: column;
        text-align: center;
    }

    .ceo-photo img {
        max-width: 100%; /* 画像の幅を調整 */
    }

    .ceo-text {
        text-align: left;
    }
}

.company-info {
    text-align: center;
    margin-top: 50px; /* 余白を追加 */
}

.company-info table {
    margin: 0 auto;
    border-collapse: separate; /* `separate` に変更してセル間のスペースを確保 */
    border-spacing: 20px 10px; /* 横方向に 20px、縦方向に 10px のスペース */
    width: 80%;
}

.company-info th, .company-info td {
    padding: 15px 25px; /* `th` と `td` の間のスペースを確保 */
    border: 1px solid #ddd;
    text-align: left;
    background-color: #fff; /* 背景色を追加（お好みで） */
}

.company-info th {
    font-weight: bold;
    background-color: #f5f5f5; /* 見出しの背景色を追加 */
}

/* お問い合わせ */
.contact-page {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
}

#contact {
    text-align: center;
}

.form-container {
    display: flex;
    justify-content: center; /* 水平方向の中央揃え */
    align-items: center; /* 垂直方向の中央揃え */
    min-height: 100vh; /* 画面の高さ全体を使う */
    flex-direction: column; /* 縦方向のレイアウト */
}

.contact-form {
    width: 100%;
    max-width: 500px; /* フォームの最大幅を調整 */
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-form label {
    font-weight: bold;
    display: block;
    margin-top: 15px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 80%;
    margin: 10px 0;
    border-radius: 10px;
    border: 2px solid #ff7eb3;
    padding: 10px;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    border-color: #ff4e88;
    box-shadow: 0 0 10px #ff7eb3;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.contact-form button {
    background-color: #ff7eb3;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    width: 25%;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #ff4e88;
    transform: scale(1.1);
    animation: bounce 0.5s infinite;
}

#welcome-message {
    position: fixed;
    top: 30%;  /* ← さらに上に表示（30% → 15%） */
    left: 50%;
    transform: translateX(-50%);  /* ← X方向だけ中央に */
    font-size: 80px;
    font-weight: bold;
    background: linear-gradient(90deg, #ff0000, #ff9900, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff);
    background-size: 400%;
    background-clip: text;            /* 標準仕様 */
    -webkit-background-clip: text;    /* WebKit 対応（Chrome, Safari） */
    color: transparent;
    animation: rainbow 5s linear infinite, fadeInSlide 1.5s ease forwards, fadeOut 1s ease 3s forwards;
    z-index: 9999;
    pointer-events: none;
    position: fixed;
    overflow: visible;
}

/* 画面幅調整（スマホ）の場合 */
@media screen and (max-width: 991.98px) {
    .contact-form {
        width: 95%;
    }
    #welcome-message {
        font-size: 50px; /* スマホ向けに小さく */
        top: 20%;
    }
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeInSlide {
    0% {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.welcome-glow::before,
.welcome-glow::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #fff, rgba(255, 255, 255, 0));
    border-radius: 50%;
    animation: sparkle 2s infinite ease-in-out;
}

.welcome-glow::before {
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.5s;
}

.welcome-glow::after {
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    animation-delay: 1s;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* お知らせ */
#Information {
    text-align: center;
}