/* ===== 基本設定 ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Yu Gothic", sans-serif;
    line-height: 1.8;
    background: #f5f5f5;
}

table {
  table-layout: fixed;
  width: 100%;
}

td, th {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

/* ===== ヘッダー ===== */

.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.nav {
    max-width: 1200px;
    min-height: 76px;
    margin: 0 auto;
    padding: 10px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;
}

/* ===== ロゴ ===== */

.logo {
    flex-shrink: 0;
}

.logo a {
    display: block;
}

.logo img {
    display: block;
    width: 140px;
    height: auto;
    transition: opacity 0.2s ease;
}

.logo a:hover img {
    opacity: 0.75;
}

/* ===== メニュー ===== */

.menu {
    display: flex;
    align-items: center;

    list-style: none;

    margin: 0;
    padding: 0;

    gap: 4px;

    flex-shrink: 0;
}

.menu > li {
    position: relative;
    margin: 0;
    padding: 0;
}

.menu > li > a,
.dropbtn {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 8px 11px;

    border-radius: 7px;

    color: #333;
    background: transparent;

    text-decoration: none;
    font-size: 14px;
    font-weight: 700;

    white-space: nowrap;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

/* ===== 買取申込 ===== */

.menu-important > a {
color: #fff !important;
background: #d62828 !important;
padding-left: 17px !important;
padding-right: 17px !important;

box-shadow: 0 3px 8px rgba(214, 40, 40, 0.2);

}

.menu-important > a:hover {
color: #fff !important;
background: #b91f1f !important;
transform: translateY(-1px);
}

/* ===== お問い合わせ ===== */

.menu-contact > a {
border: 1px solid #0b5ea8;
color: #0b5ea8 !important;
}

.menu-contact > a:hover {
color: #fff !important;
background: #0b5ea8 !important;
}

/* ===== 買取情報ボタン ===== */

.dropbtn {
border: none;
cursor: pointer;
font-family: inherit;
}

/* ===== 矢印 ===== */

.arrow {
width: 7px;
height: 7px;

margin-left: 8px;

border-right: 2px solid currentColor;
border-bottom: 2px solid currentColor;

transform: rotate(45deg) translateY(-2px);

transition: transform 0.2s ease;

}

.dropdown:hover .arrow,
.dropdown.open .arrow {
transform: rotate(225deg) translateY(-2px);
}

/* ===== サブメニュー ===== */

.submenu {
position: absolute;
top: calc(100% + 8px);
left: 0;

width: 240px;

padding: 8px;

list-style: none;

background: #fff;

border: 1px solid #e7e7e7;
border-radius: 10px;

box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.12);

opacity: 0;
visibility: hidden;
transform: translateY(-5px);

transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;

}

.submenu li {
width: 100%;
}

.submenu a {
display: flex;
align-items: center;

min-height: 42px;
padding: 9px 14px;

border-radius: 7px;

color: #333;
text-decoration: none;

font-size: 14px;
font-weight: 600;

transition:
    background-color 0.2s ease,
    color 0.2s ease,
    padding-left 0.2s ease;

}

.submenu a::before {
content: "›";
margin-right: 9px;
color: #0b5ea8;
font-size: 18px;
}

.submenu a:hover {
color: #fff;
background: #0b5ea8;
padding-left: 18px;
}

.submenu a:hover::before {
color: #fff;
}

/* ===== PC用ホバー表示===== */

@media (min-width: 769px) {

.dropdown:hover .submenu,
.dropdown:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

}

/* ===== ハンバーガーボタン ===== */

.hamburger {
display: none;

width: 46px;
height: 46px;

padding: 10px;

border: none;
border-radius: 8px;

background: #f1f4f7;

cursor: pointer;

flex-shrink: 0;

}

.hamburger span {
display: block;

width: 24px;
height: 2px;

margin: 5px auto;

background: #333;

transition:
    transform 0.25s ease,
    opacity 0.25s ease;

}

/* ===== 開いた状態 ===== */

