/*
 * styles.css
 * レイアウト・配色・タイポグラフィは元サイト (nnccperrito.wixsite.com/my-site-1) を計測して再現。
 * 画像はすべてプレースホルダー (.placeholder) に置き換えています。
 *
 * 計測したカラーパレット:
 *   ベージュ (ヘッダー/フッター) : #e8e8e0
 *   緑ボタン                     : #b0d5c0 / 文字 #032c21
 *   ヒーロー文字                 : #e8e8e0 (英字) / #f5f5f0 (チベット文字)
 *   本文                         : #1a1a1a
 *   引用ボックス                 : #f5f5f0
 *   情報セクション               : #8b9d83 / 文字 #ffffff
 */

:root {
  --beige: #e8e8e0;
  --green-btn: #b0d5c0;
  --green-btn-text: #032c21;
  --sage: #8b9d83;
  --ink: #1a1a1a;
  --quote-bg: #f5f5f0;
  --navy: #1b2a4a;
  --content-width: 980px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: "ot-ptalking-stdn", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.3;
}

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

/* 画像プレースホルダー共通 */
.placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-conic-gradient(#0000000d 0% 25%, transparent 0% 50%) 0 / 28px 28px,
    #d9d9d2;
  color: #6b6b63;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-align: center;
  overflow: hidden;
}
.placeholder::after {
  content: attr(data-label);
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 4px;
}

/* ============================================================
   ヘッダー
   ============================================================ */
.site-header {
  background: var(--beige);
}
.header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  min-height: 210px;
  padding: 24px 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "logo contact menu";
  align-items: center;
  gap: 16px;
}
.logo {
  grid-area: logo;
  justify-self: start;
}
.logo-box {
  width: 240px;
  height: 92px;
  position: relative;
  border: 2px solid var(--navy);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-align: center;
  background: transparent;
}
/* 元ロゴの二重枠を模したプレースホルダー */
.logo-box::before {
  content: "";
  position: absolute;
  inset: 6px -8px -8px 6px;
  border: 2px solid var(--navy);
  z-index: -1;
}

/* 実ロゴ画像 */
.logo-img {
  display: block;
  width: 210px;
  height: auto;
}
.footer-logo .logo-img { width: 230px; }

.contact-btn {
  grid-area: contact;
  justify-self: center;
  background: var(--green-btn);
  color: var(--green-btn-text);
  font-family: "ot-pfolk-pron", "Hiragino Kaku Gothic ProN", sans-serif;
  font-weight: 500;
  font-size: 29px;
  line-height: 1.3;
  padding: 22px 56px;
  border-radius: 18px;
  white-space: nowrap;
}

.menu-btn {
  grid-area: menu;
  justify-self: end;
  width: 56px;
  height: 44px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.menu-btn span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
}

/* ============================================================
   ヒーロー
   ============================================================ */
