/*
Theme Name: MyTheme2
Description: オリジナルテーマ
Author: あなたの名前
Version: 1.0
*/

/* ----------------------------------------
   全要素に box-sizing を適用
---------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ----------------------------------------
   背景画像の設定（全体に表示）
---------------------------------------- */
body {
  background-image: url('img/haikei.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  padding-top: 0;
  padding-bottom: 80px;
  font-family: 'Helvetica Neue', 'Yu Gothic', sans-serif;
}

/* ----------------------------------------
   ヘッダー全体（ロゴ＋メニューを上下に並べる）
---------------------------------------- */
.site-header {
  width: 100%;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: none;
  z-index: 1000;
  padding: 0 15px;
}

/* ----------------------------------------
   ロゴの表示エリア（中央に配置）
---------------------------------------- */
.logo-area {
  text-align: center;
  padding: 35px 0;
}

.logo-area img {
  height: 150px;
  width: auto;
  max-width: 100%;
  background-color: transparent;
}

/* ----------------------------------------
   メニューの帯（ロゴの下に配置）
---------------------------------------- */
main {
  margin-bottom: 100px;
  padding-top: 20px;
}

.main-nav {
  background-color: #f8f8f8;
  padding: 10px 0;
  width: 100%;
}

.main-nav ul {
  display: flex;
  flex-direction: row;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

.main-nav li {
  margin: 0 20px;
}

.main-nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: #c2185b;
}

/* ----------------------------------------
   フッター（画面下に固定）
---------------------------------------- */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 10px 0;
  background-color: rgba(255, 255, 255, 0.8);
  color: #333;
  font-size: 14px;
  z-index: 999;
}

/* ----------------------------------------
   ヒーロー画像カード（PC用：横並び）
---------------------------------------- */
.card.hero-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: 40px;
  margin: 40px auto;
  max-width: 1000px;
  gap: 30px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card.hero-card img {
  width: 45%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
}

.card.hero-card .text {
  flex: 1;
  padding-left: 30px;
}

.card.hero-card h1 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #c2185b;
}

.card.hero-card p {
  font-size: 18px;
  color: #555;
  line-height: 1.8;
}

/* ----------------------------------------
   サロン紹介カード（PC用の並びを明示）
---------------------------------------- */
.intro-card {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 20px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 40px;
  margin: 40px auto;
  max-width: 1000px;
  position: relative;
  z-index: 1;
}

.intro-card.left-image {
  flex-direction: row-reverse;
}

.intro-card .text {
  flex: 1;
}

.intro-card.right-image .text {
  padding-right: 20px;
  padding-left: 0;
}

.intro-card.left-image .text {
  padding-left: 20px;
  padding-right: 0;
}

.intro-card img {
  flex: 1;
  max-width: 45%;
  height: auto;
  border-radius: 8px;
}

/* ----------------------------------------
   スクロールトップボタン
---------------------------------------- */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #a5d6a7;
  color: #2e7d32;
  font-size: 28px;
  text-align: center;
  line-height: 50px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  background-color: #81c784;
  transform: scale(1.1);
}

/* ----------------------------------------
   SNSリンクセクション
---------------------------------------- */
.sns-links {
  text-align: center;
  padding: 40px 20px;
  background-color: transparent;
  margin-top: 80px;
}

.sns-links h2 {
  font-size: 20px;
  color: #2e7d32;
  margin-bottom: 20px;
}

.sns-icons {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.sns-icons a img {
  width: 80px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.sns-icons a img:hover {
  transform: scale(1.1);
}

/* ----------------------------------------
   📱 スマホ・タブレット対応（768px以下）
---------------------------------------- */
@media (max-width: 768px) {
  .intro-card,
.intro-card.left-image,
.intro-card.right-image {
  flex-direction: column !important;
  align-items: center;
  padding: 20px;
  gap: 20px;
  margin: 20px 0;
}

.intro-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.intro-card .text {
  padding: 0 10px;
  text-align: center;
}

  .card.hero-card {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    justify-content: center !important;
    text-align: left !important;
    padding: 20px !important;
    margin: 20px 0 !important;
    gap: 20px !important;
  }

  .card.hero-card img {
    width: 100% !important;
    max-height: 300px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    margin-bottom: 20px !important;
  }

  .card.hero-card .text {
    width: 100% !important;
    padding: 0 10px !important;
  }

  .card.hero-card h1 {
    font-size: 24px !important;
    margin-bottom: 10px !important;
    color: #c2185b !important;
  }

  .card.hero-card p {
    font-size: 16px !important;
    color: #555 !important;
    line-height: 1.8 !important;
  }
  .main-nav ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .main-nav li {
    margin: 5px 10px;
  }

  .main-nav a {
    font-size: 16px;
    display: inline-block;
    padding: 8px 12px;
    text-align: center;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    color: #333;
    text-decoration: none;
  }

  .main-nav a:hover {
    color: #c2185b;
  }
}
