@charset "utf-8";

/* =============================================
   CUSTOM IMPROVEMENTS - 人気が高まる家族葬
   ============================================= */

/* === General Body === */
body {
    background-color: #f4f6f9;
    font-family: "Hiragino Kaku Gothic Pro","ヒラギノ角ゴ Pro W3","メイリオ",Meiryo,"ＭＳ Ｐゴシック",Verdana,Arial,Helvetica,sans-serif;
    color: #444;
}

/* === Header Improvements === */
div#header {
    background: linear-gradient(to bottom, #1a2a3a, #2c4057) !important;
    border-bottom: 3px solid #3a7abf;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

div#headerInner {
    padding: 0;
}

div#pageHeader {
    float: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
}

div#pageHeader p#logo {
    margin: 0;
    padding: 8px 15px 0 15px;
    display: block;
}

div#pageHeader h1 {
    display: none !important;
}

/* === Top Navigation Bar (Home / About Us / Service) === */
#topNavBar {
    background: linear-gradient(135deg, #1e3a52, #2c5f8a);
    padding: 10px 15px;
    display: flex;
    gap: 8px;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
}

#topNavBar .nav-btn {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08));
    color: #e8f4fc !important;
    text-decoration: none !important;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.25);
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

#topNavBar .nav-btn:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.30), rgba(255,255,255,0.20)) !important;
    border-color: rgba(255,255,255,0.5) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#topNavBar .nav-btn.active {
    background: linear-gradient(135deg, #3a7abf, #2c5f8a) !important;
    border-color: #5a9fd4 !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

#topNavBar .nav-btn .icon {
    margin-right: 5px;
}

/* === Container & Content === */
div#container {
    background-color: transparent !important;
    padding-top: 20px;
}

div#containerInner {
    background: transparent;
}

div#main {
    background: #ffffff !important;
    border-radius: 6px 0 0 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

div.box {
    padding: 5px 0;
}

div.box p {
    line-height: 1.9em;
    padding: 5px 15px;
    font-size: 13px;
    color: #555;
}

