/* ==========================================================================
   RESET & BASE STYLE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.7;
    color: #333333; /* 文字は真っ黒より濃いグレーが今風で読みやすい */
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

/* 共通セクション設定 */
.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: #f9f6f0; /* 温かみのある薄いベージュ */
}

.bg-dark {
    background-color: #4a2f1b;
    color: #ffffff;
}

/* 共通見出し */
.section-title {
    font-size: 32px;
    text-align: center;
    color: #4a2f1b;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #c9a227;
    margin: 15px auto 0;
}

.bg-dark .section-title {
    color: #ffffff;
}

.section-lead {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 16px;
    color: #666666;
}

.bg-dark .section-lead {
    color: #dddddd;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(74, 47, 27, 0.95); /* スクロールしても後ろが透けて綺麗 */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px); /* 背景を少しぼかす高級感演出 */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 50px; /* 無理な拡大をせず高さを固定 */
    width: auto;
}

.nav-menu ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-menu a {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 12px;
    position: relative;
}

/* ナビゲーションの下線アニメーション */
.nav-menu a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 12px;
    width: 0;
    height: 2px;
    background: #c9a227;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: calc(100% - 24px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    padding-top: 80px; /* ヘッダーに被らないように調整 */
    height: 650px;
    background-image: url('img/top.jpg');
    background-size: cover; /* containからcoverに変更（画面いっぱいに広がる） */
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45); /* 文字を読みやすくするため少し暗めに */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    text-align: center;
}

.hero-sub {
    color: #ffcc00;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

.hero h1 {
    font-size: 46px;
    line-height: 1.4;
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}

.hero-text {
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.8;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

/* ボタン共通スタリング */
.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transform: translateY(0);
}

.btn-primary {
    background: #c9a227;
    color: #ffffff;
    border: 2px solid #c9a227;
    margin-right: 15px;
}

.btn-primary:hover {
    background: #b28e1f;
    border-color: #b28e1f;
    transform: translateY(-3px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 2px solid #ffffff;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: #ffffff;
    color: #4a2f1b;
    transform: translateY(-3px);
}

.hero-btns {
    display: flex;
    justify-content: center;
}

/* ==========================================================================
   FEATURES (強みセクション)
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    border-top: 4px solid #c9a227;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    color: #4a2f1b;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 15px;
    color: #666666;
    text-align: left;
    line-height: 1.6;
}

/* ==========================================================================
   SERVICE (サービス案内)
   ========================================================================== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service .card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden; /* 画像の角丸を殺さないため */
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.card-img {
    height: 200px;
    background: #e0e0e0; /* 画像がない時のダミー色 */
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像を綺麗に枠内に収める */
    transition: transform 0.5s ease;
}

.service .card:hover .card-img img {
    transform: scale(1.08); /* ホバーすると画像がふわっと拡大 */
}

.service .card h3 {
    font-size: 18px;
    color: #4a2f1b;
    padding: 20px 20px 10px;
}

.service .card p {
    font-size: 14px;
    color: #666666;
    padding: 0 20px 25px;
    flex-grow: 1;
}

/* ==========================================================================
   PERMIT (建設業許可票・料金表)
   ========================================================================== */
.table-wrapper {
    overflow-x: auto; /* スマホで表がはみ出た時に横スクロールできるようにするお守り */
}

.design-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    background: #ffffff;
}

.design-table th, 
.design-table td {
    padding: 18px 25px;
    text-align: left;
}

.design-table th {
    background: #4a2f1b;
    color: #ffffff;
    font-weight: 600;
    border-bottom: 3px solid #c9a227;
}

.design-table tr {
    border-bottom: 1px solid #eeeeee;
}

.design-table tr:nth-child(even) {
    background: #fafafa; /* 1行おきに背景色を変えて見やすく */
}

.product-name {
    font-weight: 700;
    color: #4a2f1b;
}

.price {
    font-weight: 700;
    color: #d93838; /* 価格は赤系にすると引き締まります */
    font-size: 18px;
    white-space: nowrap;
}

/* ==========================================================================
   EQUIPMENT (自社設備・写真付き対応)
   ========================================================================== */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* PCでは5列に並べる */
    gap: 20px;
}

.eq-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: 1px solid #e6e0d8;
    display: flex;
    flex-direction: column;
}