.hero {
  position: relative;
  aspect-ratio: 1280 / 919;
  min-height: 749px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  background: #ffffff;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  /* 元サイトと同じく、白背景の上に不透明度80%で表示 */
  opacity: 0.8;
  z-index: 0;
}
.hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
  /* 元サイトと同じく文字はヒーロー上部に配置 */
  padding-top: 28px;
}
.hero-title {
  margin: 0;
  font-family: "trend-sans-w00-four", sans-serif;
  font-weight: 400;
  font-size: 31px;
  line-height: 1.1;
  letter-spacing: 0.05em;
  color: var(--beige);
}
.hero-title .hero-sub {
  display: inline-block;
  margin-top: 4px;
}
.hero-tibetan {
  margin: 8px 0 0;
  font-family: "ot-pkokon-min2", serif;
  font-weight: 400;
  font-size: 27px;
  line-height: 1.1;
  color: var(--beige);
}
/* 広い画面(PC)では濃い緑・大きめ (元サイトと一致) */
@media (min-width: 768px) {
  .hero-title { font-size: 60px; letter-spacing: 3px; color: #2d4c3a; }
  .hero-tibetan { font-size: 40px; color: #2d4c3a; }
}

/* ============================================================
   Breeding Philosophy
   ============================================================ */
.philosophy {
  background: #ffffff;
  padding-bottom: 80px;
}
.philosophy-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 0;
}

/* Philosophy レイアウト。
   狭い画面: 縦積み (見出し+本文 → 犬写真 → 受賞写真 → 引用ボックス)。
   広い画面 (>=768px): 左列=写真2枚 / 右列=見出し+本文+引用ボックス (元サイトと一致)。 */
.philo-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section-title {
  margin: 0 0 20px;
  font-family: "ot-ptalking-stdn", sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  color: var(--ink);
  text-align: start;
}
.lead {
  margin: 0 0 18px;
  font-family: "ot-ptalking-stdn", sans-serif;
  font-size: 18px;
  color: #000;
}
.body-text p {
  margin: 0 0 14px;
  font-family: "ot-ptalking-stdn", sans-serif;
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
}

.philosophy-photo,
.philosophy-photo-2 {
  margin: 0;
  width: 100%;
}
.philosophy-photo img,
.philosophy-photo-2 img {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 8px;
}

.quote-box {
  background: var(--quote-bg);
  padding: 32px 36px;
  max-width: 520px;
}
.quote-box p {
  margin: 0;
  font-family: "ot-ptalking-stdn", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #000;
}
.quote-box .quote-title {
  text-align: center;
  margin-bottom: 8px;
}
.quote-box .spacer { height: 12px; }

/* 広い画面 (PC): 2カラム。左列=写真(犬→受賞) / 右列=見出し+本文+引用 */
@media (min-width: 768px) {
  .philosophy-inner { padding: 80px 40px 0; }
  .philo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
    row-gap: 40px;
    align-items: start;
  }
  .philo-text         { grid-column: 2; grid-row: 1; }
  .philosophy-photo   { grid-column: 1; grid-row: 1; }
  .philosophy-photo-2 { grid-column: 1; grid-row: 2; align-self: end; }
  .quote-box          { grid-column: 2; grid-row: 2; }
  .philosophy-photo img,
  .philosophy-photo-2 img { max-width: 420px; }
  .section-title { font-size: 48px; margin-bottom: 28px; }
  .lead { font-size: 24px; margin-bottom: 24px; }
  .body-text p { font-size: 20px; margin-bottom: 18px; }
  .quote-box { padding: 40px 44px; max-width: 460px; }
  .quote-box p { font-size: 18px; }
  .quote-box .quote-title { margin-bottom: 12px; }
  .quote-box .spacer { height: 16px; }
}

/* ============================================================
   動物取扱業の登録情報
   ============================================================ */
.info {
  background: var(--sage);
  color: #ffffff;
}
/* 登録情報。狭い画面: 縦積み / 広い画面 (>=768px): 2カラム (左=block1 / 右=block2)。 */
.info-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 96px 20px 96px 60px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
.info-block {
  margin-bottom: 0;
}
@media (min-width: 768px) {
  .info-inner {
    grid-template-columns: 1fr 1fr;
    column-gap: 64px;
  }
}
.info-block p {
  margin: 0;
  font-family: "newcezanne", "Hiragino Kaku Gothic ProN", "MS Gothic", sans-serif;
  font-size: 18px;
  line-height: 1.3;
}

/* ============================================================
   フッター
   ============================================================ */
.site-footer {
  background: var(--beige);
}
.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  min-height: 460px;
  padding: 60px 20px;
  position: relative;
}
.footer-logo {
  display: inline-block;
  margin-left: 40px;
}
.social-bar {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin: 130px 0 0;
}
.social-icon {
  width: 24px;
  height: 24px;
  display: block;
}
.social-icon img {
  width: 100%;
  height: 100%;
  display: block;
}
.copyright {
  margin-top: 110px;
  text-align: right;
}
.copyright p {
  margin: 0;
  font-family: "kibitz-pro", "Times New Roman", serif;
  font-size: 25px;
  color: var(--ink);
}

