@charset "utf-8";

/* ==========================================================================
   1. Base Reset & Common Styles
   ========================================================================== */
* {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: 100%;
    color: #333;
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6, address, div, blockquote, p, pre, ul, ol, li, dl, dt, dd, hr,
table, caption, th, td, span, a, img, iframe {
    margin: 0;
    padding: 0;
    border: 0;
    font-style: normal;
    font-weight: inherit;
    font-size: 100%;
}

li {
    list-style-type: none;
}

a {
    color: #333;
    outline: none;
    text-decoration: none;
}

a:hover {
    color: #999;
    text-decoration: underline;
}

a:hover img {
    opacity: 0.7;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

div:after, dl:after {
    content: "";
    display: block;
    height: 0;
    clear: both;
}

/* ==========================================================================
   2. Utility Classes
   ========================================================================== */
.red { color: #d80c18 !important; }
.bold { font-weight: bold; }
.mb10 { margin-bottom: 10px; }
.mb20 { margin-bottom: 20px !important; }
.mb40 { margin-bottom: 40px; margin-top: 10px; }
.fs08 { font-size: 0.8em; }
.only_pc { display: block; }
.only_sp { display: none; }
.tel, .nagare2-6 { text-align: center; }

/* ==========================================================================
   3. Keyframe Animations
   ========================================================================== */
@keyframes flash {
  from, 50%, to { opacity: 1; text-shadow: none; }
  25%, 75% { opacity: 0.3; text-shadow: none; }
}
@keyframes pulse2 {
    0% { transform: scale(0.95); }
    50% { transform: scale(1.01); }
    100% { transform: scale(0.95); }
}

/* ==========================================================================
   4. Layout: Container, Wrapper, Main
   ========================================================================== */
#container {
    width: 960px;
    margin: 0 auto;
}
#wrapper {
    width: 960px;
    padding: 10px 0 30px 0;
    overflow: hidden;
    margin: 0 auto;
}
#main {
    float: right;
    width: 960px;
}

/* ==========================================================================
   5. Components (Shared between PC and SP)
   ========================================================================== */
/* --- Flash Text --- */
.flash {
  animation: flash 3s infinite;
  margin: 1%;
  font-size: 1em;
  text-align:center;
  font-weight:900;
  color:#f00;
}

/* --- Contact Top Box --- */
.contact_top {
    margin-bottom: 1rem;
}
.contact_top h3 {
    font-size: 22px;
    font-weight: bold;
    color: #ed420f;
    margin-bottom: 1rem;
}
.contact_top .inner {
    padding: 0.5rem;
    background: #feebe3;
}
.contact_top .inner > p {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ee430e;
    text-align: center;
    margin-bottom: 5px;
}
.contact_top .inner > span {
    text-align: center;
    margin-top: 5px;
    display: block;
}

/* --- CTA Button --- */
.cta_btn09 {
    display:flex;
    margin: 1%;
}
.cta_btn09 a {
    color:#fff;
    text-decoration:none;
}
.cta_btn09-price, .cta_btn09-yoyaku {
  color: #fff;
  position: relative;
  display: inline-block;
  text-decoration: none;
  padding: 2%;
  border-radius: 0.3em;
  width: 100%;
  transition: 0.3s;
	text-align:center;
	margin:1%;
	font-size:1.5em;
	font-weight:900;
}
.cta_btn09-price {background: #cc1875;}
.cta_btn09-yoyaku {background: #01b422;}
.cta_btn09 .copy_txt {
  line-height: 1;
  display: inline-block;
  padding: 0.5em 1em;
  background: #fff;
  font-size: 90%;
  border-radius: 5px;
  width:80%;
	margin:1%;
}

.cta_btn09-price .copy_txt, .cta_btn09-yoyaku .copy_txt {
    color: #f00;
}
.cta_btn09-price:hover, .cta_btn09-yoyaku:hover {
  transform: scale(1.05);
}

/* --- Price List --- */
.normalList > li {
    padding: 0;
    margin: 0 0 5px 0px;
    background: none !important;
    text-align: left;
}

/* --- Company Info Table --- */
table.shop {
    text-align: center;
    border: 1px solid #BBB;
    border-collapse: collapse;
}
table.shop th {
    background: #DEEDF6;
}
table.shop th, table.shop td {
    padding: 10px 8px;
    line-height: 18px;
    vertical-align: middle;
    border: 1px solid #BBB;
    text-align: left;
    font-size: 90%;
    font-weight: normal;
}
.company .txt .reserve {
    font-size: 100%;
    color: #EE0003;
}

/* --- Google Map --- */
#company3 {
    margin: 0 0 30px 0;
}
#company3 .frame_wrap {
    position: relative;
    padding-top: 50%;
}
#company3 iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding: 3px;
    border: 1px solid #CCC;
    box-sizing: border-box;
}

/* ==========================================================================
   6. PC Specific Styles (769px and up)
   ========================================================================== */
