/* 全体の基本スタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 100px; /* ヘッダーの高さ分だけスクロール位置を下げる（80pxはヘッダーの高さ） */
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding-top: 100px; /* ヘッダーの高さ分だけ余白を作る（80pxは例） */
    box-sizing: border-box;
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
}

a {
    text-decoration: none; /* リンクの下線を消す */
}

.title1 {
    font-size: 36px;
    font-family: 'Georgia', serif; /* フォント */
    /*color: transparent;  色を透明に */
    color: navy;
    text-align: center;
    padding: 20px 0;
    left: 30px;
    margin: 0;
    letter-spacing: 2px; /* 文字間隔 */
    text-transform: uppercase; /* 大文字 */
    position: relative;
    background: linear-gradient(45deg, #f39c12, #e74c3c); /* グラデーション */
    background-clip: text; /* 文字で背景をクリップ（Webkitブラウザのみ） */
    -webkit-background-clip: text; /* Webkit系ブラウザのため */
    letter-spacing: 8px; /* 少し文字間を広げる */
}

.title2 {
    font-size: 26px;
    font-family: 'Georgia', serif; /* フォント */
    /*color: transparent;  色を透明に */
    color: navy;
    text-align: center;
    padding: 20px 0;
    margin: 0;
    letter-spacing: 2px; /* 文字間隔 */
    text-transform: uppercase; /* 大文字 */
    position: relative;
    background: linear-gradient(45deg, #f39c12, #e74c3c); /* グラデーション */
    background-clip: text; /* 文字で背景をクリップ（Webkitブラウザのみ） */
    -webkit-background-clip: text; /* Webkit系ブラウザのため */
}

h2 {
    font-size: 26px; /* 文字の大きさを調整 */
    font-weight: bold; /* 太字に設定 */
    color: #333; /* 文字の色を濃いグレーに設定 */
    margin-bottom: 20px; /* 下の余白を20px */
    padding-bottom: 5px; /* アンダーラインとの隙間を調整 */
    border-bottom: 2px solid #000; /* 黒のアンダーライン */
    letter-spacing: 1px; /* 文字間を少し広げてモダンな印象を与える */
}



/* ヘッダー */
header {
    position: fixed;   /* ヘッダーを固定 */
    top: 0;            /* 上部に配置 */
    left: 0;           /* 左端に配置 */
    width: 100%;       /* 幅を100%に設定 */
    background-color: #fff; /* 背景色（白） */
    z-index: 1000;     /* 他の要素より上に表示 */

    background-color: #ffffff; /* 白色基調 */
    padding: 15px 50px;
    text-align: center;
    border-bottom: 1px solid #353434; /* 柔らかいボーダー */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* 軽い影をつけて立体感を追加 */
    display: flex;
    justify-content: space-between; /* 左右に要素を寄せる */
    align-items: center; /* 垂直方向に中央揃え */
}

header a {
    text-decoration: none;
}

header h1 {
    font-size: 36px;
    color: #333;
    letter-spacing: 2px; /* 少し文字を広げてモダンな印象 */
    margin: 0;
}


nav {
    margin-left: auto; /* ナビゲーションを右寄せ */
    padding-top: 20px;
}

nav ul {
    list-style: none;
    display: flex; /* 横並びにする */
    padding: 0;
}

nav ul li {
    margin: 0 20px; /* リストアイテム間の間隔 */
}

nav ul li a {
    text-decoration: none;
    color: #555; /* 少し暗い色で柔らかく */
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px; /* 少し文字間を広げる */
    transition: color 0.3s ease, transform 0.3s ease; /* ホバー時にアニメーションを追加 */
}

nav ul li a:hover {
    color: #0077cc; /* ホバー時に色を変更 */
    transform: translateY(-3px); /* 少し上に動かして浮かせる効果 */
}

/* メニューアイコン（ハンバーガーメニュー）のスタイル */
#menu-toggle {
    display: none;
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
}



/* トップ画像の背景設定 */
#top-image {
    position: relative;
    width: 100%;
    max-width: none;
    height: 700px;
    max-height: none;
    background: url('top_image.jpg') no-repeat center center;
    background-size: cover;
}

/* グラデーションでフェードアウト */
#top-image::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 100%;
    max-width: none;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, white 100%);
}

/* お知らせセクション */
#news {
    position: relative;
    padding-top: 40px;
    background: white;
    padding-bottom: 40px;
}

.news-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

