/* サイト全体に適用する場合 */
body {
    font-family: 'Noto Serif JP', serif;
}

/* ヘッダー全体のレイアウト */
.header-container {
    display: flex;
    justify-content: space-between; /* これで左と右に分かれます */
    align-items: center; /* 上下中央揃え */
    padding: 10px 5%; /* 左右に少しゆとりを持たせる */
    max-width: 1400px; /* 広がりすぎないように制限（任意） */
    margin: 0 auto;
}

/* ロゴのサイズ調整 */
.header-logo img {
    height: 90px; /* ROKU風に少し小ぶりに */
    width: auto;
    display: block;
}

/* メニューの横並び設定 */
.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px; /* 項目同士の間隔を広めに取って高級感を出す */
}

/* メニューの文字デザイン（Montserrat適用） */
.nav-list a {
    text-decoration: none;
    color: #000;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.nav-list a:hover {
    opacity: 0.4;
}


/* SCROLLのテキストに特定の太さ（ExtraLightなど）を適用する場合 */
.scroll-text {
    font-family: 'Noto Serif JP', serif;
    font-weight: 200; /* ExtraLight */
    /* ...他のスタイル... */
}

/* Mediumを使いたい場所があれば */
.site-title {
    font-weight: 500; /* Medium */
}

.scroll-wrapper {
    /* 画面の真ん中に固定する魔法のセット */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 自身のサイズ分戻して完全中央へ */
    
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 9999; /* 他の要素に隠されないように最前面へ */
}

.scroll-text {
    writing-mode: vertical-rl;
    font-family: 'Noto Serif JP', serif;
    font-weight: 200; /* ExtraLight */
    font-size: 14px;
    letter-spacing: 0.5em;
    color: #333;
    margin-bottom: 20px;
}

.scroll-line {
    width: 1px;
    height: 100px;
    background-color: rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

/* ラインが動くアニメーション（前と同じですが念のため） */
.scroll-line::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #333;
    animation: scroll-line-anim 2.5s cubic-bezier(1, 0, 0, 1) infinite;
}

@keyframes scroll-line-anim {
    0% { transform: scaleY(0); transform-origin: top; }
    45% { transform: scaleY(1); transform-origin: top; }
    55% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* グループブロックの「セクション外枠」スタイル */
.is-style-section-outbox {
    padding-top: 80px !important;    /* 上下の余白 */
    padding-bottom: 80px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    max-width: none !important;
}

/* 中身のコンテンツ幅を制限する */
.is-style-section-outbox > .wp-block-group__inner-container,
.is-style-section-outbox > div:not(.wp-block-group__inner-container) {
    max-width: 1100px; /* ここが実質的なコンテンツ幅 */
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px;
    padding-right: 20px;
}

/* お知らせセクション全体の調整 */
.news-section-container {
    display: flex;
    gap: 40px;
}

/* 左側：縦書きタイトル */
.vertical-title {
    writing-mode: vertical-rl; /* 縦書き */
    font-family: 'Noto Serif JP', serif;
    position: relative;
    padding-top: 10px;
}

.vertical-title .main-title {
    font-size: 60px; /* 「お知らせ」のサイズ */
    letter-spacing: 0.2em;
    font-weight: 500;
}

.vertical-title .sub-title {
    font-size: 20px; /* 「News」のサイズ */
    margin-left: 10px;
    font-weight: 200;
}

/* 右側：お知らせリストの線 */
.wp-block-latest-posts.is-grid li,
.wp-block-latest-posts li {
    border-bottom: 1px solid #e0e0e0; /* グレーの細い線 */
    padding: 20px 0;
    margin: 0;
    list-style: none;
}

.wp-block-latest-posts li:first-child {
    border-top: 1px solid #e0e0e0; /* 一番上にも線を入れる */
}

/* 日付とタイトルの横並び調整 */
.wp-block-latest-posts__post-date {
    display: inline-block;
    width: 120px;
    font-family: 'Noto Serif JP', serif;
    font-size: 14px;
    color: #666;
}

/* MOREボタンを右下に寄せる */
.news-more-wrapper {
    text-align: right;
    margin-top: 30px;
}

/* お知らせリスト全体の線 */
.wp-block-post-template li {
    border-bottom: 1px solid #e0e0e0;
    padding: 25px 0;
    list-style: none;
}

.wp-block-post-template li:first-child {
    border-top: 1px solid #e0e0e0;
}

/* 横並びのレイアウト調整 */
.wp-block-post-template .wp-block-post-date,
.wp-block-post-template .wp-block-post-terms,
.wp-block-post-template .wp-block-post-title {
    display: inline-block;
    vertical-align: middle;
}

/* 日付の設定 */
.wp-block-post-date {
    width: 120px;
    font-family: 'Noto Serif JP', serif;
    font-weight: 200;
    font-size: 14px;
    color: #333;
}

/* カテゴリータグ（Information）の設定 */
.wp-block-post-terms a {
    display: inline-block;
    background-color: #004bb1; /* スクショの青色 */
    color: #ffffff !important;
    font-size: 10px;
    padding: 4px 15px;
    text-decoration: none;
    font-weight: 500;
    margin-right: 25px;
    letter-spacing: 0.1em;
    border-radius: 0; /* 四角いタグ */
}

/* 投稿タイトルの設定 */
.wp-block-post-title a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-family: 'Noto Serif JP', serif;
    transition: opacity 0.3s;
}

