@charset "UTF-8";

/* =====================
   1. 共通変数 & リセット
   ===================== */
:root {
  --color-iitan-green:    #1c9f8f;
  --color-iitan-orange:   #e87b2a;
  --color-text-main:      #333333;
  --color-bg-light-green: #e1efdf;
  --color-bg:             #E7F3EA;
  --curve-h:              clamp(140px, 25vw, 360px);
  --font-ja: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --font-en: "Montserrat", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-ja);
  color: #333;
  line-height: 1.8;
}

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

/* =====================
   2. ヘッダー
   ===================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid #ddd;
  padding: 8px 24px;
}

.logo {
  font-size: 1.4rem;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}

img.image-logo {
  max-height: 54px;
}

@media (max-width: 980px) {
  img.image-logo {
    max-height: 40px;
  }
}

/* =====================
   3. セクション共通
   ===================== */
.section {
  position: relative;
  width: 100%;
}

.inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 24px;
}


/* =====================
   16. レスポンシブ
   ===================== */
@media (max-width: 600px) {
  .inner {
    padding: 48px 20px;
  }

  .section h2 {
    font-size: 1.4rem;
  }
}


/* =====================
   15. スクロールアニメーション
   ===================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* =====================
   16. ボタン
   ===================== */

.btn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(to right, #7dd6cc 0%, #1c9f8f 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  padding: 16px 40px;
  border-radius: 50px;
  letter-spacing: 0.08em;
  min-width: 240px;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 20px rgba(28,159,143,0.25);
}
 
.btn-more:hover {
  opacity: 0.88;
  transform: translateX(4px);
}
 
.btn-more .arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
}
.btn-more.btn-back .arrow {
  transform: rotate(225deg);
  display: inline-block;
}
.btn-more.btn-back:hover {
  opacity: 0.88;
  transform: translateX(-4px);
}

.btn-wrap {
  text-align: center;
  margin-top: 40px;
}


/* =====================
   16. 画像関連
   ===================== */
/* 画像2枚横並び */
.photo-pair {
  display: flex;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.photo-pair-item {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
}

.photo-pair-item img {
  width: 100%;
  aspect-ratio: 4 / 3;  /* 縦横比 */
  object-fit: cover;
  display: block;
}

/* スマホ：縦積み */
@media (max-width: 600px) {
  .photo-pair {
    flex-direction: column;
  }
}

/* =====================
   12. 共通タイトル
   ===================== */
.block-header {
  text-align: center;
  margin-bottom: 40px;
}

.block-tagline {
  /* font-ja は body から継承 */
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  color: var(--color-iitan-green);
}

.block-title {
  /* font-ja は body から継承 */
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  color: #222;
  letter-spacing: 0.05em;
  line-height: 1.4;
  margin-bottom: 6px;
}

.block-en {
  font-family: var(--font-en);
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-iitan-green);
}

/* .section p に負けないよう詳細度を上げる */
.block-header .block-tagline,
.block-header .block-en {
  color: var(--color-iitan-green);
}

/* =====================
   7. フッター
   ===================== */
footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid rgba(176, 218, 213, 0.8);
}

.footer-main {
  background-color: #DDEEE8;
  padding: 30px 24px 40px;
  color: #333;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}

.footer-logo {
  max-width: 320px;
  margin-bottom: 20px;
}

.footer-logo img {
  width: 100%;    /* 親要素（320px）いっぱいに広がるように指定 */
  height: auto;   /* アスペクト比を維持 */
  display: block; /* 余計な隙間を消す */
}

.footer-link a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid #333;
  padding-bottom: 2px;
  font-size: 0.95rem;
}

.footer-bottom {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 0.85rem;
  border-top: none; /* 既存スタイルの上書き */
}

.footer-address {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}

.copyright {
  font-family: var(--font-en);
  white-space: nowrap;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
  .insta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .insta-handle {
    font-size: 1.4rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }

  .footer-address {
    flex-direction: column;
    gap: 8px;
  }

  .contact-item {
    margin-left: 0;
  }
  
  .sp-only {
    display: block;
  }
}

@media (min-width: 769px) {
  .sp-only {
    display: none;
  }
}

/* =====================
   23. ページ上部へ戻るボタン
   ===================== */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 50px;
  height: 50px;
  background-color: var(--color-iitan-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 1000;
  opacity: 0;           /* 最初は隠しておく */
  visibility: hidden;    /* クリックもできないようにする */
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* スクロールしてクラスがついたら表示 */
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  background-color: #168578;
}

/* 上向き矢印（CSSで描画） */
.arrow-up {
  width: 12px;
  height: 12px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  transform: rotate(-45deg);
  margin-top: 4px;
}

/* スマホでは少し小さく、端に寄せる調整 */
@media (max-width: 768px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}


