/* ============================================================
   FERNANDES 楽器買取専門サイト - Stylesheet
   Based on original FERNANDES design + 買取サイト要素
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
ul { list-style: none; }
img { border: none; vertical-align: middle; max-width: 100%; }
a { color: #333; text-decoration: none; }
a:hover { text-decoration: underline; }

body {
  color: #333;
  font-size: 14px;
  font-family: "メイリオ", Meiryo, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", sans-serif;
  line-height: 1.7;
  background: #f5f5f5;
}

/* --- Wrapper --- */
#wrapper {
  width: 960px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 20px rgba(0,0,0,0.08);
}

/* --- Header --- */
#header {
  background: #1a1a1a;
  color: #fff;
  padding: 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}

#header h1 {
  font-size: 0; line-height: 0;
}

#header h1 a {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 1px;
  text-decoration: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-contact {
  text-align: right;
}

/* --- ハンバーガーメニュー（PCでは非表示） --- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.phone-label {
  font-size: 11px;
  display: block;
  color: #aaa;
}

.phone a {
  color: #ff6600;
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 1px;
}

.hours {
  font-size: 11px;
  color: #999;
}

/* --- Global Navigation --- */
#globalNavi {
  background: #333;
}

/* スマホではデフォルト非表示、PCでは常時表示 */
@media (max-width: 640px) {
  #globalNavi.gnav-hidden {
    display: none;
  }
  #globalNavi.gnav-visible {
    display: block;
  }
}

#nav {
  display: flex;
  justify-content: center;
}

#nav > li > a {
  display: block;
  color: #fff;
  padding: 10px 18px;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s;
}

#nav > li > a:hover {
  background: #555;
  text-decoration: none;
}

/* スマホ用お問い合わせボタン（PCでは非表示） */
.nav-cta-sp {
  display: none;
}

/* --- Main Visual / Slider --- */
#mainV {
  width: 960px;
  height: 360px;
  overflow: hidden;
  position: relative;
}

.slider {
  position: relative;
  width: 960px;
  height: 360px;
  overflow: hidden;
}

.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide > img {
  width: 960px;
  height: 360px;
  object-fit: cover;
  filter: brightness(0.4);
}

/* Hero Content Overlay */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  color: #fff;
  width: 80%;
}

.hero-sub {
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: #ff6600;
}

.hero-title {
  font-size: 36px;
  font-weight: bold;
  line-height: 1.3;
  margin-bottom: 10px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.hero-title span {
  font-size: 28px;
}

.hero-catch {
  font-size: 15px;
  margin-bottom: 20px;
  color: #ddd;
}

.hero-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: #ff6600;
  color: #fff !important;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none !important;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #e55a00;
}

.btn-header {
  padding: 8px 20px;
  font-size: 13px;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #fff !important;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none !important;
  border: 2px solid #fff;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
}

.btn-phone {
  display: inline-block;
  background: #333;
  color: #ff6600 !important;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none !important;
  border: 2px solid #ff6600;
}

.btn-line {
  display: inline-block;
  background: #06C755;
  color: #fff !important;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none !important;
  transition: background 0.2s;
}

.btn-line:hover {
  background: #05a848;
}

/* Slider controls */
.slider-timer {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  width: 0%;
  background: #ff6600;
  z-index: 10;
  transition: width 4000ms linear;
}

.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 15px 12px;
  cursor: pointer;
  font-size: 18px;
  opacity: 0;
  transition: opacity 0.3s;
}

.slider:hover .slider-prev,
.slider:hover .slider-next { opacity: 1; }

.slider-prev { left: 0; }
.slider-next { right: 0; }

.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 6px;
}

.slider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
}

.slider-dot.active,
.slider-dot:hover {
  background: #ff6600;
}

/* --- CTA Bar --- */
#cta-bar {
  background: #1a1a1a;
  padding: 15px 20px;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cta-text {
  color: #fff;
  font-size: 16px;
  font-weight: bold;
}

.cta-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* --- Content Area --- */
#content {
  width: 960px;
  overflow: hidden;
  padding: 20px 0;
}

#content::after {
  content: "";
  display: block;
  clear: both;
}

/* --- Main Column --- */
#main {
  width: 680px;
  float: left;
  padding: 0 15px;
}

/* --- Sections --- */
.section {
  margin-bottom: 40px;
}

