@charset "UTF-8";

/* ==========================================
   1. 全体設計・リセット・共通
   ========================================== */
:root {
  --color-main: #3a503a; /* 利休梅（みどり）をイメージした落ち着いた和風緑 */
  --color-bg-light: #fbfaf7; /* 温かみのある生成り色 */
  --color-text: #2c2c2c;
/* 読みやすい墨色 */
  --font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* スムーズスクロール */
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg-light);
  color: var(--color-text);
  line-height: 1.8;
  padding-top: 70px;
  /* 固定ヘッダーの高さ分の余白 */
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================
   2. 固定ヘッダー（ナビゲーション）
   ========================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: rgba(251, 250, 247, 0.95);
  border-bottom: 1px solid #e5dfd3;
  display: flex;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  font-size: 25px;
  font-weight: bold;
  color: var(--color-main);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.header-nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

.header-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 14px;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.header-nav a:hover {
  color: var(--color-main);
}

/* ==========================================
   3. キービジュアル (ヒーローエリア)
   ========================================== */
.hero {
  /* margin-top: 60px; */
  position: relative;
  height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background-color: #f3efe6;
}

.hero-bowl-img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background-image: none;
  background-size: cover;
  background-position: center;
  margin-bottom: 25px;
  position: relative;
}

/* 国旗リンク全体のスペース設定 */
.lang-flag-btn {
  display: block;
  margin: 200px auto 0 auto;
  /* 💡 最初の「30px」で上側に余白を作り茶碗の下へ下げる */
  padding: 0;
  width: 80px;
  /* 国旗の横幅 */
  height: auto;
  line-height: 1;
  transition: transform 0.2s ease;
}

/* 国旗画像自体の余計な隙間を排除する設定 */
.lang-flag-btn img {
  display: block;
  /* 画像の下に生まれる数ピクセルの隙間を完全に消す */
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  /* 軽い影だけつけて浮かせる */
}

/* ホバー（マウスを載せたとき）の動き */
.lang-flag-btn:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.hero h1 {
  font-size: 20px;
  font-weight: normal;
  letter-spacing: 0.15em;
  margin-bottom: 60px;
  color: var(--color-main);
  padding: 0 15px;
}

/* ==========================================
   4. キャッチコピー
   ========================================== */
.intro-lead {
  padding: 80px 0;
  text-align: center;
  background-color: #3a503a;
  /* ベースの緑色 */
  border-bottom: 1px solid #e5dfd3;

  background-image: url('../images/asset1.png');
  background-repeat: repeat;
  background-position: center;
  background-size: 120px auto;

  /* 👇 もし花の柄が大きすぎてモヤに見える場合は、この数字を「100px」や「80px」に小さくしてみてください */
  background-size: 120px auto;
}

.intro-lead h2 {
  width: fit-content;
  margin: 0 auto;
  padding: 1em 2em;
  background-color: rgba(58, 80, 58, 0.7);
  font-size: 3rem;
  font-weight: bold;
  text-shadow: 3px 3px 2px #3a503a;
  line-height: 2;
  letter-spacing: 0.1em;
  margin-bottom: 0;
  color: #fffefd;
}

.strong {
  font-weight: bold !important;
}

/* ==========================================
   5. 特徴・ギャラリー（スライドショー）
   ========================================== */
.features {
  padding: 80px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 80px;
}

/* 左右反転用のクラス（HTML内のインラインスタイルを排除） */
.reverse-layout {
  direction: rtl;
}

.reverse-layout .slideshow-container,
.reverse-layout .feature-text {
  direction: ltr;
}

.feature-text {
  padding: 20px;
}

.feature-text h3 {
  font-size: 20px;
  color: var(--color-main);
  margin-bottom: 15px;
  display: inline-block;          /* 💡 罫線の長さを文字の横幅ぴったりにする */
  padding-bottom: 15px;            /* 💡 文字と罫線の間の隙間 */
  border-bottom: 2px solid #3a503a; /* 💡 下線（しっかり文字幅で止まります） */
}


