/* --- せのびゴシックの読み込み設定 --- */
@font-face {
  font-family: 'Senobi Gothic Regular';
  src: url('../fonts/Senobi-Gothic-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Senobi Gothic Regular';
  src: url('../fonts/Senobi-Gothic-Bold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* --- 基本設定 --- */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #fff; 
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
}

/* --- 全体を囲むコンテナ --- */
.hero-container {
    text-align: center;
    padding-top: 80px; 
}

/* --- 「離れ島出版」のタイトル --- */
.site-title {
    font-family: 'Senobi Gothic Regular', sans-serif; 
    font-size: 64px;
    font-weight: normal;
    color: #333;
    margin: 0 0 -10px 0;
    padding: 0 20px;
}

.site-subtitle {
    font-size: 18px;
    color: #555;
    letter-spacing: 0.2em;
    margin: 0 0 30px 0;
}

/* --- ロゴ --- */
.logo-area {
    margin-bottom: 30px;
    padding: 0 20px;
}
.main-logo {
    max-width: 400px;
    height: auto;
}

/* --- アニメーションのスタイル --- */
.scrolling-text-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    position: relative;
    height: 60px;
}
.scrolling-parent {
    position: absolute;
    white-space: nowrap;
    animation-name: scroll-left-to-right-final;
    animation-duration: 30s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
.scrolling-child {
    font-family: 'Senobi Gothic Regular', sans-serif;
    font-size: 24px;
    color: #444;
    display: inline-block;
    animation-name: vibrate;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}
.child1 {}
.parent2 {
    animation-delay: -3s;
}
.child2 {
    animation-name: vibrate-lower;
    animation-delay: 0.5s; 
}
.scrolling-child p {
    margin: 0;
}

/* --- ハンバーガーメニューのスタイル --- */
.hamburger-menu {
    position: fixed;
    top: 40px;
    right: 40px;
    width: 36px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 100;
}
.hamburger-menu span {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #333;
    transition: all 0.3s;
}
.hamburger-menu span:nth-of-type(1) {
    top: 0;
}
.hamburger-menu span:nth-of-type(2) {
    top: 50%;
    transform: translateY(-50%);
}
.hamburger-menu span:nth-of-type(3) {
    bottom: 0;
}

/* --- Aboutセクションのスタイル --- */
.about-section {
    padding: 20px 40px;
    min-height: 150px; 
}
.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
}
.about-description {
    position: relative; 
    margin: 0;
    line-height: 1.8;
    text-align: center;
}
.font-senobi {
    font-family: 'Senobi Gothic Regular', sans-serif;
    font-size: 2em;
    white-space: nowrap;
}
.font-noto {
    font-family: 'Noto Sans JP', sans-serif;
}
.about-button {
    position: absolute;
    top: 50%;
    right: -40%;
    margin-right: -0px;
    transform: translateY(-50%);
}

/* style.css の中の Aboutセクションのスタイル */

.about-button img {
    width: 100px;
    height: auto;
    display: block;
    /* ↓↓【追加】この1行で、アニメーションが滑らかになります ↓↓ */
    transition: transform 0.3s ease-in-out;
}

/* ↓↓【追加】ボタンにカーソルが乗ったら、画像を1.1倍に拡大する ↓↓ */
.about-button:hover img {
    transform: scale(1.1);
}


/* --- NEWSセクションのスタイル --- */
.news-section {
    padding: 60px 40px;
}

/* Flexboxを使って画像とテキストを横並びにするためのコンテナ */
.news-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 70px;
    max-width: 900px;
    margin: 0 auto;
}

/* 画像のスタイル */
.news-button-img {
    width: 100px;
    height: auto;
    flex-shrink: 0;
}

/* テキストを囲むブロックのスタイル */
.news-text-block {
    transform: translateX(-150px);
    /* ↓↓【追加】ボタンを配置する基準点にします */
    position: relative;
    /* ↓↓【追加】ボタンを置くためのスペースを左側に確保します */
    padding-left: 150px; 
}

/* NEWSボタン画像のスタイルを、テキストブロック基準の絶対配置に変更 */
/* .news-button-img の指定は一度削除し、こちらに置き換えます */
.news-text-block .news-button-img {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
}


/* テキストのスタイル */
.news-text {
    margin: 0;
    font-size: 20px;
    padding-bottom: 15px;
    text-align: left;
    white-space: nowrap;
}
.news-text:last-child {
    padding-bottom: 0;
}

/* --- MEMBERセクションのスタイル --- */
.member-section {
    padding: 40px 40px; /* セクションの内側の上下余白 */
    max-width: 1200px;
    margin: 0 auto; /* 左右の余白をautoにして、ブロック全体を中央揃え */
    /* ↓↓ この行で、上のNEWSセクションとの距離を調整します ↓↓ */
    margin-top: -50px; 
}

.member-section .section-title {
    font-family: 'Senobi Gothic Regular', sans-serif;
    font-size: 32px;
    font-weight: normal;
    text-align: center;
    margin-bottom: 80px;
}

.member-section .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: #e60012;
    margin: 8px auto 0;
}

