body {
    color: #232323;
}

.index-h1-text-center {
    text-align: center;
    padding: 20px 0;
}

.image-flex {
    display: flex;
    justify-content: space-between;
}

.image-flex h1 {
    justify-content: center;
}

.image-flex img {
    justify-content: flex-end;
}

h1 {
    font-size: 2.5em;
    margin: 0;
    color: #232323;
}

h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #000;
}

.navigation {
    text-align: center;
    list-style: none;
    padding: 0;
    margin-top: 20px; /* ナビゲーションとコンテンツの間にスペース */
}

.navigation li {
    display: inline;
    margin-right: 30px;
}

.navigation a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
    transition: color 0.3s;
}

.navigation a:hover, .navigation a:focus {
    color: #555;
}

.hero {
    text-align: center;
}

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

input {
    padding-right: 40px; /* アイコンのスペースを確保 */
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #000;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s;
    box-sizing: border-box;
}

/* 入力フィールドにフォーカスが当たった時のスタイル */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #000;
    outline: none;
}

/* パスワード表示切替ボタン */
#togglePassword, #togglePassword2 {
    position: absolute;
    right: 20px;
    top: 75%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
}

/* パスワードの条件のどちらかがエラー状態の時 */
#togglePassword2.error {
    position: absolute;
    right: 20px;
    top: 55%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
}

/* パスワードの条件のどちらともエラー状態のとき */
#togglePassword2.both-error {
    position: absolute;
    right: 20px;
    top: 44%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
}

/* サブミットボタン */
input[type="submit"] {
    background-color: #000;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 1em;
    margin-top: 10px;
    transition: background-color 0.3s, transform 0.2s ease;
}

input[type="submit"]:hover,
input[type="submit"]:focus {
    background-color: #333;
    transform: scale(1.05); /* ボタンをホバー時に少し拡大 */
}

/* フォームのスタイル */
form {
    max-width: 400px;
    margin: 0 auto;
    font-size: 1em;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
}

/* プロンプト入力フォームのラベルとインプットフィールドのスタイル */
label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

