/*
Theme Name: Lynir
Description: 余白を活かしたミニマルなテーマ
Version: 1.0
Author: あなたの名前
*/


/* --- Base Styles --- */

/* --- Utility --- */
strong {
    font-weight: 500;
}

p {
    margin: 0;
}

/* ページ全体の設定 */
html, body {
    overflow-x: hidden; /* 横にはみ出した部分は強制的に隠す */
    width: 100%;        /* 横幅は画面サイズぴったりにする */
    margin: 0;
    padding: 0;
}
:root {
    --text-color: #333333;
    --bg-color: #f9f9f9;
    --accent-color: #a8a8a8;
    --font-en: 'Cormorant Garamond', serif;
    --font-jp: 'Noto Sans JP', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-jp);
    line-height: 2;
    letter-spacing: 0.05em;
}

h1, h2, h3 {
    font-family: var(--font-en);
    font-weight: 400;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Fade In Animation Class --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    z-index: 100;
    background: rgba(249, 249, 249, 0.9);
    backdrop-filter: blur(5px);
}

.logo {
    font-family: var(--font-en);
    font-size: 1.5rem;
    letter-spacing: 0.1em;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    font-family: var(--font-en);
    font-size: 0.9rem;
    margin: 0;
    padding: 0;
}

/* --- Hero Section --- */
.hero {
    height: 65vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero p {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-top: 20px;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    font-family: var(--font-en);
    font-size: 0.8rem;
    animation: bounce 2s infinite;
    position: relative;
    margin-top: 90px;
}

/* --- Common Section --- */
section {
    padding: 120px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 1px;
    height: 40px;
    background: var(--text-color);
    margin: 20px auto 0;
}

/* --- Problems Section --- */
#problems {
    background-color: #fff;
}

.problems-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.problems-head {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.problems-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
}

.problems-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    text-align: left;
}

.check-mark {
    font-size: 1rem;
    line-height: 1.8;
}

.problems-foot {
    font-weight: 500;
}

/* ===============================
   Problems（Concerns） 本番用Fix
================================ */

/* セクション全体を中央寄せ */
#problems {
    text-align: center;
}

/* 中身の幅を固定 */
#problems .problems-content {
    max-width: 720px;
    margin: 0 auto;
}

/* 見出し */
#problems .problems-head {
    margin-bottom: 40px;
}

/* リスト全体 */
#problems .problems-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px;
    display: inline-block; /* ★ 本番でズレない */
    text-align: left;      /* 中身は左揃え */
}

/* 各行（チェック＋文章） */
#problems .problems-list li {
    display: flex !important;   /* ★ 強制 */
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

/* チェックマーク */
#problems .check-mark {
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* テキスト */
#problems .problems-list li p {
    margin: 0;
}

/* フッター文 */
#problems .problems-foot {
    margin-top: 40px;
    text-align: center;
}

/* --- About --- */
.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
    text-align: center;
}

.about-image {
    flex: 1;
    height: 400px;
    background-color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-family: var(--font-en);
    display: none;
}

/* --- Service --- */


/* --- Service --- */
.service-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* ★3カラム */
    gap: 40px;
}

.service-card {
    background: #fff;
    padding: 60px 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    text-align: center;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.price {
    display: block;
    margin-top: 20px;
    font-family: var(--font-en);
    font-size: 1.2rem;
    color: var(--accent-color);
}

/* --- Works --- */
.works-grid {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.work-item {
    width: 100%;
}

.work-image {
    width: 100%;
    height: 500px;
    background-color: #dcdcdc;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.work-item:hover .work-image {
    transform: scale(0.99);
}

.work-title {
    font-size: 1.2rem;
    font-weight: 500;
}

.work-tags {
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-top: 5px;
    font-family: var(--font-en);
}

/* --- FAQ Section --- */
#faq {
    background-color: var(--bg-color);
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 30px 0;
}

.faq-question {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.faq-answer {
    font-size: 0.9rem;
    color: var(--accent-color);
}

/* --- Contact --- */
.contact-area {
    text-align: center;
    background: #fff;
    padding: 80px 0;
}

.contact-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 50px;
    border: 1px solid var(--text-color);
    font-family: var(--font-en);
    font-size: 1rem;
    transition: all 0.3s;
}

.contact-btn:hover {
    background: var(--text-color);
    color: #fff;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 40px 0;
    font-size: 0.8rem;
    font-family: var(--font-en);
    color: var(--accent-color);
}

/* ====================================
   1. ベース（PC・共通）のスタイル
   ==================================== */
/* ヘッダー全体 */
header.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px; /* 余白を調整 */
    background-color: #fff;
    position: relative;
    z-index: 10;
}