.member-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 90px;
}
.member-card-link:last-child {
    margin-bottom: 0;
}

.member-card {
    display: flex;
    justify-content: center;
}

.member-card-image {
    width: 400px;
    max-width: 100%; 
}

.member-card-image img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease-in-out;
}

.member-card-link:hover .member-card-image img {
    transform: scale(1.05);
}

/* --- フッターのスタイル --- */
.site-footer {
    position: relative;
    background-color: #1a1a1a;
    color: #fff;
    padding: 200px 80px;
    text-align: center;
    margin-top: 150px;
}

.footer-title {
    font-family: 'Senobi Gothic Regular', sans-serif;
    font-size: 40px;
    letter-spacing: 0.1em;
    margin: 0;
    margin-bottom: 25px; 
}

.footer-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.footer-contact a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.footer-mail-icon {
    width: 24px;
    height: auto;
}

.footer-note-icon {
    position: absolute;
    bottom: 60px;
    left: 60px;
}

.footer-note-icon img {
    width: 110px;
    height: auto;
    display: block;
}

.footer-logo {
    position: absolute;
    bottom: 60px;
    right: 60px;
    width: 90px;
}

/* ↓↓【修正】コピーライトのスタイルを、正しい場所に独立させました ↓↓ */
.footer-copyright {
    position: absolute;
    bottom: 80px; /* ← ここの数値を変更します */
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #a0a0a0;
    margin: 0;
}

/* --- ナビゲーションメニューとオーバーレイのスタイル --- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 50;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}
.nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background-color: #fff;
    z-index: 60;
    padding: 100px 40px;
    box-sizing: border-box;
    transform: translateX(100%);
    transition: transform 0.5s;
}
.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.nav-menu li {
    margin-bottom: 25px;
}
/* style.css の中のナビゲーションメニューのスタイル */

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    /* ↓↓【追加】アニメーションを滑らかにするための設定 ↓↓ */
    display: inline-block; /* transformを適用するために追加 */
    transition: transform 0.3s ease-in-out;
}