/* 写真が入るお皿 */
.eq-img {
    height: 140px; /* 写真の高さを均一にする */
    background: #eee;
    overflow: hidden;
}

.eq-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 比率を保ったまま枠いっぱいに広げる（超重要） */
}

/* テキスト部分 */
.eq-body {
    padding: 20px 15px;
    text-align: left;
    flex-grow: 1;
}

.eq-body h4 {
    font-size: 15px;
    color: #4a2f1b;
    margin-bottom: 8px;
    font-weight: 700;
}

.eq-body p {
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
}

/* スマホ・タブレット表示の調整 */
@media (max-width: 1024px) {
    .equipment-grid {
        grid-template-columns: repeat(3, 1fr); /* 画面が少し狭いときは3列 */
    }
}

@media (max-width: 768px) {
    .equipment-grid {
        grid-template-columns: 1fr; /* スマホでは縦1列 */
        gap: 15px;
    }
    
    .eq-img {
        height: 200px; /* スマホの時は少し写真を大きめに見せる */
    }
}

/* ==========================================================================
   ACCESS (店舗案内・2つの地図対応)
   ========================================================================== */
.access-layout {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 左に情報、右に地図 */
    gap: 50px;
    text-align: left;
    align-items: start;
}

.access-info h3 {
    font-size: 24px;
    color: #4a2f1b;
    margin-bottom: 20px;
}

.address {
    font-size: 16px;
    margin-bottom: 25px;
    font-weight: 700;
}

.info-list {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 15px 0;
    margin-bottom: 25px;
}

.info-list dt {
    font-weight: 700;
    color: #c9a227;
}

.info-list dd {
    color: #333333;
}

.note {
    font-size: 13px;
    color: #888888;
    background: #fdfaf6;
    padding: 15px;
    border-left: 3px solid #c9a227;
}

/* 地図が2つ入る右側ブロック */
.access-maps {
    display: flex;
    flex-direction: column;
    gap: 25px; /* Googleマップとオリジナル地図の間の隙間 */
}

