
/* リセット */
* {
    /* ナカムラ保険事務所 - 共通CSS */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
    line-height: 1.4;
    color: #333;
    background-color: #f5f5f5;
    padding-top: 80px; /* ヘッダー分の余白 */
}

a {
    color: #04407e;
}

/* PC時のデフォルト表示設定 */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* 保険会社セクションのPC時スタイル */
.insurance-companies-section .insurance-title,
.insurance-companies-section .insurance-description {
    font-size: 19.5px;
    color: #000;
    margin-bottom: 10px;
}

.insurance-companies-section .company-item {
    font-size: 19.5px;
    color: #000;
    line-height: 1.6;
    display: inline;
    margin-right: 10px;
}

.company-list {
    margin-left: 10px;
    max-width:840px
}

/* ヘッダー - 全ページ共通 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #004385;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    height: 80px;
}

.header-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

h1 {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1976d2;
}

.logo-image {
    height: 40px;
    max-width: 200px;
    object-fit: contain;
}

.center-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-decoration: none;
}

.center-logo-image {
    height: 50px;
    max-width: 300px;
    object-fit: contain;
}

/* ハンバーガーメニューボタン - 完全に中央交差するバツ印 */
.hamburger-menu {
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    transition: transform 0.3s ease;
    position: relative;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #1976d2;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 2px;
    position: absolute;
    transform-origin: center center;
}

/* 通常時の3本線の位置 */
.hamburger-line:nth-child(1) {
    top: 8px;
}

.hamburger-line:nth-child(2) {
    top: 13.5px;
}

.hamburger-line:nth-child(3) {
    top: 19px;
}

/* アクティブ時のバツ印 - 数学的に正確な中央交差 */
.hamburger-menu.active .hamburger-line:nth-child(1) {
    top: 13.5px;
    transform: rotate(45deg);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    top: 13.5px;
    transform: rotate(-45deg);
}

/* ホバー効果 */
.hamburger-menu:hover .hamburger-line {
    background-color: #42a5f5;
}

.hamburger-menu.active:hover .hamburger-line {
    background-color: #d32f2f;
}

/* アクティブ時のボタン全体の微細な効果 */
.hamburger-menu.active {
    transform: scale(1.05);
}

/* より滑らかなアニメーション用のキーフレーム */
@keyframes hamburger-to-cross {
    0% {
        transform: rotate(0deg) translate(0px, 0px);
    }
    50% {
        transform: rotate(0deg) translate(0px, 0px);
    }
    100% {
        transform: rotate(45deg) translate(6px, 6px);
    }
}