.hamburger.active span:nth-child(1) {
transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
opacity: 0;
}

.hamburger.active span:nth-child(3) {
transform: translateY(-7px) rotate(-45deg);
}

/* ===== スマホ ===== */

@media (max-width: 768px) {

.site-header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav {
    min-height: 64px;
    padding: 8px 15px;

    flex-wrap: wrap;
}

.logo img {
    width: 120px;
}

.hamburger {
    display: block;
}

.menu {
    display: none;

    width: 100%;

    flex-direction: column;
    align-items: stretch;
    gap: 0;

    padding: 8px 0 10px;

    border-top: 1px solid #eee;
}

.menu.active {
    display: flex;
}

.menu > li {
    width: 100%;
}

.menu > li > a,
.dropbtn {
    width: 100%;
    min-height: 50px;

    justify-content: flex-start;

    padding: 12px 15px;

    border-radius: 6px;

    font-size: 15px;
}


/* ===== スマホ：買取申込 ===== */

.menu-important > a {
    margin: 4px 0;

    justify-content: center;

    border-radius: 8px;
}


/* ===== スマホ：お問い合わせ ===== */

.menu-contact > a {
    margin-top: 4px;

    justify-content: center;
}


/* ===== スマホ：サブメニュー ===== */

.submenu {
    position: static;

    width: 100%;

    padding: 5px 0 5px 15px;

    border: none;
    border-radius: 0;

    background: #f5f7f9;

    box-shadow: none;

    opacity: 1;
    visibility: visible;

    transform: none;

    display: none;
}

.dropdown.open .submenu {
    display: block;
}

.submenu a {
    min-height: 44px;
    padding: 9px 14px;

    font-size: 14px;
}

.submenu a:hover {
    padding-left: 18px;
}


/* ===== スマホ：矢印 ===== */

.dropbtn {
    justify-content: space-between;
}

.arrow {
    margin-left: auto;
}

.dropdown.open .arrow {
    transform: rotate(225deg);
}

}

/* ===== 小型スマホ ===== */

@media (max-width: 400px) {

.logo img {
    width: 105px;
}

.hamburger {
    width: 42px;
    height: 42px;
}

}


/* ===== ヒーローイメージスライダー ===== */
.slider-wrap{
    position:relative;
    width:100%;
    max-width:1000px;
    margin:40px auto;
    overflow:hidden;
}

.slider{
    display:flex;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    scroll-behavior:smooth;
    scrollbar-width:none;
    -ms-overflow-style:none;
}

.slider::-webkit-scrollbar{
    display:none;
}

.slide{
    flex:0 0 100%;
    scroll-snap-align:start;
}

.slide img{
    display:block;
    width:100%;
    height:auto;
}

.slider-btn{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    width:46px;

    height:46px;

    border:none;

    border-radius:50%;

    background:rgba(0,0,0,.5);

    color:#fff;

    font-size:22px;

    cursor:pointer;

    transition:.3s;

    z-index:10;
}

.slider-btn:hover{
    background:rgba(0,0,0,.8);
}

.prev{
    left:10px;
}

.next{
    right:10px;
}

@media (max-width:768px){

    .slider-wrap{
        max-width:100%;
    }

    .slider-btn{
        width:40px;
        height:40px;
        font-size:18px;
    }

}

/* ===== 価格表トップイメージ ===== */

.image-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.image-item {
    text-align: center;
    border: 1px solid #ddd;
    padding: 10px;
    background: #fff;
    word-break: break-all;
}

.image-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.code {
    margin-top: 8px;
    font-weight: bold;
}

.price {
    color: #d60000;
    font-weight: bold;
    font-size: x-large;
}


/* 600px以下スマホ */
@media screen and (max-width:600px){

    .image-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

}

/* ===== コンテンツ ===== */

section {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 20px;
}

.card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