/* Googleマップをレスポンシブ（横幅ぴったり）にする */
.map-google iframe {
    width: 100% !important;
    height: 300px !important; /* 高さをスマートに固定 */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* オリジナル地図の装飾 */
.map-original {
    background: #ffffff;
    border: 1px solid #e6e0d8;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.map-label {
    font-size: 13px;
    font-weight: 700;
    color: #4a2f1b;
    margin-bottom: 10px;
}

.map-original img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* スマホ表示（768px以下）の設定 */
@media (max-width: 768px) {
    .access-layout {
        grid-template-columns: 1fr; /* スマホでは縦1列にする */
        gap: 30px;
    }
    
    .map-google iframe {
        height: 250px !important; /* スマホでは少し低くしてスクロールしやすく */
    }
}

/* ==========================================================================
   CONTACT (お問い合わせ)
   ========================================================================== */
.contact {
    padding: 80px 0;
}

.contact h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.contact p {
    font-size: 16px;
    margin-bottom: 35px;
    color: #f5e6d3;
}

.btn-phone {
    background: #ffcc00;
    color: #4a2f1b;
    padding: 20px 50px;
    border-radius: 50px;
    font-size: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    display: inline-block;
}

.btn-phone span {
    font-size: 14px;
    font-weight: normal;
}

.btn-phone strong {
    font-size: 26px;
    display: inline-block;
    margin-top: 5px;
}

.btn-phone:hover {
    background: #ffe066;
    transform: translateY(-3px);
}

.contact-subtext {
    margin-top: 15px;
    font-size: 13px;
    color: #cccccc !important;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: #2f1b0f;
    color: #8c7669;
    padding: 25px 0;
    font-size: 14px;
}

/* ==========================================================================
   RESPONSIVE (スマートフォン表示：768px以下)
   ========================================================================== */
@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 26px;
    }

    /* ヘッダー */
    .header-inner {
        flex-direction: column;
        gap: 12px;
        padding: 12px 0;
    }
    
    .logo img {
        height: 40px;
    }
    
    .nav-menu ul {
        gap: 10px;
        justify-content: center;
    }
    
    .nav-menu a {
        font-size: 13px;
        padding: 5px;
    }
    
    .nav-menu a::after {
        display: none; /* スマホ時はアニメーションをオフ */
    }
    
    .header-cta {
        display: none; /* スマホ時はヘッダーのお問い合わせボタンを隠してスッキリ */
    }

    /* ヒーロー */
    .hero {
        height: auto;
        padding: 140px 0 60px; /* 上部ヘッダー分の余白 */
    }
    
    .hero h1 {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .hero-sub {
        font-size: 15px;
    }
    
    .hero-text {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        padding: 14px 20px;
    }
    
    .btn-primary {
        margin-right: 0;
    }

    /* グリッドレイアウトをすべて1列に変更 */
    .features-grid,
    .service-grid,
    .equipment-grid,
    .access-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* 料金表のパディング調整 */
    .design-table th, 
    .design-table td {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .price {
        font-size: 16px;
    }

    /* 店舗案内 */
    .map-placeholder {
        height: 250px;
    }

    /* お問い合わせ */
    .btn-phone {
        width: 100%;
        max-width: 320px;
        padding: 15px 20px;
    }
    
    .btn-phone strong {
        font-size: 22px;
    }
}

/* ==========================================================================
   追加：ドロップダウンメニュー（PC用）
   ========================================================================== */
.nav-menu ul li {
    position: relative;
}

/* マウスを乗せたら表示されるメニューの初期状態 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #ffffff;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    padding: 10px 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0 !important;
    width: 240px;
    border-radius: 6px;
    border-top: 3px solid #c9a227;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

/* リスト内のリンク装飾を上書き */
.dropdown-menu li a {
    color: #4a2f1b !important;
    display: block;
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: normal !important;
    text-align: left;
    border-bottom: 1px solid #f5e6d3;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a::after {
    display: none !important; /* 下線アニメーションを消す */
}

/* ホバー時の背景変化 */
.dropdown-menu li a:hover {
    background: #fdfaf6;
    color: #c9a227 !important;
    padding-left: 25px !important; /* ちょっと右に動く演出 */
}

/* 親要素（取扱商品）にマウスが乗ったらドロップダウンを表示 */
.has-child:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   追加：下層ページ（個別ページ）用共通スタイル
   ========================================================================== */
.sub-hero {
    padding-top: 80px;
    height: 300px; /* トップページ（650px）より低くしてコンテンツを見やすく */
    background-image: url('img/top.jpg'); /* トップページと同じ写真を流用 */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
}

.sub-hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    width: 100%;
}

.sub-hero-cat {
    color: #ffcc00;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.sub-hero h1 {
    font-size: 32px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

/* パンくずリスト */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: #666666;
    border-bottom: 1px solid #e6e0d8;
}

.breadcrumb a {
    color: #4a2f1b;
    font-weight: 600;
}

.breadcrumb a:hover {
    color: #c9a227;
}

/* ==========================================================================
   追加：スマホ時のメニュー調整（768px以下）
   ========================================================================== */
@media (max-width: 768px) {
    /* スマホ時はドロップダウンを縦並びに開放 */
    .has-child:hover .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        width: 100%;
        box-shadow: none;
        background: rgba(255,255,255,0.05);
        border: none;
        padding: 5px 0;
    }
    
    .dropdown-menu li a {
        color: #ffffff !important;
        text-align: center;
        padding: 8px 0 !important;
        border-bottom: none;
        font-size: 13px !important;
    }
    
    .sub-hero {
        padding-top: 140px;
        height: 200px;
    }
    
    .sub-hero h1 {
        font-size: 24px;
    }
}

/* ==========================================================================
   追加：取扱商品カードのリンク化対応
   ========================================================================== */
.service-grid a.card {
    color: inherit; /* 文字色を元の茶色・グレーに固定 */
    display: flex;
    flex-direction: column;
    text-decoration: none;
    cursor: pointer; /* マウスを乗せたときに指マークにする */
}

/* カードにマウスが乗ったときの立体的な動き */
.service-grid a.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(74, 47, 27, 0.15); /* お店のテーマ色に合わせた柔らかい影 */
    border-color: #c9a227; /* 枠線をゴールドに光らせる演出（お好みで） */
}

/* スマホ時はホバーの動きをリセットしてタップしやすく */
@media (max-width: 768px) {
    .service-grid a.card:hover {
        transform: none;
    }
}

