/*
  otaliano — style.css
  自作CSS(依存ライブラリなし)。配色・フォント・レイアウトは従来サイトのまま。
  配色は下の変数(サイト既存のパレット)だけを使う。
*/

:root {
  --brown:   #7c6033;
  --sand:    #FBE1B5;
  --sand-d:  #f0d6ad;
  --olive:   #8a9e4a;
  --blue:    #7198a5;
  --orange:  #ec8d54;
  --caption: #8b6a3d;
  --alert:   #c0392b;

  --font-body: 'M PLUS Rounded 1c', sans-serif;
  --font-en:   'Italiana', 'M PLUS Rounded 1c', serif;

  --radius: 8.5px;
  --nav-offset: 83px;
}

/* ============================================================
   BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background-color: var(--sand);
  color: #212529;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}

img, svg { vertical-align: middle; }
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; margin: 0; }
button { cursor: pointer; }
button:disabled { cursor: default; }

h2, h5, h6 {
  margin: 0 0 .5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--brown);
}
h2 { font-size: 24px; font-family: var(--font-en); color: var(--olive); }
h5 { font-size: 20px; }
h6 { font-size: 18px; }

p {
  margin: 0 0 1rem;
  color: var(--brown);
  font-size: 18px;
  font-weight: 300;
}

ul { margin: 0 0 1rem; padding-left: 2rem; }
ul li { color: var(--brown); font-size: 18px; font-weight: 300; }

a {
  display: inline-block;
  color: var(--brown);
  text-decoration: none;
  touch-action: manipulation;
  transition: all .3s;
}
a:hover { color: var(--orange); }

button { transition: all .3s; touch-action: manipulation; }

strong, b { font-weight: 700; }

@media (max-width: 1024px) {
  h2 { font-size: 20px; }
  h5 { font-size: 18px; }
  h6 { font-size: 16px; }
  p  { font-size: 16px; }
}

/* 文字色ユーティリティ */
.text-brwn   { color: var(--brown); }
.text-l-brwn { color: var(--sand); }
.text-bl     { color: var(--blue); }
.text-grn    { color: var(--olive); }

.text-center { text-align: center; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   LAYOUT
============================================================ */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 12px;
  padding-right: 12px;
}
@media (min-width: 576px)  { .container { max-width: 540px; } }
@media (min-width: 768px)  { .container { max-width: 720px; } }
@media (min-width: 992px)  { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

.section-padding { padding-top: 100px; padding-bottom: 100px; }
@media (max-width: 991.98px) {
  .section-padding { padding-top: 50px; padding-bottom: 50px; }
}

/* ナビが固定なので、アンカー移動の停止位置をずらす */
section[id] { scroll-margin-top: var(--nav-offset); }

/* セクション見出し(下線つき) */
section h2 {
  width: min(400px, 100%);
  border-bottom: 1px solid var(--blue);
}

/* 左:文章 / 右:画像 の2カラム(lg以上) */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 24px;
}
.split-text {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}
@media (min-width: 992px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-text { margin-bottom: 0; }
}
.services-info { display: flow-root; }

.media-wrap {
  position: relative;
  align-self: start;   /* 行の高さまで引き伸ばさない(キャプションを画像の下端に置くため) */
  padding-top: 6rem;
}
.media-wrap img {
  display: block;
  border-radius: var(--radius);
}
.about-image, .other-image { border: 1px solid var(--brown); }
.sub-image { border: 1px solid var(--sand); }

.media-caption {
  position: absolute;
  right: 0; bottom: 0; left: 0;
  display: flex;
  margin: 20px;
  padding: 35px;
  background-color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(209, 213, 219, 0.3);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(5px) saturate(180%);
  backdrop-filter: blur(5px) saturate(180%);
}
.media-caption > div { margin-left: 1.5rem; }
.text-h2-j { font-size: 14px; }
.text-h2-e {
  font-family: var(--font-en);
  font-style: normal;
  font-size: 16px;
  font-weight: 700;
}
.text-udb { border-bottom: 1px solid var(--brown); }

