/* ヘッダー */
.header{
position:fixed;
top:0;
left:0;
width:100%;
height:70px;

background:transparent;

display:flex;
justify-content:space-between;
align-items:center;

padding:0 30px;
box-sizing:border-box;

z-index:1000;

transition: background 0.3s ease;
}

html, body {
  height: 100%;
  margin: 0;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 70px;
}

@media (min-width:769px){
  main{
    margin-top: -70px;
  }
}

#ball {
  position: absolute;
  width: 70px;
  height: auto;
  pointer-events: none;
}

.home-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Instagram入力 */
.input-group {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ccc;
  width: 100%;
}

/* @ 表示 */
.prefix {
  color: #999;
  font-size: 16px;
  margin-right: 6px;
}

/* 入力欄 */
.input-group input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 0;
  font-size: 16px;
  background: transparent;
}

.home-icon {
  width: clamp(30px, 6vw, 40px);
  height: auto;
  fill: black;
  transition: 0.3s;
}

.home-links{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:80px;
  flex-wrap:wrap;
}

@media (max-width:768px){

  .home-links{
    display:grid;
    grid-template-columns: repeat(2, auto);
    column-gap:80px;
    row-gap:15px;
    justify-content:center;
    align-items:center;
    justify-items:start;
  }

}

.home-links a{
  font-family: "martian-mono-variable", sans-serif;
  font-variation-settings: "wdth" 120, "wght" 400;
  text-decoration: none;
  font-size: clamp(18px, 3.5vw, 28px);
  color: #000;
  letter-spacing: 0px;
  transition: 0.3s;
}

@media (min-width:769px){
  .home-links a{
    font-size: 22px;
  }
}

.home-links a:hover {
  opacity: 0.6;
  transform: scale(1.1);
}

#canvas{
  width: 80%;
  height: 100px;
  margin: 100px auto;
}

/* スクロール後 */
.header.scrolled{
background: rgba(229,229,229,0);
}

/* ロゴ */
.logo{
font-family:"tosh-a", sans-serif;
font-size:36px;
letter-spacing:1px;
font-weight:700;
color:black;
}

.logo-link{
  text-decoration: none;
  color: inherit;
}

/* ハンバーガー */
.hamburger{
width:30px;
height:22px;

display:flex;
flex-direction:column;
justify-content:space-between;

cursor:pointer;
}

/* ハンバーガー線 */
.hamburger span{
display:block;
height:3px;
width:100%;

background:black;
border-radius:2px;

transition:0.3s;
}

/* ハンバーガーメニュー */
.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);
}

/* メニュー */
.menu{
  position:fixed;
  top:0;
  right:-250px;
  width:250px;
  height:100vh;

  background-color:#ffffff;

  display:flex;
  justify-content:center;
  align-items:center;

  transition:0.4s;
  z-index:900;
}

/* メニュー表示 */

.menu{
  position:fixed;
  top:0;
  right:-250px;
  width:250px;
  height:100vh;

  background:#f0f0f0;

  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;

  transition:0.4s;
  z-index:900;
}



.menu.active{
  right:0;
}

.menu ul{
  list-style:none;
  padding:0;
  margin:0;
  text-align:center;
}

.menu li{
  margin:25px 0;

  opacity:0;
  transform:translateX(20px);
  transition:
    opacity 1.0s ease,
    transform 1.0s ease;
}

.menu.active li{
  opacity:1;
  transform:translateY(0);
}

.menu.active li:nth-child(1){
  transition-delay:0.05s;
}

.menu.active li:nth-child(2){
  transition-delay:0.10s;
}

.menu.active li:nth-child(3){
  transition-delay:0.15s;
}

.menu.active li:nth-child(4){
  transition-delay:0.20s;
}

.menu.active li:nth-child(5){
  transition-delay:0.25s;
}

.menu a{
  color:rgb(0, 0, 0);
  text-decoration:none;
  font-size:20px;
  letter-spacing:0px;
  font-family: "martian-mono-variable", sans-serif;
  font-variation-settings: "wdth" 120, "wght" 400;
}