.feature-text h3 {
  font-size: 20px;
  color: var(--color-main);
  margin-bottom: 20px;
  display: inline-block;
  border-bottom: 2px solid #3a503a;
  
  /* 👇 ここを 8px から 2px に小さくして文字と線を近づけます */
  padding-bottom: 2px; 
}

  .feature-text p {
  font-size: 16px;       /* 💡 ここに文字の大きさを追加します（元が14pxくらいなら16px〜18pxがおすすめ） */
  line-height: 1.8;      /* 行間を広げてゆったりと読みやすくする */
  letter-spacing: 0.03em; /* 文字の間隔をわずかに広げる */
}


.slideshow-container {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: kenburnsOverlap 10s infinite;
}

.slide-img:nth-child(1) {
  animation-delay: 0s;
}

.slide-img:nth-child(2) {
  animation-delay: 5s;
}

@keyframes kenburnsOverlap {
  0% {
    opacity: 0;
    transform: scale(1.0);
  }

  10% {
    opacity: 1;
  }

  45% {
    opacity: 1;
    transform: scale(1.05);
  }

  55% {
    opacity: 0;
    transform: scale(1.05);
  }

  100% {
    opacity: 0;
  }
}

/* ==========================================
   6. 着物案内
   ========================================== */
/* ==============================
   1. スマホ用（基本設定）
   ============================== */
.kimono-banner {
  border-top: 1px solid #e5dfd3;
  border-bottom: 1px solid #e5dfd3;
  max-width: 1700px;
  margin: 0 auto;
  background-image: url('../images/makiko.webp'); /* 💡 写真名を変えてください */
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  aspect-ratio: 1700 / 861;

  /* スマホ用のセンター配置設定 */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.kimono-banner h3 {
  /* 👇 スマホ用の文字設定（スマホでは折り返して読みやすく） */
  font-size: 1.1rem;      
  font-weight: normal;
  color: #ffffff;          
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  text-align: center;      
  margin: 0;
  max-width: 90%;
  line-height: 1.6;          
}


/* ==============================
   2. PC用（画面が広くなった時だけ適用）
   ============================== */
@media (min-width: 768px) {
  .kimono-banner {
    justify-content: flex-start; /* 横：左寄せ */
    align-items: flex-start;    /* 縦：上寄せ */
    
    /* 💡 1. 文字を下げるために、padding-top（上）を広げます */
    /* 上から150px下げ、左からは40%空けて女性の横をキープ */
    padding: 150px 0 0 40%;   
    
    background-position: center;
  }

  .kimono-banner h3 {
    /* 💡 2. PXを上げて、文字をさらに大きく（1.8rem → 2.2rem） */
    font-size: 2.2rem;
    
    font-weight: normal;
    text-align: left;         /* 左揃え */
    
    /* 💡 3. 2行で折り返すために、文字の最大幅を調整 */
    max-width: 55%;           /* 💡 これを55%に広げて、2行目が収まるようにします */
    
    line-height: 1.5;          
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8); 
  }
}

/* ==============================
   2. PC用（メディアクエリ）の h3
   ============================== */
@media (min-width: 768px) {
  /* ...（kimono-bannerのpadding設定など）... */

  .kimono-banner h3 {
    font-size: 2.2rem;       /* 💡 PC用の文字はとても大きい */
    text-align: left;
    max-width: 55%;

    /* 👇 PC用の行間をさらに広く、上品に */
    line-height: 1.8;          /* 💡 文字が大きいので、1.8くらいまで広げると上品です */
    
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  }
}

.kimono-subtext {
  font-size: 0.95rem;
  color: #7a6e61;
}

/* ==============================
   お稽古スケジュールテーブル（修正版）
   ============================== */

