/* ===================================
   寿苑（Juen）開業準備中ページ
   完全独立HTMLバージョン
   =================================== */

/* リセットCSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans JP', sans-serif;
  background-color: #D8E3D3;
  color: #333;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ページ全体のラッパー */
.juen-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===================================
   ヘッダー
   =================================== */

.header {
  background-color: #0F6641;
  color: white;
  padding: 50px 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
}

.logo-header {
  margin-bottom: 20px;
}

.logo-image {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  background: white;
  padding: 10px;
}

.main-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-top: 20px;
}

.title-en {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  margin-top: 10px;
  opacity: 0.95;
}

/* ===================================
   メインコンテンツ
   =================================== */

.main-content {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  width: 100%;
}

/* キャッチフレーズ */
.catchphrase {
  text-align: center;
  margin-bottom: 60px;
}

.tagline {
  font-family: 'Noto Serif JP', serif;
  font-size: 2rem;
  font-weight: 500;
  color: #0F6641;
  margin: 0;
  padding: 30px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border: 3px solid #0F6641;
}

/* 写真ギャラリー */
.gallery {
  margin-bottom: 80px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: white;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.gallery-item img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
}

/* 外観写真は看板が全て見えるように調整 */
.gallery-item:nth-child(2) img {
  object-fit: contain;
  background: #f5f5f5;
}

.gallery-caption {
  padding: 15px;
  text-align: center;
  font-weight: 600;
  color: #0F6641;
  background: white;
  font-size: 1.1rem;
}

/* 開業準備中お知らせ */
.opening-notice {
  background: white;
  padding: 80px 40px;
  border-radius: 20px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.15);
  text-align: center;
  margin-bottom: 80px;
  border: 4px solid #0F6641;
}

.notice-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 5rem;
  font-weight: 900;
  color: #0F6641;
  margin: 0 0 30px 0;
  letter-spacing: 0.2em;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.notice-subtitle {
  font-size: 1.5rem;
  color: #555;
  margin-bottom: 40px;
  font-weight: 500;
}

.opening-message {
  margin-top: 40px;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 15px;
  border-left: 5px solid #0F6641;
}

.message-text {
  font-size: 1.3rem;
  line-height: 1.8;
  color: #333;
  margin: 0;
}

/* QRコード・URL・検索案内 */
.contact-info {
  background: white;
  padding: 60px 40px;
  border-radius: 20px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.15);
  margin-bottom: 60px;
  border: 3px solid #0F6641;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact-info h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.8rem;
  color: #0F6641;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 700;
}

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

.qr-code {
  margin: 30px auto;
  display: inline-block;
  padding: 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.qr-code img {
  width: 250px;
  height: 250px;
  margin: 0 auto;
}

.qr-note {
  font-size: 1rem;
  color: #666;
  margin-top: 15px;
}

.url-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.website-info,
.search-info {
  text-align: center;
}

.website-url {
  font-size: 1.5rem;
  margin-top: 15px;
  font-weight: 600;
}

.website-url a {
  color: #0F6641;
  font-weight: 700;
  border-bottom: 3px solid #0F6641;
  padding-bottom: 5px;
  transition: color 0.3s, border-color 0.3s;
}

.website-url a:hover {
  color: #1a8c5c;
  border-color: #1a8c5c;
}

.search-box {
  background: #f5f5f5;
  padding: 25px;
  border-radius: 15px;
  margin-top: 15px;
  border: 2px solid #0F6641;
}

.search-box p {
  font-size: 1.4rem;
  margin: 0;
}

.search-box strong {
  color: #0F6641;
  font-size: 1.6rem;
}

/* ===================================
   フッター
   =================================== */

.footer {
  background-color: #0F6641;
  color: white;
  padding: 50px 20px 30px;
  text-align: center;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-pets {
  margin-bottom: 30px;
}

.pets-image {
  max-width: 600px;
  margin: 0 auto;
}

.footer-text {
  margin-bottom: 30px;
}

.footer-text p {
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0;
}

.footer-info {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.3);
}

.footer-info p {
  font-size: 0.95rem;
  opacity: 0.8;
  margin: 0;
}

/* ===================================
   レスポンシブデザイン
   =================================== */

/* タブレット（768px以下） */
@media (max-width: 768px) {
  .logo-image {
    width: 150px;
    height: 150px;
  }

  .main-title {
    font-size: 2.2rem;
  }

  .title-en {
    font-size: 1.6rem;
  }

  .tagline {
    font-size: 1.5rem;
    padding: 25px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .gallery-item img {
    height: 300px;
  }

  .notice-title {
    font-size: 3.5rem;
  }

  .notice-subtitle {
    font-size: 1.2rem;
  }

  .message-text {
    font-size: 1.1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .qr-code img {
    width: 200px;
    height: 200px;
  }

  .pets-image {
    max-width: 100%;
  }
}

/* スマートフォン（480px以下） */
@media (max-width: 480px) {
  .header {
    padding: 40px 15px;
  }

  .logo-image {
    width: 120px;
    height: 120px;
  }

  .main-title {
    font-size: 1.8rem;
  }

  .title-en {
    font-size: 1.3rem;
  }

  .main-content {
    padding: 40px 15px;
  }

  .tagline {
    font-size: 1.2rem;
    padding: 20px;
  }

  .gallery-item img {
    height: 250px;
  }

  .opening-notice {
    padding: 50px 20px;
  }

  .notice-title {
    font-size: 2.8rem;
  }

  .notice-subtitle {
    font-size: 1.1rem;
  }

  .opening-message {
    padding: 20px;
  }

  .message-text {
    font-size: 1rem;
  }

  .contact-info {
    padding: 40px 20px;
  }

  .contact-info h3 {
    font-size: 1.5rem;
  }

  .qr-code img {
    width: 180px;
    height: 180px;
  }

  .website-url {
    font-size: 1.2rem;
  }

  .search-box p {
    font-size: 1.2rem;
  }

  .search-box strong {
    font-size: 1.3rem;
  }

  .footer-text p {
    font-size: 1.2rem;
  }
}

/* 極小スマートフォン（360px以下） */
@media (max-width: 360px) {
  .main-title {
    font-size: 1.5rem;
  }

  .title-en {
    font-size: 1.1rem;
  }

  .notice-title {
    font-size: 2.3rem;
    letter-spacing: 0.1em;
  }

  .tagline {
    font-size: 1.1rem;
  }

  .qr-code img {
    width: 150px;
    height: 150px;
  }
}

/* ===== スマホ対応ここから ===== */
@media screen and (max-width: 768px) {

  body {
    font-size: 16px;
    line-height: 1.6;
  }

  /* 全体幅を調整 */
  .container {
    width: 100% !important;
    padding: 10px;
  }

  /* 画像をはみ出させない */
  img {
    max-width: 100%;
    height: auto;
  }

  /* 横並びを縦並びに */
  .row,
  .flex,
  .column {
    display: block !important;
    width: 100% !important;
  }

  /* メニュー縦並び */
  nav ul {
    display: block;
    padding: 0;
  }

  nav li {
    margin-bottom: 10px;
  }

  /* 文字を読みやすく */
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  p  { font-size: 16px; }

}
/* ===== スマホ対応ここまで ===== */
.your-text-class {
  overflow: visible;
  height: auto;
  max-height: none;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.gallery-item img {
  height: auto;
}