@charset "UTF-8";

html {
    scroll-behavior: smooth;
}

/* ==========================================================================
   CSS Variables (カスタムプロパティの設定)
   ========================================================================== */
:root {
    /* Colors */
    --color-primary: #007bff;
    --color-text: #333333;
    --color-background: #ffffff;
    --color-gray-light: #f4f4f4;

    /* Typography */
    --font-family-base: 'Noto Sans JP', "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;
}

/* ==========================================================================
   Reset & Base Styles (初期化とベーススタイル)
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}


ul,
ol {
    list-style: none;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
h4,
h5 {
    align-items: center;
    color: #000;
    font-family: "Noto Sans JP", sans-serif;
    line-height: 1.5;
    height: auto;
    width: 100%;
    justify-content: left;
    margin: 0;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.05em;
    justify-content: center;
    font-family: "Prompt", sans-serif;

}

h2 {
    text-align: left;
    font-size: 2rem;
}

h3 {
    font-size: 1.4rem;
    font-weight: 900;
}

h4 {
    font-size: 2rem;
    font-weight: 700;
}

h5 {
    font-size: 1rem;
    text-align: left;
}

h6 {
    font-size: 1rem;
    font-weight: 500;

}

p {
    font-size: 1rem;
    font-weight: 600;

}

/* ==========================================================================
   Layout / Utilities (共通レイアウト)
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ==========================================================================
   Typography Utilities (フォントクラス)
   ========================================================================== */


.prompt-bold {
    font-family: "Prompt", sans-serif;
    font-weight: 700;
    font-style: normal;
}


.noto-sans {
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

/* ==========================================================================
   Components (コンポーネントごとのスタイル)
   ========================================================================== */
/* Header */
.header {
    background-color: var(--color-background);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-list {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-list a {
    font-weight: 500;
}

.nav-list a:hover {
    color: var(--color-primary);
    opacity: 1;
}

/* Main Content & Hero */
.main-content {
    /* ヘッダーとフッターの高さを考慮した最小高さ */
    min-height: calc(100vh - 70px - 80px);
}

.hero {
    background-color: var(--color-gray-light);
    padding: 100px 0;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-desc {
    font-size: 1.125rem;
    color: #555;
}

/* Footer */
.footer {
    background-color: var(--color-text);
    color: var(--color-background);
    text-align: center;
    padding: var(--spacing-lg) 0;
}

.copyright {
    font-size: 0.875rem;
    opacity: 0.8;
}


/* ==========================================================================
   Hamburger Menu (ハンバーガーメニュー)
   ========================================================================== */
.nav {
    display: none;
    /* Default hidden on desktop */
}

.nav_content {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 100%;
    z-index: 9999;
    background-image: url('img/nav_bg_renga_seibu.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    transition: .5s;
    display: flex;
    justify-content: center;
    overflow: auto;
    /* Fixes content getting stuck on small screens */
}

.nav_menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 6px;
    height: auto;
    margin: 10vh;
    width: 100%;
}

.nav_menu h2 {
    font-size: 45px;
    margin: 15px 0 20px;
    text-align: center;
}

.menu-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    height: auto;
    gap: 30px;
    padding: 30px 0;
}

.icons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.nav_list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    /* From 960px block but applies globally fine */
}

.nav_list .border1 {
    width: 10%;
    border-bottom: 3px solid #000;
}

/* ==========================================================================
   Media Queries (レスポンシブ対応)
   ========================================================================== */


/* ==========================================================================
   Right Menu (右側メニュー)
   ========================================================================== */
#rightmenu {
    /* フォントサイズで全体の倍率を決定。画面の高さが低い（ノートPC等）場合は見切れないようvhで自動縮小させる */
    font-size: min(10px, 1.2vh);
    position: absolute;
    top: 10em;
    bottom: 0;
    /* コンテナを画面の最下部まで伸ばす */
    left: calc(50% + 222.5px);
    /* 中央コンテナ（445px）の右フチに吸着させる */
    z-index: 50;

    /* 子要素（.menu と .post）を縦に並べて中央揃えにする */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* モバイル向け追加調整 (スマホファースト) */

#rightmenu .menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 46.3em;
    height: 54.7em;
    gap: 3em;
    padding: 7em 7.4em;
    background-image: url('./img/Menubackground.webp');
    /* 画像パスを相対位置に調整 */
    background-size: cover;
    background-position: center;
    border: 0.05em solid #000;
    font-weight: bold;
}

#rightmenu .menutitle {
    font-size: 3.2em;
    font-weight: bold;
    text-align: center;
    margin: 0;
}

