@charset "UTF-8";

/* =========================================================
   Reset & Base
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-text-main: #333333;
    --color-text-sub: #666666;
    --color-black: #000000;
    --color-white: #ffffff;
    --color-bg-light: #f8f8f8;
    
    /* Theme Colors */
    --color-brown-dark: #3e2e26; /* ページタイトル背景など */
    --color-brown-body: #f4eee9; /* ベージュ背景 */
    
    --font-family: 'Noto Serif JP', serif;
}

body {
    font-family: var(--font-family);
    color: var(--color-text-main);
    line-height: 1.8;
    font-size: 14px;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

.inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Background Colors */
.bg-beige {
    background-color: var(--color-brown-body);
}

/* =========================================================
   Components (Buttons & Titles)
========================================================= */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 240px;
    height: 50px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.btn-black {
    background-color: var(--color-black);
    color: var(--color-white);
}

.btn-white {
    background-color: var(--color-white);
    color: var(--color-black);
    border: 1px solid var(--color-black);
}

.link-en {
    display: inline-block;
    font-size: 12px;
    color: var(--color-text-sub);
    text-decoration: underline;
    margin-top: 15px;
}

/* シンプルなセクションタイトル */
.section-title-simple {
    text-align: center;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 50px;
}

.mt-20 {
    margin-top: 20px !important;
}

/* =========================================================
   Header & Hamburger Menu
========================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background-color: var(--color-white);
    border-bottom: 1px solid #eee;
}

.header-logo {
    display: flex;
    align-items: center;
}

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

.header-logo img {
    height: 24px;
    display: block;
}

.hamburger-btn {
    position: relative;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 100;
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 1px;
    background-color: var(--color-black);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s;
}

.hamburger-btn span:nth-of-type(1) { top: 12px; }
.hamburger-btn span:nth-of-type(2) { top: 19px; }
.hamburger-btn span:nth-of-type(3) { top: 26px; }

/* Overlay Nav */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    overflow-y: auto;
    background-image: url("images/nav_bg_text.png");
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

.nav-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.close-btn::before,
.close-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 1px;
    background-color: var(--color-black);
}

.close-btn::before { transform: translate(-50%, -50%) rotate(45deg); }
.close-btn::after { transform: translate(-50%, -50%) rotate(-45deg); }

.nav-overlay-inner {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

.nav-list {
    text-align: center;
    margin-bottom: 40px;
}

.nav-list li {
    margin-bottom: 20px;
}

.nav-list a {
    font-size: 16px;
    letter-spacing: 0.1em;
}

.nav-reservation {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* =========================================================
   Page Specific Styles ("iPS BANK")
========================================================= */
.page-main {
    padding-top: 80px;
}

/* Page Header */
.page-header {
    background-color: var(--color-brown-dark);
    text-align: center;
    padding: 20px 0;
}

.page-title {
    color: var(--color-white);
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.15em;
}

/* Hero Section */
.bank-hero {
    padding: 60px 20px;
    text-align: center;
}

.bank-hero-img-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.bank-hero-img {
    width: 100%;
    border-radius: 20px;
    display: block;
}

/* About Section */
.about-bank {
    padding-bottom: 80px;
}

.about-bank-text {
    max-width: 800px;
    margin: 0 auto;
}

.about-bank-text p {
    text-align: left;
    line-height: 1.8;
}

/* =========================================================
   メリット セクション (変形背景デザイン)
========================================================= */
.bank-merit {
    padding-bottom: 100px;
}

.merit-list {
    display: flex;
    flex-direction: column;
}

.merit-item {
    position: relative;
    padding: 60px 0;
    margin-bottom: 10px;
    z-index: 1;
}

/* 奇数段 (左から右へ伸びて、右端が丸い) */
.merit-item.style-right::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: calc(50% + 550px); 
    background-color: var(--color-brown-body);
    border-radius: 0 999px 999px 0;
    z-index: -1;
}

/* 偶数段の一部 (右から左へ伸びて、左端が丸い) */
.merit-item.style-left::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: calc(50% + 550px); 
    background-color: var(--color-brown-body);
    border-radius: 999px 0 0 999px;
    z-index: -1;
}

/* 背景なしの段落の余白調整 */
.merit-item.style-normal {
    padding: 40px 0;
}

.merit-inner {
    display: flex;
    gap: 60px;
    align-items: center;
}

/* 左右反転用クラス */
.merit-inner.row-reverse {
    flex-direction: row-reverse;
}

.merit-img {
    width: 40%;
    flex-shrink: 0;
}

.merit-img img {
    width: 100%;
    display: block;
    /* 背景色付き画像がカンプにあるため、ここでは角丸等は一旦付けずにそのまま表示 */
}

.merit-text {
    width: 60%;
}

.merit-title {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.merit-text p {
    font-size: 13px;
    line-height: 1.8;
    text-align: justify;
}

/* =========================================================
   Contact Area (共通)
========================================================= */
.contact-area {
    background-color: var(--color-bg-light);
    padding: 80px 20px;
    text-align: center;
}

.contact-lead {
    margin-bottom: 20px;
    font-size: 15px;
}

.contact-tel {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tel-label {
    font-family: serif;
    font-style: italic;
    font-size: 18px;
}

.tel-number {
    font-size: 32px;
    font-family: serif;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.contact-time {
    font-size: 13px;
    color: var(--color-text-sub);
    margin-bottom: 40px;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.contact-en {
    margin-top: 20px;
}

/* =========================================================
   Footer (共通)
========================================================= */
.footer {
    padding: 60px 20px 30px;
    text-align: center;
}

.footer-logo {
    margin-bottom: 40px;
}

.footer-logo img {
    height: 20px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 25px;
    margin-bottom: 50px;
    font-size: 12px;
}

.copyright {
    font-size: 10px;
    color: var(--color-text-sub);
    letter-spacing: 0.05em;
}

/* =========================================================
   Responsive (スマホ向け調整)
========================================================= */
@media screen and (max-width: 768px) {
    .header {
        padding: 0 20px;
    }

    .header-logo img {
        height: 18px;
    }

    .hamburger-btn {
        right: 20px;
    }

    /* メリットレイアウト スマホ対応 */
    .merit-item {
        padding: 40px 0;
    }

    /* SP時は背景がはみ出ないよう調整 */
    .merit-item.style-right::before {
        width: calc(100% - 10px);
        border-radius: 0 20px 20px 0;
    }

    .merit-item.style-left::before {
        width: calc(100% - 10px);
        border-radius: 20px 0 0 20px;
    }

    .merit-inner,
    .merit-inner.row-reverse {
        flex-direction: column;
        gap: 30px;
    }

    .merit-img,
    .merit-text {
        width: 100%;
    }

    .merit-title {
        font-size: 20px;
        text-align: center;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}