/* =========================================================
   しおやソフト 共通スタイル
   common.css
   ========================================================= */


/* =========================================================
   基本設定・デザイン変数
   ========================================================= */

@font-face {
    font-family: 'SetoFont';
    src: url('/font/setofont.ttf') format('truetype');
    font-display: swap;
}

:root {
    /* メインカラー */
    --base-brown: #432517;
    --base-beige: #ECDBBF;

    /* アクセントカラー */
    --accent-orange: #ff9800;
    --accent-blue: #4facfe;
    --accent-pink: #e91e63;

    /* 補助カラー */
    --dark-gray: #2c3e50;
    --light-bg: #fdfbf7;
    --glass-white: rgba(255, 255, 255, 0.95);
}


/* =========================================================
   リセット
   ========================================================= */

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


/* =========================================================
   HTML / Body
   ========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        'SetoFont',
        "Helvetica Neue",
        Arial,
        "Hiragino Kaku Gothic ProN",
        "Hiragino Sans",
        "Meiryo",
        sans-serif;

    color: var(--base-brown);
    background-color: var(--base-beige);

    /* --- 星・幾何学パターンの背景とアニメーション（追加） --- */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='%23432517' opacity='0.08'%3E%3Cpath d='M25,20 L30,30 L20,30 Z' /%3E%3Ccircle cx='85' cy='35' r='4' /%3E%3Crect x='130' y='20' width='6' height='6' transform='rotate(25 133 23)' /%3E%3Cpolygon points='45,85 48,93 56,93 50,98 52,106 45,101 38,106 40,98 34,93 42,93' /%3E%3Ccircle cx='120' cy='95' r='3' /%3E%3Crect x='20' y='130' width='5' height='5' /%3E%3Cpath d='M80,125 L88,140 L72,140 Z' transform='rotate(15 80 132)' /%3E%3Cpolygon points='140,135 142,140 147,140 143,143 145,148 140,145 135,148 137,143 133,140 138,140' /%3E%3C/g%3E%3C/svg%3E");
    background-size: 160px 160px;
    animation: bgMove 25s linear infinite;

    line-height: 1.8;

    overflow-x: hidden;
    width: 100%;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 140px 5% 100px;
}
/* =========================================================
   共通リンク
   ========================================================= */

a {
    text-decoration: none;
    color: inherit;

    transition:
        color 0.3s ease,
        background-color 0.3s ease,
        opacity 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* =========================================================
   共通アニメーション
   ========================================================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bgMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: -160px 160px;
    }
}
/* =========================================================
   ヘッダー
   ========================================================= */

header {
    background: rgba(67, 37, 23, 0.95);
    color: var(--base-beige);

    padding: 15px 5%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    position: fixed;
    top: 0;
    width: 100%;

    z-index: 1000;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


/* =========================================================
   ヘッダー左側
   ========================================================= */

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}


/* =========================================================
   ロゴ
   ========================================================= */

.logo {
    display: block;
}

.logo-img {
    height: 35px;
    display: block;
    object-fit: contain;
}


/* =========================================================
   PCナビゲーション
   ========================================================= */

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    margin-left: 20px;
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--accent-orange);
}

.page-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--base-brown);

    margin-bottom: 60px;

    position: relative;

    font-family: 'SetoFont', sans-serif;
    letter-spacing: 2px;
}

.page-title::after {
    content: '';

    display: block;

    width: 60px;
    height: 4px;

    background-color: var(--accent-orange);

    margin: 15px auto 0;

    border-radius: 2px;
}
/* =========================================================
   ハンバーガーメニュー
   ========================================================= */

.hamburger {
    display: none;

    flex-direction: column;
    gap: 6px;

    cursor: pointer;

    z-index: 1002;
    position: relative;
}

.hamburger span {
    display: block;

    width: 30px;
    height: 3px;

    background-color: var(--base-beige);

    transition: all 0.3s ease;

    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


/* =========================================================
   スマホ用スライドメニュー
   ========================================================= */

.mobile-menu {
    position: fixed;

    top: 0;
    left: -100%;

    width: 260px;
    height: 100vh;

    background: var(--base-brown);

    z-index: 1001;

    display: flex;
    flex-direction: column;

    padding-top: 80px;

    transition:
        left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);

    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu a {
    color: var(--base-beige);

    padding: 18px 25px;

    font-size: 1.1rem;
    font-weight: bold;

    border-bottom:
        1px solid rgba(236, 219, 191, 0.1);
}

.mobile-menu a:hover {
    color: var(--accent-orange);
}


/* =========================================================
   モバイルメニュー オーバーレイ
   ========================================================= */

.menu-overlay {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.7);

    z-index: 1000;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.4s ease,
        visibility 0.4s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   フッター
   ========================================================= */

footer {
    background-color: var(--base-brown);
    color: var(--base-beige);

    text-align: center;

    padding: 60px 20px;

    margin-top: auto;

    border-top: 5px solid var(--accent-orange);

    width: 100%;
}

.footer-links {
    margin-bottom: 30px;

    display: flex;
    flex-wrap: wrap;

    justify-content: center;

    gap: 30px;
}

.footer-links a {
    font-weight: bold;
}

.footer-links a:hover {
    color: var(--accent-orange);
}

.footer-email {
    margin: 15px 0 5px;

    font-weight: bold;

    color: var(--accent-orange);

    font-size: 1.1rem;
}


/* =========================================================
   共通レスポンシブ
   ========================================================= */
@media (max-width: 768px) {

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    main {
        padding: 120px 5% 60px;
    }

    .page-title {
        font-size: 2rem;
        margin-bottom: 50px;
    }
}