/* ==========================================================================
   Button Component (ボタンコンポーネント)
   ========================================================================== */
.button {
    border-radius: 5em;
    width: 28em;
    height: 6em;
    box-shadow: 0.4em 0.5em #000;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    transition: all 0.1s;
}

.button.bg-yellow {
    background-color: #FDD000;
    /* デザイン画像での黄色ボタンにあわせた仮の境界線 */
}


.button button {
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    /* ボタン要素はデフォルトでフォントを引き継がないため明示的に指定 */
}

.button button h3 {
    color: #FFFFFF;
}

.button:hover {
    box-shadow: 0 0 #000;
    position: relative;
    left: 0.5em;
    top: 0.4em;
}

#rightmenu .icons {
    display: flex;
    gap: 1.2em;
    justify-content: center;
}

.sns-icon {
    color: #000;
    font-size: 1.6em;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s, opacity 0.3s;
}

.sns-icon svg path {
    transition: fill 0.3s ease;
}


.sns-icon:hover svg path {
    fill: #96D0B6 !important;
}

.tiktok {
    margin-top: 0.4rem;
}

/* ==========================================================================
   Left Menu (左側メニュー)
   ========================================================================== */
#leftmenu {
    font-size: min(10px, 1.2vh);
    position: absolute;
    top: 10em;
    right: calc(50% + 222.5px);
    /* 中央コンテナの左フチに吸着させる（右端を基準） */
    z-index: 50;
}

#leftmenu .leftmenu {
    display: grid;
    grid-template-columns: 15em 15em;
    background-image: url('./img/Menubackground.webp');
    /* 相対パスへ調整 */
    background-position: top left;
    background-size: cover;
    border: 0.05em solid #333;
    width: 46.1em;
    height: 55.8em;
    padding: 4em;
    row-gap: 4.4em;
    column-gap: 4.4em;
    align-items: center;
    place-items: center;
    justify-content: center;
}

#leftmenu .leftmenu-link {
    width: 100%;
    text-decoration: none;
    color: inherit;
}

#leftmenu .block {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 19.7em;
    transition: transform 0.3s ease-in-out;
}

#leftmenu .block:hover {
    transform: scale(1.1);
}

#leftmenu .circle {
    width: 15em;
    height: 15em;
    background: #eee;
    border-radius: 100%;
}

#leftmenu .circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#leftmenu p {
    font-size: 2.4em;
    font-weight: bold;
    width: 20.6em;
    height: 3.7em;
    text-align: center;
    white-space: nowrap;
    justify-content: center;
    display: flex;
    margin: 0;
    margin-top: 1em;
    /* 丸画像とテキストの隙間を追加 */
}

/* ==========================================================================
   Header / Main Structural Layout (ヘッダーとメインの固定レイアウト)
   ========================================================================== */
#fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    background-color: #FFF9D1;
}

/* メニュー本体（leftmenu / rightmenu）に対してはクリック判定を復活させる */
#fixed-header>div {
    pointer-events: auto;
}

main.main-content {
    position: relative;
    z-index: 10;
    /* コンテンツが上に被るのを防ぐため、必要に応じて適宜 padding-top などを設定してください */
    background-color: #fff;
    max-width: 445px;
    margin: 0 auto;
}

.topimg {
    width: 100%;
    margin: 0 auto;

}

.arrow {
    display: flex;
    justify-content: center;
    position: relative;
    margin-top: -4rem;
}

.arrows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@keyframes arrow {
    0% {
        opacity: 0
    }

    40% {
        opacity: 1
    }

    80% {
        opacity: 0
    }

    100% {
        opacity: 0
    }
}

@-webkit-keyframes arrow {
    0% {
        opacity: 0
    }

    40% {
        opacity: 1
    }

    80% {
        opacity: 0
    }

    100% {
        opacity: 0
    }
}

.post {
    width: 18em;
    z-index: 100;
    margin-top: auto;
    /* #rightmenu枠の一番下（画面底部）に押し下げる */
    margin-bottom: 0;
}

.post img {
    width: 100%;
}

/* デスクトップ版ではスマホ用ポストを非表示 */
.mobile-post {
    display: none;
}

/* スマホ画面時の表示（画面右下に常に固定配置） */

.a1 {
    animation: arrow 1.5s ease-in-out infinite;
}

.a2 {
    animation: arrow 1.5s ease-in-out infinite;
    animation-delay: .5s;
}

.a3 {
    animation: arrow 1.5s ease-in-out infinite;
    animation-delay: 1s;
}