/* ============================================================
   ハンバーガーメニュー (右からスライドインするドロワー)
   ============================================================ */
/* 背景オーバーレイ */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(60, 60, 55, 0.35);
  opacity: 0;
  transition: opacity 0.32s ease;
  z-index: 90;
}
body.menu-open .menu-overlay {
  opacity: 1;
}

/* ドロワー本体 */
.menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 360px;
  max-width: 85vw;
  background: var(--beige);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.08);
  transform: translateX(100%);
  transition: transform 0.32s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
body.menu-open .menu-drawer {
  transform: translateX(0);
}

/* 閉じるボタン (×) */
.menu-close {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  margin: 28px 32px 0 0;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
}
.menu-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 2px;
  background: var(--ink);
}
.menu-close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.menu-close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }

/* メニュー項目 */
.menu-nav {
  padding: 24px 40px 48px;
}
.menu-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  text-align: right;
}
.menu-nav > ul > li { width: 100%; }
.menu-nav a {
  display: inline-block;
  padding: 14px 0;
  font-family: "kibitz-pro", "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
}
.menu-nav a:hover { text-decoration: underline; }
.menu-nav a.is-active { text-decoration: underline; }

/* MY DOG の行 (リンク + 展開ボタン) */
.sub-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.sub-toggle {
  width: 20px;
  height: 20px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
}
.sub-toggle::before {
  content: "";
  position: absolute;
  top: 40%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.6px solid var(--ink);
  border-bottom: 1.6px solid var(--ink);
  transform: translate(-50%, -50%) rotate(45deg);
  transition: transform 0.2s ease;
}
.has-sub.sub-open .sub-toggle::before {
  transform: translate(-50%, -20%) rotate(-135deg);
}

/* サブメニュー (ジョージア) */
.submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}
.has-sub.sub-open .submenu {
  max-height: 200px;
}
.submenu a {
  font-family: "ibm-plex-sans", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #43311f;
  padding: 8px 0;
}

/* ============================================================
   レスポンシブ (元サイトはフルードにスケールするので簡易対応)
   ============================================================ */
@media (max-width: 720px) {
  .header-inner {
    grid-template-columns: auto auto;
    grid-template-areas:
      "logo menu"
      "contact contact";
    row-gap: 20px;
  }
  .contact-btn { font-size: 24px; padding: 18px 40px; }
  .info-block p { font-size: 16px; }
  .info-inner { padding-left: 24px; }
}

/* ============================================================
   子ページ共通
   ============================================================ */
.subpage { background: #ffffff; }
.subpage-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 20px 96px;
}

/* ---------- チベタンテリアについて (home.html) ---------- */
.subpage-about { background: #ffffff; }

/* トップ画像 + 重ねタイトル (画像は元サイトと同じ opacity 0.68) */
.about-top {
  position: relative;
  max-width: 600px;
  margin: 40px auto 0;
  padding: 0 20px;
}
.about-hero-img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.68;
  border-radius: 4px;
}
.about-title {
  position: absolute;
  top: 9%;
  left: 20px;
  right: 20px;
  margin: 0;
  font-family: "ot-ptalking-stdn", sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  color: #000;
  text-align: center;
}

