
/* =========================================
   Quill ANCHOR ブランドCSS
   コンセプト：明治×航海×文具×上質
========================================= */

:root{
  --navy:#061f3f;
  --deep:#04162b;
  --blue:#0b4f86;
  --lightblue:#dfefff;
  --gold:#c6a15b;
  --paper:#f7efe0;
  --ink:#172434;
  --white:#ffffff;
  --line:rgba(6,31,63,.18);
}

/* =========================================
   BASE
========================================= */

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    "Yu Gothic",
    serif;

  color:var(--ink);
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.6), transparent 60%),
    linear-gradient(180deg,#f7f3ea,#ffffff);

  overflow-x:hidden;
}

button{
  font:inherit;
  cursor:pointer;
  border:none;
  background:none;
}

/* =========================================
   HEADER
========================================= */

.qa-header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  z-index:50;

  background:rgba(255,255,255,.35);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);

  border-bottom:1px solid rgba(255,255,255,.4);

  box-shadow:
    0 8px 30px rgba(0,0,0,.12),
    inset 0 1px rgba(255,255,255,.6);
}

/* 中身 */
.qa-header-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;

  padding:.7rem 5vw;
}

/* ロゴ */
.qa-logo img{
  height:60px;
  filter:drop-shadow(0 4px 10px rgba(0,0,0,.25));
}

/* ナビ */
.qa-nav button{
  padding:.55rem .85rem;
  border-radius:999px;

  font-weight:700;
  letter-spacing:.08em;

  color:var(--navy);

  background:rgba(255,255,255,.55);

  backdrop-filter:blur(6px);

  transition:.3s;
}

.qa-nav button:hover{
  background:rgba(255,255,255,.9);
  transform:translateY(-2px);
  box-shadow:0 6px 20px rgba(0,0,0,.15);
}

/* =========================================
   HERO
========================================= */

.qa-hero{
  min-height:100vh;
  display:flex;
  align-items:center;

  padding:140px 6vw 6rem;

  background:
    linear-gradient(90deg,
      rgba(255,255,255,.94),
      rgba(255,255,255,.75) 40%,
      rgba(255,255,255,.15)
    ),
    url("https://gigaplus.makeshop.jp/quillanchor/quill1nchor001c.webp");

  background-size:cover;
  background-position:center;
  position:relative;
}

/* 光の演出 */
.qa-hero::after{
  content:"";
  position:absolute;
  inset:0;

  background:
    radial-gradient(circle at 75% 40%, rgba(11,79,134,.25), transparent 45%),
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.7), transparent 35%);

  mix-blend-mode:soft-light;

  animation:lightMove 8s ease-in-out infinite alternate;
}

@keyframes lightMove{
  from{opacity:.6;}
  to{opacity:1;}
}

.qa-hero-copy{
  position:relative;
  z-index:2;
  max-width:650px;
}

.qa-kicker{
  color:var(--gold);
  font-weight:bold;
  letter-spacing:.2em;
}

/* 見出し */
.qa-hero h1{
  font-size:clamp(2.4rem,5vw,5rem);
  line-height:1.25;
  color:var(--navy);

  text-shadow:0 2px 10px rgba(255,255,255,.8);
}

.qa-hero-lead{
  line-height:2;
  font-weight:600;
}

/* ボタン */
.qa-hero-actions{
  margin-top:2rem;
  display:flex;
  flex-wrap:wrap;
  gap:1rem;
}

.qa-hero-actions button{
  padding:1rem 1.6rem;
  border-radius:999px;

  background:linear-gradient(135deg,var(--navy),var(--blue));
  color:white;

  box-shadow:0 10px 30px rgba(0,0,0,.2);

  transition:.3s;
}

.qa-ghost{
  background:white !important;
  color:var(--navy) !important;
  border:1px solid var(--navy);
}

.qa-hero-actions button:hover{
  transform:translateY(-4px);
}
      
.qa-header.scrolled{
  background:rgba(255,255,255,.75);
  backdrop-filter:blur(22px);
}
      