.renga {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

.renga1 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* エリア選択に連動したレンガの色 */
.all_bg .backnumber-renga svg path {
    fill: #C38C59 !important;
}

.toubu_bg .backnumber-renga svg path {
    fill: #EF8AA0 !important;
}

.tyuubu_bg .backnumber-renga svg path {
    fill: #FFC82B !important;
}

.seibu_bg .backnumber-renga svg path {
    fill: #96D0B6 !important;
}


@media screen and (max-width: 1280px) {}


@media screen and (max-width: 500px) {}


.profile {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    background-color: #fff;
    margin: 50px 0;
}

.profilebox {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.nametitle {
    flex: 1;
}

.nametitle h2,
h3,
h5 {
    max-width: 317px;
    width: auto;
    justify-content: left;
}

.name {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-self: initial;
    justify-content: start;
    text-wrap: nowrap;
    gap: 0;
}

.name h2 {
    width: auto;
    margin: 0;
}

.name h3 {
    width: auto;
    margin: 0;
    padding-left: 2px;
    /* 少しだけ「さん」が離れるように余白をもたせていますが、不要であれば外せます */
}

.profileimg {
    max-width: 125px;
    height: auto;
    margin: 0 20px 0 0;
    flex-shrink: 0;
}

.profileimg img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.button2 {
    margin: 20px 0;
    color: rgb(0, 0, 0);
    border-radius: 50px;
    height: 3.5rem;
    box-shadow: 4px 5px #000;
    width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    padding: 32px 0;
}


.button2:hover {
    box-shadow: 0px 0px #000;
    position: relative;
    left: 3px;
    top: 2px;
}

.button3 {
    margin: 20px 0;
    color: rgb(0, 0, 0);
    border-radius: 50px;
    height: 2.5rem;
    box-shadow: 4px 5px #000;
    width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    padding: 20px 0;
}


.button3:hover {
    box-shadow: 0px 0px #000;
    position: relative;
    left: 3px;
    top: 2px;
}

.button4 {
    color: rgb(0, 0, 0);
    border-radius: 50px;
    height: 2.5rem;
    box-shadow: 4px 5px #000;
    width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    padding: 20px 0;
}

.button4 h3 {
    color: rgb(255, 255, 255);
}

.button4:hover {
    box-shadow: 0px 0px #000;
    position: relative;
    left: 3px;
    top: 2px;
}

.ruby>rt {
    margin-bottom: -5px;
}

.h5_layout {
    font-size: 1.6rem;
    font-weight: bold;
    text-align: center;
    color: #000;
    width: 100%;
    height: 100%;
}

.namebox {
    margin-top: 10px;
}

.sakutto {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 0;
    margin: 50px 0;
}

.sakutto::before {
    content: "";
    position: absolute;
    top: 23px;
    width: 100%;
    height: 100%;
    transform: skewY(-5deg);
    background-color: #FFF9D1;
    z-index: -1;

}

.wipe {
    width: 55px;
}

.message-left {
    display: flex;
    flex-direction: row;
    align-items: end;
    justify-content: left;
    width: 370px;
    height: auto;
    gap: 20px;

}

.message-right {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: right;
    width: 100%;
    height: auto;
    gap: 20px;
}

.message-stamp {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 10px 0;

}

.my-3 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 0 20px;
}

.button21 {
    display: flex;
    justify-content: center;
}


.tyousa {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    padding: 0 20px;
    gap: 20px;
    margin: 50px 0;
}

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

.tyousa_title {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tyousa_usa {
    width: 53px;
    position: absolute;
    right: -20px;
}

.posi {
    position: relative;
    margin-top: -60px;
    left: 50px;
}

.balloon1,
.balloon2 {
    position: relative;
    display: inline-block;
    margin: 0;
    padding: 1rem 1.5rem;
    min-width: 120px;
    max-width: 100%;
    border-radius: 15px;
}

.balloon1 {
    background: #71C7D4;
}

.balloon2 {
    background: #FFF352;
}

.balloon1:before,
.balloon2:before {
    content: "";
    position: absolute;
    border: 8px solid transparent;
}

.balloon1:before {
    top: 30%;
    left: -20px;
    border-right: 20px solid #71C7D4;
}

.balloon2:before {
    top: 50%;
    right: -20px;
    border-left: 20px solid #FFF352;
}

.balloon1 p,
.balloon2 p {
    margin: 0px;
    padding: 0px;
    font-size: 0.9rem;
    width: 100%;
}

.company {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 5rem;
    padding-bottom: 5rem;
    border: 2px solid #000;
    max-width: 400px;
    margin: 0 1rem;
}

.clip {
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.clip img {
    width: 40%;
}

.company-content {
    width: 100%;
    margin-top: -20px;
}

.companystamp {
    position: absolute;
    top: 3rem;
    left: 0.5rem;
    right: 0;
    width: 40%;
}



.company-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90%;
    height: auto;
}

.company-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 95%;
    height: auto;
    gap: 1rem;
}

.company-text h4,
h6 {
    justify-content: left;
    width: 100%;
}

.border1 {
    width: 100%;
    border-bottom: 0.001rem solid #000;
}

.h5_bg {
    width: 7rem;
    margin-right: 1rem;
    font-weight: 500;
    background-color: #e2e2e2;
    padding: 0.2rem 0.6rem;
    display: flex;
    align-items: center;
}

.h5 {
    width: 100%;
    text-align-last: justify;
    display: initial;
}


.name {
    display: flex;
    flex-direction: row;
    justify-self: initial;
    justify-content: start;
    text-wrap: nowrap;
}

.name h2 {
    width: auto;

}

.name h3 {
    width: 5rem;
    align-items: flex-end;
    padding-bottom: 0.2rem;
}

/* ふりがなのカーニング調整 */
ruby rt {
    letter-spacing: 0.2em;
    /* 文字間隔を広げる */
    text-align: start;
    font-feature-settings: "palt";
}

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

.flex-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Tailwindのjustify-leftに相当 */
    width: 100%;
    gap: 1rem;
}