/* ==========================================================================
   追加：新・印鑑カテゴリー専用（3枚画像横並び・高級角丸枠デザイン）
   ========================================================================== */
.elegant-category-layout {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 40px;
}

/* 高級感のある角丸カード */
.luxury-card {
    background: #ffffff;
    border-radius: 20px;       /* しっかりとしたおしゃれな角丸 */
    overflow: hidden;          /* 中の写真が角丸からはみ出るのを完全にシャットアウト */
    box-shadow: 0 12px 40px rgba(74, 47, 27, 0.06);
    border: 1px solid #eae5df;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
}

.luxury-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 45px rgba(74, 47, 27, 0.12);
}

/* 写真を確実に【横に3枚】美しく並べる設定 */
.cat-thumb-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 均等に横3枚並べる */
    background: #faf8f5;
    border-bottom: 1px solid #eae5df;
    height: 190px;                         /* 高さを均一に固定 */
    width: 100%;
}

.thumb-box {
    position: relative;
    overflow: hidden;
    height: 100%;
}

/* 写真と写真の境界線（繊細な白の縦線） */
.thumb-box:not(:last-child) {
    border-right: 2px solid #ffffff;
}

.thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像がまだ無くても枠いっぱいに綺麗にトリミング表示する */
    transition: transform 0.6s ease;
}

.luxury-card:hover .thumb-box img {
    transform: scale(1.05); /* ホバー時の上品な写真拡大 */
}

/* 写真下のミニラベル */
.thumb-box span {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(74, 47, 27, 0.75);
    color: #ffffff;
    font-size: 12px;
    text-align: center;
    padding: 6px 0;
    font-weight: 600;
    letter-spacing: 1px;
}

/* カードの中身テキストエリア */
.luxury-card-body {
    padding: 40px;
    text-align: left;
}

.luxury-card-body h3 {
    font-size: 24px;
    color: #4a2f1b;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.luxury-card-body h3::after {
    content: "";
    display: block;
    width: 30px;
    height: 2px;
    background: #c9a227;
    margin-top: 6px;
}

.luxury-card-desc {
    font-size: 15px;
    color: #555555;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* 下部（価格とボタン）の横並びブロック */
.luxury-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed #eae5df;
    padding-top: 25px;
}

.elegant-price {
    font-size: 14px;
    color: #666666;
    font-weight: 600;
}

.elegant-price span {
    color: #d93838;
    font-size: 26px;
    font-weight: 700;
    margin-left: 5px;
}

.elegant-price small {
    font-size: 12px;
    color: #888888;
}

/* 丸みのあるおしゃれなボタン */
.elegant-arrow-btn {
    background: #4a2f1b;
    color: #ffffff;
    padding: 12px 35px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(74, 47, 27, 0.15);
}

