/* --- Google Fonts 導入（星野リゾート風の美しい明朝体と読みやすいゴシック） --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700&family=Noto+Sans+JP:wght@300;500&display=swap');

/* --- 基本設定 --- */
body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.9;
    color: #333;
    margin: 0;
    background-color: #fff;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 24px; /* 余白を広めに取り、開放感を出す */
}

/* --- ヘッダー（スクロール追従型） --- */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

header h1 {
    font-size: 1.4rem;
    margin: 0;
}

header h1 a {
    text-decoration: none;
    color: #003366;
}

.sub-logo {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.75rem;
    display: block;
    color: #d35400; /* アクセントカラーのオレンジ */
    letter-spacing: 0.2em;
    margin-bottom: 4px;
}

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

nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
}

nav a:hover {
    color: #003366;
}

/* --- ヒーローエリア --- */
.hero {
    /* 背景画像の設定 */
    background-image: url('images/Mt.Tate.jpg'); 
    background-size: cover;
    background-position: center ;
    background-repeat: no-repeat;
    
    /* 高さと余白の調整 */
    /* 写真の比率に合わせて高さを出す（3/1は細長いパノラマ風。好みで2/1などに調整してください） */
    width: 100%;
    aspect-ratio: 3 / 1; 
    /* もし比率を使わない場合は、下のpaddingで上下の空き具合を調整します */
    padding: 60px 0px; 

    /* 中の文字を中央に集める設定（これで変な空白が消えます） */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    text-align: center;
    position: relative;
    border-bottom: 1px solid #eee;
    z-index: 1;
}

/* 文字を読みやすくするための半透明の膜（もし不要なら消してください） */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5); /* 白を40%被せる */
    z-index: -1;
}

.hero h2 {
    font-family: 'Noto Serif JP', serif;
    font-size: 2.6rem;
    color: #003366;
    margin-bottom: 30px;
    line-height: 1.5;
}

.hero p {
    font-size: 1.1rem;
    font-weight: 500;
    color: #000;
    max-width: 700px;
    margin: 0 auto;
}

/* --- セクションタイトル --- */
.section-title {
    font-family: 'Noto Serif JP', serif;
    text-align: center;
    font-size: 2.2rem;
    color: #003366;
    margin-bottom: 80px;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: #d35400;
    margin: 20px auto 0;
}


/* --- 事業内容カード（ポップな丸みと浮遊感） --- */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-item {
    background: #fff;
    border: 1px solid #f0f0f0;
    padding: 60px 40px;
    border-radius: 25px; /* 角を大きく丸めてポップに */
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    text-decoration: none;
    color: inherit;
}

.link-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    border-color: #003366;
}

.service-item h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.4rem;
    color: #003366;
    margin-bottom: 15px;
}

.service-tag {
    color: #d35400;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 25px;
    display: block;
    letter-spacing: 0.05em;
}

/* --- インフォボックス（詳細ページ用） --- */
.info-box {
    background: #f9fbff;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 50px;
}

/* --- ボタンデザイン（丸みのあるポップなスタイル） --- */
.btn, .back-btn, .more-btn {
    display: inline-block;
    padding: 18px 50px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    font-size: 1rem;
    cursor: pointer;
    border: none;
}

.btn {
    background-color: #003366;
    color: #fff !important;
}

.btn:hover {
    background-color: #d35400;
    transform: scale(1.05);
}

.back-btn, .more-btn {
    background-color: transparent;
    color: #003366;
    border: 2px solid #003366;
}

.back-btn:hover, .more-btn:hover {
    background-color: #003366;
    color: #fff !important;
}

/* --- 会社概要テーブル --- */
.company-table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
}

.company-table th, .company-table td {
    padding: 25px;
    border-bottom: 1px solid #eee;
}

.company-table th {
    font-family: 'Noto Serif JP', serif;
    color: #003366;
    width: 30%;
    text-align: left;
}