/* 2カラム。狭い画面は縦積み、広い画面(>=768px)は 左=写真/FCI・右=本文/note */
.about-grid {
  max-width: 1180px;
  margin: 32px auto 0;
  padding: 0 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.about-photo { margin: 0; width: 100%; }
.about-photo img {
  display: block;
  width: 100%;
  max-width: 531px;
  height: auto;
  border-radius: 6px;
}
.about-body p {
  margin: 0 0 4px;
  font-family: "ot-ptalking-stdn", sans-serif;
  font-size: 18px;
  line-height: 1.45;
  color: #000;
}
.about-fci p {
  margin: 0 0 4px;
  font-family: "ot-ptalking-stdn", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #000;
}
.about-fci .fci-title { font-size: 18px; margin-bottom: 12px; }
.about-fci .fci-head { margin-top: 18px; margin-bottom: 6px; }
.note-embed {
  border: 0;
  display: block;
  width: 494px;
  max-width: 100%;
  margin: 10px auto;
}

@media (min-width: 768px) {
  .about-title { font-size: 48px; top: 11%; }
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 56px;
    row-gap: 48px;
    align-items: start;
  }
  .about-photo { grid-column: 1; grid-row: 1; }
  .about-body  { grid-column: 2; grid-row: 1; }
  .about-fci   { grid-column: 1; grid-row: 2; max-width: 340px; margin: 0 auto; }
  .about-note  { grid-column: 2; grid-row: 2; }
  .about-body p { font-size: 24px; margin-bottom: 4px; line-height: 1.3; }
  .about-fci p { font-size: 18px; }
  .about-fci .fci-title { font-size: 20px; }
  .note-embed { margin: 10px 0; }
}

/* ---------- MY DOG (my-dog.html) ---------- */
.subpage-mydog { background: #ffffff; }
.mydog-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 20px 104px;
}

/* GIORGIA: 縦写真 + 緑ボタン (上部・中央) */
.mydog-giorgia {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 72px;
}
.mydog-giorgia-photo { margin: 0 0 35px; width: 232px; max-width: 64vw; }
.mydog-giorgia-photo img { display: block; width: 100%; height: auto; }
.giorgia-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 20px 44px;
  background: var(--green-btn);
  color: var(--green-btn-text);
  border: 2px solid #2d4c3a;
  border-radius: 10px;
  font-family: "ot-pfolk-pron", sans-serif;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.02em;
}
.giorgia-card:hover { filter: brightness(0.97); }

/* MONT / NAM: 写真 + 名前・日付 (下部・横並び) */
.mydog-dogs {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 80px;
  flex-wrap: wrap;
}
.dog {
  display: flex;
  align-items: center;
  gap: 24px;
}
.dog-photo { margin: 0; width: 178px; }
.dog-photo img { display: block; width: 100%; height: auto; }
.dog-info { text-align: left; }
.dog-name {
  margin: 0 0 4px;
  font-family: "Corben", serif;
  font-weight: 700;
  font-size: 16px;
  color: #000;
}
.dog-date {
  margin: 0 0 2px;
  font-family: "Corben", serif;
  font-weight: 700;
  font-size: 16px;
  color: #000;
}

@media (max-width: 720px) {
  .mydog-dogs { flex-direction: column; align-items: center; gap: 48px; }
  .dog { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .dog-info { text-align: center; }
}

/* ---------- ジョージア (giorgia.html) ---------- */
.giorgia-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 20px 96px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
.giorgia-photo { margin: 0; }
.giorgia-photo img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
}
.giorgia-text p {
  margin: 0 0 4px;
  font-family: "ot-tbecho-std", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 19px;
  line-height: 1.7;
  color: #000;
}
.giorgia-text .sp { height: 16px; }
@media (min-width: 768px) {
  .giorgia-inner {
    grid-template-columns: 470px 1fr;
    column-gap: 48px;
  }
  .giorgia-photo img { max-width: 470px; }
}

/* ---------- Instagram (instagram.html / ダミー) ---------- */
.ig-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 72px 20px 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.ig-dummy {
  display: block;
  width: 320px;
  max-width: 80vw;
  height: auto;
  border-radius: 4px;
}
.ig-placeholder-text {
  margin: 0;
  max-width: 640px;
  text-align: center;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}
@media (max-width: 720px) {
  .subpage-title { font-size: 34px; }
  .home-body p { font-size: 18px; }
  .fci-block p { font-size: 17px; }
  .mydog-dogs { gap: 60px; }
}
