/* --------------------
  共通スタイル
-------------------- */
body {
  background-color: #fefdf9;
  color: #333;
  font-family: 'Zen Maru Gothic', sans-serif;
  line-height: 1.6;
}

header {
  padding-bottom: 2.5em;
  position: relative;
}

/* --------------------
  サイトタイトル・ロゴ
-------------------- */
.site-title {
  display: block;
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  color: #4caf50;
  text-decoration: none;
  margin: 1rem 0;
  transition: color 0.3s ease;
}

.site-title:hover {
  color: #388e3c;
  text-decoration: underline;
}

.site-title img {
  width: 200px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.logo-wrapper {
  position: relative;
  display: inline-block;
}

.speech-bubble {
  position: absolute;
  bottom: -50%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fef4ea;
  color: #4a372f;
  padding: 0.6em 1em;
  border-radius: 1em;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.08);
  font-size: 0.75em;
  font-weight: bold;
  /*animation: fadeInDown 1s ease forwards;*/
  white-space: nowrap;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
  max-width: 90vw;/*画面端で切れないよう制限*/
  word-wrap: break-word;/*長い文章を折り返す*/
}

/*ロゴ吹き出しのモバイル調整*/
@media screen and (max-width: 768px){
  .speech-bubble{
    position: static;/*ロゴの下にフローで表示*/
    transform: none;/*translateは無効にする*/
    opacity: 1;/*常に表示*/
    margin-top: 0.5em;/*ロゴとの間に少し余白*/
    white-space: normal;/*折り返し可能にする*/
    text-align: center;/*中央ぞろえ*/

    display: inline-block;/*下線がひかれないよう独立させる*/
    text-decoration: none;/*念のため下線消し*/
    color: #4a372f;
  }
}

.speech-bubble::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 10px 10px;
  border-style: solid;
  border-color: transparent transparent #fef4ea transparent;
}

/* --------------------
  ナビゲーション
-------------------- */
nav ul {
  display: flex;
  gap: 2rem;
  justify-content: center;
  list-style: none;
  padding: 1rem 0;
}

nav ul li a {
  text-decoration: none;
  color: #444;
  position: relative;
  padding: 0.5rem 1rem;
  transition: all 0.3s;
  z-index: 0;
}

nav ul li a:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #fde2e2;
  border-radius: 2px;
  transition: all 0.3s ease;
  z-index: -1;
}

.nav-about:hover::after {
  background-color: #e49b70;
}

.nav-works:hover::after {
  background-color: #f8df84;
}

.nav-policy:hover::after {
  background-color: #badba4;
}

.nav-contact:hover::after {
  background-color: #7ec2d5;
}

/* --------------------
  トップへ戻るボタン
-------------------- */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #4caf50;
  color: white;
  padding: 10px 15px;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  z-index: 1000;
  font-family: 'Zen Maru Gothic', sans-serif;
}

.back-to-top:hover {
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

/* --------------------
  ハンバーガーメニュー
-------------------- */
.menu-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  display: block;
  width: 30px;
  height: 4px;
  background-color: #333;
  transition: all 0.3s ease;
  border-radius: 2px;
  position: relative;
}

.menu-toggle span::before {
  position: absolute;
  top: -10px;
}

.menu-toggle span::after {
  position: absolute;
  top: 10px;
}

.menu-toggle.active span {
  background-color: transparent;
}

.menu-toggle.active span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle.active span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* --------------------
  レスポンシブ対応
-------------------- */
@media screen and (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 50vh;
    background-color: rgba(126, 194, 213, 0.95);
    z-index: 1500;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.4s ease, opacity 0.3s ease;
    opacity: 0;
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
  }

  nav ul.show {
    right: 0;
    opacity: 1;
  }

  nav ul li a {
    color: white !important;
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.2s;
  }

  nav ul li a:hover {
    transform: scale(1.1);
  }

  body.menu-open {
    overflow: hidden;
  }
}

@media screen and (min-width: 769px) {
  .menu-toggle {
    display: none;
  }

  nav ul {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: none;
  }
}

/* --------------------
  セクション：About
-------------------- */
#about {
  max-width: 1000px;
  margin: 4em auto;
  padding: 2em;
  background-color: #fff;
  border-left: 8px solid #6B4F3B;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

#about h2,
#works h2 {
  font-size: 1.8em;
  margin-bottom: 1em;
  color: #6b4f3b;
  border-bottom: 2px solid #e6ddc4;
  display: inline-block;
  padding-bottom: 0.2em;
}

#about p,
#works p {
  font-size: 1em;
  color: #444;
  margin-bottom: 1em;
}

/* --------------------
  セクション：Works
-------------------- */
#works {
  max-width: 1000px;
  margin: 4em auto;
  padding: 2em;
  background-color: #fff;
  border-left: 8px solid #6B4F3B;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.work-item {
  margin-bottom: 3em;
  background-color: #fffefb;
  padding: 1.5em;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.04);
}

.work-item h3 {
  font-size: 1.4em;
  margin-bottom: 0.5em;
  color: #4a372f;
}

.work-item p {
  margin-bottom: 0.5em;
}

.work-item img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1em 0;
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.work-item iframe {
  width: 100%;
  height: 315px;
  border: none;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

/*LPセクション*/
.soccer_school{
  /*幅を名刺と同じくらいに調整*/
  width: 180px;/*横幅を合わせる*/
  height: auto;/*縦横比を保持*/
  /*見栄え*/
  border: 1px solid #333;
  border-radius:4px;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);

  object-fit:cover;/*画像の余白を切る*/
}
/*モーダル背景*/
.modal{
  display:none;/*最初は非表示*/
  position:fixed;
  z-index:2000;
  left:0;
  top:0;
  width:100%;
  height:100%;
  overflow:auto;
  background-color:rgba(0,0,0,0.8);
}

/*モーダル内画像*/
.modal-content{
  display:block;
  margin:5% auto;
  max-width:90%;
  max-height:90%;
  border-radius:8px;
  box-shadow:0 0 15px rgba(0,0,0,0.5);
}

/*閉じるボタン*/
.close{
  position:absolute;
  top:20px;
  right:35px;
  color:#fff;
  font-size:40px;
  font-weight:bold;
  cursor:pointer;
}

@media screen and (max-width:768px){
  .modal-content{
    margin:10% auto;/*上下の余白を少し増やす*/
    max-width:95%;/*横幅画面いっぱいに近づける*/
    max-height:80%;/*高さを画面内に収める*/
  }

  .close{
    top:10px;
    right:20px;
    font-size:32px;/*スマホ画面で押しやすくする*/
  }
}
/* --------------------
  名刺セクション
-------------------- */
.meishi-images {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: flex-start;
  align-items: flex-start;
}

#meishi-horizontal .meishi-thumb {
  object-fit: contain;
  width: 180px;
  height: 120px;
  border: 1px solid #333;
  border-radius: 4px;
  background-color: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
  margin: 0.5em 0;
}

#meishi-vertical .meishi-thumb {
  object-fit: contain;
  height: 180px;
  width: auto;
  border: 1px solid #333;
  border-radius: 4px;
  background-color: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
  margin: 0.5em 0;
}

/*フッター設定*/
footer{
  color:#fff;
  text-align: center;
  padding:1em 0;/*余白*/
  background-color:#6b4f3b;
}