/* ↓↓【追加】メニュー項目にカーソルが乗ったら、1.1倍に拡大する ↓↓ */
.nav-menu a:hover {
    transform: scale(1.1);
}
/* --- メニューが開いている時のスタイル --- */
body.menu-open .overlay {
    visibility: visible;
    opacity: 1;
}
body.menu-open .nav-menu {
    transform: translateX(0);
}
body.menu-open .hamburger-menu span:nth-of-type(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
body.menu-open .hamburger-menu span:nth-of-type(2) {
    opacity: 0;
}
body.menu-open .hamburger-menu span:nth-of-type(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}


/* --- アニメーションのキーフレーム定義 --- */
@keyframes scroll-left-to-right-final {
  from {
    transform: translateX(-250%); 
  }
  to {
    transform: translateX(100vw);
  }
}
@keyframes vibrate {
  0%   { transform: translateY(-1em); }
  50%  { transform: translateY(calc(-1em - 10px)); }
  100% { transform: translateY(-1em); }
}
@keyframes vibrate-lower {
  0%   { transform: translateY(0.5em); }
  50%  { transform: translateY(calc(0.5em - 10px)); }
  100% { transform: translateY(0.5em); }
}

/* =============================================== */
/* --- レスポンシブ対応 --- */
/* =============================================== */


/* --- タブレット用のスタイル --- */
/* 画面幅が820px以下になった場合に適用 */
@media (max-width: 820px) {
    
    /* --- 全体 --- */
    .site-title {
        font-size: 48px; /* タイトルの文字サイズを少し小さく */
    }
  

    /* --- Aboutセクション --- */
   .about-button {
    /* position: absolute; は維持 */
    top: auto; /* 上からの配置指定をリセット */
    right: 0; /* 右端に配置 */
    bottom: -35px; /* 下端に配置 */
    transform: none; /* 元のtransformをリセット */
}

 /* --- NEWSセクション --- */
    .news-content {
        flex-direction: column;
        gap: 30px;
        /* ↓↓ 一括での中央揃え指定を解除します */
        /* align-items: center; */
    }
    
    .news-text-block {
        width: 100%;
        max-width: 450px;
        /* ↓↓【追加】テキストブロックの左右位置を調整 */
        transform: translateX(-80px);
    }

    .news-button-img {
        width: 100px;
        /* ↓↓【追加】ボタン画像の左右位置を調整 */
        transform: translateX(9px);
    }

    .news-text {
        font-size: 20px;
        text-align: left;
    }


    
    /* --- MEMBERセクション --- */
    .member-section {
        padding: 60px 20px;
        margin-top: 0px;
    }
    .member-card-image img {
        width: 350px;
    }

    /* --- フッター --- */
    .site-footer {
        padding: 150px 40px;
        margin-top: 100px;
    }
    .footer-title {
        font-size: 32px;
    }

}


/* --- スマートフォン用のスタイル --- */
/* 画面幅が450px以下になった場合に適用 */
@media (max-width: 450px) {

    /* ページ全体の横スクロールを禁止 */
    html, body {
    overflow-x: hidden;
}

    /* --- 全体 --- */
    .hero-container {
        padding-top: 60px;
    }
    .hamburger-menu {
        top: 20px;
        right: 20px;
    }

    /* --- アニメーション --- */
    .scrolling-text-wrapper {
        display: none; /* アニメーションを非表示に */
    }

    /* --- Aboutセクション --- */
    .about-section {
        padding: 40px 20px;
        min-height: auto;
    }
    .about-content {
        flex-direction: column;
        gap: 30px;
    }
    .about-description {
        position: relative;
        transform: none;
        white-space: normal;
        padding-bottom: 60px;
        font-size: 14px;
    }
    .font-senobi {
        font-size: 1.5em;
    }
    .about-button {
        position: absolute;
        top: auto;
        right: 0;
        bottom: 0;
   
        transform: none;
        margin-top: 0;
    }
    .about-button img {
        width: 80px;
    }

  /* --- NEWSセクション --- */
    .news-section {
        padding: 60px 20px;
    }
    .news-content {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start; /* ← 中央揃えを解除し、左揃えを基準にします */
    }
    .news-text-block {
        width: 100%;
        max-width: 100%;
        /* ↓↓【追加】テキストブロックの左右位置を調整 */
        transform: translateX(-110px);
    }
    .news-button-img {
        width: 90px;
        /* ↓↓【追加】ボタン画像の左右位置を調整 */
        transform: translateX(155px);
    }
    .news-text {
        white-space: normal;
        text-align: left;
        font-size: 14px;
    }
    
    /* --- MEMBERセクション --- */
    .member-section {
        padding: 60px 20px;
        margin-top: -30px;
    }
    .member-card-link {
        margin-bottom: 60px;
    }
    .member-card-image {
        width: 100%;
    }
    .member-card-image img {
        width: 100%;
        max-width: 300px;
    }

    /* --- フッター --- */
    .site-footer {
        padding: 100px 20px;
        margin-top: 100px;
    }
    .footer-title {
        font-size: 24px;
    }
    .footer-contact a {
        font-size: 14px;
    }
    .footer-note-icon {
        left: 20px;
        bottom: 20px;
    }
    .footer-note-icon img {
        width: 80px;
    }
    .footer-logo {
        right: 20px;
        bottom: 20px;
        width: 70px;
    }

    .footer-copyright {
    position: absolute;
    bottom: 30px; /* ← ここの数値を変更します */
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #a0a0a0;
    margin: 0;
 }
}


/* --- 小さいスマートフォン用のスタイル --- */
/* 画面幅が450px以下になった場合に適用 */


@media (max-width: 400px) {

    /* ページ全体の横スクロールを禁止 */
    html, body {
    overflow-x: hidden;
}

    /* --- 全体 --- */
    .hero-container {
        padding-top: 60px;
    }
    .hamburger-menu {
        top: 20px;
        right: 20px;
    }

    /* --- アニメーション --- */
    .scrolling-text-wrapper {
        display: none; /* アニメーションを非表示に */
    }

    /* --- Aboutセクション --- */
    .about-section {
        padding: 40px 20px;
        min-height: auto;
    }
    .about-content {
        flex-direction: column;
        gap: 30px;
    }
    .about-description {
        position: relative;
        transform: none;
        white-space: normal;
        padding-bottom: 60px;
        font-size: 14px;
    }
    .font-senobi {
        font-size: 1.5em;
    }
    .about-button {
        position: absolute;
        top: auto;
        right: 0;
        bottom: 0;
   
        transform: none;
        margin-top: 0;
    }
    .about-button img {
        width: 80px;
    }

  /* --- NEWSセクション --- */
    .news-section {
        padding: 60px 20px;
    }
    .news-content {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start; /* ← 中央揃えを解除し、左揃えを基準にします */
    }
    .news-text-block {
        width: 100%;
        max-width: 100%;
        /* ↓↓【追加】テキストブロックの左右位置を調整 */
        transform: translateX(-135px);
    }
    .news-button-img {
        width: 80px;
        /* ↓↓【追加】ボタン画像の左右位置を調整 */
        transform: translateX(135px);
    }
    .news-text {
        white-space: normal;
        text-align: left;
        font-size: 14px;
    }
    
    /* --- MEMBERセクション --- */
    .member-section {
        padding: 60px 20px;
        margin-top: -30px;
    }
    .member-card-link {
        margin-bottom: 60px;
    }
    .member-card-image {
        width: 100%;
    }
    .member-card-image img {
        width: 100%;
        max-width: 300px;
    }

    /* --- フッター --- */
    .site-footer {
        padding: 100px 20px;
        margin-top: 100px;
    }
    .footer-title {
        font-size: 24px;
    }
    .footer-contact a {
        font-size: 14px;
    }
    .footer-note-icon {
        left: 20px;
        bottom: 20px;
    }
    .footer-note-icon img {
        width: 80px;
    }
    .footer-logo {
        right: 20px;
        bottom: 20px;
        width: 70px;
    }
}