.news-item img {
    width: 150px; /* 画像の幅を150pxに設定（調整可能） */
    height: auto; /* 高さは自動で調整 */
    margin-left: 20px;
    border-radius: 8px;
}

.news-text {
    flex: 1;
    text-align: left;
    padding-left: 20px; /* 画像との間に余白を追加 */
}

.news-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.news-description {
    font-size: 16px;
    margin-bottom: 10px;
    /* pタグであればデフォルトで改行されるので、特に指定しなくてもOK */
}

.news-item a {
    color: #0077cc;
    text-decoration: none;
    font-weight: bold;
}

.news-item a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .news-item {
        flex-direction: column; /* スマホ画面では縦並びに */
        align-items: flex-start; /* 左寄せ */
    }

    .news-item img {
        width: 50%; /* 画像を画面いっぱいに広げる */
        margin-left: 0; /* 画像とテキストの間隔をリセット */
        margin-bottom: 15px; /* 画像とテキストの間に余白を追加 */
    }
}

#top-image img {
    width: 100vw; /* 横幅いっぱい */
    height: 100%; /* 高さを固定 */
    object-fit: cover;
    display: block; /* 画像に余白が出る場合に有効 */
    
}

.slider {
    display: flex;
    width: 100%; /* スライダー自体を横幅100%に */
    transition: transform 0.5s ease;
}

.slider img {
    width: 100%; /* 横幅100%に */
    height: 400px; /* 高さを固定 */
    object-fit: cover;
    flex-shrink: 0; /* 画像の縮小を防止 */
}

#top-image .nav {
    position: absolute;
    top: 50%;
    width: 100%; /* 100vw から修正 */
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

#top-image .nav span {
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 10px;
    cursor: pointer;
}

/* セクション全体 */
section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 著作リスト */
.works-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3列表示 */
    gap: 20px;
    margin-top: 20px;
}

/* 著作の個別カード */
.works-item {
    border: 2px solid #ccc; /* 枠を追加 */
    border-radius: 8px;
    overflow: hidden;
    background-color: #fafafa;
    transition: transform 0.3s ease;
}

.works-item:hover {
    transform: translateY(-5px);
}

/* 画像サイズ調整 */
.works-item img {
    padding-top: 1vw;
    width: 100%;  /* 枠いっぱいにする */
    height: auto; /* 縦横比を維持 */
    max-height: 200px; /* 最大高さを設定（枠内に収める） */
    display: block; /* 余白を防ぐ */
    margin: 0 auto; /* 画像を中央配置 */
    object-fit: contain; /* 縦横比を維持しながら、全体を表示 */
    background-color: #f8f8f8; /* 背景色を設定（画像が小さいとき目立たなくするため） */
}

/* コンテンツスタイル */
.works-content {
    padding: 15px;
    text-align: center; /* テキストを中央揃え */
}

.works-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;

}
.works-title2{
    font-size: 15px;
    font-weight: bold;
    color: #333;
}

.works-description {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    
}

/* リンクスタイル */
.works-item a {
    display: inline-block;
    margin-top: 10px;
    color: #0077cc;
    text-decoration: none;
    font-weight: bold;
}

.works-item a:hover {
    text-decoration: underline;
}

.works-link {
    font-size: 12px;
    border: 2px solid #ccc; /* 枠を追加 */
    border-radius: 8px;
    overflow: hidden;
    background-color: #fafafa;
    transition: transform 0.3s ease;
    width: 40%; /* 幅を80%にする */
    margin: 0 auto; /* 上下は0、左右は自動調整（中央寄せ） */
}

/* スマホ・タブレット対応 */
@media (max-width: 768px) {
    .works-list {
        grid-template-columns: repeat(2, 1fr); /* 2列に変更 */
    }
}

@media (max-width: 480px) {
    .works-list {
        grid-template-columns: 1fr; /* 1列に変更 */
    }
}

/* セクションタイトル */
.section-title {
    font-size: 22px;
    font-weight: bold;
    color: gray;
    margin-bottom: 20px;
    border-bottom: none;
    padding-top: 20px;
    padding-bottom: 10px;
}

/* seriesタイトル */
.series-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-top: 20px;
    padding-top: 10px;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.series-description {
    font-size: 18px;
    color: #1e1e1e;
    margin-top: 10px;
}

