/* グローバルなセンタリング */
p, h1, h2, h3, h4, h5, h6, li {
    text-align: center;
}

/* ボディのフォント設定 */
body {
    font-family: Arial, sans-serif;
}

/* ヘッダー */
header {
    background-color: #935b3e;
    padding: 10px 0;
}

/* ナビゲーション */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* セクション */
section {
    padding: 10px;
    text-align: center;
}

section:nth-of-type(odd) {
    background-color: #f4f4f4;
}

/* スライダー */
.slider {
    position: relative;
    width: 100%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.slides {
    display: flex;
    position: relative;
    width: 100%;
    justify-content: center;
    overflow: hidden;
}

.slide {
    display: none;
    flex: 0 0 100%;
    justify-content: center;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    margin: auto;
}

/* コメントエリア */
.comment-container {
    background: rgba(0, 0, 0, 0.5); /* 背景を半透明の黒に設定 */
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-top: 10px; /* ドットインジケーターからの距離 */
    width: 80%; /* コメントエリアの幅を調整 */
    position: relative;
    top: 0;
    left: 0;
}

.comment {
    margin: 0; /* コメントの余白をゼロに設定 */
}

/* ナビゲーションボタン */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 1;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* ドットリスト */
.dots {
    text-align: center;
    padding: 10px 0;
}

.dot {
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
    cursor: pointer;
}

.active, .dot:hover {
    background-color: #717171;
}

/* 最初のスライドを表示 */
.slide:first-child {
    display: flex;
}

/* サービスセクション */
#services {
    font-family: 'Times New Roman', Times, serif;
    font-size: 15px;
    font-weight: 500;
}

#services img {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

#services img.show {
    opacity: 1;
    transform: translateY(0);
}

/* スマホ用のスタイル調整 */
@media (max-width: 932px) {
    #services img {
        width: 100%; /* 画面の幅いっぱいに表示 */
        height: auto; /* 高さを自動調整 */
        object-fit: cover; /* 画像を画面いっぱいにカバーする */
        margin: 0; /* 余白をなくす */
    }
}

/* 新しいセクションのスタイル */
#line-register {
    padding: 20px;
    text-align: center; /* セクション内の要素を中央揃え */
    background-color: #fff;
    margin: 20px 0;
}

#line-register h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
}

/* 新しいセクションの背景カラーを追加 */
#contact {
    background-color: #f2f2f2; /* 薄いグレーの背景色 */
    padding: 20px; /* セクション全体にパディングを追加 */
    border-radius: 5px; /* 角を少し丸くする */
    margin: 20px 0; /* 上下のマージンを追加 */
}

.centered-img {
    display: block; /* 画像をブロック要素に設定 */
    margin: 10px auto; /* 上下の余白と中央揃え */
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-form-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    background: #f2f2f2;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form h2 {
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #0066cc;
    outline: none;
}

button {
    padding: 10px;
    color: #fff;
    background-color: #0066cc;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #004d99;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.social-links a {
    color: #000;
    font-size: 24px;
    text-decoration: none;
}

.social-links a:hover {
    color: #0066cc;
}

.text-container {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    background-color: #f9f9f9;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.text-container p {
    margin-bottom: 1em;
}

.text-container h2 {
    margin-top: 2em;
    margin-bottom: 1em;
    font-size: 1.5em;
}

.text-container ul {
    list-style-type: disc;
    padding-left: 20px;
}

.text-container li {
    margin-bottom: 0.5em;
}

.responsive-img {
    width: 100%;
    height: auto;
    margin: 20px 0;
}

@media (max-width: 600px) {
    .text-container {
        padding: 20px;
        font-size: 14px;
        line-height: 1.5;
    }
}

.textbox {
    background-color: #f2f2f2; /* 薄いグレーの背景色 */
    color: #000; /* 黒色の文字色 */
    padding: 20px; /* テキストボックスの余白 */
    border: 1px solid #ccc; /* 枠線 */
    border-radius: 5px; /* 角丸 */
    width: 80%; /* 幅 */
    margin: 20px auto; /* 中央配置 */
    text-align: left; /* 左揃え */
}

/* スマホ用の調整 */
@media (max-width: 600px) {
    .textbox {
        width: 90%; /* 幅を広げる */
        padding: 10px; /* 余白を減らす */
        font-size: 14px; /* フォントサイズを小さくする */
    }
}

/* 点滅アニメーションの定義 */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}