/* Tailwind 代替ユーティリティ */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.justify-center {
    justify-content: center;
}

.justify-start {
    justify-content: flex-start;
}

.items-center {
    align-items: center;
}

.w-full {
    width: 100%;
}

.relative {
    position: relative;
}



.mb-70 {
    margin-bottom: 70px;
}

.mb-20 {
    margin-bottom: 20px;
}

.ml-05 {
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    margin: 0 0 -0.5rem 0.3rem;
    font-weight: 600;
}


.w-350 {
    width: 350px;
    max-width: 100%;
}


.max-w-370 {
    max-width: 370px;
}

.gap-1 {
    gap: 1rem;
}

.gap-06 {
    gap: 0.6rem;
}

.bg-yellow {
    background-color: #FDD000 !important;
}

.bg-green {
    background-color: #96D0B6 !important;
}

.bg-pink {
    background-color: #EF8AA0 !important;
}

.namew {
    width: fit-content;
}

/* ふわっと下から出てくるアニメーション */
.fadeIn {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fadeIn.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.footer_container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0 auto;
    padding: 50px 30px;
    gap: 20px;
}

.footer_container p {
    font-size: 0.8rem;
    color: #000;
    font-weight: 500;
}

.usa_kanryo {
    display: flex;
    justify-content: right;
    position: relative;
    right: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 400ms ease-out, transform 400ms ease-out;
    margin-top: -50px;
}

.usa_kanryo img {
    width: 80%;
}

.usa_kanryo.visible {
    opacity: 1;
    transform: translateY(0);
}



/* ==========================================================================
   Banner Container Animation (バナー横スクロールアニメーション)
   ========================================================================== */