/* === H2 Headings Override === */
div.box h2 {
    background: linear-gradient(to right, #2c5f8a, #3a7abf) !important;
    border-left: 4px solid #1a3a5c;
    border-radius: 0 4px 4px 0;
    padding: 0 !important;
    margin: 1.5em 0 1em 0 !important;
    clear: both;
}

div.box h2 span {
    display: block !important;
    height: auto !important;
    line-height: 1.5 !important;
    padding: 10px 15px !important;
    background: none !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: bold !important;
}

/* === Sidebar === */
div#side {
    background: #ffffff !important;
    border-radius: 0 6px 6px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* === Sidebar Navigation === */
dl.navigation {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

dl.navigation dt {
    background: linear-gradient(135deg, #2c5f8a, #3a7abf) !important;
    color: #ffffff !important;
    padding: 10px 15px !important;
    font-size: 13px;
    font-weight: bold;
    border-bottom: none !important;
}

dl.navigation dt span {
    background: none !important;
    padding: 0 !important;
    color: #ffffff !important;
}

dl.navigation dd {
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #e0e9f0;
    border-top: none;
}

dl.navigation dd ul {
    margin: 0 !important;
    padding: 0 !important;
    left: 0 !important;
}

dl.navigation dd ul li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    background-color: #ffffff !important;
    border-bottom: 1px solid #e8eff5 !important;
    transition: background 0.2s ease;
}

dl.navigation dd ul li:hover {
    background-color: #eef5fb !important;
}

dl.navigation dd ul li a {
    display: block !important;
    height: auto !important;
    line-height: 1.4 !important;
    padding: 10px 15px 10px 20px !important;
    color: #2c5f8a !important;
    text-decoration: none !important;
    font-size: 13px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

dl.navigation dd ul li a::before {
    content: "▶ ";
    font-size: 9px;
    color: #3a7abf;
    margin-right: 4px;
    vertical-align: middle;
}

dl.navigation dd ul li a:hover {
    color: #1a3a5c !important;
    border-left: 3px solid #3a7abf;
    padding-left: 22px !important;
    background-color: transparent !important;
}

/* === Side Navigation Title Bar === */
.side-nav-title {
    background: linear-gradient(135deg, #2c5f8a, #3a7abf) !important;
    color: #ffffff !important;
    padding: 10px 15px !important;
    border-radius: 4px 4px 0 0;
    font-size: 13px;
    font-weight: bold;
    margin: 0 !important;
    display: block;
}

/* === Buttons (general) === */
button, .btn {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #2c5f8a, #3a7abf);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    transition: all 0.25s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

button:hover, .btn:hover {
    background: linear-gradient(135deg, #1a3a5c, #2c5f8a) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transform: translateY(-1px);
}

/* === Footer === */
div#footer {
    background: linear-gradient(to bottom, #1e3040, #12202e) !important;
    border-top: 3px solid #3a7abf;
    margin-top: 30px;
}

div#pageFooter {
    padding: 20px 15px;
}

div#pageFooter address {
    color: #7fb8d8 !important;
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.5px;
}

div#pageFooter address a {
    color: #a0cfe8 !important;
    text-decoration: none;
}

div#pageFooter address a:hover {
    color: #c0dfec !important;
    text-decoration: underline;
}

/* Remove Wayback Machine promo footer */
center {
    display: none !important;
}

/* === 新着情報 (News) Box === */
.news-box-title {
    background: linear-gradient(135deg, #2c5f8a, #3a7abf) !important;
    color: #ffffff !important;
    padding: 10px 15px !important;
    border-radius: 4px 4px 0 0;
    font-size: 13px;
    font-weight: bold;
    border: none !important;
}

.news-box-body {
    border: 1px solid #d0e4f0 !important;
    border-top: none !important;
    border-radius: 0 0 4px 4px;
    background: #f8fbfe;
}

/* === Links in content === */
div.box a:link, div.box a:visited {
    color: #2c5f8a;
}

div.box a:hover {
    color: #1a3a5c;
    text-decoration: underline;
}

/* === Responsive adjustments === */
@media (max-width: 700px) {
    #topNavBar {
        justify-content: center;
    }

    #topNavBar .nav-btn {
        padding: 7px 14px;
        font-size: 12px;
    }

    div.box h2 span {
        font-size: 13px !important;
    }
}

/* === Page title in content area === */
div.box > p:first-child {
    background: #eef5fb;
    border-left: 3px solid #3a7abf;
    border-radius: 0 4px 4px 0;
    padding: 12px 15px !important;
    margin-bottom: 15px;
    font-size: 13px;
    color: #2c3e50;
}

/* === 404 Page Styles === */
.page-404 {
    text-align: center;
    padding: 60px 20px;
    min-height: 400px;
}

.page-404 .error-code {
    font-size: 80px;
    font-weight: 900;
    color: #2c5f8a;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.page-404 .error-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.page-404 .error-message {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.page-404 .back-btn {
    display: inline-block;
    padding: 12px 35px;
    background: linear-gradient(135deg, #2c5f8a, #3a7abf);
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(44,95,138,0.3);
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
}

.page-404 .back-btn:hover {
    background: linear-gradient(135deg, #1a3a5c, #2c5f8a) !important;
    box-shadow: 0 6px 16px rgba(44,95,138,0.4) !important;
    transform: translateY(-2px) !important;
    color: #ffffff !important;
}

/* === About & Service Page Styles === */
.page-intro {
    background: linear-gradient(135deg, #eef5fb, #d8ecf7);
    border-radius: 6px;
    padding: 20px 25px;
    margin: 15px 0;
    border-left: 4px solid #3a7abf;
}

.page-intro p {
    background: none !important;
    border: none !important;
    padding: 5px 0 !important;
    margin: 0;
    line-height: 1.8;
    color: #2c3e50;
}

.service-card {
    background: #ffffff;
    border: 1px solid #d0e4f0;
    border-radius: 6px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease;
}

.service-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.service-card h3 {
    color: #2c5f8a;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0eef7;
}

.service-card p {
    color: #555;
    line-height: 1.8;
    font-size: 13px;
}

.about-info {
    background: #f8fbfe;
    border: 1px solid #d0e4f0;
    border-radius: 6px;
    overflow: hidden;
    margin: 15px 0;
}

.about-info table {
    margin: 0 !important;
}

.about-info table th {
    background: linear-gradient(to right, #eef5fb, #f4f9fd) !important;
    border-color: #d0e4f0 !important;
    color: #2c5f8a;
    font-weight: bold;
    width: 35%;
    padding: 12px 15px !important;
}

.about-info table td {
    border-bottom: 1px solid #e0eef7;
    padding: 12px 15px !important;
    color: #555;
}