/* ============================================================
   ICON
============================================================ */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -.125em;
  fill: currentColor;
  flex-shrink: 0;
}

/* ============================================================
   LINK (下線がすっと伸びる)
============================================================ */
.custom-link {
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: inline-block;
  transition: all .3s cubic-bezier(.645, .045, .355, 1);
}
.custom-link::after {
  content: "";
  position: absolute;
  bottom: 0; left: auto; right: 0;
  z-index: -1;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width .6s cubic-bezier(.25, .8, .25, 1) 0s;
}
.custom-link:hover::after { width: 100%; left: 0; right: auto; }

/* ============================================================
   NAVIGATION (上部固定)
============================================================ */
.navbar {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 9;
  padding: .5rem 0;
  background-color: var(--olive);
}
.navbar > .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  padding: .3125rem 0;
  margin-right: 1rem;
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}
.navbar-brand:hover { color: var(--orange); }

/* ハンバーガー */
.nav-toggle {
  width: 30px;
  height: 35px;
  margin: 16px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  outline: none;
}
.nav-toggle:focus-visible { outline: 2px solid var(--sand); outline-offset: 4px; }
.nav-toggle-icon {
  display: block;
  position: relative;
  width: 30px;
  height: 2px;
  background: var(--sand);
  transition: background 10ms 300ms ease;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  right: 0; left: 0;
  width: 30px;
  height: 2px;
  background: var(--sand);
  transition: top 300ms 350ms ease, transform 300ms 50ms ease;
}
.nav-toggle-icon::before { top: -8px; }
.nav-toggle-icon::after  { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before,
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  top: 0;
  transition: top 300ms 50ms ease, transform 300ms 350ms ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after  { transform: rotate(-45deg); }

/* メニュー本体(スマホは開閉アニメ) */
.nav-collapse {
  display: grid;
  grid-template-rows: 0fr;
  flex-basis: 100%;
  flex-grow: 1;
  visibility: hidden;
  transition: grid-template-rows .35s ease, visibility 0s .35s;
}
.nav-collapse.is-open {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows .35s ease, visibility 0s 0s;
}
.nav-list {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* 下の余白は中身として持たせる(閉じている時に高さへ残らないように) */
.nav-list::after { content: ""; display: block; height: 30px; flex: none; }
.nav-link {
  display: inline-block;
  position: relative;
  margin: 5px;
  color: var(--sand);
  font-size: 18px;
  font-weight: 400;
  border-radius: var(--radius);
}
.nav-link:hover,
.nav-link.active { color: var(--orange); }

@media (min-width: 992px) {
  .nav-toggle { display: none; }
  .nav-collapse {
    display: flex;
    flex-basis: auto;
    align-items: center;
    visibility: visible;
    transition: none;
  }
  .nav-list {
    flex-direction: row;
    align-items: center;
    margin-left: auto;
    padding: 0;
    overflow: visible;
  }
  .nav-list::after { display: none; }
  .nav-link { padding: 10px 5px; }
  .nav-list.has-gap { margin-right: 3rem; }
  .navbar > .container { flex-wrap: nowrap; justify-content: flex-start; }
}

/* ============================================================
   HERO
============================================================ */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding-top: 100px;
  background-image: url('../img/hero-bg.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}
@media (max-width: 991.98px) {
  .hero-section { padding-top: 150px; }
}
.hero-section .container {
  position: relative;
  z-index: 2;
  padding-bottom: 50px;
}
.hero-body { margin: 3rem 0; }

/* 文字の縁取り(背景画像の上でも読めるように) */
.hero-section p,
.hero-section h1,
.hero-en,
.hero-ja {
  -webkit-text-stroke: 3px var(--sand);
  paint-order: stroke;
}
.hero-section p,
.hero-section h1 {
  margin: 0 0 1rem;
  color: var(--brown);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
  font-family: var(--font-body);
}
.hero-logo { width: 5%; }
.hero-line { margin-bottom: 1.5rem; }
.hero-en {
  color: var(--blue);
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 700;
}
.hero-ja {
  display: block;   /* 英語の行のあとで改行する */
  color: var(--blue);
  font-family: var(--font-body);
  font-size: 14px;
}
.hero-section p:last-child { margin-bottom: 2.5rem; }
@media (max-width: 1024px) {
  .hero-section p, .hero-section h1 { font-size: 16px; }
  .hero-en { font-size: 22px; }
}

/* ============================================================
   SECTIONS
============================================================ */
.info-section    { position: relative; background-color: var(--brown); }
.about-section   { position: relative; background-color: var(--sand); }
.artists-section { background-color: var(--brown); }
.schedule-section{ background-color: var(--sand); }
.pricing-section { position: relative; background-color: var(--brown); }
.sample-section  { background-color: var(--brown); }

.sample-section .section-title { padding-top: 3rem; }
.sample-section h2 { margin-top: 0; }
.sample-block { margin-bottom: 4.5rem; }

/* ============================================================
   FORM
============================================================ */
.form-wrap {
  display: flex;
  justify-content: center;
  margin-left: -12px;
  margin-right: -12px;
}
.form-box {
  width: 100%;
  padding: 45px;
  background-color: var(--sand-d);
  border: 1px solid var(--brown);
  border-radius: var(--radius);
}
@media (min-width: 992px) {
  .form-box { width: 50%; }
}
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid > .form-full { grid-column: 1 / -1; }
}

.form-control {
  display: block;
  width: 100%;
  padding: .375rem .75rem;
  background-color: var(--sand);
  background-clip: padding-box;
  border: 1px solid var(--brown);
  border-radius: .375rem;
  color: var(--brown);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  outline: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.form-control::placeholder { color: var(--brown); opacity: 1; }
.form-control:focus { box-shadow: 0 0 0 .2rem rgba(236, 141, 84, .35); }
textarea.form-control { min-height: 190px; resize: vertical; }

/* ボット対策の罠(人間には見えない) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-message {
  margin-top: 1.5rem;
  color: var(--brown);
  font-size: 16px;
  font-weight: 400;
}
.form-message.is-error { color: var(--alert); }
.form-message.is-ok    { font-weight: 700; }

.custom-btn {
  padding: 8px 20px;
  background: var(--sand);
  border: 1px solid var(--brown);
  border-radius: var(--radius);
  color: var(--brown);
  font-size: 14px;
  line-height: normal;
}
.custom-btn:hover { background: var(--orange); color: var(--brown); }
.custom-btn:disabled { opacity: .6; background: var(--sand); }

/* ============================================================
   FOOTER
============================================================ */
.site-footer,
.sample-footer {
  position: relative;
  overflow: hidden;
  padding-bottom: 30px;
  background-color: var(--olive);
}
.site-footer-top {
  margin-bottom: 70px;
  padding: 30px 0;
  background-color: var(--sand);
}
.sample-footer-top {
  margin-bottom: 10px;
  padding: 30px 0;
  background-color: var(--olive);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 24px;
}
.footer-grid > * { margin-bottom: 1.5rem; }
.fg-wide { padding-bottom: .5rem; }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > .fg-wide { grid-column: 1 / -1; }
  .footer-grid > :last-child { margin-bottom: 0; }
}
@media (min-width: 992px) {
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-grid > .fg-wide { grid-column: span 2; }
  .footer-grid > * { margin-bottom: 0; }
}

.site-footer-title,
.sample-footer-title { margin-bottom: 1rem; color: var(--sand); }

.site-footer-links { margin: 0 0 1rem; padding-left: 0; }
.site-footer-link-item {
  display: inline-block;
  margin-right: 15px;
  list-style: none;
}
.site-footer-link { color: var(--sand); }

.footer-line { display: flex; margin: 1rem 0 .5rem; }

/* © を3回タップで更新したときの表示 */
#copyright-symbol { cursor: default; }
#hidden-complete-msg {
  position: fixed;
  top: 50%; left: 50%;
  z-index: 9999;
  display: none;
  padding: 1rem 2rem;
  transform: translate(-50%, -50%);
  background-color: var(--olive);
  border-radius: 8px;
  color: var(--sand);
  font-size: 1.5rem;
  font-weight: 700;
  pointer-events: none;
}
#hidden-complete-msg.is-show { display: block; }

/* ============================================================
   INSTAGRAM FEED (dlk.js が描画)
============================================================ */
.instafeed .feed-card {
  display: flex;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--sand);
  color: var(--caption);
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease;
}
.instafeed .feed-card:hover { border-color: var(--orange); color: var(--caption); }
.instafeed .feed-card:hover img { opacity: .9; }

