
/*
Theme Name: 灯海テーマ
Theme URI: https://example.com/
Author: あなたの名前
Author URI: https://example.com/
Description: 灯海株式会社の公式テーマ
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tomi-theme
*/

body {
    font-family: 'Hiragino Sans', 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #333333;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #a3d4f7;
    border-bottom: 2px solid #ddd;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
}

.menu-icon {
    font-size: 28px;
    cursor: pointer;
    color: #ffffff;
}

.main-visual {
    position: relative;
    text-align: center;
    background-color: #ffffff;
}

.main-visual img {
    width: 100%;
    height: auto;
}

.main-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    color: #f46d33;
    background: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 10px;
}

.section {
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 20px;
}

.section:nth-child(odd) {
    background: #f8f8f8;
}

.company-overview {
    background: #ffffff;
    padding: 60px 20px;
}

.company-overview h2 {
    color: #f46d33;
    font-size: 26px;
}

.company-overview p {
    margin-top: 20px;
    font-size: 18px;
    color: #666;
}

/* 商品ラインナップ */
.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    margin-top: 20px;
}

.product-large {
    flex: 1 1 100%;
    max-width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.product-small {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
    text-align: center;
}

.product img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-large img {
    width: 90%; /* Larger image for No.1 */
    max-width: 600px;
}

.product h3 {
    margin-top: 10px;
    font-size: 18px;
    color: #333;
}

.order-button {
    display: inline-block;
    background: #ff8c00; /* Updated background color */
    color: #ffffff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    transition: background 0.3s ease;
}

.order-button:hover {
    background: #e55a1f;
}

/* フッター */
footer {
    background: #d9ecf9;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

footer a {
    color: #f46d33;
    text-decoration: none;
}

/* セクション見出しのアンダーライン */
.section h2 {
    position: relative; /* 疑似要素を正しく配置するために必要 */
    display: inline-block; /* テキスト幅に合わせる */
    font-size: 24px; /* フォントサイズを24pxに設定 */
    color: #333; /* テキストカラーをダークグレーに設定 */
    margin-bottom: 20px; /* 下に余白を設定 */
}

.section h2::after {
    content: ""; /* 疑似要素に空の内容を設定 */
    position: absolute; /* 親要素（h2）を基準に絶対配置 */
    left: 0; /* 左端に配置 */
    bottom: 0; /* h2の底に基準を合わせる */
    width: 100%; /* 疑似要素をh2の幅いっぱいに設定 */
    height: 50%; /* 文字の高さの半分に設定 */
    background: rgba(255, 165, 0, 0.7); /* オレンジ色（透明度70%） */
    z-index: -1; /* テキストの後ろに配置 */
    border-radius: 4px; /* 両端を滑らかにする */
}
/* スライダー全体 */
.slider-container {
    position: relative;
    width: 80%;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden; /* コンテンツを隠す */
    padding: 20px 40px; /* 矢印と文字が被らないよう余白を追加 */
    box-sizing: border-box;
}

/* スライダー内の全スライド */
.slider {
    display: flex; /* 横並びに配置 */
    transition: transform 0.5s ease-in-out; /* スライド切り替えのアニメーション */
}

/* 各スライド */
.slide {
    flex: 0 0 100%; /* 1スライドが画面全体の幅 */
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.6;
}

/* 矢印ボタンのスタイル */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px; /* 矢印の丸を少し小さく */
    height: 40px; /* 矢印の丸を少し小さく */
    background-color: #f46d33; /* 矢印ボタンの背景色 */
    border: none;
    border-radius: 50%; /* 丸型にする */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white; /* 矢印の色 */
    font-size: 20px; /* 矢印のサイズ */
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 左矢印 */
.left-arrow {
    left: 10px; /* 矢印を文字から離す */
}

/* 右矢印 */
.right-arrow {
    right: 10px; /* 矢印を文字から離す */
}

/* ボタンのフォーカスを非表示 */
.arrow:focus {
    outline: none;
}