.wp-block-post-title a:hover {
    opacity: 0.6;
}


@media screen and (max-width: 768px) {
    .wp-block-post-template li {
        padding: 15px 0;
    }
    
    .wp-block-post-date,
    .wp-block-post-terms {
        display: block !important;
        margin-bottom: 8px;
    }
    
    .wp-block-post-date {
        width: auto;
    }
}

/* すべてのカラムで横並びを強制し、隙間を調整する */
.wp-block-columns {
    flex-wrap: nowrap !important;
    gap: 2em !important; /* ROKU風に詰めるなら 1em くらいでもOK */
}

/* お知らせリストなど、特定の場所だけ隙間を消したい場合 */
.wp-block-post-template .wp-block-columns {
    gap: 0 !important;
    margin-top: 0;
    margin-bottom: 0;
}
.wp-block-post-template li {
    padding: 15px 0;
}
.wp-block-post-terms a {
    background-color: #021632;
}

/* TORWA独自の「MORE」ボタン設定 */
.torwa-more-button {
    position: relative;
    display: inline-block;
    border: 1px solid #000;
    padding: 10px 30px 10px 15px; /* 右側の余白を少し詰め、矢印を重なりやすくする */
    text-decoration: none;
    color: #000;
    transition: all 0.3s ease;
}

/* 「MORE」の文字設定 */
.torwa-more-button a {
    text-decoration: none;
    color: #000;
    font-size: 14px; /* ROKU風に少し小さく */
    font-weight: bold;
    display: block;
}

/* 矢印を枠線に重ねる（突き出す） */
.torwa-more-button .arrow {
    position: absolute;
    top: 50%;
    right: -15px; /* 枠線の外に半分出す設定 */
    transform: translateY(-50%);
    font-size: 20px;
    background: #f8f9fa; /* 背景色（お知らせセクションの背景色）と同じ色を指定して、枠線を「消す」 */
    padding: 0 5px;      /* 矢印の周りに背景色を少し広げて、枠線が重ならないようにする */
    color: #000;
}

/* 【ROKU風の遊び心】マウスを乗せた時（ホバー）の動き */
.torwa-more-button:hover {
    background-color: #000; /* 背景を黒に */
}

.torwa-more-button:hover a {
    color: #fff; /* 文字を白に */
}

.torwa-more-button:hover .arrow {
    color: #000; /* 矢印は黒のまま（枠の外に黒い矢印が残る） */
    right: -25px; /* 矢印をさらに外へ動かす */
}


/* テーブル全体のスタイル */
.profile-table table{
    width: 80%!important;
    margin:0 auto;
    border-collapse: collapse; /* 枠線を1本にまとめる */
    border-top: 1px solid #ddd; /* 一番上の線 */
    border-bottom: 1px solid #ddd; /* 一番下の線 */
    font-size: 14px;
    line-height: 1.8;
}

/* 枠線のリセット（横線だけ残す） */
.profile-table table th,
.profile-table table td {
    border: none !important; /* 標準の枠線を一度消す */
    border-bottom: 1px solid #eee !important; /* 下線だけ引く */
    padding: 25px 30px !important; /* ゆったりとした余白 */
    text-align: left;
    vertical-align: middle;
}

/* 最後の行の下線は不要（全体の枠線があるため） */
.profile-table table tr:last-child th,
.profile-table table tr:last-child td {
    border-bottom: none !important;
}

/* 左側の列（見出し）のスタイル */
.profile-table  table th {
    width: 25%; /* 左側の幅を固定 */
    background-color: #f4f5f7 !important; /* 絶妙な薄グレー */
    font-weight: 500;
    color: #333;
}