.feed-image { position: relative; overflow: hidden; }
.feed-image img,
.feed-image video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.feed-date { font-size: 12px; color: #777; }
.feed-text { font-size: 14px; line-height: 1.5; }
.feed-empty { color: var(--sand); font-size: 14px; }

/* STORY バッジ */
.badge-story {
  margin-right: 4px;
  color: var(--alert);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
}

/* ---- gallery ---- */
.instafeed[data-type="gallery"] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px 4px;
}
@media (min-width: 992px) {
  .instafeed[data-type="gallery"] {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px 24px;
  }
}
.instafeed[data-type="gallery"] .feed-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
}
.instafeed[data-type="gallery"] .feed-image {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
}
.feed-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  background: linear-gradient(0deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .8) 20%, rgba(0, 212, 255, 0) 100%);
  color: #fff;
  opacity: 0;
  transition: opacity .25s ease;
}
.gallery-card:hover .feed-overlay,
.gallery-card:focus-visible .feed-overlay { opacity: 1; }
.instafeed[data-type="gallery"] .feed-overlay .feed-date { color: rgba(255, 255, 255, .85); }
.instafeed[data-type="gallery"] .feed-overlay .feed-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
  word-break: break-word;
  color: #fff;
  font-size: 13px;
}
.feed-insta {
  align-self: flex-end;
  margin-top: 6px;
  color: #fff;
  font-size: 20px;
  line-height: 1;
}
.feed-insta:hover { color: #fff; opacity: .7; }
.gallery-card:hover .feed-insta .icon { animation: spinAround 2s linear infinite; }
@keyframes spinAround {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-card:hover .feed-insta .icon { animation: none; }
}

/* ---- top (画像のみ・4列) ---- */
.instafeed[data-type="top"] {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-width: 70%;
  margin: 0 auto;
}
@media (min-width: 992px) {
  .instafeed[data-type="top"] {
    grid-template-columns: repeat(4, 1fr);
    max-width: 100%;
  }
}
.instafeed[data-type="top"] .feed-card {
  display: block;
  margin: 5px auto;
  padding: 0;
  border-radius: var(--radius);
}
.instafeed[data-type="top"] .feed-image {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
}
.top-block .feed-card:hover img { opacity: 1; }

/* ---- news (サムネ + 日付 + 2行) ---- */
.instafeed[data-type="news"] { display: flex; flex-direction: column; }
.instafeed[data-type="news"] .feed-card {
  width: 100%;
  margin: 0 0 10px;
  background-color: var(--sand);
  border-radius: var(--radius);
}
.instafeed[data-type="news"] .feed-card:hover {
  background: linear-gradient(0deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .8) 20%, rgba(0, 212, 255, 0) 100%);
  border-bottom: 1px solid var(--orange);
  color: #fff;
}
.instafeed[data-type="news"] .feed-image {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
}
.instafeed[data-type="news"] .feed-date { color: var(--caption); }
.instafeed[data-type="news"] .feed-body { flex: 1; min-width: 0; }
.instafeed[data-type="news"] .feed-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* ---- design (画像だけを大きさ違いで) ---- */
.design-wrapper { display: flex; flex-wrap: wrap; gap: 20px; }
.design-block { position: relative; overflow: hidden; }
.design-large  { width: 100%; }
.design-medium { width: 50%; }
.design-small  { width: 20%; }
.instafeed[data-type="design"] .feed-card {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border-radius: var(--radius);
}
.instafeed[data-type="design"] .feed-image { border-radius: var(--radius); }
.design-block .feed-card:hover img { opacity: 1; }
.design-area .feed-text,
.design-area .feed-date { display: none; }
