/* 基本 */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: sans-serif; }

html, body {
  scroll-behavior: auto; /* ← smoothが悪さする場合がある */
  overflow-anchor: none; /* ← スクロール位置の復元を無効化 */
}

/* 共通ナビ */
nav {
  width: 100%; height: 80px; background-color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 30px; position: fixed; z-index: 10;
}
.nav-links { display: flex; gap: 20px; }
nav .nav-links a { text-decoration: none; color: rgba(195,170,10,1.00); font-size: 1rem; }

/* ハンバーガー */
.hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  width: 44px; height: 44px; cursor: pointer; transition: .3s; background: transparent; border: none; padding: 0;
}
.hamburger span { display: block; width: 25px; height: 3px; border-radius: 2px; transition: .3s; background-color: rgba(195,170,10,1.00); }
.hamburger.active span:nth-child(1){ transform: translateY(9px) rotate(45deg); }
.hamburger.active span:nth-child(2){ opacity: 0; }
.hamburger.active span:nth-child(3){ transform: translateY(-9px) rotate(-45deg); }

/* メイン */
main { height: auto; overflow: hidden; } /* ← 修正: 高さ固定をやめる */
body main h1 {
    position: absolute;
    color: #fff;
    z-index: 2;
    writing-mode: vertical-rl;
    font-family: YuMincho,"Yu Mincho","Hiragino Mincho ProN",serif;
    font-weight: normal;
    font-size: 40px;
    top: 20%;
    letter-spacing: .2em;
    right: 10%;
}

/* PCデフォルト：横幅いっぱい、はみ出さない */
.hero-image {
  width: 100%;
  height: auto;     /* アスペクト比を維持 */
  display: block;
  max-width: 100%;  /* はみ出し防止 */
}