/* ロゴ */
.logo a {
    text-decoration: none;
    color: #333;
    font-size: 1.5rem;
    font-weight: bold;
}

/* ナビゲーション（PCでは横並び） */
.global-nav ul {
    display: flex; /* 横並び */
    list-style: none;
    gap: 30px; /* メニュー間の余白 */
    margin: 0;
    padding: 0;
}

.global-nav a {
    text-decoration: none;
    color: #333;
}

/* ハンバーガーボタン（PCでは隠す） */
.hamburger {
    display: none; 
}


/* ====================================
   2. スマホ・タブレット版（768px以下）
   ここが重要です！
   ==================================== */
@media screen and (max-width: 768px) {

    /* --- ① ボタンを表示 --- */
    .hamburger {
        display: block; /* 表示する */
        position: relative;
        z-index: 9999; /* 最前面に */
        width: 30px;
        height: 24px;
        border: none;
        background: transparent;
        cursor: pointer;
    }

    /* ボタンの3本線 */
    .hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background: #333;
        position: absolute;
        left: 0;
        transition: 0.3s;
    }
    .hamburger span:nth-child(1) { top: 0; }
    .hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
    .hamburger span:nth-child(3) { bottom: 0; }


    /* --- ② メニュー（バナー）の設定 --- */
    .global-nav {
        /* 画面から浮かせて固定する */
        position: fixed; 
        top: 0;
        /* 通常時は画面の右側に隠す（-100%） */
        right: -100%; 
        
        width: 100%;      /* 横幅いっぱい */
        height: 100vh;    /* 縦幅いっぱい */
        background: #fff; /* 背景色（これがないと透けます） */
        
        /* 中身をど真ん中にする */
        display: flex;
        justify-content: center;
        align-items: center;
        
        transition: all 0.4s; /* スライドのアニメーション */
        z-index: 9000; /* コンテンツより上、ボタンより下 */
    }

    /* メニューの中身（縦並びにする） */
    .global-nav ul {
        flex-direction: column; /* 縦並び */
        text-align: center;
        gap: 40px;
    }


    /* --- ③ クリックされて active になった時の動き --- */
    
    /* メニューが出てくる */
    .global-nav.active {
        right: 0; /* 画面内に戻す */
    }

    /* ボタンが×になる */
    .hamburger.active span:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }
}

/* ====================================
   1. ベース（PC・共通）のスタイル
   ==================================== */

/* ★追加: これで横スクロールを強制的に禁止します */
body {
    overflow-x: hidden; /* 横にはみ出したものは表示しない */
    width: 100%;
}

header.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #fff;
    position: relative;
    z-index: 10;
}

.logo a {
    text-decoration: none;
    color: #333;
    font-size: 1.5rem;
    font-weight: bold;
}

.global-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.global-nav a {
    text-decoration: none;
    color: #333;
}

.hamburger {
    display: none; 
}


/* ====================================
   2. スマホ・タブレット版（768px以下）
   ==================================== */
@media screen and (max-width: 768px) {

    .hamburger {
        display: block;
        position: relative;
        z-index: 9999;
        width: 30px;
        height: 24px;
        border: none;
        background: transparent;
        cursor: pointer;
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background: #333;
        position: absolute;
        left: 0;
        transition: 0.3s;
    }
    .hamburger span:nth-child(1) { top: 0; }
    .hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
    .hamburger span:nth-child(3) { bottom: 0; }

    /* --- メニューの設定（修正箇所） --- */
    .global-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #fff;
        
        display: flex;
        justify-content: center;
        align-items: center;
        
        transition: all 0.4s;
        z-index: 9000;

        /* ★追加: 隠れている時は「完全に存在を消す」設定 */
        opacity: 0;         /* 透明にする */
        visibility: hidden; /* クリックやスクロールの判定もなくす */
    }

    .global-nav ul {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    /* --- アクティブ（表示中）の設定 --- */
    .global-nav.active {
        right: 0;
        
        /* ★追加: 出てくる時は「見えるようにする」 */
        opacity: 1;
        visibility: visible;
    }

    /* ボタンのアニメーション */
    .hamburger.active span:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }
}