/* カードスタイル */
.card {
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fafafa;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 15px;
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.card-description {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.card a {
    display: inline-block;
    margin-top: 10px;
    color: #0077cc;
    text-decoration: none;
    font-weight: bold;
}

.card a:hover {
    text-decoration: underline;
}

/* プロフィールセクション */
.profile {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-info {
    max-width: 600px;
}

/* その他リンクのスタイル */
#others {
    padding: 20px;
    /* background-color: #f1f1f1; */
}

#others .section-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.other-links {
    list-style: none; /* リストの箇条書きの記号を非表示 */
    padding-left: 0;   /* インデントをなくす */
}

.other-links li {
    margin-bottom: 15px; /* リストの項目間にスペースを追加 */
    font-size: 18px;
}

.other-links a {
    text-decoration: none; /* リンクの下線を消す */
    color: #0077cc; /* リンク色 */
    font-weight: bold; /* リンクテキストを太字に */
}

.other-links a:hover {
    text-decoration: underline; /* ホバー時に下線を追加 */
    color: #005a8d; /* ホバー時にリンク色を変更 */
}

/* 問い合わせセクション */
#contact {
    background-color: #f1f1f1;
    padding: 20px;
    
}

#contact a {
    color: #0077cc; /* 統一したリンクの色 */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease; /* 色変更のトランジション */
}

#contact a:hover {
    color: #005fa3; /* ホバー時の色 */
    text-decoration: underline; /* ホバー時に下線を表示 */
}



/* フッター */
footer {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}

.social-icon {
    width: 16px; /* 必要に応じて調整 */
    height: 16px;
    vertical-align: middle;
    margin-right: 5px;
}

/* メディアクエリで768px以下の画面に適用 */
@media (max-width: 768px) {
    /* メニューのスタイル */

    #menu {
        display: none; /* 初期状態では非表示 */
        position: fixed;
        top: 0;
        right: 0;
        width: 250px;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.9);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
        z-index: 1000;
        padding-top: 100px;
        visibility: hidden;
        opacity: 0;
    }
    #menu.show {
        display: block; /* メニューを開いたら表示 */
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
    }
    #menu-toggle {
        display: block;
        font-size: 30px;
        cursor: pointer;
        position: absolute;
        top: 20px;
        right: 20px;
        padding-top: 20px;
        z-index: 1100;
    }

    /* メニューのテキストが見えない場合のため、色を明示 */
    #menu ul {
        list-style: none;
        padding: 20px;
    }

    #menu li {
        margin: 15px 0;
        font-size: 18px;
        text-align: center;
    }

    #menu li a {
        text-decoration: none;
        color: #333; /* 色を明示 */
        font-weight: bold;
        display: block; /* クリックしやすくするため */
    }

    #menu li a:hover {
        color: #0077cc;
    }
}


@media screen and (orientation: portrait) {
    
    header {
        margin-top: 0;
        padding-top: 0;

        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        z-index: 1000;
        padding: 10px 20px; /* 縦の余白を縮小 */
        text-align: left;    /* 左寄せに変更 */
        border-bottom: 1px solid #353434;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        display: flex;
        justify-content: space-between; /* タイトルとメニューを左右に配置 */
        align-items: center;
    }

    header h1 {
        font-size: 28px;
        color: #333;
        letter-spacing: 2px;
        margin: 0;
        padding-left: 0px; /* 左の余白を最小限に */
    }

    .grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }

    .title1 {
        font-size: 24px;
        letter-spacing: 4px;
        padding: 0;
        padding-top: 30px;
        padding-bottom: 23px;
        margin: 0 auto;
        text-align: center;
        left: 5px;
    }

    .title2 {
        font-size: 20px;
        letter-spacing: 2px;
        text-align: center;
    }

    #top-image {
        position: relative;
        width: 100%;
        max-width: none;
        height: 250px;
        max-height: none;
        background: url('top_image.jpg') no-repeat center center;
        background-size: cover;
    }

    nav {
        margin: 0;
        padding-top: 0;
    }

    nav ul {
        list-style: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 5px 0;
    }

    nav ul li a {
        text-decoration: none;
        color: #555;
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 1px;
        transition: color 0.3s ease, transform 0.3s ease;
    }

    nav ul li a:hover {
        color: #0077cc;
        transform: translateY(-3px);
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 50px;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.open {
        display: block;
    }

    #menu-toggle {
        padding-top: 10px;
        display: block;
        font-size: 30px;
        cursor: pointer;
        position: static; /* position: absolute は不要 */
        margin-left: auto;
    }

    .container {
        padding: 0 10px;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}