/* ヒーロー画像アニメ */
.fade-zoom-in { opacity: 0; transform: scale(1.05); animation: zoomIn 1s ease-out forwards; }
@keyframes zoomIn { 0% { opacity: 0; transform: scale(1.05);} 100% { opacity: 1; transform: scale(1);} }
.fade-up { opacity: 0; transform: translateY(50px); animation: fadeUp 1s ease-out forwards; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* セクションレイアウト */
.concept01, .concept02 {
  display: flex; flex-direction: row; justify-content: center; align-items: center;
  gap: 20px; margin: 60px; text-align: center;
}
.concept01 .left, .concept02 .left { width: 40%; }
.concept01 .right, .concept02 .right { width: 60%; }

/* タイポ */
h3 {
  color: rgba(195,170,10,1.00); font-weight: 100;
  font-family: Georgia,"Times New Roman",Times,serif; font-size: 20px; letter-spacing: .3em;
}
h4 {
  color: rgba(195,170,10,1.00);
  font-family: YuMincho,"Yu Mincho","Hiragino Mincho ProN",serif;
  font-weight: 400; font-size: 20px; margin: 10px 0 20px;
  padding: 10px; border: 1px solid rgba(195,170,10,1.00); width: 80%; text-align: center;
}
h2 {
  color: rgba(195,170,10,1.00); margin: 20px 0; font-family: YuMincho,"Yu Mincho","Hiragino Mincho ProN",serif;
  font-size: 26px; font-weight: 400;
}
p { font-family: YuGothic,"Yu Gothic medium","Hiragino Sans",Meiryo,sans-serif; font-size: 18px; line-height: 2; text-align: center; }

/* フェードIN */
.fade-in-left, .fade-in-right, .fade-in-up { opacity: 0; }
.fade-in-left { transform: translateX(50px); transition: opacity 1.2s ease-out .5s, transform 1.2s ease-out .5s; }
.fade-in-left.show { opacity: 1; transform: translateX(0); }
.fade-in-right { transform: translateX(-50px); transition: opacity 1.2s ease-out .5s, transform 1.2s ease-out .5s; }
.fade-in-right.show { opacity: 1; transform: translateX(0); }
.fade-in-up { transform: translateY(50px); transition: opacity .8s ease-out, transform .8s ease-out; }
.fade-in-up.show { opacity: 1; transform: translateY(0); }

/* グラフ表示 */
.graf1, .graf2, .graf3, .graf4{
  opacity: 0; transform: translateY(24px); filter: blur(4px);
  transition: opacity .8s ease, transform .8s ease, filter .8s ease; will-change: opacity, transform;
}
.graf1.show, .graf2.show, .graf3.show, .graf4.show{ opacity: 1; transform: translateY(0); filter: blur(0); }
.graf1{ transition-delay: 0s; } .graf2{ transition-delay: .15s; } .graf3{ transition-delay: .30s; } .graf4{ transition-delay: .40s; }
.question  { border-top: 3px dotted rgba(195,170,10,0.50); width: 100%; padding: 40px; }
.question p { text-align: left; }

/* 動きが苦手な方向け */
@media (prefers-reduced-motion: reduce){
  .graf1, .graf2, .graf3, .graf4{ transition: none; transform: none; filter: none; opacity: 1; }
}

/* フッター */
.footer {
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  min-height: 120px; gap: 10px; word-break: keep-all; overflow-wrap: break-word; background-color: rgb(200,200,200);
}
.footer-container { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-section { flex: 1 1 200px; min-width: 200px; justify-content: center; }
.footer-copy { font-size: 14px; color: #000; text-align: right; }
.footer a { color: #000; text-decoration: none; }

/* プロダクト */
.product {
  margin: 40px 0;
  display: flex;
  flex-wrap: wrap; /* 折り返しを許可 */
  align-items: center;
  justify-content: center;
  width: 100%;
  border-top: 1px solid rgba(195,170,10,1.00);
  padding: 40px;
  box-sizing: border-box;
}
.product-left { width: 300px; position: relative; }
.english {
  position: absolute; left: -10%; bottom: 0%; writing-mode: vertical-lr; text-align: center; height: 100%;
  font-family: Georgia,"Times New Roman",Times,serif; color: rgba(195,170,10,0.30); font-size: 40px; letter-spacing: .15em; font-weight: 100;
}
.photo { position: relative; z-index: 2; width: 100%; height: auto; opacity: 1; }
.pict { position: absolute; right: -20%; opacity: .3; top: -15%; z-index: 1; }
.product-center {
  width: 400px; /* 固定幅 */
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
  height: auto;
}
.product-right {
  width: 600px; /* 固定幅 */
}

.new {
    position: absolute;
    top: 0px;
    left: -60px;
    width: 100px;
    height: 100px;
    border-radius: 50px;
    background-color: rgba(195,170,10,1.00);
    display: grid;
    place-items: center;
    text-align: center;
    color: rgba(255,255,255,1.00);
    font-family: "Times New Roman", Times, serif;
    font-weight: 400;
    font-size: 30px;
}

/* CTAリンク */
.product .product-center .link {
  color: #000; text-decoration: none;
  font-family: YuGothic,"Yu Gothic medium","Hiragino Sans",Meiryo,sans-serif; font-size: 18px;
  border: 1px solid #000; width: 80%; margin-top: 20px; text-align: center; padding: 5px;
  background: linear-gradient(to right, #000 0%, #000 100%);
  background-size: 0% 100%; background-repeat: no-repeat;
  transition: background-size .5s ease, color .5s ease;
}
.product .product-center .link:hover { background-size: 100% 100%; color: #fff; }

/* モーダルメニュー */
.modal-menu {
  position: fixed; height: 100vh; width: 100vw; background-color: #fff;
  display: none; flex-direction: column; align-items: center; justify-content: center; z-index: 900;
}
.modal-menu.active { display: flex; }
.modal-menu a {
  font-size: 2rem; color: #000; text-decoration: none; margin: 10px 0 24px;
  font-family: YuMincho,"Yu Mincho","Hiragino Mincho ProN",serif; font-weight: 400;
}

/* モーダル */
.modal-overlay { position: fixed; inset: 0; display: none; place-items: center; background: rgba(0,0,0,.5); z-index: 1000; }
.modal-overlay.active { display: grid; }
.modal-card { width: min(1120px, 92vw); max-height: min(86vh, 980px); overflow: hidden; background: #fff; border-radius: 0; padding: 0; position: relative; box-shadow: 0 10px 40px rgba(0,0,0,.2); }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  font-size: 32px;
  line-height: 1;
  color: rgba(195,170,10,1.00);
  background: transparent;
  border: none;
  cursor: pointer;

  /* ▼ スマホで青い枠を消すために追記 ▼ */
  appearance: none;
  -webkit-appearance: none; /* iOS Safari対策 */
  outline: none;
  box-shadow: none;
}
.modal-grid { display: grid; grid-template-columns: 55% 45%; align-items: stretch; gap: 0; }
.modal-visual { position: relative; overflow: hidden; background: #f5f5f5; min-height: 420px; }
.modal-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal-text { display: flex; flex-direction: column; justify-content: center; padding: clamp(20px, 5vw, 56px); text-align: left; }
.modal-text h3 { margin: 0 0 .8em; font-family: YuMincho,"Yu Mincho","Hiragino Mincho ProN",serif; font-weight: 400; color: rgba(195,170,10,1.00); font-size: clamp(22px, 3.2vw, 40px); letter-spacing: .12em; text-align: left; }
.modal-text p { margin: 0; font-size: clamp(16px, 1.8vw, 22px); line-height: 2.1; color: #222; text-align: left; }

/* お客様の声 */
.voice{ width: 100%; margin: 20px auto 0; border-top: 1px solid rgba(195,170,10,1.00); padding: 40px; }
.voice-title{ text-align: center; margin-bottom: 20px; letter-spacing: .2em; }
.voice-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 20px; }
.voice-item{ background: #fff; text-align: center; width: 100%; }
.voice-item h5{ font-family: YuMincho,"Yu Mincho","Hiragino Mincho ProN",serif; font-weight: 500; color: rgba(195,170,10,1.00); font-size: 20px; margin-bottom: 10px; border: 1px solid rgba(195,170,10,1.00); padding: 5px 0; }
.voice-grid .voice-item img{ width: 100%; height: auto; margin-top: 10px; margin-bottom: 40px; }

#section1, #product, #voice { scroll-margin-top: 100px; }

/* スマホ */
@media (max-width:900px){
  main { height: 600px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .fade-up { position: absolute; right: 20%; font-size: 30px; top: 20%; }
  .concept01, .concept02 { flex-direction: column; margin: 30px; text-align: center; }
  .concept01 .left, .concept01 .right, .concept02 .left, .concept02 .right { width: 100%; }
  .concept02 .left { order: 1; border-top-width: medium; }
  .concept02 .right { order: 2; }
  .pict { top: -20%; right: 0%; }
  .photo {  width: 200px;
  display: block;
  margin: 0 auto; }
  .voice-grid{ grid-template-columns: 1fr; gap: 14px; }
  .voice{ margin: 10px auto 40px; }
  .modal-card{ width: 96vw; max-height: 92vh; }
  .modal-grid{ grid-template-columns: 1fr; }
  .modal-visual{ min-height: 48vh; }
  .modal-text{ padding: clamp(20px, 6vw, 28px); }
  .modal-text h2{ font-size: clamp(22px, 6vw, 32px); letter-spacing: .1em; }
  .modal-text p{ font-size: clamp(15px, 4.4vw, 18px); line-height: 2.0; }
	
  .hero-image {
    width: 100%;
    height: 600px;        /* ← 固定したい高さに変更 */
    object-fit: cover;    /* 横は切れてもOK、縦は必ず埋まる */
    object-position: center top; /* 上下の切れ方を調整。中央 or 上寄せ */
  }

  .product-right {
    width: 100%; /* 親要素もはみ出さないように */
  }
  .product-right iframe {
    display: block;
    max-width: 100%;  /* ← はみ出し防止の決め手 */
    height: auto;
  }
.english {
    left: 20px;
}
.new {
    left: 20px;
    top: -60px;
}
}