@keyframes hamburger-to-cross-reverse {
    0% {
        transform: rotate(0deg) translate(0px, 0px);
    }
    50% {
        transform: rotate(0deg) translate(0px, 0px);
    }
    100% {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* ナビゲーションメニュー */
.nav-menu {
    position: fixed;
    top: 80px;
    right: -300px;
    width: 300px;
    height: calc(100vh - 80px);
    background-color: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 999;
    overflow-y: auto;
}

.nav-menu.active {
    right: 0;
}

.nav-list {
    list-style: none;
    padding: 20px 0;
}

.nav-item {
    border-bottom: 1px solid #eee;
}

.nav-link {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.nav-link:hover {
    background-color: #f5f5f5;
    color: #1976d2;
}

.nav-link.current {
    background-color: #e3f2fd;
    color: #1976d2;
    font-weight: bold;
}

/* ナビゲーションオーバーレイ */
.nav-overlay {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

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

/* ページコンテナ */
.page-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    position: relative;
    min-height: calc(100vh - 120px);
    overflow: hidden;
}


/* ページコンテンツ */
.page-content {
    padding: 0px 20px 30px 20px;
    line-height: 1.6;
}

/* メイン画像コンテナ */
.main-image {
    position: relative;
    width: 100vw;
    height: 650px;
    overflow: hidden;
    margin-left: calc(-50vw + 50%);
    margin-bottom: 30px;
}

/* メイン画像内のdiv共通スタイル */
.main-image > div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* インデックスページの動画背景 */
.main-image .idx video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* 動画背景のオーバーレイ */
.main-image .idx::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* 動画背景上のコンテンツ */
.main-image .idx > img {
    position: relative;
    z-index: 3;
    max-width: 620px;
    object-fit: contain;
}
.main-image .greeting {
    background-image: url('../images/2074573_m.jpg');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
}

.main-image .risk {
    background-image: url('../images/risk.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.main-image .privacy {
    background-image: url('../images/iruka.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.main-image .privacy02 {
    background-image: url('../images/iruka02.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.main-image .ilife {
    background-image: url('../images/neko.png');
    background-size: contain;
    background-position: top;
    background-repeat: no-repeat;
}

/* ilife.htmlのみ main-imageの高さを750pxに */
.ilife-page .main-image {
    height: 756px;
}

img.ilife-logo {
    width: 45%;
    position: absolute;
    top: 4%;
    left: 2%;
    max-width: 410px;
    z-index: 10;
}
.ilife-page .right-column .section-content{
    position: relative;
}
.butterfly{
    position: absolute;
    top: -21%;
    right: 0;
    width: 100%;
    z-index: 10;
    max-width: 150px;
}
.butterfly img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.section-title.h2-ilife {
    color: #e4005a;
}
.section-title_underline.h2-ilife {
    color: #e4005a;
    font-size: 32.5px;
    font-weight: bold;
    margin-bottom: 30px;
    padding-bottom: 5px;
    text-align: center;
    border-bottom: 2px solid #e4005a;
}
.ilife-page p{
    font-size: 18px!important;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #000!important;
}
.ilife-page dl{width: 80%;margin: 0 auto;}
.ilife-page dl dt{
    font-size: 19.5px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #004385;
}
.ilife-page dl dd{
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #000;
}

/* 活動内容のulスタイル */
.ilife-page ul {
    list-style: none;
    padding: 0;

}

.ilife-page ul li:first-child {
    font-weight: bold;
    color: #004385;
    font-size: 19px;
    margin-bottom: 5px;
    line-height: 1.6;

}

.ilife-page ul li:not(:first-child) {
    font-size: 19px;
    color: #000;
    line-height: 1.6;
    margin-bottom: 5px;

}

/* iLife画像グリッド */
.ilife-image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    width: 100%;
    margin: 30px 0 50px;
}

.ilife-image-grid img {
    width: 100%;
    height: auto;
    display: block;
}
.ilife-sns{
    text-align: center;
    margin:0 auto 50px;
    max-width: 400px;
}
.ilife-sns-icon{
    display: flex;
    justify-content: center;
    gap: 70px;
}
.ilife-sns-icon a{
    display: block;
    width: 110px;
}
.ilife-sns-icon img {
    width: 100%;
    height: auto;
    display: block;
}

/* スマホ対応：2x2グリッド */
@media (max-width: 768px) {
    .ilife-image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* 動画背景のオーバーレイ */
.main-image .greeting::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}
.main-image .greeting > img {
    position: relative;
    z-index: 3;
    max-width: 180px;
    object-fit: contain;
}
.content-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 32.5px;
    font-weight: bold;
    color: #004097;
    margin-bottom: 15px;
    padding-bottom: 5px;
    text-align: center;

}
.section-title_underline {
    font-size: 32.5px;
    font-weight: bold;
    color: #004097;
    margin-bottom: 30px;
    padding-bottom: 5px;
    text-align: center;
    border-bottom: 2px solid #004097;

}
.content-section p{
    font-size: 16px; line-height: 1.6; margin-bottom: 20px;color: #004385;
}
.content-section p.copy{
    font-size: 26px; line-height: 1.6; margin: 0 auto 20px;max-width: 860px;
}
.content-section p.rinen{
    font-size: 23px; line-height: 1.6; margin: 0 auto 20px;color: #000;
}

/* Moreボタンスタイル */
.more-button-container {
    text-align: center;
    margin: 30px 0;
}

.more-button {
    display: inline-block;
    background-color: #004097;
    color: white;
    padding: 10px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 64, 151, 0.3);
    width: 420px;
    text-align: center;
    box-sizing: border-box;
}

.more-button:hover {
    background-color: #003080;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 64, 151, 0.4);
}

/* 2カラムレイアウト */
.two-column-layout {
    display: flex;
    align-items: start;
    gap: 0;
    margin-bottom: 40px;
}

.left-column {
    width: 50%;
    padding: 0;
}
.left-column-content {
    padding: 20px 0 20px 20px;
}
.right-column {
    width: 50%;
    padding: 0 40px;
}

.right-column.no-padding {
    padding: 0;
}
.right-column-content {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
}
.right-column-content a {
    width: 45%;
    height: auto;
    display: block;
}
.right-column-content a img {
    width: 100%;
    height: auto;
    display: block;
}

.right-column-content a:first-child {
    position: absolute;
    top: 0;
    left: 30%;

}
.right-column-content a:nth-child(2) {
    position: absolute;
    top: 40%;
    left: 7%;

}
.right-column-content a:nth-child(3) {
    position: absolute;
    top: 40%;
    left: 53%;

}
.right-column .section-content p{
    font-size: 16px; line-height: 1.8; margin-bottom: 20px;color: #000!important;
}
.about-image {
    width: 100%;
    height: auto;
    display: block;
}

/* 代表者情報スタイル */
.president-title {
    color: #000!important;
    font-family: serif;
    margin: 20px 0 0 0!important;
    font-size: 23px!important;
}

.president-name {
    color: #000!important;
    font-family: serif;;
    margin:0!important;
    font-size: 32px;
    letter-spacing: 0.2em;
}

.president-name-en {
    color: #000!important;
    font-family: serif;
}

.section-content {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 100px;
}
.otoiawase {
    text-align: center;
}
.otoiawase a {
    display: inline-block;
    width: 100%;
    max-width: 400px;
    height: auto;
}
.otoiawase a img {
    width: 100%;
    height: auto;
    display: block;
}
/* 特徴リスト */
.features-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}
 
.features-list li{
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
    font-size: 19.5px;

}

/* features-listの<strong>を含むliにだけ行頭マーク */
.features-list li:has(strong)::before {
    content: "＊";
    margin-right: 8px;
    position: absolute;
    left: 0;
}

/* index.htmlのサービス特徴リストのみdiscスタイル */
.features-list-disc {
    list-style-type: disc;
    padding-left: 25px;
}

.features-list-disc li {
    padding-left: 0;
}

.features-list-disc li::before {
    content: none !important;
}

.features-list li a{
    color: #0068b6;
}


/* パートナーグリッド */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.partner-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.partner-card:hover {
    border-color: #1976d2;
    transform: translateY(-3px);
}

.partner-name {
    font-size: 16px;
    font-weight: bold;
    color: #1976d2;
    margin-bottom: 10px;
}

.partner-description {
    font-size: 13px;
    line-height: 1.4;
    color: #666;
}

/* 会社情報グリッド */
.company-info-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    font-size: 19.5px;
    line-height: 1.6;
    margin-top: 20px;
}

.info-label {
    color: #333;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.info-label:first-child {
    border-top: 1px solid #eee;
}

.info-value {
    color: #666;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.info-value:nth-child(2) {
    border-top: 1px solid #eee;
}

/* 沿革リスト */
.history-list {
    margin-top: 20px;
}

.history-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;

}

