
body {
  margin: 0;
  font-family: 'Noto Serif JP', serif;
  background: #f7f4ec url('img/washi_texture.jpg') repeat;
  color: #333;
  line-height: 1.8;
}

h1, h2, h3 {
  font-weight: normal;
  color: #4d3b1f;
  border-left: 6px solid gold;
  padding-left: 12px;
  margin-top: 2em;
}

img {
  display: block;
  max-width: 90%;
  margin: 2em auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.overlay {
  position: relative;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1em;
}

.logo {
  width: 140px;
  max-width: 44vw;
  height: auto;
  margin-bottom: 1em;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.35));
}


.overlay h1 {
  font-size: 1.8em;
  color: #3a2f1c;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.5em 1em;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

main {
  padding: 2em 1em 4em;
  max-width: 900px;
  margin: auto;
  background: rgba(255, 255, 255, 0.85);
}

.section {
  margin-bottom: 4em;
}

ul, dl {
  margin-left: 1.5em;
}

footer {
  text-align: center;
  padding: 2em 1em;
  background: #f1ede2;
  font-size: 0.9em;
  color: #777;
  border-top: 1px solid #ddd;
}

@media (max-width: 600px) {
  .overlay h1 {
    font-size: 1.4em;
  }
  h2 {
    font-size: 1.2em;
  }
  main {
    padding: 1em;
  }
}

.scroll-gallery {
  margin: 2em 0;
}
.scroll-gallery h4 {
  text-align: center;
  font-size: 1em;
  margin-bottom: 1em;
  color: #4d3b1f;
}
.scroll-wrapper {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 0.5em 1em;
  scroll-snap-type: x mandatory;
}
.scroll-wrapper img {
  flex: 0 0 auto;
  width: 300px;
  height: auto;
  scroll-snap-align: center;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}


/* Hero actions (language + contact) */
.hero-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:14px}
.btn{display:inline-block;padding:12px 16px;border-radius:999px;background:rgba(0,0,0,0.55);color:#fff;border:1px solid rgba(255,255,255,0.65);text-decoration:none;font-weight:700;letter-spacing:.02em;box-shadow:0 10px 28px rgba(0,0,0,0.25);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);transition:transform .15s ease, background .15s ease, box-shadow .15s ease;}
.btn:hover{background:rgba(0,0,0,.28)}
.btn-primary{border-color:rgba(255,255,255,.75);background:rgba(255,255,255,.15)}

/* Modal contact */
.modal-overlay{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.55);z-index:3000;padding:16px}
.modal{width:min(560px,100%);background:rgba(255,255,255,.96);border-radius:16px;box-shadow:0 12px 40px rgba(0,0,0,.28);padding:16px}
.modal-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.modal-header h3{margin:0;font-size:18px;color:#4d3b1f}
.modal-close{border:none;background:transparent;font-size:26px;line-height:1;cursor:pointer;color:#4d3b1f}
.form-tabs{display:flex;gap:8px;margin:10px 0}
.form-tabs .tab{flex:1;padding:10px;border-radius:10px;border:1px solid #d9cfbf;background:#fff;cursor:pointer}
.form-tabs .tab.active{background:#f1ede6}
.contact-form{display:flex;flex-direction:column;gap:10px}
.contact-form input,.contact-form textarea{width:100%;padding:12px;border:1px solid #d9cfbf;border-radius:10px;font-size:16px}
.contact-form button{padding:12px;border:none;border-radius:12px;background:#4d3b1f;color:#fff;font-size:16px;cursor:pointer}
.contact-form button:hover{opacity:.92}

/* Auto scroll journey gallery */
.scroll-auto{overflow:hidden;border-radius:10px}
.scroll-track{display:flex;gap:12px;width:max-content;animation:scrollX 28s linear infinite}
.scroll-track:hover{animation-play-state:paused}
.scroll-track img{width:240px;height:140px;object-fit:cover;border-radius:10px;box-shadow:0 2px 8px rgba(0,0,0,.10)}
@keyframes scrollX{from{transform:translateX(0)}to{transform:translateX(-50%)}}

@media (max-width:480px){
  .scroll-track img{width:200px;height:120px}
  .btn{font-size:13px;padding:9px 12px}
  .contact-form input,.contact-form textarea{font-size:16px}
}
.btn:focus-visible{outline:3px solid rgba(201,160,72,0.7);outline-offset:3px}


/* Brand title under the logo */
.brand-title{
  font-family: 'Yuji Syuku', 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  font-weight: 700;
  letter-spacing: .18em;
  margin-top: .25em;
  margin-bottom: 1.0em;
  color: rgba(255,255,255,0.96);
  text-shadow: 0 10px 22px rgba(0,0,0,0.45);
  font-size: 20px;
}

/* Mobile: vertical writing for brand title */
@media (max-width: 640px){
  .brand-title{
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: .12em;
    font-size: 18px;
    margin-bottom: .8em;
  }
}

/* Ensure cleaned logo sits on transparent background */
.logo{
  background: transparent !important;
}

/* brand title font override */
.brand-title{font-family:'Yuji Syuku','Noto Serif JP','Yu Mincho',serif;}

/* v5: brand title bigger + black (matches business card mood) */
.brand-title{
  color:#111 !important;
  text-shadow:none !important;
  font-size:28px !important;
  font-weight:700 !important;
}
/* Mobile: still vertical, slightly smaller to fit */
@media (max-width: 640px){
  .brand-title{
    font-size:24px !important;
  }
}

/* v7: modal should NOT close by clicking outside; close via X or Close button */
.modal-overlay{ align-items:center; justify-content:center; padding:16px; }

/* Modal sizing */
.modal{
  width: min(92vw, 560px);
  max-width: 560px;
  box-sizing: border-box;
}

/* Form controls never overflow modal */
.contact-form{ width:100%; box-sizing:border-box; }
.contact-form input,
.contact-form textarea,
.contact-form select{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Tabs fit inside */
.form-tabs{ display:flex; gap:10px; }
.form-tabs .tab{ flex:1; }

/* Footer close button */
.modal-footer{ margin-top:12px; display:flex; justify-content:flex-end; }
.modal-close-btn{
  padding:10px 14px;
  border-radius:10px;
  background: transparent;
  border:1px solid rgba(0,0,0,0.18);
  font-weight:700;
}

/* v8: Journey gallery at bottom - slower auto scroll & larger thumbnails */
.journey-gallery{ margin-top: 28px; }
.scroll-gallery{ overflow:hidden; width:100%; }
.scroll-track{
  display:flex;
  gap:16px;
  animation: scrollGallery 55s linear infinite; /* slower */
}
.scroll-gallery img{
  height: 150px;           /* about 1/4 of main photo */
  width: auto;
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}
@media (max-width: 640px){
  .scroll-gallery img{ height: 110px; }
  .scroll-track{ animation-duration: 70s; }
}

@keyframes scrollGallery{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-50%); }
}

/* v9: logo should NOT have a rectangular shadow/background */
.logo{
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  outline: none !important;
  /* keep a soft alpha-respecting shadow */
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.20)) !important;
}