input[type="text"] {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus {
    border-color: #000;
    outline: none;
}

.passwd-reset-error-message {
    color: red;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none; /* 初期状態では非表示 */
}


/* エラーメッセージのスタイル */
.error-message {
    color: #d9534f;
    font-size: 0.9em;
    margin-top: 5px;
}

/* 画像生成後のメッセージエリア */
.message {
    margin-top: 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    text-align: center;
}

/* sign-up */
.requirement-text {
    font-size: 14px;
    margin: 5px 0;
    color: #ccc; /* 初期状態では薄い灰色 */
    display: flex;
    align-items: center;
}

.requirement-icon {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    fill: #ccc; /* 初期状態では灰色 */
}

/* 条件を満たしている場合（緑色） */
.valid {
    color: green;
}

.valid .requirement-icon {
    fill: green; /* SVGアイコンを緑色に */
}

/* 条件を満たしていない場合（赤色） */
.invalid {
    color: red;
}

.invalid .requirement-icon {
    fill: red; /* SVGアイコンを赤色に */
}

/* 無限スクロール関連 */
@keyframes infinity-scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.scroll-infinity {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70vh; /* 画面全体の高さを確保 */
    position: relative;
}

.scroll-infinity__wrap {
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%; /* 必要に応じてサイズを調整 */
    position: relative;
}

.scroll-infinity__list {
    display: flex;
    list-style: none;
    margin: 10px;
    padding: 0;
    animation: infinity-scroll-left 40s linear infinite;
    animation-play-state: running;
}

.scroll-infinity__list.paused {
    animation-play-state: paused;
}

.scroll-infinity__item {
    width: 20vw;
    margin-right: 20px;
    transition: transform 1s ease, filter 1s ease;
}

.scroll-infinity__item:last-child {
    margin-right: 0;
}

.scroll-infinity__item img {
    width: 100%;
    height: auto;
    border-radius: 30px;
}

.scroll-infinity__item.enlarged {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* ハイブリッドスクロール用 */
.scroll_container {
    height: 400vh;
}

.sticky_wrap {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
}

.horizontal_scroll {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 0 5vw;
}

.horizontal_scroll img {
    margin-top: 300px;
    width: 25vw;
    object-fit: cover;
    margin-right: 350px;
    border-radius: 30px;
    transition: transform 0.3s ease;
}

.horizontal_scroll img:last-child {
    margin-right: 200px;
}

.index-main-center {
    display: block;
    width: 350px;
    margin: 0 auto;
    padding-bottom: 20px;
    border-radius: 30px;
}

.index-main-center p {
    text-align: center;
}

.index-main-center img {
    border-radius: 30px;
}

.login-main-text-align {
    text-align: center;
    padding-top: 7px;
}

/* forget.phpのcss */
.error_message {
    color: red;
    text-align: center;
}

/* input_verify_code.php */
.success_message {
    color: green;
    text-align: center;
}

/* signup.php */
.signup_message {
    color: #232323;
    text-align: center;
}

.signup_message .login_link {
    text-decoration: none;
}

/* item_page.php */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.product-header {
    text-align: center;
    margin-bottom: 20px;
}

.product-header h1 {
    font-size: 28px;
    color: #333;
}

.product-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.product-image {
    width: 50%; /* 左半分を画像エリアに割り当て */
    text-align: center;
}

.product-image canvas {
    width: 100%;
    height: auto;
    max-width: 400px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-info {
    width: 45%; /* 右半分を詳細エリアに割り当て */
}

.product-info p {
    margin-bottom: 10px;
    font-size: 18px;
}

.price {
    font-size: 24px;
    color: #e60012;
    font-weight: bold;
    margin-bottom: 20px;
}

.options {
    margin-bottom: 20px;
}

.options label {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

.options select,
.options input {
    padding: 10px;
    font-size: 16px;
    width: 100%;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.add-to-cart {
    background-color: #ff9900;
    color: white;
    padding: 15px 30px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.add-to-cart:hover {
    background-color: #e68900;
}
/* item_page.php終わり */

/* view.php */
.view-header {
    background-color: #fff;
    padding: 20px;
    border-bottom: 1px solid #e1e1e1;
    text-align: center;
}

.view-header h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 600;
}

.view-header nav ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.view-header nav ul li {
    display: inline;
    margin-right: 20px;
}

.view-header nav ul li a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
}

.view-main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.view-h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th, table td {
    padding: 15px;
    text-align: center;
    border: 1px solid #e1e1e1;
}

table th {
    background-color: #f3f3f3;
    color: #555;
    font-size: 16px;
}

table td {
    font-size: 16px;
    background-color: #fff;
}

table tr:nth-child(even) td {
    background-color: #fafafa;
}

.quantity-input {
    width: 60px;
    padding: 8px;
    font-size: 16px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.remove-button {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.remove-button:hover {
    background-color: #dcdcdc;
}

.purchase-button {
    background-color: #ff9900;
    color: white;
    font-size: 18px;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.purchase-button:hover {
    background-color: #ff7f00;
}

p#total {
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    color: #333;
}

.view-footer {
    background-color: #f8f8f8;
    color: #999;
    padding: 15px;
    text-align: center;
    font-size: 14px;
}

    /* カートのテーブル */
    .cart-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 20px;
        background-color: #f9f9f9;
    }
    
    .cart-table th, .cart-table td {
        padding: 15px;
        text-align: center;
        border: 1px solid #ddd;
    }
    
    .cart-table th {
        background-color: #f3f3f3;
        color: #555;
        font-size: 16px;
    }
    
    .cart-table td {
        font-size: 16px;
        background-color: #fff;
    }
    
    .cart-table tr:nth-child(even) td {
        background-color: #fafafa;
    }
    
    /* カート内商品のボタン */
    .update-btn, .delete-btn {
        background-color: #ff9900;
        color: white;
        padding: 10px 20px;
        border: none;
        border-radius: 30px;
        cursor: pointer;
        transition: background-color 0.3s;
    }
    
    .update-btn:hover, .delete-btn:hover {
        background-color: #e68900;
    }
    
    /* 数量変更フォーム */
    .quantity-input {
        width: 60px;
        padding: 8px;
        font-size: 16px;
        text-align: center;
        border: 1px solid #ccc;
        border-radius: 5px;
    }
    
    /* 合計金額 */
    .total-price {
        font-size: 1.5em;
        font-weight: bold;
        margin-top: 20px;
        text-align: right;
    }
    
    /* お届け先住所フォーム */
    .address-form {
        max-width: initial;
        margin: initial;
        font-size: initial;
        padding: initial;
        border: initial;
        border-radius: initial;
        box-shadow: initial;
        background-color: initial;
        max-width: 500px;
        margin: 20px auto;
        padding: 20px;
    }
    
    .address-form input {
        width: 100%;
        padding: 12px;
        margin-bottom: 20px;
        font-size: 16px;
        border: 1px solid #ccc;
        border-radius: 5px;
        box-sizing: border-box;
    }
    
    .address-form button {
        background-color: #ff9900;
        color: white;
        font-size: 18px;
        padding: 12px 30px;
        border: none;
        border-radius: 50px;
        cursor: pointer;
        transition: background-color 0.3s;
        width: 100%;
    }
    
    .address-form button:hover {
        background-color: #e68900;
    }
    
    /* 注文確定ボタン */
    .purchase-button {
        background-color: #ff9900;
        color: white;
        font-size: 18px;
        padding: 15px 30px;
        border: none;
        border-radius: 50px;
        width: 100%;
        cursor: pointer;
        transition: background-color 0.3s;
    }
    
    .purchase-button:hover {
        background-color: #e68900;
    }



/* buy.phpのcss */

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #f9f9f9;
}

.cart-table th, .cart-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid #ddd;
}

.cart-table th {
    background-color: #f3f3f3;
    color: #555;
    font-size: 16px;
}

.cart-table td {
    font-size: 16px;
    background-color: #fff;
}

.cart-table .cart-actions {
    max-width: initial;
    margin: initial;
    font-size: initial;
    padding: initial;
    border: initial;
    border-radius: initial;
    box-shadow: initial;
    background-color: initial;
}

.cart-table tr:nth-child(even) td {
    background-color: #fafafa;
}

.cart-table .item-image img {
    width: 250px;
}

/* カート内商品のボタン */
.update-btn, .delete-btn {
    background-color: #ff9900;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.delete-btn {
    background-color: #e60012;
}

.update-btn:hover, .delete-btn:hover {
    background-color: #e68900;
}

/* 数量変更フォーム */
.quantity-input {
    width: 60px;
    padding: 8px;
    font-size: 16px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* 合計金額 */
.total-price {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 20px;
    text-align: right;
}

/* お届け先住所フォーム */

.address-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.address-form button {
    background-color: #ff9900;
    color: white;
    font-size: 18px;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.address-form button:hover {
    background-color: #e68900;
}

/* 注文確定ボタン */
.purchase-button {
    background-color: #ff9900;
    color: white;
    font-size: 18px;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.purchase-button:hover {
    background-color: #e68900;
}



/* 以下よりスマホ向けのcssコード */

@media screen and (max-width:415px) {

    .scroll-infinity {
        height: 50vh; /* 画面全体の高さを確保 */
    }
    
    .scroll-infinity__wrap {
        display: flex;
        align-items: center;
        overflow: hidden;
        width: 100%; /* 必要に応じてサイズを調整 */
        position: relative;
    }
    
    .scroll-infinity__list {
        display: flex;
        list-style: none;
        margin: 10px;
        padding: 0;
        animation: infinity-scroll-left 40s linear infinite;
        animation-play-state: running;
    }
    
    .scroll-infinity__list.paused {
        animation-play-state: paused;
    }
    
    .scroll-infinity__item {
        width: 20vw;
        margin-right: 20px;
        transition: transform 1s ease, filter 1s ease;
    }
    
    .scroll-infinity__item:last-child {
        margin-right: 0;
    }
    
    .scroll-infinity__item img {
        width: 100%;
        height: auto;
        border-radius: 30px;
    }
    
    .scroll-infinity__item.enlarged {
        transform: scale(1.1);
        filter: brightness(1.2);
    }

    .scroll-infinity__item img {
        border-radius: 10px;
    }

    form {
        width: 300px;
        margin: 0 auto;
        font-size: 1em;
        padding: 20px;
        border: 1px solid #ddd;
        border-radius: 5px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        background-color: #f9f9f9;
    }
    
    .scroll-infinity__wrap {
        overflow: hidden;
    }
    
    .horizontal_scroll img {
    margin-top: 230px;
    width: 25vw;
    object-fit: cover;
    margin-right: 350px;
    border-radius: 20px;
    transition: transform 0.3s ease;
    }
    
    /* item_page.php */
    .container {
        padding: 10px;
    }

    .product-header h1 {
        font-size: 22px;
    }

    .product-body {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .product-image {
        width: 100%; /* 画像を幅いっぱいに */
    }

    .product-image canvas {
        width: 100%;
        height: auto;
        max-width: 300px;
    }

    .product-info {
        width: 100%; /* 詳細エリアも幅いっぱい */
        text-align: center;
    }

    .price {
        font-size: 20px;
    }

    .options label {
        font-size: 14px;
    }

    .options select,
    .options input {
        font-size: 14px;
        padding: 8px;
    }

    .add-to-cart {
        font-size: 14px;
        padding: 12px 20px;
    }
}