/* style.css の中身をこれに差し替え */

/* --- 基本設定とメタリック背景 --- */
body {
    font-family: 'Noto Sans JP', 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
    /* 灰色メタリックなグラデーション背景 */
    background: linear-gradient(135deg, #bdc3c7 0%, #ecf0f1 50%, #bdc3c7 100%);
    background-attachment: fixed; /* 背景を固定 */
    overflow-x: hidden; /* 横はみ出し防止 */
}

/* --- ヘッダー（白） --- */
header {
    background-color: #ffffff;
    padding: 15px 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 1.4rem;
    font-weight: 700;
}

/* --- コンテナと共通設定 --- */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    letter-spacing: 0.1em;
    font-weight: 700;
}

/* --- ポートフォリオ（Swiper） --- */
.swiper {
    width: 100%;
    /* ページネーション（点々）用の余白を強制的に確保 */
    padding-bottom: 60px !important;
}

.swiper-wrapper {
    /* 崩れ防止の保険 */
    display: flex !important;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    /* スライド自体の高さを自動調整 */
    height: auto !important; 
}

.swiper-slide img {
    /* 画像を縦長（ポトレサイズ）にする設定 */
    width: 100%;
    /* ここで画像の高さを固定して、縦長に統一します */
    height: 500px; 
    /* 画像が縦長枠に合わせて、綺麗に切り抜かれて表示されます */
    object-fit: cover; 
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* スライダーの矢印の色をメタリック背景に合わせる */
.swiper-button-next,
.swiper-button-prev {
    color: #555 !important;
}

/* --- SNSセクション --- */
#sns {
    padding: 60px 20px;
    text-align: center;
}

.sns-links {
    display: flex;
    justify-content: center;
    gap: 50px; /* ロゴ同士の隙間 */
}

.sns-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
}

/* 【重要】SNSロゴのサイズを小さく固定 */
.sns-item img {
    width: 60px;  /* ここでサイズを調整できます */
    height: 60px;
    object-fit: contain; /* 画像を潰さずに枠内に収める */
    margin-bottom: 10px;
    transition: transform 0.3s;
}

.sns-item:hover img {
    transform: scale(1.1); /* ホバー時に少し大きく */
}

/* --- フッター --- */
footer {
    text-align: center;
    padding: 30px;
    background-color: #fff;
    font-size: 0.9rem;
}
/* ヘッダー全体の設定 */
header {
    background-color: #ffffff; /* 白色 */
    padding: 15px 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between; /* ロゴとメニューを両端に */
    align-items: center; /* 上下中央揃え */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
}

/* メニューを横並びにする */
.menu {
    display: flex; /* これで横並びになります */
    list-style: none; /* これで黒丸（・）が消えます */
    margin: 0;
    padding: 0;
}

.menu li {
    margin-left: 30px; /* メニュー同士の間隔 */
}

.menu a {
    text-decoration: none; /* 下線を消す */
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.menu a:hover {
    color: #7f8c8d; /* ホバー時に少し色を変える */
}

/* ハンバーガーメニュー（スマホ用）は一旦非表示にするか、PCでは隠す設定 */
/* --- ハンバーガーボタンのデザイン --- */
.hamburger {
    display: none; /* 基本は隠す */
    width: 30px;
    height: 25px;
    position: relative;
    cursor: pointer;
    z-index: 2000;
}

.hamburger span {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #333;
    left: 0;
    transition: all 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; }

/* ボタンが押された時（active）の形（×印にする） */
.hamburger.active span:nth-child(1) {
    top: 50%;
    transform: rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    top: 50%;
    transform: rotate(-45deg);
}

/* 画像ブロックの設定 */
.about-image {
    flex-shrink: 0;        /* 画像が潰れないように固定 */
}

.about-image img {
    width: 200px;          /* 画像の横幅（お好みで調整してください） */
    height: 200px;         /* 正方形にしたい場合は指定 */
    object-fit: contain;   /* 画像を潰さずに枠内に収める */
    border-radius: 10px;   /* 角を少し丸める場合 */
}

/* テキストブロックの設定 */
.about-text {
    text-align: left;      /* 文章は左揃え */
    max-width: 500px;      /* 文章が広がりすぎないように制限 */
}

.about-text h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

/* CONTACTセクション全体を制御 */
.about-contact {
    width: 100%;
    text-align: center; /* 中の要素をすべて中央寄せにする */
    padding: 60px 0;    /* 上下の余白（お好みで） */
}

/* メアドのテキスト部分 */
.about-contact .section-text {
    display: block;     /* ブロック要素にして中央寄せを確実に効かせる */
    margin: 0 auto;    /* 左右の余白を自動にして中央へ */
}

/* ABOUTセクション全体のレイアウト */
.about-content {
    display: flex;           /* 横並びにする */
    align-items: center;     /* 上下中央を揃える */
    justify-content: center; /* 全体を中央に寄せる */
    gap: 50px;              /* 画像とテキストの間の距離 */
    margin-top: 30px;
}

/* 画像ブロックの設定 */
.about-image {
    flex-shrink: 0;          /* 画像が圧縮されないように固定 */
}

.about-image img {
    width: 200px;            /* アイコンの横幅を固定 */
    height: 200px;           /* 縦横同じにして正方形に */
    object-fit: contain;     /* 画像を枠内に綺麗に収める */
    border-radius: 10px;     /* お好みで角を少し丸く */
}

/* テキストブロックの設定 */
.about-text {
    text-align: left;        /* 文言は左揃え */
    max-width: 500px;        /* 文章が横に広がりすぎないように制限 */
}

.about-text h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* キャラクターセクション全体 */
.character-section {
    padding: 80px 0;
    background-color: rgba(255, 255, 255, 0.05); /* ほんのり背景を変える */
}

.char-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    justify-content: center;
    margin-top: 40px;
}

