/* ============================================================
   丸進 追加ページ 共通CSS（テンプレート：編集不要）
   ------------------------------------------------------------
   ・新しい追加ページを作るときは、このファイルをそのまま複製して
     index.html の <link rel="stylesheet" href="style.css"> で読み込む。
   ・ページ独自の仕様（そのページだけで使うCSS）は、このファイルには書かず、
     各ページの index.html 内 <style> に書く（style.css より後ろで読み込まれるため、
     同じセレクタを書けばページ側が優先される）。
   ・複数ページで使う新しいCSSを作ったら、このファイルに追記し、
     テンプレ index.html の更新履歴にも一行書く。
   ※ Tailwind の色・フォント設定（tailwind.config）は CDN の都合上 index.html 内に残す。
   ============================================================ */

body {
    font-family: "游ゴシック", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

/* 色反転ボタン：ふわっと反転するだけ（アニメーションなし） */
.ms-fill-btn {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.ms-fill-btn:hover {
    background-color: #000;
    color: #fff;
}

/* ============================================================
   ヘッダー：本体サイト（marushin-kyoto.co.jp）の style.css から移植（2026-10-16）
   ・index.html の <header class="ms-site-header"> と <nav class="gnav"> 用
   ・数値は本体サイトと同じ。Tailwind と干渉しないよう .ms-site-header 配下に限定
   ============================================================ */
.ms-site-header {
    color: #1D1D1D;
    width: 100%;
    padding: 0;
    background: white;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    font-size: 16px;
    font-weight: 500;
    line-height: 2.0em;
}

.ms-site-header a {
    text-decoration: none;
}

.ms-site-header .c_head {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 60px;
    position: relative;
    display: flex;
    justify-content: flex-start;
}

.ms-site-header .c_head .logo {
    padding: 5px 10px;
    display: flex;
    align-items: center;
}

.ms-site-header .c_head .logo a {
    display: flex;
    align-items: center;
}

.ms-site-header .c_head .logo img {
    max-width: 320px;
}

@media (max-width: 768px) {
    .ms-site-header .c_head .logo img {
        max-width: 260px;
    }
}

@media (max-width: 480px) {
    .ms-site-header .c_head .logo {
        padding: 5px;
    }
}

.ms-site-header .c_head .h-nav {
    display: flex;
    margin-left: auto;
    justify-content: space-between;
    font-size: 90%;
    font-weight: bold;
}

.ms-site-header .c_head .h-nav ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ms-site-header .c_head .h-nav ul.c-nav {
    padding: 0 10px;
}

.ms-site-header .c_head .h-nav ul li {
    margin: 0;
    align-items: center;
    white-space: nowrap;
    height: 54px;
    position: relative;
}

/* 項目の右側の区切り線 */
.ms-site-header .c_head .h-nav ul li::before {
    position: absolute;
    top: 18px;
    right: 0;
    content: '';
    width: 1px;
    height: 15px;
    background: #ccc;
}

.ms-site-header .c_head .h-nav ul li a.under-line {
    color: #000;
    padding: 0 1em;
    display: flex;
    align-items: center;
    height: 54px;
    position: relative;
}

/* ホバーで下線が中央から左右に伸びる */
.ms-site-header .c_head .h-nav ul li a.under-line::after {
    position: absolute;
    bottom: -4px;
    left: 0;
    content: '';
    width: 100%;
    height: 4px;
    background: #000;
    transform: scale(0, 1);
    transform-origin: center top;
    transition: transform .3s;
}

.ms-site-header .c_head .h-nav ul li a.under-line:hover::after {
    transform: scale(1, 1);
}

/* 現在地（li.crt）：下線を常に表示 */
.ms-site-header .c_head .h-nav ul li.crt a.under-line {
    padding: 0 1.5em;
}

.ms-site-header .c_head .h-nav ul li.crt a.under-line::after {
    transform: scale(1, 1);
}

.ms-site-header .c_head .h-nav a {
    color: #000;
}

.ms-site-header .c_head .h-nav a:hover {
    color: #41B25D;
}

.ms-site-header .c_head .h-nav ul li a.under-line:hover {
    color: #000;
}

.ms-site-header .c_head .h-nav div {
    display: flex;
    align-items: center;
}

/* 言語切替 */
.ms-site-header .c_head .h-nav div.lang {
    padding: 0 10px;
    color: #666;
    font-size: 80%;
}

.ms-site-header .lang form {
    margin: 0 0 0 .3em;
}

.ms-site-header .lang select {
    display: inline-block;
    font: inherit;
    color: inherit;
    line-height: 1.5em;
    padding: 2px 1.5em 2px 2px;
    margin: 0;
    box-sizing: border-box;
    border: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: transparent;
    background-image: linear-gradient(45deg, transparent 50%, gray 50%), linear-gradient(135deg, gray 50%, transparent 50%);
    background-position: calc(100% - 10px) calc(0.5em + 2px), calc(100% - 5px) calc(0.5em + 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.ms-site-header .lang select:hover {
    cursor: pointer;
    color: #000;
    background-image: linear-gradient(45deg, transparent 50%, black 50%), linear-gradient(135deg, black 50%, transparent 50%);
}

/* お問い合わせボタン */
.ms-site-header .c_head .h-nav div.bn-contact {
    background: #000;
    white-space: nowrap;
}

.ms-site-header .c_head .h-nav div.bn-contact a {
    color: #FFF;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 15px;
}

.ms-site-header .c_head .h-nav div.bn-contact a:hover {
    color: #41B25D;
}

/* ホバーで開くサブメニュー（画像付き・グレー全幅） */
.ms-site-header li.submenu .submenu-block {
    visibility: hidden;
    opacity: 0;
    z-index: 100;
    position: fixed;
    top: 60px;
    left: 0;
    box-sizing: border-box;
    width: 100%;
    padding: 40px 40px 0 40px;
    background: rgba(77, 77, 77, 0.95);
    transition: all .2s ease;
}

.ms-site-header li.submenu:hover .submenu-block {
    visibility: visible;
    opacity: 1;
    justify-content: space-between;
}

.ms-site-header li.submenu .submenu-block .subnav {
    margin: 0 auto;
    max-width: 1160px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.ms-site-header li.submenu .submenu-block .subnav .col-4 {
    width: calc((100% - 4%) / 4);
    margin: .5%;
}

.ms-site-header li.submenu .submenu-block .subnav a {
    color: #FFF;
    transition: all .3s;
    margin-bottom: 1em;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.ms-site-header li.submenu .submenu-block .subnav a:hover {
    color: #FFF;
    opacity: .6;
}

.ms-site-header li.submenu .submenu-block .subnav img {
    max-width: 100%;
    display: inline;
    vertical-align: middle;
}

.ms-site-header li.submenu .submenu-block .subnav p {
    margin: 1em 0;
    white-space: normal;
}

/* ハンバーガー（960px以下） */
.ms-site-header .menu-nav {
    background: #000;
    height: 60px;
    width: 60px;
    position: absolute;
    top: 0;
    right: 0;
    font-size: 13px;
    transition: all .3s;
    display: none;
}

.ms-site-header .menu-nav:hover {
    cursor: pointer;
    background: #2E3192;
}

.ms-site-header .menu {
    height: 20px;
    position: absolute;
    right: 18px;
    top: 20px;
    width: 25px;
    z-index: 99;
}

.ms-site-header .menu__line {
    background: #fff;
    display: block;
    height: 2px;
    position: absolute;
    transition: transform .3s;
    width: 100%;
}

.ms-site-header .menu__line--top.active {
    top: 8px;
    transform: rotate(45deg);
}

.ms-site-header .menu__line--center {
    top: 9px;
}

.ms-site-header .menu__line--center.active {
    transform: scaleX(0);
}

.ms-site-header .menu__line--bottom {
    bottom: 0;
}

.ms-site-header .menu__line--bottom.active {
    bottom: 10px;
    transform: rotate(135deg);
}

@media (max-width: 960px) {
    .ms-site-header .c_head .h-nav {
        display: none;
    }

    .ms-site-header .c_head .menu-nav {
        display: flex;
    }
}

/* スマホ用全画面メニュー（ハンバーガーで開閉。script は index.html 末尾） */
.gnav {
    background: rgba(0, 0, 0, 0.9);
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9998;
    overflow-y: scroll;
    line-height: 1;
    visibility: hidden;
    opacity: 0;
    transition: opacity .4s, visibility .4s;
}

.gnav.is-open {
    visibility: visible;
    opacity: 1;
}

.gnav .row {
    height: 100%;
    display: flex;
    margin: 0 auto;
    max-width: 960px;
}

.gnav section {
    padding: 50px 0 0 0;
    width: 100%;
}

.gnav-list {
    padding: 0.5em 0;
    margin-bottom: 1em;
    width: 100%;
}

.gnav-list li {
    margin: 0;
    padding: 0;
    text-align: left;
    border-bottom: 1px solid #333;
    background: rgba(0, 0, 0, 0.9);
}

.gnav-list li .second_nav_bn {
    color: #FFF;
    display: block;
    position: relative;
    padding: 1.5em;
    font-size: 110%;
    font-weight: bold;
    cursor: pointer;
}

.gnav-list li .second_nav_bn:hover {
    background-color: #2E3192;
}

/* ＋／－ のアイコン */
.gnav-list li .second_nav_bn::after,
.gnav-list li .second_nav_bn::before {
    content: '';
    display: block;
    width: 15px;
    height: 2px;
    border-radius: 4px;
    background: #FFF;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.gnav-list li .second_nav_bn::after {
    transform: translateY(-50%) rotate(90deg);
    transition: 0.3s;
}

.gnav-list li .second_nav_bn.active::after {
    transform: translateY(-50%) rotate(0);
}

.gnav-list li a {
    color: #FFF;
    display: block;
    padding: 1.5em;
    text-decoration: none;
    font-size: 110%;
    font-weight: bold;
}

.gnav-list li a:hover {
    background-color: #2E3192;
}

.gnav-list li .second_nav {
    display: none;
    border: none;
    width: 100%;
    background: #2D2D2D;
    padding: .5em 0;
}

.gnav-list li .second_nav.is-open {
    display: block;
}

.gnav-list li .second_nav li {
    border: none;
    width: 49%;
    display: inline-block;
    background: none;
}

.gnav-list li .second_nav a {
    padding: 1em 1.5em;
    font-weight: normal;
}

.gnav-list li .second_nav a:hover {
    background: none;
}

/* メニューを開いている間は背面をスクロールさせない */
body.no-scroll {
    overflow: hidden;
}

/* フェードイン（スクロールで表示。script.js が .visible を付与） */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
