/* =====================================================
   common.css
   モバイルファースト設計
   基本スタイル（モバイル） → min-width で拡張

   ブレークポイント
     sm  : min-width: 481px
     md  : min-width: 769px
     lg  : min-width: 1025px
===================================================== */

/* =====================================================
   RESET
===================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  color: #3A3530;
  background: #fff;
  overflow-x: hidden;
  line-height: 1.8;
}

@media (min-width: 1025px) {
  body {
    font-size: 0.875rem;
  }
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
}

/* =====================================================
   CSS VARIABLES
   --hh はモバイル値をベースに min-width で上書き
===================================================== */
:root {
  --white:    #FFFFFF;
  --off:      #F4F2EF;/* OK */
  --cream:    #F0EBE2;
  --greige:   #DBD8D5;/* OK */
  --greige2:  #D2CBC0;
  --gold:     #BFA372;/* OK */
  --gold-lt:  #D4B880;
  --gold-dk:  #9E7E48;
  --text:     #45403B;/* OK */
  --text-lt:  #716455;/* OK */
  --text-xlt: #A09890;
  --sell:     #4A3F38;
  --dark:     #2E2A26;
  --green:    #70B57D;/* OK */
  --hh:       80px;   /* モバイルのヘッダー高さ */
  --mincho:   'Shippori Mincho', serif;
  --sans:     'Noto Sans JP', sans-serif;
}

@media (min-width: 769px) {
  :root {
    --hh: 150px; /* タブレット以上のヘッダー高さ */
  }
}

/* =====================================================
   UTILITY
===================================================== */

/* モバイル基本：左右 20px */
.wrap {
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 769px) {
  .wrap {
    padding: 0 40px;
  }
}

@media (min-width: 1025px) {
  .wrap {
    max-width: 1520px;
    padding: 0 60px;
  }
}

/* セクション区切り線 */
.divider-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(196,162,106,0.3) 40%,
    rgba(196,162,106,0.3) 60%,
    transparent 100%
  );
}

/* ゴールドバー */
.gold-bar {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}

/* 矢印（疑似要素で実装） */
.arr {
  flex-shrink: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 22px;
  height: 1em;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

/* ライン：縦中央に固定 */
.arr::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: currentColor;
  transform: translateY(-50%);
}

/* 矢印ヘッド：縦中央に固定 */
.arr::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

/* =====================================================
   SCROLL REVEAL
===================================================== */
.sr {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.0s ease, transform 1.0s ease;
}
.sr.on {
  opacity: 1;
  transform: none;
}

.sr-l {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 1.0s ease, transform 1.0s ease;
}
.sr-l.on {
  opacity: 1;
  transform: none;
}

.sr-r {
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 1.0s ease, transform 1.0s ease;
}
.sr-r.on {
  opacity: 1;
  transform: none;
}

/* =====================================================
   COMMON BUTTONS
===================================================== */

/* ゴールド塗りボタン */
.btn-gold {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  gap: 0;
  background: var(--gold);
  color: #fff;
  padding: 13px 52px 13px 32px;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  font-weight: 400;
  transition: background 0.25s;
}
.btn-gold .arr {
  position: absolute;
  right: 12px;
}
.btn-gold:hover {
  background: var(--gold-dk);
}

@media (min-width: 1025px) {
  .btn-gold {
    font-size: 1rem;
    min-width: 260px;
    padding: 18px 64px 18px 40px;
  }
  .btn-gold .arr {
    right: 14px;
  }
}

/* 売却ゴールドボタン */
.btn-sell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  gap: 0;
  background: var(--gold);
  color: #fff;
  padding: 16px 52px 16px 32px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  font-weight: 400;
  transition: background 0.25s;
}
.btn-sell .arr {
  position: absolute;
  right: 12px;
}
.btn-sell:hover {
  background: var(--gold-dk);
}

@media (min-width: 1025px) {
  .btn-sell {
    font-size: 1rem;
    min-width: 260px;
    padding: 18px 64px 18px 40px;
  }
  .btn-sell .arr {
    right: 14px;
  }
}

/* =====================================================
   HEADER
===================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--hh);
  background: #fff;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(196,162,106,0.16);
  display: flex;
  align-items: center;
  transition: box-shadow 0.4s, height 0.7s ease;
}
.header.scrolled {
  box-shadow: 0 2px 18px rgba(58,53,48,0.08);
}

@media (min-width: 769px) {
  .header.scrolled {
    height: 100px;
  }
}

/* スクロール時ロゴ縮小：PCのみ */
@media (min-width: 1025px) {
  .header.scrolled .logo-img {
    width: 120px;
    transition: width 0.7s ease;
  }
}

.header.scrolled .logo-sub2 {
  font-size: 0.65rem;
  transition: font-size 0.7s ease;
}

/* モバイル基本 */
.header-in {
  width: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

@media (min-width: 1025px) {
  .header-in {
    max-width: 1520px;
    margin: 0 auto;
    padding: 0 60px;
  }
}

/* ロゴ */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-words {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ロゴ画像：モバイル基本 */
.logo-img {
  display: block;
  width: 80px;
  height: auto;
  transition: width 0.3s ease;
}

@media (min-width: 769px) {
  .logo-img {
    width: 90px;
  }
}

@media (min-width: 1025px) {
  .logo-img {
    width: 180px;
  }
}

/* 社名テキスト */
.logo-sub2 {
  display: block;
  font-family: var(--mincho);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 400;
}

@media (min-width: 1025px) {
  .logo-sub2 {
    font-size: 0.875rem;
  }
}

/* PC ナビ：モバイルでは非表示 */
.gnav {
  display: none;
}

@media (min-width: 1025px) {
  .gnav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
  }
}

.gnav-a {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-lt);
  font-weight: 400;
  transition: color 0.25s;
  white-space: nowrap;
  padding: 8px 0;
}