/* テーブル全体の基本設定 */
#schedule-section table {
  width: 100%;
  max-width: 800px; /* 💡 テーブル全体の最大幅をお好みで調整 */
  margin: 40px auto;  /* 💡 画面中央に配置 */
  border-collapse: collapse; /* 線を細く綺麗に */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* 💡 上品な影をつけます */
}

/* ヘッダー行（時間、曜日）とセル（枠）の共通設定 */
#schedule-section th,
#schedule-section td {
  border: 1px solid #e5dfd3; /* 薄いベージュ系の線 */
  padding: 25px 15px;      /* 💡 1. 枠の中の余白（上下）を広げます（px上げの前準備） */
  color: #333333;           /* 文字の色 */
  
  /* 💡 2. 全ての文字（時間、曜日）をセンター（中央寄せ）にする設定 */
  text-align: center;
  vertical-align: middle; /* 💡 縦方向も真ん中に */
}

/* ヘッダー行（一番上の行：時間、曜日）の設定 */
#schedule-section th {
  background-color: #f5f2eb; /* 💡 うすいベージュの背景色（ヘッダー） */
  
  /* 💡 3. すべての文字のpxを上げます（ここではヘッダー） */
  font-size: 15px;         /* 💡 元より大きく（お稽古と同じくらい） */
}

/* データセル（各時間帯の枠）の設定 */
#schedule-section td {
  /* 💡 3. すべての文字のpxを上げます（ここでは時間や枠） */
  font-size: 15px;         /* 💡 ヘッダーより少し小さく、でも以前より大きく */
  font-weight: bold;
}


/* 👇 4. 【重要】抹茶のPNGを置くための、特別な枠の設定 */
#schedule-section .has-lesson {
  background-color: #f0f5f0;  /* 💡 抹茶画像が見えやすいよう、薄い抹茶色の背景をつけます */
  position: relative;        /* 💡 画像を中に置くための基準点 */
}

/* 👇 【重要】抹茶のPNG画像そのものの配置設定 */
#schedule-section .has-lesson::before {
  content: "";               /* 空っぽのコンテンツ */
  position: absolute;        /* 💡 基準点（tdの中）に対して自由に動かす */
  
  /* 💡 抹茶のPNG画像のパス（ images/ フォルダにある matchacup.png の場合） */
  background-image: url('../images/chawan-mark.png'); 
  
  background-repeat: no-repeat;
  background-position: center;  /* 💡 枠の真ん中に置く */
  background-size: contain;   /* 💡 枠からはみ出さないように、自動で拡大縮小 */
  
  /* 💡 画像の大きさを指定 */
  width: 50px;                 /* お好みで調整してください */
  height: 50px;                /* お好みで調整してください */
  
  /* 💡 画像を真ん中に配置するための設定 */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* 💡 文字がなくても真ん中に */
}

/* ==========================================
   8. お申し込み・お問い合わせ
   ========================================== */
.contact {
  padding: 80px 0;
  text-align: center;
  background-color: #fbfaf7;
}

.contact h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.contact-btn {
  display: inline-block;
  background-color: var(--color-main);
  color: #fff;
  padding: 15px 40px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(58, 80, 58, 0.2);
  margin-top: 20px;
}

.contact-btn:hover {
  background-color: #fbfaf7;
  color: var(--color-main);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(58, 80, 58, 0.3);
}

/* ==========================================
   9. フッター
   ========================================== */
footer {
  background-color: #efece3;
  padding: 40px 0;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid #e0dacb;
}

footer a img {
  width: 100px;
}

footer .footer-logo {
  font-size: 1.1rem;
  color: var(--color-main);
  margin-bottom: 10px;
  letter-spacing: 0.1em;
}

/* ==========================================
   10. レスポンシブ対応（スマホ表示）
   ========================================== */
@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .header-nav ul {
    gap: 15px;
  }

  .header-nav a {
    font-size: 0.85rem;
  }
}

.wrapper-l {
  max-width: 1100px;
  margin: 0 auto;
}

.wrapper-m {
  max-width: 800px;
  margin: 0 auto;
}

