/*
Theme Name: ともトレ Theme
Theme URI: https://trainwithyou.com
Author: WEEZU
Author URI: https://trainwithyou.com
Description: ともトレ アプリ用のカスタムテーマ。利用規約、プライバシーポリシー、ヘルプページなどを提供します。
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trainwu
*/

/* 基本的なリセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f9f9f9;
}

/* コンテナ */
.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* ヘッダー */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 12px 0;
    margin-bottom: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ロゴ */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 60px;
    width: auto;
}

/* ハンバーガーメニュー */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #333;
    transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ナビゲーション - スライドインメニュー */
.site-navigation {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 280px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    padding: 80px 24px 24px;
    z-index: 1000;
    margin: 0;
}

.site-navigation.active {
    right: 0 !important;
}

/* メニュー開いたときの背景オーバーレイ */
body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.site-navigation ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.site-navigation li {
    border-bottom: 1px solid #eee;
}

.site-navigation a {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 16px 0;
    transition: color 0.3s;
}

.site-navigation a:hover {
    color: #6F61EF;
}

/* メインコンテンツ */
.site-main {
    background-color: #fff;
    padding: 40px;
    padding-top: 100px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    min-height: 60vh;
}

/* フッター */
.site-footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 30px 0;
    text-align: center;
    margin-top: 40px;
}

.site-footer a {
    color: #3498db;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .site-main {
        padding: 20px;
        padding-top: 80px;
    }
}