.section > h2 {
  font-size: 22px;
  font-weight: bold;
  color: #1a1a1a;
  border-left: 5px solid #ff6600;
  padding: 5px 0 5px 15px;
  margin-bottom: 15px;
  background: #f9f9f9;
}

.section > h3 {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
  margin: 20px 0 10px;
}

.section-lead {
  color: #666;
  margin-bottom: 15px;
  font-size: 13px;
}

/* --- Price Table --- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

.price-table th {
  background: #333;
  color: #fff;
  padding: 8px 12px;
  text-align: left;
  font-size: 13px;
}

.price-table th:last-child {
  width: 180px;
  text-align: right;
}

.price-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
  font-size: 13px;
}

.price-table .price {
  text-align: right;
  font-weight: bold;
  color: #cc0000;
  white-space: nowrap;
}

.price-table tr:hover {
  background: #fffbf0;
}

.price-table tr.highlight {
  background: #fff8e8;
}

.price-table tr.highlight .price {
  color: #cc0000;
  font-size: 14px;
}

.price-note {
  font-size: 12px;
  color: #999;
  margin: 10px 0 20px;
}

/* --- Section CTA --- */
.section-cta {
  text-align: center;
  background: #f9f9f9;
  padding: 20px;
  margin-top: 20px;
  border-radius: 4px;
}

.section-cta p {
  margin-bottom: 10px;
  color: #666;
}

/* --- Results Grid --- */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.result-card {
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.result-card:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.result-img {
  height: 120px;
  overflow: hidden;
}

.result-img img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.result-info {
  padding: 10px;
}

.result-name {
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 5px;
}

.result-price {
  font-size: 20px;
  font-weight: bold;
  color: #cc0000;
  margin-bottom: 3px;
}

.result-detail {
  font-size: 11px;
  color: #999;
}

/* --- Method Grid --- */
.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
}

.method-card {
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 20px 15px;
  text-align: center;
}

.method-icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.method-card h3 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.method-card p {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
}

.method-card ul {
  text-align: left;
  padding-left: 15px;
}

.method-card ul li {
  font-size: 12px;
  margin-bottom: 4px;
  list-style: disc;
  color: #555;
}

/* --- Model Categories --- */
.model-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.model-cat {
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 15px;
}

.model-cat h3 {
  font-size: 14px;
  font-weight: bold;
  color: #1a1a1a;
  border-bottom: 2px solid #ff6600;
  padding-bottom: 5px;
  margin-bottom: 10px;
}

.model-cat ul {
  padding-left: 15px;
}

.model-cat ul li {
  font-size: 12px;
  margin-bottom: 4px;
  list-style: disc;
  color: #555;
}

/* --- FAQ --- */
.faq-list {
  border-top: 1px solid #eee;
}

.faq-item {
  border-bottom: 1px solid #eee;
  padding: 15px 0;
}

.faq-q {
  font-size: 14px;
  font-weight: bold;
  color: #1a1a1a;
  margin-bottom: 8px;
  cursor: pointer;
}

.faq-a {
  font-size: 13px;
  color: #666;
  padding-left: 25px;
  line-height: 1.8;
}

/* --- Sidebar --- */
#side {
  width: 240px;
  float: left;
  margin-left: 40px;
}

#home #side {
  background: #f5f5f5;
}

.sideNavi {
  padding: 0;
}

/* Side CTA Box */
.side-cta-box {
  background: #1a1a1a;
  color: #fff;
  padding: 20px 15px;
  text-align: center;
  margin-bottom: 15px;
}

.side-cta-box h3 {
  font-size: 16px;
  font-weight: bold;
  color: #ff6600;
  margin-bottom: 5px;
}

.side-cta-box p {
  font-size: 12px;
  color: #ccc;
  margin-bottom: 8px;
}

.side-phone {
  display: block;
  color: #ff6600 !important;
  font-size: 22px;
  font-weight: bold;
  text-decoration: none !important;
  margin-bottom: 3px;
}

.side-hours {
  font-size: 11px;
  color: #999;
  margin-bottom: 12px;
}

.side-btn {
  display: block;
  margin-bottom: 8px;
  text-align: center;
  padding: 10px;
  font-size: 14px;
}

/* Side Media Links */
.side-media {
  padding: 15px;
  background: #fff;
  margin-bottom: 15px;
  border: 1px solid #eee;
}