/* =========================================
   検索意図（SEOブロック）
========================================= */

.qa-search-intent{
  padding:5rem 6vw;
  background:#ffffff;
}

.qa-keyword-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1.5rem;
}

.qa-keyword-grid article{
  background:var(--paper);
  padding:1.2rem;
  border-radius:18px;
  border:1px solid var(--line);
}

.qa-keyword-grid h3{
  color:var(--navy);
}

.qa-keyword-grid ul{
  padding-left:1rem;
}

/* =========================================
   ドック（メニューカード）
========================================= */

.qa-dock{
  margin:-3rem auto 3rem;
  padding:1rem;

  width:90%;

  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:.8rem;

  background:rgba(255,255,255,.8);
  border-radius:20px;

  backdrop-filter:blur(12px);
}

.qa-dock button{
  padding:1rem;
  border-radius:14px;

  background:white;

  box-shadow:0 10px 30px rgba(0,0,0,.1);

  transition:.3s;
}

.qa-dock button:hover{
  transform:translateY(-6px);
}

/* =========================================
   セクション
========================================= */

.qa-section{
  padding:5rem 6vw;
}

.qa-label{
  color:var(--gold);
  letter-spacing:.2em;
  font-weight:bold;
}

.qa-section h2{
  font-size:2rem;
  color:var(--navy);
}

/* カード */
.qa-card-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1.2rem;
  margin-top:2rem;
}

.qa-info-card{
  background:white;
  border-radius:20px;
  overflow:hidden;

  box-shadow:0 15px 40px rgba(0,0,0,.12);

  transition:.3s;
}

.qa-info-card:hover{
  transform:translateY(-6px);
}

.qa-info-card img{
  width:100%;
  height:200px;
  object-fit:cover;
}

.qa-info-card h3{
  padding:1rem 1rem .3rem;
  color:var(--navy);
}

.qa-info-card p{
  padding:0 1rem;
}

.qa-info-card button{
  margin:1rem;
  padding:.6rem 1rem;
  border-radius:999px;

  background:var(--navy);
  color:white;
}

/* =========================================
   POPUP
========================================= */

.qa-overlay{
  position:fixed;
  inset:0;
  display:none;
  place-items:center;

  background:rgba(0,0,0,.6);

  z-index:100;
}

.qa-overlay.active{
  display:grid;
}

.qa-modal{
  width:90%;
  max-width:1000px;
  max-height:85vh;

  overflow:auto;

  background:white;
  border-radius:20px;
  padding:2rem;

  animation:popup 0.3s ease;
}

@keyframes popup{
  from{opacity:0; transform:translateY(20px);}
  to{opacity:1;}
}

/* 閉じるボタン（右上固定・安定版） */
.qa-close{
  position:absolute;
  top:12px;
  right:12px;

  width:60px;
  height:60px;

  border-radius:50%;
  background:var(--navy);

  display:flex;
  align-items:center;
  justify-content:center;

  z-index:10;

  box-shadow:0 10px 25px rgba(0,0,0,.25);
}

/* 回転アイコン */
.qa-close img{
  width:42px;
  height:42px;

  animation:spin 8s linear infinite;
}

/* モーダルを基準にする（これ必須） */
.qa-modal{
  position:relative;
}

/* 回転 */
@keyframes spin{
  to{transform:rotate(360deg);}
}
/* =========================================
   FOOTER
========================================= */

.qa-footer{
  background:var(--deep);
  color:white;
  padding:3rem 6vw;
}

.qa-footer img{
  height:60px;
}

.qa-footer-seo{
  opacity:.7;
  font-size:.9rem;
}

/* =========================================
   レスポンシブ
========================================= */
@media(max-width:820px){

  .qa-hero{
    background:
      linear-gradient(180deg,
        rgba(255,255,255,.88) 0%,
        rgba(255,255,255,.6) 40%,
        rgba(255,255,255,.2) 75%,
        rgba(255,255,255,.05) 100%
      ),
      url("https://gigaplus.makeshop.jp/quillanchor/quill1nchor001d.webp");

    background-size:cover;
    background-position:center;
  }

  .qa-card-grid{
    grid-template-columns:1fr;
  }

  .qa-keyword-grid{
    grid-template-columns:1fr;
  }

  .qa-dock{
    grid-template-columns:repeat(2,1fr);
  }

}
.qa-popup-top{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1.6rem;
  align-items:center;
}