@media (min-width: 1025px) {
  .gnav-a {
    font-size: 1.0625rem;
    padding: 12px 0;
  }
}

.gnav-a:hover {
  color: var(--gold);
}

/* ヘッダーボタン：モバイルでは非表示 */
.h-btns {
  display: none;
}

@media (min-width: 1025px) {
  .h-btns {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
  }
}

.h-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 10px 44px 10px 24px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  font-weight: 400;
  color: #fff;
  white-space: nowrap;
  transition: opacity 0.25s;
}
.h-btn .arr {
  position: absolute;
  right: 10px;
}

@media (min-width: 1025px) {
  .h-btn {
    font-size: 1rem;
    padding: 16px 52px;
    min-width: 220px;
    justify-content: center;
  }
  .h-btn .arr {
    right: 18px;
  }
}

.h-btn-line {
  background: var(--green);
}
.h-btn-line:hover {
  opacity: 0.85;
}
.h-btn-contact {
  background: var(--gold);
  transition: background 0.25s;
}
.h-btn-contact:hover {
  background: var(--gold-dk);
}

/* ハンバーガー：モバイルで表示、PCで非表示 */
.hbg {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 4px;
  margin-left: auto;
}

@media (min-width: 1025px) {
  .hbg {
    display: none;
  }
}

.hbg span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.6s ease, opacity 0.4s ease;
}
.hbg.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hbg.open span:nth-child(2) {
  opacity: 0;
}
.hbg.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* SP メニュー */
.sp-nav {
  position: fixed;
  top: var(--hh);
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--white);
  border-top: 1px solid var(--greige);
  padding: 24px 24px 36px;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
  /* アニメーション：上からフェードイン */
  display: flex;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.sp-nav.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.sp-nav-a {
  padding: 14px 0;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  transition: color 0.25s;
}
.sp-nav-a:hover {
  color: var(--gold);
}
.sp-nav-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}
.sp-nav-btns .h-btn {
  width: 80%;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 400;
  padding: 14px 64px 14px 40px;
}

/* =====================================================
   FOOTER
===================================================== */

/* モバイル基本 */
footer {
  background: #ECEBE8;
  border-top: none;
  padding: 44px 20px 24px;
}

@media (min-width: 1025px) {
  footer {
    padding: 48px 60px 28px;
  }
}

/* モバイル基本：1カラム */
.footer-in {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 32px;
  margin-bottom: 0;
}

@media (min-width: 1025px) {
  .footer-in {
    grid-template-columns: 1fr auto auto;
    gap: 100px;
    align-items: start;
  }
}

/* フッターロゴ画像 */
.ft-logo-img-wrap {
  display: block;
  margin-bottom: 8px;
}
.ft-logo-img {
  width: 120px;
  height: auto;
  display: block;
}

@media (min-width: 1025px) {
  .ft-logo-img {
    width: 160px;
  }
}

.ft-logo-sub2 {
  font-family: var(--mincho);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  display: block;
  margin-bottom: 18px;
}
.ft-info {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-lt);
  line-height: 2;
  letter-spacing: 0.04em;
}

/* モバイル基本 */
.ft-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 32px;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  align-content: start;
}

@media (min-width: 1025px) {
  .ft-nav {
    gap: 8px 44px;
  }
}

.ft-nav a {
  color: var(--text-lt);
  transition: color 0.25s;
}
.ft-nav a:hover {
  color: var(--gold);
}

/* Instagramアイコン */
.ft-nav-instagram {
  display: flex;
  align-items: center;
}
.ft-nav-instagram svg {
  width: 22px;
  height: 22px;
  color: var(--text-lt);
  transition: color 0.25s;
}
.ft-nav-instagram:hover svg {
  color: var(--gold);
}

.ft-copy {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--text-xlt);
  border-top: 1px solid var(--greige);
  margin-top: 20px;
  padding-top: 20px;
  /* フッターの左右paddingを打ち消してフル幅に */
  margin-left: -20px;
  margin-right: -20px;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 769px) {
  .ft-copy {
    margin-left: -40px;
    margin-right: -40px;
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (min-width: 1025px) {
  .ft-copy {
    margin-left: -60px;
    margin-right: -60px;
    padding-left: 60px;
    padding-right: 60px;
  }
}

/* =====================================================
   PAGE TOP BUTTON
===================================================== */

/* モバイル：固定表示 */
.pagetop {
  position: fixed;
  bottom: 24px;
  right: 16px;
  z-index: 500;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s, transform 0.25s;
  pointer-events: none;
}
.pagetop img {
  width: 44px;
  height: 44px;
}
.pagetop.on {
  opacity: 1;
  pointer-events: all;
}
.pagetop:hover {
  transform: translateY(-3px);
}

/* PC：フッターグリッド内に静的配置 */
@media (min-width: 1025px) {
  .pagetop {
    position: static;
    opacity: 1;
    pointer-events: all;
    width: 52px;
    height: 52px;
    align-self: start;
  }
  .pagetop img {
    width: 52px;
    height: 52px;
  }
}

/* =====================================================
   ARROW HOVER ANIMATION
   ホバー時に矢印が右へゆっくりスライド
===================================================== */
.btn-gold:hover .arr,
.btn-sell:hover .arr,
.h-btn:hover .arr,
.concept-link:hover .arr {
  transform: translateX(7px);
}