.side-media h3 {
  font-size: 13px;
  font-weight: bold;
  border-bottom: 2px solid #ff6600;
  padding-bottom: 5px;
  margin-bottom: 10px;
}

.media-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.media-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 4px;
  text-decoration: none !important;
  transition: background 0.2s, border-color 0.2s;
}

.media-link:hover {
  background: #fff8f0;
  border-color: #ff6600;
}

.media-icon {
  font-size: 24px;
  width: 36px;
  text-align: center;
  flex-shrink: 0;
}

.media-text strong {
  display: block;
  font-size: 13px;
  color: #1a1a1a;
}

.media-text small {
  display: block;
  font-size: 10px;
  color: #999;
  margin-top: 2px;
}

/* Side Banners */
.side-banner,
.side-info,
.side-sns {
  padding: 15px;
  background: #fff;
  margin-bottom: 15px;
  border: 1px solid #eee;
}

.side-banner h3,
.side-info h3,
.side-sns h3 {
  font-size: 13px;
  font-weight: bold;
  border-bottom: 2px solid #ff6600;
  padding-bottom: 5px;
  margin-bottom: 10px;
}

.side-banner ul li {
  margin-bottom: 8px;
}

.side-banner ul li a img {
  width: 100%;
  display: block;
}

/* Side Info (news) */
.side-info dl dt {
  font-size: 11px;
  color: #999;
  margin-top: 8px;
}

.side-info dl dd {
  font-size: 12px;
  border-bottom: 1px dotted #ddd;
  padding-bottom: 8px;
}

/* Side SNS */
.side-sns ul li {
  margin-bottom: 8px;
}

.side-sns ul li a img {
  width: 100%;
  display: block;
}

/* --- Contact Section --- */
.contact-section {
  background: #1a1a1a;
  padding: 40px 20px;
  color: #fff;
}

.contact-inner {
  max-width: 920px;
  margin: 0 auto;
}

.contact-section h2 {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 8px;
  color: #fff;
}

.contact-section .section-lead {
  text-align: center;
  color: #aaa;
  margin-bottom: 25px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-grid-2col {
  grid-template-columns: 2fr 1fr;
}

.contact-method {
  background: #2a2a2a;
  padding: 20px;
  border-radius: 4px;
  text-align: center;
}

.contact-method h3 {
  font-size: 16px;
  font-weight: bold;
  color: #ff6600;
  margin-bottom: 12px;
}

.contact-method p {
  font-size: 13px;
  color: #ccc;
  margin-bottom: 8px;
}

.contact-phone {
  display: block;
  color: #ff6600 !important;
  font-size: 26px;
  font-weight: bold;
  text-decoration: none !important;
  margin-bottom: 8px;
}

/* Inquiry Form */
.form-row {
  margin-bottom: 12px;
}

.form-row label {
  display: block;
  font-size: 13px;
  color: #ccc;
  margin-bottom: 4px;
}

.required {
  color: #ff6600;
  font-size: 11px;
}

.inquiry-form select,
.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 8px;
  border: 1px solid #555;
  border-radius: 3px;
  background: #3a3a3a;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
}

.inquiry-form input::placeholder,
.inquiry-form textarea::placeholder {
  color: #888;
}

.inquiry-form .btn-primary {
  width: 100%;
  padding: 12px;
  font-size: 15px;
}

.line-note {
  font-size: 11px;
  color: #888 !important;
}

/* --- Content Footer --- */
#contentFooter {
  clear: both;
  width: 100%;
}

.pagetop {
  text-align: right;
  margin: 0 10px 10px;
  padding-top: 10px;
  border-top: 2px solid #E6E6E6;
}

/* --- Footer --- */
#footer {
  clear: both;
  padding: 15px 15px 20px;
  background: #f5f5f5;
  border-top: 1px solid #ddd;
}

#footer .notice {
  font-size: 10px;
  color: #999;
  margin-bottom: 8px;
}

#footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

#footer ul {
  display: flex;
  flex-wrap: wrap;
}

#footer ul li {
  font-size: 12px;
  color: #999;
}

#footer ul li a {
  color: #666;
}

#footer .copyright {
  white-space: nowrap;
  font-size: 11px;
  color: #999;
}

/* ============================================================
   レスポンシブ対応
   ============================================================ */