.wrapper-s {
  max-width: 600px;
  margin: 0 auto;
}

.main-visual,
.news,
.vision,
.construction-example {
  margin-bottom: 150px;
}

.main-title {
  margin-bottom: 50px;
  font-size: 2.4rem;
  font-weight: 900;
  text-align: center;
}

.main-title span {
  display: block;
  font-size: 1.4rem;
  line-height: 1;
}

figcaption,
.contact h2,
footer h2,
header a {
  font-size: 1.8rem;
  font-weight: 600;
}

p,
li,
dd {
  font-size: 1.4rem;
  line-height: 1.5;
  font-weight: 400;
}

dt,
.news-link a,
small {
  font-size: 1.2rem;
  font-weight: 600;
}

.header-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background-color: #fff;
}

.header-bg header {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-bg header h1 a {
  font-size: 2.4rem;
  font-weight: 900;
  color: #0d0d0d;
}

.header-bg header .header-right {
  width: calc(100% - 16.8rem);
  max-width: 600px;
}

.header-bg header .header-right .tel {
  text-align: right;
  font-size: 2.4rem;
  font-weight: 900;
}

.header-bg header .header-right .global ul {
  display: flex;
  justify-content: space-between;
}

.header-bg header .header-right .global ul li a {
  color: #0d0d0d;
}

.main-visual {
  min-height: 600px;
  background-color: #C5C5C5;
}

.news .news-bg {
  padding: 50px;
  border: 1px solid #0d0d0d;
}

.news .news-list div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.news .news-link a {
  display: block;
  color: #0d0d0d;
  text-align: right;
}

.vision {
  padding: 50px 0;
  background-image: linear-gradient(to right, #C5C5C5, #F9F9F9);
}

.vision p {
  margin-bottom: 20px;
  text-align: center;
}

.construction-example .example-list {
  display: flex;
  justify-content: space-between;
}

.construction-example .example-list li {
  width: calc((100% / 3) - 40px);
}

.construction-example p {
  margin-top: 50px;
  text-align: center;
}

.construction-example p a {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 25px;
  font-weight: bold;
  color: #fff;
  background-color: #8B8B8B;
}

.contact {
  padding: 50px 0;
  background-color:  #fbfaf7;
}

.contact h2 span {
  display: block;
  margin-bottom: 50px;
  text-align: center;
  color: #fff;
}

.contact .contact-btn-list ul {
  display: flex;
  justify-content: space-between;
}

.contact .contact-btn-list ul li {
  width: calc(50% - 15px);
}

.contact .contact-btn-list ul li a {
  display: block;
  padding: 20px 0;
  text-align: center;
  font-size: 1.8rem;
  font-weight: 900;
  color: #0d0d0d;
  background-color: #fff;
}

.access {
  padding: 50px 0;
  background-color: #F2F2F2;
}

.access .wrapper-l {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
}

.access .wrapper-l section h2,
.access .wrapper-l section p,
.access .wrapper-l section li {
  margin-bottom: 20px;
}

.footer-bg {
  padding: 100px 15px;
  background-color: #8B8B8B;
}

.footer-bg a {
  color: #fff;
}

footer .local>ul {
  display: flex;
  flex-direction: column;
  align-content: space-between;
  flex-wrap: wrap;
  gap: 50px;
  max-height: 650px;
  margin-bottom: 50px;
}

footer .local section ul li {
  margin-top: 10px;
}

footer .local .sns-link {
  display: flex;
  flex-direction: row;
  gap: 50px;
}

footer small {
  color: #fff;
}

@media screen and (max-width:768px) {

  .news,
  .vision,
  .construction-example,
  .contact,
  .access,
  .footer-bg {
    padding-left: 15px;
    padding-right: 15px;
  }

  .construction-example .example-list,
  .contact .contact-btn-list ul,
  .access .wrapper-l {
    flex-direction: column;
    gap: 30px;
  }

  .news .news-list div {
    flex-direction: column;
  }

  .construction-example .example-list li,
  .contact .contact-btn-list ul li {
    width: 100%;
  }

  .construction-example .example-list li img,
  footer .local>ul iframe {
    width: 100%;
    max-width: 100%;
  }

  footer .local>ul {
    flex-direction: column;
    max-height: 100%;
  }
}

/* ==========================================
   【最終版】最初は横並び、途中（1200px以下）から
   ロゴの下にナビゲーションメニューを潜り込ませる
   ========================================== */

/* 画面幅が1200pxより狭くなった「途中」から、この中の設定が発動します */
@media screen and (max-width: 1200px) {
.hero {
  margin-top: 50px;
}
  /* 1. ヘッダーを縦並び（上下2段）に切り替え、高さを自動にする */
  header,
  .site-header,
  .site-head,
  header>div,
  header .container {
    display: flex !important;
    flex-direction: column !important;
    /* ここでロゴの下にメニューを潜り込ませます */
    align-items: center !important;
    /* 中央揃えにする */
    height: auto !important;
    /* 高さを自動で広げる */
    min-height: auto !important;
    padding: 15px 0 !important;
  }

  /* 2. ロゴタイトルの下に隙間を作って、メニューを押し下げる */
  header h1,
  header .logo,
  header a {
    display: block !important;
    white-space: nowrap !important;
    /* ロゴテキストが途中で改行されるのを防ぐ */
    margin-bottom: 15px !important;
    /* 下に押し下げるための隙間 */
    text-align: center !important;
  }

  /* 3. ナビゲーションメニューを確実に中央配置にする */
  header nav {
    display: block !important;
    width: 100% !important;
  }

  /* 4. 潜り込ませたメニュー自体（HOMEなど）は、横並びをキープする */
  header nav ul {
    display: flex !important;
    flex-direction: row !important;
    /* メニューボタン同士は横並び */
    justify-content: center !important;
    /* 中央寄せ */
    gap: 25px !important;
    /* ボタン同士の横の隙間 */
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
  }

  header nav ul li {
    white-space: nowrap !important;
    /* 文字が縦に潰れるのを防ぐ */
  }
}


.lang-flag-btn {
  position: absolute;
  top: 50%;
  /* 💡 上から50%の位置 */
  left: 50%;
  /* 💡 左から50%の位置 */
  transform: translate(-50%, -50%);
  /* 💡 ぴったり真ん中に合わせる設定 */
  width: 80px;
  /* 国旗の横幅（サイズを大きくしたい場合はここを調整） */
  height: auto;
  transition: transform 0.2s ease;
  z-index: 10;
  /* お茶碗より手前に表示させる */
}

/* 国旗画像の設定（元の横長のまま表示） */
.lang-flag-btn img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* ホバー時の動き（センターを維持したまま少し大きく） */
.lang-flag-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  cursor: pointer;
}

/* 既存のコードがここまでに書いてある */
.hero {
    position: relative;
    width: 100%;
}

/* ==========================================
   キービジュアルブラ―インの動き追加
   ========================================== */
.hero-bowl-img img {
    filter: blur(10px);
    animation: blurIn 3s ease-out 0s forwards;
}

@keyframes blurIn {
    0% {
        filter: blur(10px);
        opacity: 0;
    }
    100% {
        filter: blur(0px);
        opacity: 1;
    }
}

footer p{
  font-weight: bold;
}

.cup{
  display: block;
  width: fit-content;
  margin: 0 auto 30px;
}

/* 法的情報のリンクから離し、文字と茶碗を一つのトップへ戻るリンクにする */
footer .footer-back-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  color: #263b29;
  font-size: 1.4rem;
  font-weight: bold;
  text-decoration: none;
}

footer .footer-back-top img {
  display: block;
  height: auto;
}

footer .footer-back-top:focus-visible {
  outline: 2px solid #263b29;
  outline-offset: 6px;
}