.history-year {
    width: 120px;
    font-size: 19.5px;
}

.history-content {
    flex: 1;
    font-size: 19.5px;
    line-height: 1.5;
}

/* サービスグリッド */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 0;
    column-gap: 15px;
    margin-top: 20px;
}

.service-card {
    padding: 0px;
}

.service-card img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px;
}

.service-card .service-title {
    font-size: 13px;
    font-weight: bold;
    color: #004385;
    margin-bottom: 5px;
}

.service-card .service-description {
    font-size: 12px;
    line-height: 1.5;
    color: #666;
}
p.service-description{
    font-size: 23.5px;
    line-height: 1.6;
    color: #000;
}

p.service-details {
    font-size: 20px;
    line-height: 1.6;
    color: #000;
}

/* page4.html 統一スタイル */
.page4-content p,
.page4-content h2,
.page4-content h3,
.page4-content h4,
.page4-content li,
.page4-content ol,
.page4-content ul {
    font-size: 16px;
    color: #000;
    text-align: left;
    line-height: 1.6;
    margin: 0;
}

.page4-content h2,
.page4-content h3,
.page4-content h4 {
    margin: 20px 0 0 0;
    font-weight:normal;
}

.page4-content ul:not(.features-list),
.page4-content ol {
    margin-left: 0;
    padding-left: 0;
    margin-block-start: 0;
    margin-block-end: 0;
    
}

