/*
Theme Name: 縁日ヤロウ
Theme URI: https://ennichiyarou.com
Author: 株式会社エイトスペース
Author URI: https://ennichiyarou.com
Description: 木のぬくもりで創る、心に残る縁日体験を提供する縁日ヤロウの公式テーマ
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ennichi-theme
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* WordPress管理バーのmarginを完全に無効化 */
html {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body {
    font-family: 'Zen Old Mincho', serif;
    line-height: 1.6;
    color: #555;
    background-color: #fff;
    transition: font-family 0.3s ease;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* WordPress管理バー表示時の調整 */
body.admin-bar header {
    top: 32px;
}

body.admin-bar .hero {
    margin-top: 132px; /* header 100px + admin-bar 32px */
}

@media screen and (max-width: 782px) {
    body.admin-bar header {
        top: 46px;
    }

    body.admin-bar .hero {
        margin-top: 146px; /* header 100px + admin-bar 46px */
    }
}

/* ヘッダー */
header {
    background: #fff;
    height: 100px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #eee;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    width: 103px;
    display: flex;
    align-items: center;
}

.logo img {
    height: auto;
    max-height: 60px;
    object-fit: contain;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    color: #666;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #000;
}

/* メインビジュアル */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 99px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

.hero-bg-1 {
    opacity: 1;
}

.hero-bg-2 {
    opacity: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 300;
    color: #000;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.hero-logo {
    max-width: 800px;
    width: 80%;
    height: auto;
    margin-bottom: 2rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: white;
    font-weight: 300;
    letter-spacing: 1px;
}

/* セクション共通スタイル */
.section {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 4rem;
    color: #000;
    letter-spacing: 1px;
}

/* 会社説明セクション */
.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.8;
    font-weight: 300;
}

/* 出店のご依頼ボタン */
.request-button-container {
    margin-top: 5rem;
    text-align: center;
}

.request-button {
    display: inline-block;
    background: #C41E3A;
    color: #fff;
    padding: 1rem 3rem;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.request-button:hover {
    background: #A01729;
}

/* 動画セクション */
.video-section {
    background: #fafafa;
    width: 100%;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.video-container video {
    width: 100%;
    max-height: 450px;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-placeholder {
    background: #f5f5f5;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1rem;
    border: 1px solid #eee;
}

/* ゲームセクション */
.games-container {
    margin-top: 4rem;
}

.game-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 8rem;
    align-items: center;
}

.game-item:nth-child(even) {
    direction: rtl;
}

.game-item:nth-child(even)>* {
    direction: ltr;
}

.game-image {
    width: 100%;
    height: 400px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: 1px solid #eee;
}

.game-content {
    padding: 2rem 0;
}

.game-content h3 {
    font-size: 2rem;
    font-weight: 300;
    color: #000;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.game-content p {
    color: #666;
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 300;
    max-width: 400px;
}

.game-number {
    font-size: 0.8rem;
    color: #999;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-weight: 400;
}

/* 会社概要セクション */
.company-info {
    max-width: 600px;
    margin: 0 auto;
}

.info-item {
    display: flex;
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    min-width: 120px;
    font-weight: 500;
    color: #000;
    font-size: 0.9rem;
}

.info-value {
    color: #666;
    font-size: 0.9rem;
    font-weight: 300;
}

/* お問い合わせフォーム */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #000;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000;
}

.submit-btn {
    background: #C41E3A;
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: inherit;
    letter-spacing: 1px;
    font-weight: 400;
}

.submit-btn:hover {
    background: #A01729;
}

/* フッター */
footer {
    background: #C41E3A;
    color: #fff;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 5rem;
}

footer p {
    font-size: 0.9rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 1.5rem;
        font-size: 0.85rem;
    }

    .nav-menu a {
        font-size: 0.8rem;
    }

    .logo {
        width: 90px;
    }

    .logo img {
        max-height: 50px;
    }
}

@media (max-width: 900px) {
    .nav-menu {
        gap: 1rem;
    }

    .nav-menu a {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    header {
        height: 80px; /* モバイルではヘッダーを少し小さく */
    }

    .logo {
        width: 80px;
    }

    .logo img {
        max-height: 40px;
    }

    .hero {
        margin-top: 79px; /* モバイルのヘッダー高さ - border */
    }

    /* モバイルで管理バー表示時 */
    body.admin-bar .hero {
        margin-top: 126px; /* header 80px + admin-bar 46px */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-logo {
        max-width: 300px;
        width: 90%;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section {
        padding: 5rem 1.5rem;
    }

    .section h2 {
        font-size: 2rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .game-item {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .game-item:nth-child(even) {
        direction: ltr;
    }

    .game-image {
        height: 250px;
    }

    .game-content h3 {
        font-size: 1.5rem;
    }

    .info-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .info-label {
        min-width: auto;
    }

    /* モバイルでのフォーム調整 */
    .contact-form,
    .wpcf7 {
        padding: 0 1rem;
    }

    /* モバイルでのボタン調整 */
    .request-button {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }

    /* モバイルでの動画調整 */
    .video-container video {
        max-height: 300px;
    }
}

/* 小型モバイル対応 */
@media (max-width: 480px) {
    header {
        height: 70px;
    }

    .logo {
        width: 70px;
    }

    .logo img {
        max-height: 35px;
    }

    .hero {
        margin-top: 69px;
    }

    body.admin-bar .hero {
        margin-top: 116px; /* header 70px + admin-bar 46px */
    }

    .hero-logo {
        max-width: 250px;
        width: 85%;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .section {
        padding: 4rem 1rem;
    }

    .section h2 {
        font-size: 1.8rem;
        margin-bottom: 3rem;
    }

    .game-content p,
    .about-content p {
        font-size: 0.95rem;
    }

    .form-group input,
    .form-group textarea,
    .wpcf7 input[type="text"],
    .wpcf7 input[type="email"],
    .wpcf7 input[type="tel"],
    .wpcf7 textarea {
        font-size: 0.9rem;
        padding: 0.8rem;
    }

    .submit-btn,
    .wpcf7 input[type="submit"] {
        width: 100%;
        padding: 0.9rem 1.5rem;
    }

    /* 小型モバイルでのボタン調整 */
    .request-button {
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
    }

    /* 小型モバイルでの動画調整 */
    .video-container video {
        max-height: 250px;
    }
}

/* アニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 固定ページ用スタイル */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
}

/* 固定ページのモバイル対応 */
@media (max-width: 768px) {
    .page-container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-container {
        padding: 0 1rem;
    }
}

/* Contact Form 7 スタイル調整 */
.wpcf7 {
    max-width: 600px;
    margin: 0 auto;
}

.wpcf7 form {
    margin: 0;
}

.wpcf7 .form-group {
    margin-bottom: 2rem;
}

.wpcf7 label {
    display: block;
    margin-bottom: 0.5rem;
    color: #000;
    font-weight: 500;
    font-size: 0.9rem;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.3s ease;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: #000;
}

.wpcf7 textarea {
    min-height: 150px;
    resize: vertical;
}

/* Contact Form 7 Multi-Step Forms ボタンスタイル */
.wpcf7 input[type="submit"],
.wpcf7 input[type="button"],
.wpcf7 .multistep {
    background: #C41E3A;
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: inherit;
    letter-spacing: 1px;
    font-weight: 400;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 input[type="button"]:hover,
.wpcf7 .multistep:hover {
    background: #A01729;
}

/* 戻るボタン */
.wpcf7 .prev_button {
    background: #666;
    margin-right: 1rem;
}

.wpcf7 .prev_button:hover {
    background: #444;
}

/* 確認画面のテーブルスタイル */
.wpcf7 table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.wpcf7 table tr {
    border-bottom: 1px solid #eee;
}

.wpcf7 table td {
    padding: 1rem;
}

.wpcf7 table td:first-child {
    font-weight: 500;
    width: 30%;
}

/* Contact Form 7 メッセージスタイル */
.wpcf7-response-output {
    margin: 2em 0 1em;
    padding: 1rem;
    border: 1px solid #ddd;
    text-align: center;
}

.wpcf7-mail-sent-ok {
    border-color: #398f14;
    background-color: #f0f8e8;
    color: #398f14;
}

.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
    border-color: #f00;
    background-color: #ffe8e8;
    color: #f00;
}

/* お問い合わせコンテンツ */
.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* Contact Form 7 チェックボックス（acceptance）スタイル */
.wpcf7 .wpcf7-acceptance {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wpcf7 .wpcf7-acceptance .wpcf7-list-item {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wpcf7 .wpcf7-acceptance input[type="checkbox"] {
    width: auto;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.wpcf7 .wpcf7-acceptance .wpcf7-list-item-label {
    margin: 0;
    cursor: pointer;
    font-size: 0.95rem;
    color: #555;
    font-weight: 400;
}

/* ヘッダー Instagram リンク */
.header-instagram {
    display: flex;
    align-items: center;
}

.header-instagram a {
    display: flex;
    align-items: center;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-instagram a:hover {
    color: #000;
}

.header-instagram svg {
    transition: stroke 0.3s ease;
}

.header-instagram a:hover svg {
    stroke: #000;
}

/* Instagram セクション（動画下） */
.instagram-section {
    background: #fafafa !important;
    padding: 2rem 2rem !important;
    text-align: center;
}

.instagram-content {
    max-width: 600px;
    margin: 0 auto;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #666;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 400;
    padding: 1rem 2rem;
    border: 2px solid #666;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.instagram-link:hover {
    color: #C41E3A;
    border-color: #C41E3A;
    background: #fff;
}

.instagram-link svg {
    transition: stroke 0.3s ease;
}

.instagram-link:hover svg {
    stroke: #C41E3A;
}

/* 会社概要の Instagram リンク */
.company-instagram-link {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.company-instagram-link:hover {
    color: #C41E3A;
    text-decoration: underline;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .nav-right {
        gap: 1.5rem;
    }

    .header-instagram svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 900px) {
    .nav-right {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-right {
        margin-left: auto;
    }

    .instagram-section {
        padding: 1.75rem 1.5rem !important;
    }

    .instagram-link {
        font-size: 1rem;
        padding: 0.9rem 1.5rem;
    }

    .instagram-link svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .instagram-section {
        padding: 1.5rem 1rem !important;
    }

    .instagram-link {
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
        gap: 0.5rem;
    }

    .instagram-link span {
        font-size: 0.85rem;
    }

    .instagram-link svg {
        width: 20px;
        height: 20px;
    }
}