/* --- タブレット (960px以下) --- */
@media (max-width: 960px) {
  #wrapper {
    width: 100%;
    box-shadow: none;
  }

  #mainV,
  .slider {
    width: 100%;
    height: 55vw;
    min-height: 220px;
  }

  .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #content {
    width: 100%;
    padding: 20px 15px;
  }

  #main {
    width: 100%;
    float: none;
    padding: 0;
  }

  #side {
    width: 100%;
    float: none;
    margin-left: 0;
    margin-top: 30px;
  }

  #home #side {
    background: #f5f5f5;
  }

  .sideNavi {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 15px;
  }

  .side-cta-box {
    grid-column: 1 / -1;
  }

  #cta-bar .cta-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .results-grid {
    grid-template-columns: 1fr 1fr;
  }

  .method-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .model-categories {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid,
  .contact-grid-2col {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    max-width: 100%;
  }

  #footer .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

/* --- スマホ (640px以下) --- */
@media (max-width: 640px) {
  body {
    font-size: 13px;
  }

  /* ハンバーガー表示、ヘッダーCTA非表示 */
  .hamburger {
    display: flex;
  }

  .header-cta-pc {
    display: none;
  }

  /* ナビ内お問い合わせボタン表示 */
  .nav-cta-sp {
    display: block;
    padding: 15px 20px;
  }

  .nav-cta-sp a {
    display: block;
    text-align: center;
    padding: 12px;
    font-size: 15px;
  }

  /* ヘッダー */
  .header-inner {
    padding: 10px 15px;
  }

  #header h1 a {
    font-size: 16px;
  }

  .btn-header {
    padding: 6px 16px;
    font-size: 12px;
  }

  /* スライダーがヘッダーに隠れないよう余白確保 */
  #mainV {
    margin-top: 0;
    padding-top: 0;
  }

  .hero-content {
    padding-top: 10px;
  }

  .hero-title {
    margin-top: 0;
  }

  /* スライダーの「楽器買取専門店」テキストを非表示にして省スペース */
  .hero-sub {
    display: none;
  }

  /* ナビ：縦並び */
  #globalNavi.gnav-visible {
    display: block;
  }

  #nav {
    flex-direction: column;
  }

  #nav > li > a {
    padding: 12px 20px;
    font-size: 14px;
    border-bottom: 1px solid #444;
  }

  /* スライダー */
  .hero-title {
    font-size: 22px;
  }

  .hero-title span {
    font-size: 18px;
  }

  .hero-sub {
    font-size: 11px;
  }

  .hero-catch {
    font-size: 12px;
    margin-bottom: 15px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    padding: 10px 20px;
    font-size: 13px;
    width: 80%;
    text-align: center;
  }

  /* CTA バー */
  .cta-text {
    font-size: 13px;
  }

  .cta-buttons .btn-primary {
    padding: 10px 20px;
    font-size: 13px;
  }

  /* セクション */
  .section > h2 {
    font-size: 18px;
    padding: 4px 0 4px 12px;
  }

  .section > h3 {
    font-size: 14px;
  }

  /* 価格表 */
  .price-table th,
  .price-table td {
    padding: 6px 8px;
    font-size: 12px;
  }

  .price-table th:last-child {
    width: 130px;
  }

  /* 買取実績 */
  .results-grid {
    grid-template-columns: 1fr;
  }

  .result-card {
    display: flex;
    flex-direction: row;
  }

  .result-img {
    width: 120px;
    height: auto;
    flex-shrink: 0;
  }

  .result-img img {
    width: 120px;
    height: 100%;
    object-fit: cover;
  }

  .result-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* 買取方法 */
  .method-grid {
    grid-template-columns: 1fr;
  }

  .method-card {
    text-align: left;
    display: flex;
    gap: 15px;
    align-items: flex-start;
  }

  .method-icon {
    font-size: 28px;
    flex-shrink: 0;
    margin-bottom: 0;
  }

  /* 買取対象モデル */
  .model-categories {
    grid-template-columns: 1fr;
  }

  /* サイドバー */
  .sideNavi {
    grid-template-columns: 1fr;
  }

  .side-cta-box {
    grid-column: auto;
  }

  /* お問い合わせ */
  .contact-section {
    padding: 30px 15px;
  }

  .contact-section h2 {
    font-size: 20px;
  }

  .contact-method {
    padding: 15px;
  }

  /* フッター */
  #footer {
    padding: 12px 10px 15px;
  }

  #footer ul li {
    font-size: 11px;
  }

  #footer .copyright {
    white-space: normal;
    font-size: 10px;
  }
}
