@charset "UTF-8";

/* ========== 基本リセット ========== */
*{box-sizing:border-box}
html,body{
  margin:0;
  padding:0;
  padding-top: 90px; /* ヘッダー固定分の余白 */
  font-family:"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic","游ゴシック",Meiryo,Arial,sans-serif;
  color:#333;
  background:#fff;
  line-height:1.9;
  overflow-x: hidden;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

/* ========== レイアウト ========== */
:root{
  --max:1180px;
  --accent:#bfa78f;
  --brown:#8d6f61;
  --muted:#f7f5f3;
  --card-shadow:0 8px 30px rgba(0,0,0,.08);
}
.wrap{max-width:var(--max);margin:0 auto;padding:0 20px}

/* ヘッダー固定設定 */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #eee;
  z-index: 999;
}

/* ヘッダーレイアウト */
.nav{
  display:flex;
  align-items:center;
  gap:16px;
  padding:14px 0;
  justify-content: space-between;
}
.logo{
  display:flex;
  align-items:center;
  gap:10px;
  padding-left: 20px;
}
.logo img{
  height: 60px;
  width: 200px;
}
.nav .right{
  margin-left: 0;
  display:flex;
  gap:10px;
  align-items:center;
  padding-right: 20px;
}

.icon-btn{width:40px;height:40px;border-radius:8px;border:1px solid #e6e0da;display:grid;place-items:center}


/* ========== ヒーロー（横スクロール・固定サイズ） ========== */
.hero {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  margin: 28px 0;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) #eee;
}

.hero::-webkit-scrollbar { height: 8px; }
.hero::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
.hero::-webkit-scrollbar-track { background: #eee; border-radius: 4px; }

.hero .card {
  flex: 0 0 auto;
  width: 600px;
  height: 530px;
  border-radius: 12px;
  overflow: hidden;
  background: #ddd;
  box-shadow: var(--card-shadow);
  background-position: center;
  background-size: cover;
}

.hero .wide { position: relative; }

.vertical-copy{position:absolute;left:20px;top:20px;display:flex;height:calc(100% - 40px);align-items:center}
.vertical-copy p{writing-mode:vertical-rl;text-orientation:mixed;padding:12px 14px;background:rgba(255,255,255,.85);border-radius:10px;font-weight:600;font-size:1.1rem;letter-spacing:0.1em}


/* ========== ABOUT ========== */
section{padding:70px 0}
h2{font-size:22px;letter-spacing:.14em;text-align:center;margin:0 0 16px}
.lead{max-width:900px;margin:0 auto;color:#666;line-height:2.1;text-align:center}

/* ========== TWO-COLUMN SPLIT ========== */
.split{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:center;margin-top:28px}
.split .img{border-radius:12px;overflow:hidden;min-height:240px;background:#eee center/cover}
.btn{display:inline-block;padding:10px 18px;border-radius:999px;border:1px solid #ccc;background:#fff;margin-top:12px}

@media (max-width:900px){.split{grid-template-columns:1fr}}

/* ★★★ スマホ表示時の並び順変更 ★★★ */
@media (max-width:900px){
  .split {
    display: flex;          /* フレックスボックスに変更 */
    flex-direction: column; /* 縦並びにする */
  }
  .split .img {
    order: -1;           /* ★画像を強制的に一番上に持ってくる */
    width: 100%;         /* 幅いっぱい */
    margin-bottom: 20px; /* 画像と文章の間に隙間を作る */
  }
}

/* ========== WORKS GRID ========== */
.works-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:20px}

/* WORKS画像：クリック無効化 */
.work{
  position:relative;
  overflow:hidden;
  border-radius:12px;
  min-height:140px;
  pointer-events: none;
}
.work .overlay{position:absolute;inset:auto 0 0 0;padding:12px;background:linear-gradient(transparent,rgba(0,0,0,.8));color:#fff}

@media (max-width:1000px){.works-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:600px){.works-grid{grid-template-columns:1fr}}


/* ========== ACCESS/FOOTER ========== */
.access{display:grid;grid-template-columns:1fr 420px;gap:24px;align-items:start}
.address{background:#fff8d9;padding:18px;border-radius:8px;border:1px solid #eee}
.map{border-radius:8px;overflow:hidden;border:1px solid #eee}
@media (max-width:980px){.access{grid-template-columns:1fr}}

footer{background:var(--brown);color:#fff;padding:28px 0;margin-top:0}
.foot-inner{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}
.foot-inner a{color:#fff;opacity:.9}
@media (max-width:720px){
  .foot-inner{
    flex-direction:column;
  }
  
  /* スマホの時右寄せが効く */
  .foot-inner > div {
    width: 100%;
  }
}

/* ========== 小さなスタイル調整 ========== */
.muted{color:#777}


/* ========== スマホメニュー（右スライド） ========== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 80%;
  height: 100%;
  background: rgba(141, 111, 97, 0.98);
  
  z-index: 10000; /* 最前面 */
  
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* 上詰め */
  align-items: center;
  
  transform: translateX(100%);
  transition: transform 0.4s ease;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
}

.mobile-menu.active {
  transform: translateX(0);
}

/* メニュー上部の「白い帯」エリア */
.mobile-menu-header {
  width: 100%;
  height: 90px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid #eee;
  margin-bottom: 30px;
  flex-shrink: 0;
}

/* 「メニュー」文字 */
.menu-title {
  color: #333;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.1em;
}

/* ×ボタン（デザイン調整） */
.menu-close-btn {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #e6e0da; 
  color: #333; 
  background: none;
  font-size: 24px;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding-bottom: 2px;
}

.menu-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
  padding: 0 40px;
  width: 100%;
  overflow-y: auto; 
}

.menu-content a {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-decoration: none;
}

/* ========== 点滅アニメーション（強調用） ========== */
@keyframes flash-highlight {
  0% { opacity: 1; }
  50% { opacity: 0.2; } /* 一瞬薄くなる */
  100% { opacity: 1; }
}

.blink-active {
  animation: flash-highlight 0.4s ease-in-out 2; /* 2回点滅 */
}

/* ========== TOPへ戻るボタン ========== */
.btn-top {
  display: inline-block;
  background: #3e62ff;       /* 背景を白に */
  color: #8d6f61;         /* 文字を茶色（テーマカラー）に */
  padding: 10px 24px;     /* ボタンの大きさ（内側の余白） */
  border-radius: 30px;    /* 角を丸くする */
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  transition: opacity 0.3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* ほんのり影をつける */
}

/* マウスを乗せた時やタップした時に少し薄くする */
.btn-top:hover {
  opacity: 0.8;
}