.banner_container {
    width: 100%;
    overflow-x: auto;
    padding: 1rem 0;
    /* 余白はお好みで調整 */
    background-color: transparent;
    cursor: grab;
    /* スクロールバー非表示 */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.banner_container::-webkit-scrollbar {
    display: none;
}

.banner_container:active {
    cursor: grabbing;
}

.banner_track {
    display: flex;
    width: max-content;
}

.banner_track a {
    flex-shrink: 0;
    margin-right: 1.5rem;
    /* バナー間の余白 */
    display: block;
    transition: opacity 0.3s;
    /* リンクの画像などがドラッグで持っていかれるのを防ぐ */
    -webkit-user-drag: none;
    user-select: none;
}

.banner_track a:hover {
    opacity: 0.8;
}

.banner_track a img {
    height: 120px;
    /* 必要に応じてサイズ変更 */
    width: auto;
    display: block;
    pointer-events: none;
    /* ネイティブのドラッグ競合防止 */
}

.tyousacard ul {
    display: block;
    justify-content: center;
    position: relative;
    width: 110%;
    left: -30px;



    li:nth-child(1) {
        position: absolute;
        top: 10px;
        left: 30px;

    }

    li:nth-child(2) {
        position: absolute;
        top: 0;
        left: 30px;
    }

    li:nth-child(3) {
        position: absolute;
        top: -10px;
        left: 30px;

    }

    li:nth-child(4) {
        position: absolute;
        top: -10px;
        left: 30px;
        transform: rotate(-4deg);

    }
}


.tyousacard {
    position: relative;
    width: 100%;
    height: 300px;
    margin: 0px auto 50px;
}


.company-card {
    position: relative;
    width: 100%;
    height: 400px;
}

.company-card ul {
    display: block;
    justify-content: center;
    position: relative;
    margin: 20px auto;
    padding: 0 20px;
    width: 100%;

    li {
        transition: all 0.3s ease-in-out;
    }

    li:nth-child(1) {
        position: absolute;
        top: 15px;
        left: 60px;

        img {
            width: 280px;
        }
    }

    li:nth-child(2) {
        position: absolute;
        top: 0;
        left: 30px;

        img {
            width: 280px;
        }
    }

    li:nth-child(3) {
        position: absolute;
        top: -10px;
        left: 0px;

        img {
            width: 280px;
        }
    }
}


.touch {
    position: absolute;
    top: 230px;
    right: -30px;
    z-index: 100;
    width: 35%;
}

.touch2 {
    position: absolute;
    top: 200px;
    right: -40px;
    z-index: 100;
    width: 40%;
}


/* 1280px以下のレスポンシブ統合 (小型PC・タブレット横向き向け) */

/* 768px以下のレスポンシブ統合 (スマホ・タブレット向け) */

/* ==========================================================================
   Media Queries (レスポンシブ統合)
   ========================================================================== */
@media (min-width: 1281px) and (max-width: 1340px) {
    .posi1 {
        bottom: 185px;

    }
}

@media screen and (max-width: 1280px) {
    #rightmenu {
        font-size: min(6.5px, 1.2vh);
    }

    #leftmenu {
        font-size: min(6.5px, 1.2vh);
    }


}


@media screen and (max-width: 967px) {}

@media screen and (max-width: 960px) {

    /* ハンバーガーメニュー有効化 */
    .nav {
        display: flex;
        justify-content: right;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        z-index: 9999;
        /* Ensure global containment */
    }

    .leftmenu,
    .menu {
        opacity: 0;
        display: none;
    }

}

@media screen and (max-width: 768px) {

    .navcontent {
        transform: scale(0.9);
    }

    .menuscale {
        transform: scale(1);
    }

    .hero-title {
        font-size: 2rem;
    }

    .nav-list {
        gap: var(--spacing-md);
    }

    #rightmenu {
        font-size: 4px;
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        margin: 20px auto;
        /* スマホでは中央寄せ等が一般的なため暫定設定 */
    }

    #leftmenu {
        font-size: 4px;
        position: relative;
        top: auto;
        right: auto;
        margin: 20px auto;
    }

    /* スマホ版ではデスクトップ用ポストを非表示 */
    .desktop-post {
        display: none;
    }

    /* スマホ用ポストを一番手前に固定配置 */
    .mobile-post {
        display: block;
        position: fixed;
        bottom: 0;
        /* 画面下部に完全にくっつける */
        right: 20px;
        width: 100px;
        /* スマホに合わせたサイズ（必要に応じて変更可） */
        margin-top: 0;
        z-index: 100;
        /* 他のスクロールコンテンツより確実に出す */
    }

    .posi1 {
        bottom: 130px;

    }

    .zoom1 {
        zoom: 0.85;
    }

    .h5 {
        font-size: 0.9rem;
    }

    .spcontent ruby rt {
        font-size: 0.7rem;
        letter-spacing: 0.3em;
        /* スマホ時は少し詰める */
    }

    li:nth-child(1) {
        img {
            width: 350px;
        }
    }

    li:nth-child(2) {
        img {
            width: 350px;
        }
    }

    li:nth-child(3) {
        img {
            width: 350px;
        }
    }

    li:nth-child(4) {
        img {
            width: 350px;
        }
    }

    li:nth-child(5) {
        img {
            width: 350px;
        }
    }

    li:nth-child(6) {
        img {
            width: 350px;
        }
    }

    .touch {
        top: 200px;
    }
}


@media screen and (max-width: 375px) {
    .spcontent ruby rt {
        font-size: 0.6rem;
        margin-bottom: 0rem;

    }

}

/* ==========================================================================
   Back Page / Sub Page Header (バックページ用ヘッダー)
   ========================================================================== */