.elegant-arrow-btn::after {
    content: "→";
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.elegant-arrow-btn:hover {
    background: #c9a227;
    color: #ffffff;
}

.elegant-arrow-btn:hover::after {
    transform: translateX(5px);
}

/* カテゴリーページ用のスマホ表示調整（768px以下） */
@media (max-width: 768px) {
    .elegant-category-layout {
        gap: 35px;
    }
    
    .cat-thumb-gallery {
        height: 120px; /* スマホ画面では高さをスマートに自動縮小 */
    }
    
    .luxury-card-body {
        padding: 25px 20px;
    }
    
    .luxury-card-body h3 {
        font-size: 20px;
    }
    
    .luxury-card-desc {
        font-size: 14px;
    }
    
    .luxury-card-meta {
        flex-direction: column; /* スマホでは金額とボタンを縦に並べる */
        align-items: flex-start;
        gap: 20px;
    }
    
    .elegant-arrow-btn {
        width: 100%;
        justify-content: center; /* 横幅いっぱいにしてタップしやすく */
    }
}

/* ==========================================================================
   追加：印鑑カテゴリーカード全体のリンク化対応
   ========================================================================== */
a.luxury-card {
    color: inherit !important; /* 文字の色を本来のグレーや茶色に固定します */
    text-decoration: none !important;
    cursor: pointer !important; /* マウスを乗せたときに必ず「指マーク」にします */
}

/* ==========================================================================
   追加：法人印鑑ページ専用（設立セット強調ボックスデザイン）
   ========================================================================== */
.recommend-box {
    background: #ffffff !important;
    border: 3px solid #c9a227 !important; /* 目立たせるためのゴールド枠 */
    border-radius: 16px !important;
    padding: 40px 30px !important;
    position: relative !important;
    box-shadow: 0 10px 30px rgba(199, 162, 39, 0.1) !important;
}

/* 一番人気のバッジ */
.recommend-box .badge {
    position: absolute !important;
    top: -15px !important;
    left: 30px !important;
    background: #d93838 !important; /* 目立つ赤色 */
    color: #ffffff !important;
    padding: 4px 15px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: 30px !important;
    letter-spacing: 1px !important;
}

.recommend-box h2 {
    font-size: 26px !important;
    color: #4a2f1b !important;
    text-align: left !important;
    margin-bottom: 15px !important;
    font-weight: 700 !important;
}

.recommend-text {
    font-size: 15px !important;
    color: #555555 !important;
    text-align: left !important;
    line-height: 1.7 !important;
    margin-bottom: 25px !important;
}

/* セット用の特別なテーブルの背景色調整 */
.highlight-table th {
    background: #c9a227 !important; /* ゴールドのヘッダー */
}

/* スマホ表示のときの調整（768px以下） */
@media (max-width: 768px) {
    .recommend-box {
        padding: 30px 15px 20px !important;
    }
    .recommend-box h2 {
        font-size: 20px !important;
    }
    .recommend-text {
        font-size: 13px !important;
    }
}

/* ==========================================================================
   【完全修正・ベース破壊防止版】法人印鑑ページ（レイアウト正常化）
   ========================================================================== */
/* 写真と文章を横並びにするブロック */
.corporate-flex-layout {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important; /* 上揃えにして高さを自然に */
    width: 100% !important;
    margin: 40px 0 !important;
}

/* 2つ目のセクション：写真と文章をひっくり返す */
.corporate-flex-layout.reverse {
    flex-direction: row-reverse !important;
}

/* 写真が入るお皿（横幅を確実に300pxに固定し、それ以上暴れさせない） */
.corporate-explain-img,
.corporate-product-img {
    width: 300px !important;
    max-width: 300px !important;
    flex: 0 0 300px !important; /* 横幅を300pxから絶対に伸縮させないお守り */
    background: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid #eae5df !important;
    padding: 12px !important;
    box-sizing: border-box !important;
}

/* 画像そのもののサイズ（枠内にシュッと収める） */
.corporate-explain-img img,
.corporate-product-img img {
    width: 100% !important;
    height: auto !important;
}

/* ローマ字用のダミー背景（サイズを写真枠に合わせる） */
.bg-light-brown {
    background: #fdfaf6 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    height: 220px !important;
}

.text-center-placeholder {
    text-align: center;
    color: #8c7669;
}

/* 解説・価格表の文章が入るエリア（写真の300pxを引いた、残りの横幅いっぱいに自動で広がる） */
.corporate-explain-text,
.corporate-product-info {
    flex: 1 !important;
    width: auto !important;
    padding: 0 0 0 40px !important; /* 写真との間にキレイな隙間をあける */
    text-align: left !important;
}

/* 写真が右側の時は、文章の「右側」に隙間をあける */
.corporate-flex-layout.reverse .corporate-explain-text,
.corporate-flex-layout.reverse .corporate-product-info {
    padding: 0 40px 0 0 !important;
}

/* 文章内の見出しやリストの調整 */
.corporate-explain-text h3 {
    font-size: 22px !important;
    color: #4a2f1b !important;
    margin-bottom: 12px !important;
    font-weight: 700;
}

.explain-list {
    margin: 15px 0;
    padding-left: 20px;
    color: #555555;
}

.explain-list li {
    margin-bottom: 8px;
}

/* 補足説明ボックス */
.info-sub-box {
    background: #fdfaf6;
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid #c9a227;
    margin-top: 20px;
}

.info-sub-box h4 {
    font-size: 14px;
    color: #4a2f1b;
    font-weight: 700;
    margin-bottom: 4px;
}

.info-sub-box p {
    font-size: 13.5px;
    color: #666666;
    line-height: 1.6;
}

/* さりげない点線の区切り */
.section-divider {
    border: none !important;
    border-top: 1px dashed #eae5df !important;
    margin: 50px 0 !important;
    width: 100% !important;
    display: block !important;
    clear: both !important;
}

/* 最下部：3つの書体画像（houjinsetsu2.gif）を真ん中にキレイに配置 */
.corporate-single-layout {
    width: 100% !important;
    margin-top: 50px !important;
    clear: both !important;
}

.corporate-full-img {
    max-width: 650px !important;
    margin: 0 auto !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid #eae5df !important;
    padding: 15px !important;
}

.corporate-full-img img {
    width: 100% !important;
    height: auto !important;
}

/* ==========================================================================
   スマホ表示（768px以下）
   ========================================================================== */
@media (max-width: 768px) {
    .corporate-flex-layout,
    .corporate-flex-layout.reverse {
        flex-direction: column !important; /* スマホでは素直に縦1列に */
        gap: 20px !important;
    }
    
    .corporate-explain-img,
    .corporate-product-img {
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
    }
    
    .corporate-explain-text,
    .corporate-product-info,
    .corporate-flex-layout.reverse .corporate-explain-text,
    .corporate-flex-layout.reverse .corporate-product-info {
        padding: 0 !important; /* スマホの時は左右の余白をリセット */
    }
    
    .bg-light-brown {
        height: 180px !important;
    }
}
/* ==========================================================================
   単品エリア：左に縦3枚の通常比率写真・右に9種類の価格表レイアウト
   ========================================================================== */
.corporate-triple-images {
    width: 300px !important;
    max-width: 300px !important;
    flex: 0 0 300px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    box-sizing: border-box !important;
}

.triple-img-box {
    position: relative !important;
    width: 100% !important;
    height: 160px !important; /* 通常の写真らしい長方形のきれいな比率 */
    background: #ffffff !important;
    border-radius: 10px !important;
    border: 1px solid #eae5df !important;
    overflow: hidden !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02) !important;
}