.page4-content .section-content,
.page4-content .content-section {
    margin-bottom: 0;
}

.page4-content .features-list {
    margin-left: 0;
    margin-bottom: 0 !important;
    padding-left: 0;
}

.page4-content .features-list li {
    padding-left: 0;
    margin-bottom:0;
}

.page4-content ol,.page4-content ul {
    list-style: none;
}

/* page5.html 統一スタイル */
.page5-content p,
.page5-content h2,
.page5-content h3,
.page5-content h4,
.page5-content li,
.page5-content ol,
.page5-content ul {
    font-size: 16px;
    color: #000;
    text-align: left;
    line-height: 1.6;
    margin: 0;
}

.page5-content h2,
.page5-content h3,
.page5-content h4 {
    margin: 20px 0 0 0;
    font-weight: normal;
}

.page5-content ul:not(.features-list),
.page5-content ol {
    margin-left: 0;
    padding-left: 0;
    margin-block-start: 0;
    margin-block-end: 0;
}

.page5-content .section-content,
.page5-content .content-section:not(:has(.otoiawase)) {
    margin-bottom: 0;
}

/* お問い合わせボタンのセクションは通常の余白を保持 */
.page5-content .content-section:has(.otoiawase) {
    margin-bottom: 40px;
}

.page5-content .features-list {
    margin-left: 2rem;
    margin-bottom: 0 !important;
    padding-left: 0;
}

.page5-content .features-list li {
    padding-left: 0;
    margin-bottom: 0;
}

.page5-content ol {
    list-style: none;
}

.page5-content ul {
    list-style-type: "・";
    list-style-position: outside;
    padding-left: 20px;
    margin-left: 20px;
}

.page5-content li {
    padding-left: 0;
}
/* block */
.block {
    margin: 30px;

    border: 2px solid #004385;
    border-radius: 8px;
}
.block-inner {
    padding: 0 30px;
    margin-bottom: -60px;
}
.block .section-title {
    color: #004097;
    background-color: #e9e9f4;
    border-radius: 8px 8px 0 0;
    font-weight: normal;
    letter-spacing: 0.2em;
}
.block .section-title_underline {
    color: #004385;
}
.block .section-content p{
    color: #000;
}

/* サービスタイトル */
.service-title {
    text-align: left;
    color: #004385;
    margin-bottom: 20px;
    font-size: 26px;
}
.service-subtitle {
    text-align: left;
    color: #004385;
    margin-bottom: 20px;
    font-size: 26px;
    letter-spacing: 0.2em;
    border: 2px solid #004385;
    display: inline-block;
    padding: 5px 10px;
}
/* 画像プレースホルダー */
.image-placeholder {
    background-color: #f0f0f0;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    text-align: center;
    margin: 20px 0;
    border-radius: 8px;
}

/* フッター */
.page-footer {
    background-color: #333;
    color: white;

    min-height: 200px;
}