.header-top {
    align-items: center;
    background-color: #fff;
    display: flex;
    height: auto;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 1000;
    padding: 50px 0;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.header-left img {
    height: 140px;
    width: auto;
}

.header-left .slogan {
    font-size: 1.1rem;
    font-weight: 500;
    color: #231815;
    margin: 0;
    font-family: 'Zen Old Mincho', serif;
    /* 明朝体系 */
    letter-spacing: 0.1em;
}

.header-left .logo img {
    height: 70px;
    width: auto;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.btn-latest {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #96D0B6;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 900;
    width: 250px;
    height: 55px;
    border-radius: 50px;
    box-shadow: 4px 5px 0px #000;
    text-decoration: none;
    transition: all 0.1s;
    margin: 20px 10px;
}

.btn-latest:hover {
    box-shadow: 0 0 #000;
    transform: translate(2px, 3px);
    opacity: 1;
}

.header-sns {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-sns a {
    display: block;
    width: 32px;
    height: 32px;
    transition: opacity 0.3s;
}

.header-sns a:hover {
    opacity: 0.7;
}

.header-sns svg {
    width: 100%;
    height: 100%;
}




@media (max-width: 768px) {
    .back-header .container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        text-align: center;
    }

    .header-left {
        align-items: center;
    }

    .header-left .logo img {
        height: 50px;
    }
}

/* ==========================================================================
   Back Number Page Styles (バックナンバーページ用スタイル)
   ========================================================================== */
.min-h-screen {
    padding-top: 5vh;
    position: relative;
    z-index: 10;
}


.backnumberfont {
    font-weight: 800;
    text-align: center;
    font-family: "Prompt", sans-serif;
    color: #000;
}

.backnumberbutton {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto 40px;
}

.areabox {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.area-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    max-width: 800px;
    margin: 6rem auto -3rem !important;
}

.areaboxh3 {
    position: absolute;
    top: -4rem;
    left: -5rem;
    transform: rotate(-8deg);
    font-size: 1.8rem;
    color: #3E3E3E;
    font-weight: bold;
    z-index: 10;
    line-height: 1.1;
    text-align: left;
    min-width: 350px;

}

.areaboxh3-2 {
    display: none;
    font-size: 1.8rem;
    color: #3E3E3E;
    text-align: center;
}

.areasvg {
    width: 600px;
    height: auto;
    z-index: 5;
}

.areausa {
    position: absolute;
    bottom: 10px;
    left: -60px;
    width: 150px;
    z-index: 1;
    pointer-events: none;
    /* 下にあるマップのクリックを邪魔しない */
}

/* ページ全体の背景色クラス */
.all_bg {
    background-color: #F7DABF !important;
}

.toubu_bg {
    background-color: #FFD1DB !important;
}

.tyuubu_bg {
    background-color: #FFF9D1 !important;
}

.seibu_bg {
    background-color: #CEF2E2 !important;
}

/* マップのエリア色 */
.areasvg path {
    pointer-events: auto;
    cursor: pointer;
    transition: fill 0.3s ease;
}

.all_bg .toubu_bg_map,
.all_bg .tyubu_bg_map,
.all_bg .seibu_bg_map {
    fill: #C38C59 !important;
}

/* 個別エリア選択時の「それ以外」をグレーにする記述 */
.toubu_bg .tyubu_bg_map,
.toubu_bg .seibu_bg_map,
.tyuubu_bg .toubu_bg_map,
.tyuubu_bg .seibu_bg_map,
.seibu_bg .toubu_bg_map,
.seibu_bg .tyubu_bg_map {
    fill: #B2B2B2 !important;
}

.toubu_bg .toubu_bg_map {
    fill: #EF8AA0 !important;
}

.tyuubu_bg .tyubu_bg_map {
    fill: #FFC82B !important;
}

.seibu_bg .seibu_bg_map {
    fill: #96D0B6 !important;
}

.areabutton {
    position: relative;
    width: 250px !important;
    background-color: #B2B2B2;
    /* デフォルトをグレーに設定 */
    color: #fff;
    border: none;
    padding: 10px 0;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 4px 5px 0px #000;
    /* ボタン自体の影 */
    transition: all 0.1s;
    display: block;
    /* 影を正しく反映させるため */
    margin: 0 auto;
}

.areasvg {
    z-index: 10;
}

/* 外枠の余計な設定をリセット */
.backnumberbutton .button3 {
    box-shadow: none !important;
}

/* 「すべて」がアクティブな時の色（茶色） */
.all_bg .areabutton {
    background-color: #C38C59 !important;
}

/* 各エリアがアクティブな時はグレー（優先順位確保） */
.toubu_bg .areabutton,
.tyuubu_bg .areabutton,
.seibu_bg .areabutton {
    background-color: #B2B2B2 !important;
}

.areabutton:hover {
    box-shadow: none;
    transform: translate(4px, 5px);
}


/* バックナンバーカードのグリッドレイアウト */
.backnumber-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* デスクトップで4列固定 */
    gap: 4rem 15px;
    padding: 2rem 1rem;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* カード本体 */
.backnumber-card {
    position: relative;
    width: 260px;
    height: auto;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    z-index: 1;
}

.backnumber-card:hover {
    transform: scale(1.05) rotate(4deg);
    cursor: pointer;
}

/* 下に重なる斜めフレーム */
.backnumber-card::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0.2px solid #000;
    background-color: #fff;
    z-index: -1;
    transform: rotate(-3deg);
}

/* 方眼紙背景のメインボックス */
.bn_back {
    background-color: #fff;
    background-size: 20px 20px;
    background-position: 50% 50%;
    background-image:
        repeating-linear-gradient(90deg,
            rgba(239, 138, 160, 0.15),
            rgba(239, 138, 160, 0.15) 0.7px,
            transparent 1px,
            transparent 20px),
        repeating-linear-gradient(0deg,
            rgba(239, 138, 160, 0.15),
            rgba(239, 138, 160, 0.15) 0.7px,
            #fff 1px,
            #fff 20px);
    border: 0.2px solid #000;
    position: relative;
    z-index: 0;
    padding-bottom: 20px;
    min-height: 320px;
}

/* プロフィールタグ (左上) */
.bn_turn {
    position: absolute;
    z-index: 10;
    background-color: #fff;
    padding: 0 40px;
    border: 0.2px solid #000;
    top: 0;
    left: -15px;
    transform: rotate(-8deg);
    text-align: center;
}

.bn_textflex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: -5px;
}

.bn_turn h3 {
    font-size: 1.4rem;
    font-weight: bold;
    font-family: inherit;
}

/* クリップアイコン */
.bn_clip {
    position: relative;
}

.bn_clip::after {
    position: absolute;
    content: "";
    display: block;
    width: 100%;
    height: 80px;
    background-image: url(./img/Clip-path-group.webp);
    background-size: contain;
    background-repeat: no-repeat;
    top: -18px;
    left: -45px;
    z-index: 20;
}

/* 画像エリア */
.bn_img {
    position: relative;
    margin-top: 30px;
    padding: 20px;
}

.bn_img img {
    width: 100%;
    height: auto;
    display: block;
    background: #f0f0f0;
}

/* 号数ラベル (#135) */
.bn_number {
    position: absolute;
    font-size: 24px;
    font-weight: bold;
    bottom: 20px;
    right: 30px;
    z-index: 5;
    letter-spacing: 2px;
    text-shadow:
        1px 1px 0px #ffffff,
        -1px 1px 0px #ffffff,
        1px -1px 0px #ffffff,
        -1px -1px 0px #ffffff,
        1px 0px 0px #ffffff,
        0px 1px 0px #ffffff,
        -1px 0px 0px #ffffff,
        0px -1px 0px #ffffff;
}

/* テキストエリア */
.bn_textbox {
    padding: 0 20px;
    text-align: left;
}

.bn_campany {
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.bn_name {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: baseline;
}

.bn_small {
    font-size: 16px;
    font-weight: bold;
    margin-left: 2px;
}

.bn_name2 {
    font-size: 24px;
    font-weight: bold;
    margin: 5px 0 0;
    display: flex;
    align-items: baseline;
}

.bn_english {
    font-size: 16px;
    font-weight: bold;
}

/* エリア別カラー設定 */
.toubu .bn_number,
.toubu .bn_english {
    color: #EF8AA0;
}

.toubu::before {
    background-color: #EF8AA0 !important;
}

.tyuubu .bn_number,
.tyuubu .bn_english {
    color: #FDD000;
}

.tyuubu::before {
    background-color: #FFC82B !important;
}

.seibu .bn_number,
.seibu .bn_english {
    color: #96D0B6;
}

.seibu::before {
    background-color: #96D0B6 !important;
}

.all .bn_number,
.all .bn_english {
    color: #C38C59;
}

.all::before {
    background-color: #fff !important;
}

/* ページトップボタン */

.page_top_btn {
    width: 80px;
    height: auto;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    transition: transform 0.3s ease;
}

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

.backnumber-renga {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.backnumber-renga svg.renga1 {
    position: absolute;
    width: 552px;
    height: 592px;
    top: 10rem;
    left: -5rem;
}

.backnumber-renga svg.renga2 {
    position: absolute;
    width: 552px;
    height: 592px;
    top: 40rem;
    right: -10rem;
}


.backnumber-renga svg path {
    fill: #C38C59;
}

/* エリア選択に連動したページトップボタンの色 */
.all_bg .page_top_btn svg path {
    fill: #C38C59 !important;
}

.toubu_bg .page_top_btn svg path {
    fill: #EF8AA0 !important;
}

.tyuubu_bg .page_top_btn svg path {
    fill: #FFC82B !important;
}

.seibu_bg .page_top_btn svg path {
    fill: #96D0B6 !important;
}

.page_top_btn svg path {
    transition: fill 0.3s ease;
}


.nav {
    position: fixed !important;
    z-index: 9999;
    top: 20px;
    right: 20px !important;
    left: auto !important;
    width: auto !important;
    display: none;
}

/* チェックボックスは隠す */
.drawer_hidden {
    display: none;
}

/* メニューアイコン本体 */
.drawer_open {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 100;
    cursor: pointer;
    width: 60px;
    height: 60px;
}

/* 三本線の設定 */
.drawer_open span,
.drawer_open span:before,
.drawer_open span:after {
    background: rgb(178, 178, 178);
    border-radius: 8px;
    content: "";
    display: block;
    height: 8px;
    position: absolute;
    transition: 0.5s;
    width: 50px;
}

.drawer_open span:before {
    bottom: 16px;
}

.drawer_open span:after {
    top: 16px;
}

/* チェックが入った時（開いた時）の三本線の変化 */
#drawer_input:checked~.drawer_open span {
    background: rgba(255, 255, 255, 0);
}

#drawer_input:checked~.drawer_open span::before {
    bottom: 0;
    transform: rotate(45deg);
}

#drawer_input:checked~.drawer_open span::after {
    top: 0;
    transform: rotate(-45deg);
}