.card a{
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.card a:hover {
    background: #9a9a9a;
    color: #ffffff;
}

.card_contact{
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}
.contact-accordion {
  max-width: 900px;
  margin: auto;
}

.accordion-item {
  border-bottom: 1px solid #ddd;
}

.accordion-title {
  width: 100%;
  background: #eee;
  border: none;
  padding: 18px 20px;
  text-align: left;
  font-size: 18px;
  cursor: pointer;
  position: relative;
}

.accordion-title::after {
  content: "+";
  position: absolute;
  right: 20px;
  font-size: 20px;
}

.accordion-title.active::after {
  content: "−";
}

.accordion-content {
  display: none;
  padding: 20px;
  background: #fff;
}

.accordion-content.open {
  display: block;
}
.accordion-item.active .accordion-content {
  display: block;
}

/* ===== フッター ===== */

.footer {
    background: #222;
    color: #fff;
    margin-top: 80px;
}

.footer-inner {
    max-width: 1200px;
    margin: auto;
    display: flex;
    gap: 40px;
    padding: 50px 20px;
}

.footer-box {
    flex: 1;
}

.footer-logo img {
    width: 140px;
    height: auto;
}

.footer-box h3 {
    margin-top: 8px;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
    padding-bottom: 8px;
}

.footer-box ul {
    list-style: none;
}

.footer-box li {
    margin-bottom: 10px;
}

.footer-box a {
    color: #ccc;
    text-decoration: none;
}

.footer-box a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: #aaa;
    font-size: 14px;
}

/* ===== お知らせ ===== */

#infoTable {
    width:100%;
    border-collapse: collapse;
}

#infoTable th,
#infoTable td {
    border-bottom: 1px solid #ccc;
    padding: 10px;
    white-space: normal;      /* 折り返しを許可 */
    overflow-wrap: break-word; /* 長い単語も折り返す */
    word-break: break-word;    /* 日本語・英数字対策 */
}

#infoTable th {
    background:#ffffff;
}

/* ===== 価格表 ===== */

#priceTable {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

#priceTable td {
    padding: 8px;
    border: 1px solid #ccc;
    white-space: normal;
    overflow-wrap: break-word;
}

#priceTable th,
#priceTable td {
    border-bottom: 1px solid #ccc;
    padding: 10px;
    white-space: normal;      /* 折り返しを許可 */
    overflow-wrap: break-word; /* 長い単語も折り返す */
    word-break: break-word;    /* 日本語・英数字対策 */
}

/* ===== 価格表 PC版 ===== */

#priceTable {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

#priceTable th {
    background: #f2f2f2;
    border: 1px solid #ccc;
    padding: 8px;
    font-weight: bold;
}

#priceTable td {
    border: 1px solid #ccc;
    padding: 8px;
    white-space: normal;
    overflow-wrap: break-word;
}


/* ===== 価格表 列ごとの幅 ===== */

#priceTable {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

#priceTable th,
#priceTable td {
    padding: 8px;
    border: 1px solid #ccc;
    white-space: normal;
    overflow-wrap: break-word;
}


/* ===== 価格表 スマホ版===== */

#priceCards {
    display: none;
}

.price-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.price-card div {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    overflow-wrap: break-word;
}

.price-card div:last-child {
    border-bottom: none;
}

.price-card span {
    display: inline-block;
    width: 80px;
    font-weight: bold;
    color: #555;
}

/* ===== 価格表 スマホ対応 600px以下 ===== */

@media screen and (max-width: 600px) {

    #priceTable {
        display: none;
    }

    #priceCards {
        display: block;
    }

    .price-card {
        font-size: 14px;
    }

    .price-card span {
        width: 70px;
    }

}

/* ===== スマホ用調整 ===== */

@media (max-width: 768px) {

    .footer-inner {
        flex-direction: column;
        gap: 25px;
    }
}

.search-box {
  margin-bottom: 15px;
}

/* ===== 価格表検索 ===== */

#searchInput {
  width: 100%;
  max-width: 400px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}


/* ===== アンカーリンク位置調整 ===== */

h2[id] {
    scroll-margin-top: 90px;
}