/* 右側の列（内容）のスタイル */
.profile-table table td {
    background-color: #fff;
    color: #000;
    font-family: 'Noto Serif JP', serif; /* 会社概要の内容も明朝体にすると高級感が出ます */
}


/* マップを中央に寄せ、洗練された印象にする */
.map {
    display: block;
    margin: 40px auto !important; /* 左右autoで中央寄せ */
    width: 80% !important;
    filter: grayscale(20%); /* 20%ほど白黒に近づけると、サイトに馴染みます */
    border-radius: 4px; /* ほんの少し角を丸める */
}

/* スマホ対応：幅が狭いときは縦並びにする */
@media (max-width: 768px) {
    .profile-table table th, .profile-table table td {
        display: block;
        width: 100% !important;
        padding: 15px 20px !important;
    }
    .profile-table table th {
        background-color: #f4f5f7 !important;
        border-bottom: none !important;
    }
}




/****/
/* お知らせ一覧の器 */
.news-archive-container {
    max-width: 900px;
    margin: 100px auto;
    padding: 0 5%;
}

/* 見出し部分 */
.news-header {
    margin-bottom: 60px;
    text-align: center;
}
.news-header .en-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 12px;
    letter-spacing: 0.2em;
    color: #999;
}
.news-header .ja-title {
    font-family: 'Noto Serif JP', serif !important;
    font-size: 28px;
    margin-top: 10px;
}
/* リスト全体の器（余白を広めに） */
.news-list {
    max-width: 1000px;
    margin: 0 auto;
    border-top: 1px solid #eee; /* 一番上の線 */
}

/* 1件ごとの枠 */
.news-item {
    border-bottom: 1px solid #eee;
    position: relative;
}

/* リンク全体を横並びのFlexboxに */
.news-link {
    display: flex;
    align-items: center;
    padding: 35px 10px; /* 上下の余白をたっぷり取る */
    text-decoration: none;
    color: #000;
    transition: all 0.4s ease;
}

/* 日付とカテゴリのエリア */
.news-meta {
    display: flex;
    align-items: center;
    gap: 25px;
    min-width: 220px; /* 横幅を固定してタイトルの位置を揃える */
}

.news-date {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px;
    color: #333;
}

/* カテゴリタグ（紺色のボックス） */
.news-category {
    background: #1a2947; /* ROKU風の深い紺 */
    color: #fff;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 18px;
    min-width: 100px;
    text-align: center;
    letter-spacing: 0.05em;
}

/* タイトル部分 */
.news-title-container {
    flex-grow: 1; /* 残りの幅をすべて使う */
    padding-right: 40px;
    padding-left:20px;
}

.news-title {
    font-family: 'Noto Serif JP', serif !important;
    font-size: 15px;
    font-weight: 500;
    margin: 0;
    line-height: 1.6;
}

/* 右端の矢印 */
.news-arrow {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 22px;
    font-weight: 200;
    transition: transform 0.4s ease;
}

/* --- ホバー（マウスを乗せた時）の動き --- */
.news-link:hover {
    background-color: #f9f9f9; /* ほんの少しだけ背景色を変える */
}

.news-link:hover .news-arrow {
    transform: translateX(10px); /* 矢印が右にスッと動く */
}

/* スマホ対応：縦並びにする */
@media (max-width: 768px) {
    .news-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .news-meta {
        min-width: auto;
    }
    .news-arrow {
        display: none; /* スマホでは矢印を消すとスッキリします */
    }
}


/* フォーム全体のフォントを統一 */
.snow-monkey-form {
    font-family: 'Noto Serif JP', serif !important;
    max-width: 800px;
    margin: 0 auto;
}

/* 入力項目（input / textarea）を「下線のみ」にする */
.smf-item__control input[type="text"],
.smf-item__control input[type="email"],
.smf-item__control textarea {
    border: none !important;
    border-bottom: 1px solid #ddd !important;
    border-radius: 0 !important;
    padding: 15px 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    transition: border-color 0.3s;
}

/* 入力中の色変化 */
.smf-item__control input:focus,
.smf-item__control textarea:focus {
    border-bottom: 1px solid #000 !important;
    outline: none;
}

/* ラベル（項目名）を Montserrat で小さく */
.smf-item__label {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* 送信・確認ボタンを ROKU 風の黒背景に */
.smf-action-buttons button {
    background-color: #000 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 15px 50px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.3s;
}

.smf-action-buttons button:hover {
    opacity: 0.6;
}