/* --- フッター --- */
footer {
    background: #003366;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

/* --- レスポンシブ設定：スマホで一段に収める調整 --- */
@media (max-width: 768px) {
    .container { 
        padding: 60px 20px; 
    }
    
    .hero h2 { 
        font-size: 1.6rem; /* スマホで見やすいサイズに微調整 */
    }

    header .header-flex {
        flex-direction: column; /* ロゴとメニューを上下に分ける */
        gap: 12px;
        padding: 10px 10px;
    }

    nav ul {
        display: flex;
        justify-content: center;
        flex-wrap: nowrap; /* 絶対に折り返さない */
        gap: 10px;         /* 項目間の隙間を詰め、一段に収める */
        padding: 0;
    }

    nav a {
        font-size: 0.75rem; /* 文字サイズを一段に収まる限界まで調整 */
        white-space: nowrap; /* 文字の途中での改行を禁止 */
        letter-spacing: -0.02em; /* 文字間隔をわずかに詰め、横幅を節約 */
    }
}
/* ボタンエリアの調整 */
    .page-actions {
        display: flex;
        flex-direction: column; /* スマホではボタンを縦に並べる */
        gap: 16px;              /* ボタンとボタンの上下の間隔をしっかり取る */
        align-items: center;    /* 中央に揃える */
    }

    /* ボタンが縦に並んだ際、横幅を少し広げて押しやすくする（お好みで） */
    .page-actions .btn, 
    .page-actions .back-btn {
        width: 80%;            /* スマホ画面の8割くらいの幅にする */
        margin-right: 0 !important; /* 横並び用の余白をリセット */
        padding: 14px 20px;     /* 上下の余白を調整 */
    }

    /* 前回の回答でお伝えしたナビゲーションの調整もここに含まれます */
    nav ul {
        gap: 10px;
    }
    nav a {
        font-size: 0.75rem;
    }

/* さらに小さい画面（iPhone SEなど）への対応 */
@media (max-width: 380px) {
    nav ul {
        gap: 6px;
    }
    nav a {
        font-size: 0.7rem;
    }
}

/* --- アニメーション設定 --- */
/* 動く前の状態（透明で、少し下に配置） */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.5s ease-out, transform 1.2s ease-out; /* ゆっくり動かすのがコツ */
}

/* 画面に入った時の状態（表示して、元の位置へ） */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ギャラリーのレイアウト */
.gallery-intro {
    text-align: center;
    padding: 100px 0 60px;
}
.gallery-intro h2 {
    font-family: 'Noto Serif JP', serif;
    font-size: 2rem;
    color: #003366;
    margin-bottom: 20px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}
.gallery-card {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
}
.gallery-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.gallery-card-content {
    padding: 20px;
}
.gallery-card-content h3 {
    font-family: 'Noto Serif JP', serif;
    margin-bottom: 10px;
}
/* --- Instagram誘導エリアのデザイン --- */
.instagram-banner {
    background: #fff6f0; /* ほんのり温かみのある、オレンジ系の極薄ピンク */
    padding: 60px 40px;
    border-radius: 25px; /* 他のカードと丸みを統一 */
    border: 1px dashed #e67e22; /* 優しい印象の点線枠 */
}

.insta-btn {
    display: inline-block;
    padding: 16px 45px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    font-size: 1rem;
    background-color: #d35400; /* ブランドのアクセントカラーのオレンジ */
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(211, 84, 0, 0.2);
}

.insta-btn:hover {
    background-color: #003366; /* ホバー時はブランドカラーの紺に美しく反転 */
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.2);
}

.insta-icon {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* スマホ表示のときの調整 */
@media (max-width: 768px) {
    .instagram-banner {
        padding: 40px 20px;
        margin: 60px 0 30px !important;
    }
    .instagram-banner p {
        font-size: 0.85rem;
    }
    .instagram-banner p:first-child {
        font-size: 1.1rem;
    }
    .insta-btn {
        width: 85%;
        padding: 14px 20px;
    }
}