/* styles.css - 有澤香風 書道教室 公式サイト */
:root {
  --bg: #ffffff;
  --text: #111;
  --muted: #666;
  --accent: #222;
  --container-padding: 16px;
  --max-width: 720px;
  --radius: 12px;
  --shadow: 0 6px 18px rgba(0,0,0,0.08);
  --header-navy: #0B2F6B;
  --header-navy-dark: #09264F;
  --header-text: #FFFFFF;
  --card-bg: #ffffff;
  --header-height: 50px;
  font-family: "Noto Sans JP", system-ui, -apple-system, sans-serif;
}

/* 1. リセット */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%;
  height: 100%;
  margin: 0;   /* 念のため */
  padding: 0;  /* 念のため */
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* 2. ヘッダー */
.site-header {
  width: 100%;
  height: var(--header-height);
  background: linear-gradient(180deg, var(--header-navy), var(--header-navy-dark));
  color: var(--header-text);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--container-padding);
  border-bottom: none;
  margin: 0;
}

.site-title {
  font-family: 'Yuji Syuku', serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ハンバーガーボタン */
.menu-trigger {
  width: 20px;
  height: 14px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 2000;
}

.menu-trigger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--header-text);
  transition: all 0.3s;
}

.menu-trigger span:nth-child(1) { top: 0; }
.menu-trigger span:nth-child(2) { top: 6px; }
.menu-trigger span:nth-child(3) { bottom: 0; }

.menu-trigger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-trigger.active span:nth-child(2) { opacity: 0; }
.menu-trigger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* スライドメニュー */
.nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 240px;
  height: 100vh;
  background: var(--header-navy-dark);
  padding: 60px 20px;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1500;
  box-shadow: -5px 0 15px rgba(0,0,0,0.2);
}

.nav-menu.active { right: 0; }
.nav-menu ul { list-style: none; }
.nav-menu li { border-bottom: 1px solid rgba(255,255,255,0.05); }
.nav-menu a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 15px 0;
  font-size: 14px;
  letter-spacing: 1px;
}

/* 3. ヒーローセクション（PC・スマホ切り替え対応） */
.hero {
  width: 100%;
  display: block;
  padding: 0;
  margin: 0;
  line-height: 0;
  font-size: 0;
  background: transparent; /* 背景色を透明にしてベージュが出ないようにします */
  text-align: center;      /* これで画像を中央に寄せます */
}

.hero img {
  display: inline-block;   /* 中央寄せのためにinline-blockに変更 */
  width: 100%;             /* 基本は100% */
  max-width: var(--max-width); /* PCでは720pxに制限 */
  height: auto;
  margin: 0 auto;
  padding: 0;
  border: none;
  vertical-align: bottom;
}
/* 4. コンテンツエリア */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

.section-title {
  margin: 32px 0 16px;
  font-size: 14px;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 700;
  text-align: left;
}

.section-title.works-title-line {
  border-top: 1px solid #eee;
  padding-top: 24px;
  margin-top: 40px;
}

/* プロフィール */
.profile-inner {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--card-bg);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
}

.profile-text strong {
  font-size: 16px;
  color: var(--header-navy);
  display: inline-block;
  margin-bottom: 5px;
}

.profile-label {
  font-weight: bold;
  color: var(--muted);
  font-size: 14px;
}

.profile-insta-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--header-navy);
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
  transition: opacity 0.3s;
}

.profile-insta-link:hover {
  opacity: 0.7;
}

/* 教室案内(INFORMATION) */
.info-card {
  background: var(--card-bg);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 10px;
}

.info-row { margin-bottom: 15px; }
.info-row:last-child { margin-bottom: 0; }

.info-label {
  display: inline-block;
  background: var(--header-navy);
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
  margin-bottom: 4px;
}

.info-value {
  font-size: 14px;
  line-height: 1.5;
  padding-left: 2px;
}

.map-container {
  width: 100%;
  margin-top: 10px;
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
  border: 1px solid #eee;
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: none;
}

.branch-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.branch-link:hover { opacity: 0.7; }

/* お問合せフォーム */
.contact-lead {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 30px;
  line-height: 1.8;
}

.contact-form {
  background: var(--card-bg);
  padding: 30px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-group label span {
  background: #e74c3c;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 8px;
}

.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
}

.submit-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background: linear-gradient(180deg, var(--header-navy), var(--header-navy-dark));
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
}

/* 略歴(BIOGRAPHY) */
.bio-wrapper {
  margin-top: 20px;
  border-left: 1px solid #ddd;
  padding-left: 20px;
  margin-left: 10px;
}

.bio-item {
  margin-bottom: 24px;
  position: relative;
}

.bio-item::before {
  content: "";
  position: absolute;
  left: -24.5px;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--header-navy);
  border-radius: 50%;
}

.bio-year {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--header-navy);
  margin-bottom: 4px;
}

.bio-content { font-size: 14px; }

/* 共通パーツ */
.back-link {
  font-size: 13px;
  text-decoration: none;
  color: var(--muted);
}

.back-link:hover { border-bottom: 1px solid var(--muted); }

behold-widget {
  display: block;
  margin: 40px 0;
}

.site-footer {
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* --- レスポンシブ設定 --- */
/* --- スマホ用の設定（画面端まで広げる） --- */
@media (max-width: 600px) {
  .hero {
    background: none;      /* スマホでは背景不要 */
  }
  .hero img {
    width: 100vw;          /* スマホの横幅いっぱいに強制 */
    max-width: none;       /* PC用の制限を解除 */
    object-fit: cover;
  }
}