.menu-image{
  display:block;
  width:120px;
  height:auto;
  margin:40px auto 15px;

  opacity:0;
  transform:scale(0.8);
  transition:
    opacity 1s ease,
    transform 1s ease;
}

.menu.active .menu-image{
  opacity:1;
  transform:scale(1);
}

#fukuoka-clock{
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: #000000;
  font-size: 12px;
  letter-spacing: 1px;
  font-family: "special-gothic", sans-serif;
  white-space: nowrap;
}

.privacy-link{
  margin-top: auto;
  padding-bottom: 30px;
}

.privacy-link a{
  color: #000000;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 1px;
  font-family: "special-gothic", sans-serif;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.privacy-link a:hover{
  opacity: 1;
}

#bg{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: -1;
}

.home-links a.sub-heading{
  font-size: clamp(16px, 3.5vw, 22px);
  color: #000;
  text-decoration: none;
  position: relative;
  margin-top: -26px;
}

.home-links a.sub-heading::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #000;
  transition: width 0.3s ease;
}

.home-links a.sub-heading:hover::after{
  width: 100%;
}

.photo-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:15px;

  width:min(90vw, 500px);
  margin:30px auto 0;
}

@media (min-width:769px){
  .photo-grid{
    grid-template-columns:repeat(4, 1fr);
    width:min(90vw, 1000px);
  }
}

.photo-grid a{
  display:block;
}

.photo-grid img{
  width:100%;
  display:block;

  aspect-ratio:4 / 5;
  object-fit:cover;

  transition:0.3s ease;
}

.photo-grid img:hover{
  opacity:0.8;
  transform:scale(1.02);
}

/* body */
body{
background:white;
text-align:center;
font-family:sans-serif;

margin:0;

display:flex;
flex-direction:column;
overflow-x: hidden;
}

/* ABOUT */

body.about{
  background-image:
    url("images/ABOUT.png"),
    url("images/ABOUT.png");

  background-repeat: repeat;

  background-size:
    150px 150px,
    150px 150px;

  background-position:
    0 0,
    75px 75px;

  background-color:#ffffff;
}

@media (min-width:769px){
  body.about{
    background-size:
      220px 220px,
      220px 220px;

    background-position:
      0 0,
      110px 110px;
  }
}

.about-content{
  max-width:800px;
  margin:80px auto;
  padding:20px;
}

.about-content .lead{
  font-size:13px;
  font-weight: 600;
  line-height:1.6;
  margin-bottom:30px;
}

.about-content .english{
  font-family: "martian-mono-variable", sans-serif;
  font-variation-settings: "wdth" 120, "wght" 400;
  font-size:11px;
  line-height:1.6;
  margin-bottom:30px;
}

/* オーダーフォーム */

.page-order{
  color:#ccc;
}

body#orderPage{
  background-color:#ffffff;
  background-image:
    radial-gradient(rgba(0,0,0,0.1) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,0.1) 1px, transparent 1px);
  background-size:24px 24px;
  background-position:0 0,12px 12px;
}

form{
max-width:500px;
margin:40px auto;
display:flex;
flex-direction:column;
gap:15px;
padding:0 20px;
}

input, select, textarea{
width:100%;
padding:10px 0;
font-size:16px;

border:none;
border-bottom:1px solid #ccc;

box-sizing:border-box;
background:transparent;
}

/* 項目左寄せ */
label{
display:block;
width:100%;
text-align:left;
}

/* ボタン */
button{
padding:12px;
background:black;
color:white;
border:none;
cursor:pointer;
width:100%;
}

/* 任意文字グレー */
.optional{
    color:#999;
    font-size:14px;
}
select{
color:#999;
}

/* バリテーション文字カラー */
select:valid{
color:black;
}

/* 例カラー */
input::placeholder{
color:#d7d7d7;
}

.order-btn{
  border: 3px solid #000;
  padding: 1px 8px;
  display: inline-block;
}