@media screen and (min-width: 769px) {
    /* --- PC Header & Footer --- */
    #header { width: 960px; }
    #header #header0 { width: 960px; padding: 8px 0; overflow: hidden; }
    #header #header0 h1 { float: left; width: 640px; font-size: 11px; }

    #footer { clear: both; }
    #footer1 { background: url(../images/footerBg01.jpg) no-repeat top #F6F5EF; width: 960px; }
    #footer1 .footer1Inside { width: 960px; }
    #footer1 .footer1Inside ul { width: 930px; padding: 15px; }
    #footer1 .footer1Inside ul li { display: inline; font-size: 11px; color: #06439E; }
    #footer1 .footer1Inside ul li a { color: #06439E; text-decoration: none; }
    #footer2 { background: url(../images/footerBg02.jpg) no-repeat top #F6F5EF; padding: 8px 0; }
    #footer2 address { width: 860px; font-size: 11px; font-family: Arial, Helvetica, sans-serif; text-align: center; color: #06439E; margin: 0 auto; }

    /* --- PC Point Section --- */
    .point {
        background: #ffdd55;
        background-image: linear-gradient(to left, #ffe16b 50%, #ffd11b 50%);
        background-size: 7px 7px;
        border-bottom: 8px solid #ffd11b;
        margin: 1rem auto 3rem;
        padding: 1rem;
    }
    .point h4 {
        text-align: center;
        padding: 15px 0;
    }
    .point .flex_box {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        padding: 0;
    }
    .point .flex_box p {
        width: 32%;
        margin-bottom: 2%;
    }
    .point .flex_box p:not(:nth-child(3n)) {
        margin-right: 2%;
    }

    /* --- PC Company Info --- */
    .company .flex_box.txt {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
    }
    .company .shopimg {
        width: 35%;
        margin-right: 2%;
    }
    table.shop {
        width: 63%;
        margin: 0;
    }
}

/* ==========================================================================
   7. SP Specific Styles (max-width: 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {
    .only_pc { display: none; }
    .only_sp { display: block; }
    
    #container, #wrapper, #main { width: 100%; }
    
    body { font: 14px/1.3 'Noto Sans JP', sans-serif; }
    a:link { font-weight: 700; }
    
    /* --- SP Header --- */
    .header.only_sp .flex_box {
        display: flex;
        justify-content: space-between;
        align-items: stretch;
    }
    .header.only_sp .logo {
        display: flex;
        align-items: center;
    }
    .header.only_sp .demo-icon {
        width: 25%;
        background: #008a00;
        border-radius: 5px;
        padding: 5px;
    }
    .header.only_sp .demo-icon a {
        color: #fff;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
    }
    .header.only_sp .demo-icon p {
        font-size: 3vw;
        font-weight: bold;
        line-height: 1.2;
    }
    .header.only_sp .demo-icon i.fas {
        font-size: 5vw;
        margin-top: 3px;
    }

    /* --- SP CTA Button --- */
    .cta_btn09 {
		display:inherit;
		margin:1% auto;
		text-align:center;
	}
    .cta_btn09-price, .cta_btn09-yoyaku {
      padding: 2%;
      width: 100%;
      margin:1% auto;
      font-size:1.25em;
    }

    /* --- SP Price Accordion --- */
    section.price { width: 90%; margin: 0 auto 20px; }
    .price-accordion dt {
        display: block;
        width: 100%;
        margin: 0 auto 5px;
        padding: 10px 15px 10px 0;
        text-align: center;
        cursor: pointer;
        border-radius: 10px;
        color: #FFF;
        font-size: 1.6em;
        background: #003f97 url(https://www.nagayama-j.com/common_img/arrow01.png) no-repeat right 10pt center;
    }
    .price-accordion dt.active {
        background-image: url(https://www.nagayama-j.com/common_img/arrow02.png);
        background-position: right 9pt center;
    }
    .price-accordion dd { display: none; padding: 10px; }
    .price-accordion .car-img { width: 100%; padding: 10px 0; text-align: center; }
    .price-accordion .car-img img { width: 50%; }
    .price-accordion .category { font-size: 0.9em; text-align: center; margin-bottom: 5px; }
    .price-accordion .car-model { text-align: center; font-weight: bold; margin-bottom: 10px; }
    .price-accordion table.price_data { width: 100%; margin-bottom: 20px; border-collapse: collapse; border: 1px solid #999; }
    .price-accordion table.price_data th, .price-accordion table.price_data td { border: 1px solid #999; padding: 8px; vertical-align: middle; }
    .price-accordion table.price_data th.name { background-color: #f1f0f0; text-align: left; }
    .price-accordion table.price_data td.price { font-weight: bold; font-size: 1.2em; text-align: right; }
    .price-accordion table.price_data td.max { background-color: #ffff00; color: #e70509; font-weight: bold; font-size: 1.3em; text-align: right; }

    /* --- SP Point Section --- */
    .point { background: #ffdd55; background-image: linear-gradient(to left, #ffe16b 50%, #ffd11b 50%); background-size: 7px 7px; border-bottom: 8px solid #ffd11b; margin: 1rem auto 3rem; }
    .point h4 { text-align: center; padding: 25px 0 15px; }
    .point .flex_box { display: flex; flex-wrap: wrap; width: 94%; margin: auto; padding-bottom: 1rem; }
    .point .flex_box p { width: 49%; margin-bottom: 2%; }
    .point .flex_box p:nth-child(odd) { margin-right: 2%; }
    .point h4 img { width: 93%; }

    /* --- SP Company Info --- */
    .company .flex_box { display: block; }
    .shopimg { width: 90%; margin: 0 auto 20px; }
    table.shop { width: 90%; margin: 20px auto 30px; }
    table.shop th, table.shop td { display: block; width: 100%; }

    /* --- SP Footer & Floating Buttons --- */
    footer { padding-bottom: 8rem !important; }
    footer .copy { background-color: #FE7301; padding: 2% 4%; text-align: center; font-size: 11px; color: #FFFFFF; }
    
    .store_open .fix_telbtn {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 5px;
        box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
        z-index: 100;
    }
    .store_open .fix_telbtn .flex_box.telitem {
        width: 100%;
        display: flex;
        justify-content: space-around;
        align-items: center;
        margin: 0 !important;
        animation: pulse2 1.5s ease-in-out infinite;
    }
    .store_open .fix_telbtn .flex_box a {
        width: 49%;
        display: block;
    }
}

/* ==========================================================================
   8. PC Price Table (Final Corrected)
   ========================================================================== */
.price-table-container {
    font-family: 'Noto Sans JP', sans-serif;
    width: 100%;
}

.price-table-container table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ccc;
    font-size: 14px;
    text-align: center;
    color: #333;
    /* table-layout: fixed; を削除 */
}

.price-table-container th,
.price-table-container td {
    border: 1px solid #ccc;
    padding: 12px 8px;
    vertical-align: middle;
}

/* --- Table Header --- */
.price-table-container thead th.head-syaken,
.price-table-container thead th.head-car-type {
    background-color: #004a97;
    color: #fff;
    font-weight: bold;
    border-top: 1px solid #004a97;
    border-bottom: 2px solid #004a97;
}

.price-table-container th.head-syaken {
    font-size: 1.2em;
    width: 16%;
}

.price-table-container th.head-car-type {
    font-size: 1.1em;
    width: 14%;
    border-left: 1px solid #005ab3;
}

.price-table-container th.head-car-type .car-name {
    font-size: 0.8em;
    font-weight: normal;
    margin-top: 4px;
}
.price-table-container thead td {
    padding: 15px 10px;
    background-color: #fff;
    border-left: 1px solid #ccc;
}
.price-table-container thead td:first-child {
    border-left: 1px solid #005ab3;
}


/* --- Table Body & Footer --- */
.price-table-container .body-head {
    background-color: #f2f2f2;
    font-weight: bold;
}

.price-table-container .sub-head {
    background-color: #f9f9f9;
    font-weight: normal;
    text-align: center;
}

.price-table-container .price-cell,
.price-table-container .total-price {
    font-size: 1.1em;
}

.price-table-container td:not([colspan]) {
    border-left: 1px solid #ccc;
}

.price-table-container .red-text {
    color: #d80c18;
    text-align: left;
    font-size: 1.2em;
    padding-left: 20px;
	font-weight: 900;
}

.price-table-container tfoot .total-row th,
.price-table-container tfoot .total-row td {
    background-color: #fff352;
    color: #d80c18;
    font-weight: bold;
}
.price-table-container tfoot .total-row th {
    font-size: 1.2em;
}
.price-table-container tfoot .total-row .total-price {
    font-size: 1.8em;
    letter-spacing: -1px;
}
/* ==========================================================================
   13. Accounting Section
   ========================================================================== */
.accounting-section {
    padding: 3rem 0;
    text-align: center;
    background-position: center;
}

.accounting-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem;
    background-color: rgba(255, 255, 255, 0.9); /* 半透明の白い背景 */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.accounting-title {
    font-size: 2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}

.accounting-description {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.accounting-description .small-text {
    font-size: 0.9em;
    color: #555;
    display: block;
    margin-top: 0.5rem;
}

.payment-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #e60012;
    margin-bottom: 1rem;
}

.payment-cards {
    margin-bottom: 1rem;
}
.payment-cards img {
    max-width: 100%;
    height: auto;
}

.payment-notice {
    font-weight: bold;
    color: #333;
}

/* --- レスポンシブ対応 (SP) --- */
@media screen and (max-width: 768px) {
    .accounting-section {
        padding: 2rem 15px;
    }
    .accounting-inner {
        padding: 1.5rem;
    }
    .accounting-title {
        font-size: 1.5em;
    }
    .accounting-description {
        font-size: 1em;
    }
    .payment-title {
        font-size: 1.3em;
    }
}