.qa-popup-image img{
  width:100%;
  max-height:360px;
  object-fit:cover;
  border-radius:24px;
  box-shadow:0 18px 45px rgba(0,0,0,.16);
}

.qa-popup-text{
  padding:1rem;
}

.qa-popup-bottom{
  margin-top:2rem;
  padding-top:1.4rem;
  border-top:1px solid rgba(6,31,63,.16);
}

.qa-popup-bottom h3{
  margin:0 0 1rem;
  color:var(--navy);
  letter-spacing:.08em;
}

.qa-sub-row{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1rem;
}

.qa-sub-thumb{
  display:block;
  padding:0;
  border-radius:20px;
  overflow:hidden;
  background:white;
  box-shadow:0 14px 35px rgba(0,0,0,.12);
  transition:.3s;
}

.qa-sub-thumb:hover{
  transform:translateY(-6px);
}

.qa-sub-thumb img{
  width:100%;
  height:170px;
  object-fit:cover;
  display:block;
}

.qa-sub-thumb span{
  display:block;
  padding:.85rem;
  color:var(--navy);
  font-weight:800;
  text-align:center;
}

.qa-pdf{
  display:inline-block;
  margin-top:1rem;
  padding:.75rem 1.2rem;
  border-radius:999px;
  color:white;
  background:linear-gradient(135deg,var(--navy),var(--blue));
  text-decoration:none;
  font-weight:800;
}

.qa-music-btn{
  position:fixed;
  right:1rem;
  bottom:1rem;
  z-index:300;
  padding:.8rem 1.1rem;
  border-radius:999px;
  background:linear-gradient(135deg,var(--navy),var(--blue));
  color:white;
  box-shadow:0 12px 35px rgba(0,0,0,.25);
  font-weight:800;
}

.qa-music-btn.playing{
  background:linear-gradient(135deg,#8a6a2f,#c6a15b);
}

@media(max-width:820px){
  .qa-popup-top{
    grid-template-columns:1fr;
  }

  .qa-sub-row{
    grid-template-columns:1fr;
  }
}
/* =========================================
   新ギャラリー（店舗情報用）
========================================= */

/* メイン画像 */
.qa-sub-main-image img{
  width:100%;
  max-height:420px;
  object-fit:cover;
  border-radius:24px;
  box-shadow:0 18px 45px rgba(0,0,0,.18);
}

/* 横スクロールサムネ */
.qa-sub-gallery{
  margin:1rem 0 1.5rem;
  display:flex;
  gap:.8rem;
  overflow-x:auto;
  padding-bottom:.5rem;
  scroll-snap-type:x mandatory;
}

/* サムネ */
.qa-sub-gallery-thumb{
  flex:0 0 130px;
  border-radius:14px;
  overflow:hidden;
  background:white;
  opacity:.65;
  border:2px solid transparent;
  transition:.3s;
  scroll-snap-align:start;
}

/* アクティブ */
.qa-sub-gallery-thumb.active{
  opacity:1;
  border-color:var(--gold);
  transform:translateY(-4px);
}

/* hover */
.qa-sub-gallery-thumb:hover{
  opacity:1;
  transform:translateY(-6px);
}

/* サムネ画像 */
.qa-sub-gallery-thumb img{
  width:100%;
  height:82px;
  object-fit:cover;
  display:block;
}

/* テキスト */
.qa-sub-text{
  line-height:2;
  font-weight:600;
}

/* =========================================
   スマホ最適化
========================================= */
@media(max-width:820px){

  .qa-sub-main-image img{
    max-height:260px;
  }

  .qa-sub-gallery-thumb{
    flex:0 0 110px;
  }

  .qa-sub-gallery-thumb img{
    height:70px;
  }
}
  