.char-image img {
    width: 250px;
    height: auto;
    border-radius: 15px;
    border: 3px solid #fff; /* 白の縁取り */
    box-shadow: 0 0 15px rgba(230, 0, 0, 0.3); /* 赤い光の影 */
}

.char-info {
    text-align: left;
    max-width: 600px;
}

.char-header h3 {
    font-size: 2rem;
    color: #e60000; /* シホウカラーの赤 */
    margin-bottom: 5px;
}

.char-header h3 span {
    font-size: 1rem;
    color: #666;
}

.char-cv {
    font-size: 0.9rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    display: inline-block;
    padding-bottom: 5px;
}

/* プロフィールテーブル */
.char-profile {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.char-profile th, .char-profile td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.char-profile th {
    width: 100px;
    color: #e60000;
    font-weight: bold;
}

.char-story {
    background: #fff;
    padding: 20px;
    border-left: 5px solid #e60000;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* 利用規約（開閉式） */
.terms-container details {
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
}

.terms-container summary {
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
    background: #333;
    color: #fff;
    list-style: none;
}

.terms-container summary:hover {
    background: #e60000;
}

.terms-content {
    padding: 20px;
    font-size: 0.85rem;
    max-height: 300px;
    overflow-y: auto; /* 長い場合はスクロール */
}

.terms-content h4 { margin-bottom: 10px; border-bottom: 1px solid #ccc; }
.terms-content h5 { margin-top: 15px; color: #e60000; }

/* ダウンロードボタンのエリア */
.char-download {
    margin: 30px 0;
    text-align: center;
}

.download-btn {
    display: inline-block;
    background-color: #e60000; /* シホウカラーの赤 */
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 0, 0, 0.3);
}

.download-btn:hover {
    background-color: #b30000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 0, 0, 0.4);
    color: #fff;
}

.download-info {
    font-size: 0.8rem;
    color: #666;
    margin-top: 10px;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .char-content {
        flex-direction: column;
        align-items: center;
    }
    .char-image img { width: 200px; }
}

/* --- スマホ表示の時は縦並びにする設定 --- */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column; /* 縦並びに切り替え */
        gap: 20px;
        text-align: center;
    }
    
    .about-text {
        text-align: center;     /* スマホでは文章も中央揃え */
    }

    .about-image img {
        width: 150px;           /* スマホでは画像を少し小さく */
        height: auto;
    }
}

/* 利用規約の表示エリア */
.terms-container {
    background: rgba(255, 255, 255, 0.5); /* ほんのり白背景 */
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 20px;
    padding: 20px;
}

.terms-content h4 {
    margin-bottom: 15px;
    border-bottom: 2px solid #e60000; /* シホウカラーの赤 */
    display: inline-block;
    padding-bottom: 5px;
}

.terms-content h5 {
    margin-top: 15px;
    margin-bottom: 5px;
    color: #e60000;
    font-weight: bold;
}

.terms-content ul {
    margin-bottom: 15px;
    padding-left: 20px;
    list-style-type: disc;
}

.terms-content li {
    font-size: 0.9rem;
    line-height: 1.6;
}

.terms-footer {
    margin-top: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    color: #333;
    text-align: right;
}

/* スマホ表示のときは縦並びに戻す */

/* --- スマホ用のレイアウト設定 (768px以下) --- */
@media (max-width: 768px) {
    .hamburger {
        display: block; /* スマホでは表示 */
    }

    .navi {
        position: fixed;
        top: 0;
        right: -100%; /* 最初は画面の外に隠す */
        width: 80%; /* メニューの幅 */
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        z-index: 1500;
        transition: all 0.5s;
        padding-top: 100px;
    }

    /* メニューが開いた時（active） */
    .navi.active {
        right: 0;
    }

    .menu {
        flex-direction: column; /* 縦並びにする */
        align-items: center;
    }

    .menu li {
        margin: 20px 0;
        margin-left: 0; /* PC用の余白を消す */
    }
    
    .menu a {
        font-size: 1.2rem;
    }

      .about-content {
        flex-direction: column; /* 縦並びにする */
        text-align: center;
    }
    
    .about-text {
        text-align: center;    /* スマホでは文章も中央揃え */
    }
    
    .about-image img {
        width: 150px;          /* スマホでは少し小さく */
        height: auto;
    }
}

@media (max-width: 768px) {
    .download-btn {
        width: 100%; /* スマホでは横幅いっぱいに */
        padding: 12px 20px;
        font-size: 1rem;
    }
}