.nav_content {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 100%;
    /* メニューを画面の外に飛ばす */
    z-index: 90 !important;
    background-image: url('img/nav_bg_renga_seibu.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: .5s;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* チェックが入った時にメニューを出す */
#drawer_input:checked~.nav_content {
    left: 0;
}

.nav_menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 6px;
    height: auto;
    margin: 10vh;
    width: 100%;


}

.nav_menu h2 {
    font-size: 45px;
    margin: 15px 0 20px;
}

.menu-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    height: auto;
    gap: 30px;
    padding: 30px 0;
}

.icons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.nav_list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
}


/* レスポンシブ設計 */
@media screen and (max-width: 1280px) {
    .backnumberfont {
        font-size: 4rem;
    }

    .rea-container h3 {
        font-size: 2rem;
    }


    .areasvg {
        max-width: 550px;
    }

    .backnumber-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem 15px;
    }

    .areausa {
        width: 150px;
        left: -50px;
    }

}

@media screen and (max-width: 960px) {
    .backnumber-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* PC用のヘッダー全体（ロゴやSNSボタン）を隠す */
    .header-top {
        display: none !important;
    }

    .nav {
        display: block !important;
    }

    /* レンガの位置調整 */
    .backnumber-renga svg.renga1 {
        top: 30rem;
        left: -5rem;
    }

    .backnumber-renga svg.renga2 {
        top: 0rem;
        right: -10rem;
    }
}

@media screen and (max-width: 640px) {
    .backnumberfont {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .areasvg {
        width: 100%;
    }

    .area-container {
        margin: 1rem !important;
    }

    .backnumber-grid {
        grid-template-columns: repeat(1, 1fr);
        padding: 1rem;
        gap: 2rem;
    }

    .backnumber-card {
        width: 90% !important;
        max-width: 320px;
    }

    .areabutton {
        width: 90% !important;
        max-width: 250px;
        font-size: 1.2rem;
        padding: 10px 0;
    }

    .areausa {
        width: 80px;
        left: -20px;
        bottom: 10px;
    }

    .areaboxh3 {
        font-size: 1rem;
        top: -40px;
        left: 0px;
    }

    .backnumber-renga svg.renga1 {
        top: 5rem;
        left: 15rem;
        scale: 1.2;
    }

    .backnumber-renga svg.renga2 {
        top: 35rem;
        left: 2rem;
        scale: 1.8;
    }

    .min-h-screen {
        padding-top: 50px;
    }

    .nav {
        right: 10px !important;
    }
}