.footer-company-info {

    background-color: white;
    color: #333;
    padding: 30px 20px;
    font-size: 13px;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
}

.footer-company-logo {
    width: 35%;
    height: auto;
    margin-bottom: 5px;
}

.footer-nav-links {

    background-color: #eef3f6;
    color: #333;
    padding: 30px 100px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
}

.footer-nav-row {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-nav-links a {
    color: #04407e;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* PC表示時の各行の最初のaタグを太字に */
.footer-nav-row.desktop-only a:first-child {
    font-weight: bold;
}

/* 個人情報保護方針の行は細字のまま */
.footer-nav-row.desktop-only a[href="privacy.html"] {
    font-weight: normal;
}

/* 右カラムのリンク画像のホバーエフェクト */
.right-column-content a {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.right-column-content a:hover {
    opacity: 0.7;
}

/* ilife.htmlのヘッダーとフッターを非表示 */
.ilife-page .header,
.ilife-page .nav-menu,
.ilife-page .nav-overlay,
.ilife-page .page-footer {
    display: none;
}

/* ilife.htmlのみbodyのpadding-topを0に */
.ilife-page {
    padding-top: 0;
}

.footer-nav-links a:hover {
    color: #1976d2;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }
    .service-subtitle {
        font-size: 20px;

    }
    p.service-description {
        font-size: 18px;
    }
    p.service-details {
        font-size: 15px;
    }
    
    /* スマホ時のMoreボタンサイズ調整 */
    .more-button {
        max-width: 320px;
        width: 100%;
        font-size: 16px;
        padding: 10px 20px;
    }
    
    /* スマホ時のフッターロゴサイズ調整 */
    .footer-company-logo {
        width: 300px;
        max-width: 90%;
    }
    
    .features-list{
     
    }
    .features-list li {
        margin-bottom: 15px;
        padding-left: 0px;
        font-size: 15px;
    }
    .features-list li::before {
        content: none!important;
        margin-right: 0!important;
    }
    .page-container {
        margin: 10px;
        border-radius: 0;
    }
    .contact-form {

        padding: 10px;
        margin-top: 30px;
    }
    .page-content {
        
    }
    .page5-content .features-list {
        margin-left: 1rem;

    }
    
    .ilife-page .main-image {
        height: 300px;
    }
    .main-image .ilife {

        background-size: cover;
    }
    .service-title {
        font-size: 20px;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .company-info-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .history-item {
        flex-direction: flex;
        gap: 10px;
    }
    
    .history-year {
        width: auto;
        font-size: 14px;
    }
    .history-content {
        font-size: 14px;
    }
    
    .page-footer {
        flex-direction: column;

    }
    
    .footer-company-info,
    .footer-nav-links {
        width: 100%;
    }
    
    .footer-nav-row {
        flex-direction: column;
        gap: 10px;
    }
    
    /* 2カラムレイアウトのレスポンシブ対応 */
    .two-column-layout {
        flex-direction: column;
    }
    
    .left-column,
    .right-column {
        width: 100%;
        padding: 0;
    }
    
    .left-column {
        margin-bottom: 20px;
    }
    .section-content {
        margin-bottom: 30px;
    }
    .company-info-grid {
        display: flex;
        flex-wrap: wrap;
        grid-template-columns: 120px 1fr;
        font-size: 14px;
        line-height: 1.6;
        margin-top: 20px;
    }
    .info-label {

        padding: 10px 0;
        width: 20%;
    }
    
    .info-label:first-child {
        border-top: 1px solid #eee;
    }
    
    .info-value {
        color: #666;
        padding: 10px 0;
        width: 80%;
        border-bottom: 1px solid #eee;
    }
    
    .info-value:nth-child(2) {
        border-top: 1px solid #eee;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 20px;
    }
    
    .page-subtitle {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 25px;
    }
    
    .nav-menu {
        width: 250px;
        right: -250px;
    }
}

/* Facebook */
.facebook {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    width: 100%;
}

.facebook {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.facebook .fb-page {
    width: 100% !important;
    max-width: 100% !important;
}

.facebook .fb-page iframe {
    width: 100% !important;
    max-width: 100% !important;
}

.facebook .fb-page > span {
    width: 100% !important;
    max-width: 100% !important;
}

.facebook .fb-page .fb_iframe_widget {
    width: 100% !important;
    max-width: 100% !important;
}

.facebook .fb-page .fb_iframe_widget > span {
    width: 100% !important;
    max-width: 100% !important;
}

.facebook .fb-page .fb_iframe_widget iframe {
    width: 100% !important;
    max-width: 100% !important;
}

/* アンカーリンクのオフセット調整 */
html {
    scroll-padding-top: 50px; 
}

/* IDを持つ要素のスクロールマージン調整 */
[id] {
    scroll-margin-top: 50px;
}

/* 電話番号リンク - PCでは無効、スマホでは有効 */
.tel-link {
    color: inherit;
    text-decoration: none;
    pointer-events: none;
}

@media (max-width: 768px) {
    .tel-link {
        color: #004385;
        text-decoration: underline;
        pointer-events: auto;
    }
}

/* ラジオボタングループのスタイル */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 5px;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.radio-option:hover {
    background-color: #f8f9fa;
}

.radio-option input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

.radio-option span {
    font-size: 14px;
    color: #333;
}



/* スマホ表示時の画像サイズ調整 */
@media (max-width: 768px) {
    .main-image .risk {
        background-size: contain;
    }
    .main-image {

        height: 240px;

    }
    .main-image .idx > img {
        max-width: 300px;
    }
    .main-image .greeting > img {
        position: absolute;
        top: 10%;
        max-width: 80px;
    }
    .content-section p.copy {
        font-size: 20px;
        line-height: 1.6;
    }
    /* サービス紹介文のフォントサイズ調整 */
    .service-intro {
        font-size: 19px!important;
    }
    .block {
        margin: 0px;
    }
    .block-inner {
        padding: 10px;
        margin-bottom: 0px;
    }
    .left-column-content {
        padding: 20px 0 0 0;
    }
    .right-column-content {
        padding-bottom: 80%;
    }
    .right-column-content a {
        width: 35%;
        height: auto;
        display: block;
    }

    .right-column-content a:first-child {
        position: absolute;
        top: 0;
        left: 30%;
    
    }
    .right-column-content a:nth-child(2) {
        position: absolute;
        top: 39%;
        left: 12%;
    
    }
    .right-column-content a:nth-child(3) {
        position: absolute;
        top: 39%;
        left: 48%;
    
    }
    .two-column-layout {

        margin-bottom: 0;
    }
    
    /* スマホ時のフッター表示順逆転 */
    .page-footer {
        flex-direction: column-reverse;
    }
    
    .footer-company-info {
        width: 100%;
        background-color: white;
        text-align: center;
        padding: 20px;
    }
    
    .footer-nav-links {
        width: 100%;
        background-color: #eef3f6;
        padding: 20px;
    }
    
    /* スマホ時のフッターメニューを1列表示に */
    .footer-nav-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-nav-row {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-nav-row a {
        text-align: center;
        padding: 8px;
        background-color: rgba(255,255,255,0.1);
        border-radius: 4px;
    }
    
    /* スマホ時の表示切り替え */
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: flex;
        flex-direction: column;

    }
    
    /* スマホ時のフッターリンクスタイル */
    .mobile-only a {
        text-align: left;
        padding: 3px 12px;
        color: #004386!important;
        font-size: 15px;
        text-decoration: none;
        color: inherit;
    }
    body {
        padding-top: 60px;
    }
    .header {

        height: 60px;
    }
    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
    }
    .nav-overlay {
        top: 60px;
    }
     .center-logo-image {
         max-width: 200px;
     }
     
     /* rinen クラスのスマホ時フォントサイズ */
     .rinen {
         font-size: 18px!important;
     }
     
     /* 連絡先をスマホ時に3行表示 */
     .contact-info {
         display: flex;
         flex-direction: column;
         gap: 5px;
     }
     
     .tel-line, .fax-line, .mail-line {
         display: block;
     }
     
     /* iLifeの連絡先をスマホ時に2行表示 */
     .ilife-contact-info {
         display: flex;
         flex-direction: column;
         gap: 5px;
     }
     
     .ilife-fax-line, .ilife-mail-line {
         display: block;
     }
     
     .ilife-page dl {
        width: 100%;
    }
    .ilife-page dl dt {
        font-size: 15px;
    }
    .ilife-page dl dd {
        font-size: 15px;
    }
    .ilife-page ul li:first-child {
        font-size: 15px;
    }
    .ilife-page ul li:not(:first-child) {
        font-size: 15px;
    }
     
     /* 保険会社セクションのスマホ時スタイル */
     .insurance-companies-section .insurance-title,
     .insurance-companies-section .insurance-description,
     .insurance-companies-section .company-item {
         font-size: 14px;
         display: block;
         margin: 5px 0px;
     }
     
     .company-list {
         margin: 0px;
     }
     
     /* services-gridのスマホ時レイアウト */
     .services-grid {
         grid-template-columns: 1fr 1fr;
         gap: 10px;
     }
     
     .service-card {
         margin-bottom: 15px;
     }
     
     .company-item {
         display: block;
         margin-bottom: 5px;
         line-height: 1.6;
     }
     .ilife-page p {
        font-size: 14px!important;
        line-height: 1.6;
    }
    
    /* Facebookプラグインのスマホレスポンシブ対応 */
    .facebook {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    .facebook .fb-page,
    .facebook .fb-page > span,
    .facebook .fb-page .fb_iframe_widget,
    .facebook .fb-page .fb_iframe_widget > span,
    .facebook .fb-page .fb_iframe_widget iframe {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 280px !important;
    }
 }

 .butterfly02 {display: none;}
  .profile-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-item {
    display: flex;
    gap: 10px;
}

.profile-label {
    min-width: 80px;
    flex-shrink: 0;
}

.profile-value {
    flex: 1;
}
.ilife-page .right-column .section-content {
    margin-bottom: 0!important;
}
.ilife-page .two-column-layout{margin-bottom: 0!important;}

 .profile-label p{margin-bottom: 0!important;}
 .profile-value p{margin-bottom: 0!important;}

/* Contact and Facebook sections order control */
.contact-facebook-container {
    display: flex;
    flex-direction: column;
}

/* PC表示時: お問い合わせが1番目、Facebookが2番目 */
.contact-facebook-container .otoiawase-section {
    order: 1;
}

.contact-facebook-container .facebook-section {
    order: 2;
}

/* スマホ表示時: Facebookが1番目、お問い合わせが2番目 */
@media (max-width: 768px) {
    .contact-facebook-container .otoiawase-section {
        order: 2;
    }
    
    .contact-facebook-container .facebook-section {
        order: 1;
    }
    
    /* スマホ表示時の代表者情報を中央揃え */
    .president-title,
    .president-name,
    .president-name-en {
        text-align: center;
    }
    .ilife-page p.president-title{
        font-size :23px!important;
        line-height: 1.2;
    }
    .ilife-page h3.president-name{
        font-size: 26px!important;
    }
    .ilife-page p.president-name-en{
        font-size: 16px!important;
    }
    .butterfly {
        top: -21%;
        left: 0;
        width: 100%;
        z-index: 10;
        max-width: 100px;
    }
     .butterfly02 {
         top: -6%;
         right: 0;
         width: 100%;
         z-index: 10;
         max-width: 100px;
         display:block;
         position:absolute;
     }
     
     /* スマホ表示時のみposition:relativeを適用 */
     .motto-vision-section {
         position: relative;
     }
     .section-title_underline.h2-ilife{
        font-size: 25px;
     }
}