/* アーカイブページ */

.archive {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.archive h2 {
  margin: 40px 0 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ddd;
  font-size: 20px;
  font-weight: 600;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.archive-item {
  overflow: hidden;
  border-radius: 8px;
}

.archive-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.archive-item:hover img {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 説明文 */

.explanation{
font-size:12px;
color:#666;
width:100%;
margin:10px auto 6px;
line-height:1.5;
text-align:left;
}

/* 同意 */

.notice{
font-size:12px;
color:#000;
width:80%;
margin:10px auto 6px;
line-height:1.6;
text-align:justify;

padding-left:1.2em;
}

.notice li{
margin-bottom:10px;
}

.agreement{
display:flex;
align-items:center;
gap:6px;

width:80%;
margin:20px 0 20px 30%;
}

.agreement input{
width:auto;
margin:0;
}

/* 色変化の秒数 */
button{
transition:background 0.8s ease;
}
/* 同意前 */
button:disabled{
background:#ccc;
cursor:not-allowed;
}
/* 同意後 */
button:not(:disabled){
background:black;
color:white;
}

.modal{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgb(255, 255, 255); 

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

.modal.show{
  opacity: 1;
  pointer-events: auto;
}

.modal-content{
  background: rgb(255, 255, 255);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  padding: 40px 20px 20px; /* ←スマホ用に少し狭める */
  max-width: 400px;
  width: 90%;
  box-sizing: border-box;

  position: relative;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .modal-content p {
    font-size: 12px;
  }
}

.close {
  position: absolute;
  top: -12px;
  right: 12px;

  width: 30px;
  height: 30px;

  background: transparent;
  border: none;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
}

.close img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .close {
    right: 60px;
  }

  .close img {
    width: 60px;
    height: 60px;
  }
}

/* コンタクト */
.contact{
  max-width:600px;
  margin:120px auto;
  text-align:center;
}

.contact-page{
  background-color:#ffffff;
}

.contact-info{
  display:flex;
  flex-direction:column;
  align-items:center; /* ←中央寄せはこっちでやる */
  gap:15px;
}

.contact h1{
  margin-right:200px;
}

/* 名前 */
.contact-name{
  font-size:20px;
  font-weight:600;
}

/* リンク（アイコン＋文字） */
.contact-item{
  font-size:16px;
  color:#000;
  text-decoration:none;
  font-weight:600;

  display:inline-flex; /* ←ここ重要 */
  align-items:center;
  gap:8px;

  position:relative;
}

/* 下線は文字だけにする */
.contact-item span{
  position:relative;
}

.contact-item span::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-4px;
  width:0;
  height:2px;
  background:#000;
  transition:width 0.3s ease;
}

.contact-item:hover span::after{
  width:100%;
}

/* アイコン */
.contact-icon{
  width:18px;
  height:18px;
}

.contact-message{
  font-family: "martian-mono-variable", sans-serif;
  font-variation-settings: "wdth" 120, "wght" 400;
  margin-top: 40px;
  font-size: 8px;
  line-height: 1.8;
  color: #000000;
  text-align: center;
}

/* プライバシーポリシー */
body.privacy-page{
  background-color:#fff;
  background-image:
    radial-gradient(#000 1px, transparent 1px);
  background-size:28px 28px;
}

.privacy-container{
  width:min(90%, 720px);
  margin:140px auto 120px;
  font-family:"special-gothic", sans-serif;
  font-weight:300;
}

.privacy-container h1{
  font-size:14px;
  font-weight:400;
  letter-spacing:2px;
  text-transform:uppercase;
  margin-bottom:40px;

  background:#000;
  color:#fff;
  display:inline-block;
  padding:6px 12px;
  line-height:1;
}

.privacy-container h2{
  font-size:15px;
  font-weight:700;
  letter-spacing:1px;
  margin-top:55px;
  margin-bottom:18px;
  background:#fff;
  padding:10px;
}

.privacy-container p{
  font-size:14px;
  line-height:2.2;
  letter-spacing:.03em;
  margin-bottom:18px;
  background:#fff;
}

.privacy-container ul{
  margin:20px 0;
  padding-left:22px;
  background:#fff;
}

.privacy-container li{
  font-size:14px;
  line-height:2;
  margin-bottom:6px;
}

.privacy-container a{
  color:#000;
  text-decoration:none;
  border-bottom:1px solid #000;
  transition:.3s;
}

.privacy-container a:hover{
  opacity:.5;
}

.privacy-container h2:not(:first-of-type){
  padding-top:10px;
}

.privacy-container p:last-child{
  margin-top:60px;
  font-size:12px;
  background:#fff;
}
/* Mobile */

@media (max-width:768px){

  .privacy-container{
    width:88%;
    margin:110px auto 80px;
  }

  .privacy-container h1{
    font-size:12px;
    letter-spacing:2px;
    margin-bottom:30px;
    padding:5px 8px;
  }

  .privacy-container h2{
    font-size:14px;
    margin-top:45px;
  }

  .privacy-container p,
  .privacy-container li{
    font-size:13px;
    line-height:2;
  }

}

/* フッター */

footer{
  padding:20px 0;
  height:60px; /* 固定にする */
}

.footer-privacy{
  text-align: center;
  margin-bottom: 5px;
}

.footer-privacy a{
  display: inline-block;
  background: #000;
  color: #fff;
  text-decoration: none;

  font-size: 6px;
  font-weight: 600;

  letter-spacing: 1px;
  padding: 3px 8px;

  text-transform: uppercase;
}

@media (max-width:768px){
  footer{
    padding:20px 0;
    height:60px;
  }
}

.footer-links{
  display:flex;
  justify-content:center;
  gap:25px;
  margin-bottom:15px;
}

.icon{
  color:black;
  transition:0.3s;
}

.icon svg{
  width:20px;
  height:20px;
}

.icon:hover{
  opacity:0.6;
}

.copyright{
  font-size:12px;
  color:#666;
  padding-bottom:30px;
}

/* 〜〜〜〜〜〜〜〜〜〜スマホ〜〜〜〜〜〜〜〜〜〜 */
@media (max-width:768px){

.header{
height:80px;
padding:0 20px;
}

.logo{
font-size:24px;
}

/* ハンバーガー */
.hamburger{
width:26px;
height:18px;
}

/* ☰ → × 調整 */
.hamburger.active span:nth-child(1){
transform:translateY(7.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2){
opacity:0;
transform:scaleX(0);
}

.hamburger.active span:nth-child(3){
transform:translateY(-7.5px) rotate(-45deg);
}

/* メニュー */
.menu{
display: flex;
flex-direction: column;
width:200px;
right:-200px;
}

/* メニュー表示 */
.menu.active{
right:0;
}

.menu a{
font-size:17px;
}

#canvas{
  width: 90%;
  height: 100px;
  margin: 50px auto;
}

#ball {
  position: absolute;
  width: 50px;
  height: auto;
  pointer-events: none;
}

/* オーダーフォーム */

h1{
font-size:22px;
text-align:center;
}

form{
margin:20px auto;
gap:16px;
}

button{
padding:14px;
}

.page-order{
  margin-top: 100px;
}
/* 項目左寄せ */

label{
display:block;
width:80%;
margin:0 auto;
text-align:left;
}

/* オーダーフォーム下線幅調整 */

input,
select,
textarea{
width:80%;
margin:0 auto;
display:block;
padding:10px;
box-sizing:border-box;
}

.input-group{
  width: 80%;
  margin: 0 auto;
}

/* 説明文 */

.explanation{
font-size:12px;
color:#666;
width:80%;
margin:10px auto 6px;
line-height:1.5;
text-align:left;
}

/* 同意 */

.agreement{
display:flex;
align-items:center;
gap:6px;
justify-content:center;
width:80%;
margin:20px auto;
}

/* コンタクト */
.contact h1{
  margin-right: 30px;
}