.triple-img-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.triple-img-box span {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: rgba(74, 47, 27, 0.85) !important;
    color: #ffffff !important;
    font-size: 12px !important;
    text-align: center !important;
    padding: 5px 0 !important;
    font-weight: 600 !important;
    border-top: 1px solid rgba(199, 162, 39, 0.3);
}

/* 価格表を見やすく区切る線の装飾 */
.design-table tr.table-group-start {
    border-top: 2px solid #4a2f1b !important; /* 商品ごとに濃い茶色で区切り線を入れる */
}
.design-table tr.table-group-end {
    border-bottom: 2px solid #eeeeee !important;
}

/* スマホ表示（768px以下）の時の自動切り替え */
@media (max-width: 768px) {
    .corporate-triple-images {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        flex-direction: row !important; /* スマホでは横並び3枚に展開 */
        gap: 10px !important;
    }
    
    .triple-img-box {
        flex: 1 !important;
        height: 90px !important;
    }
    
    .triple-img-box span {
        font-size: 10px !important;
        padding: 3px 0 !important;
    }
}
/* ==========================================================================
   追加：個人ページ・キャラクター印鑑 3×3（計9個）写真グリッドデザイン
   ========================================================================== */
.character-grid-layout {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* 横に3分割 */
    gap: 15px !important; /* 写真同士のすき間 */
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 20px !important;
}

/* 9マスの写真お皿 */
.character-img-box {
    position: relative !important;
    width: 100% !important;
    height: 180px !important; /* きれいな長方形・正方形に近い比率 */
    background: #ffffff !important;
    border-radius: 10px !important;
    border: 1px solid #eae5df !important;
    overflow: hidden !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02) !important;
}

.character-img-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* 写真の下に出る黒帯ラベル */
.character-img-box span {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: rgba(74, 47, 27, 0.85) !important;
    color: #ffffff !important;
    font-size: 12px !important;
    text-align: center !important;
    padding: 5px 0 !important;
    font-weight: 600 !important;
    border-top: 1px solid rgba(199, 162, 39, 0.3);
}

/* スマホ用の安全表示設定 */
@media (max-width: 600px) {
    .character-grid-layout {
        grid-template-columns: repeat(2, 1fr) !important; /* スマホなら横2マスにして見やすく */
    }
    .character-img-box {
        height: 130px !important;
    }
}