@charset "UTF-8";

/* 共通スタイル（common.css） */
/* -------------------- */
/* 基本リセット＆設定 */
/* -------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #f7f4ed;
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  color: #333;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3 {
  font-family: 'Sawarabi Mincho', serif;
  font-weight: 700;
}

::selection {
  background: #f3eacb;
  color: #5a4632;
}

a {
  color: #7a5c42;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

ul {
  list-style-type: none;
}

input, textarea, button {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 5px;
}

button {
  cursor: pointer;
  border: none;
  background: #7a5c42;
  color: white;
  padding: 10px 15px;
  transition: background 0.3s ease-in-out;
}

button:hover {
  background: #5a4632;
}

/* スクロールバー */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-thumb {
  background: #c4a484;
  border-radius: 4px;
}
::-webkit-scrollbar-track {
  background: #f5f5f5;
}

/* -------------------- */
/* ヘッダー             */
/* -------------------- */
header {
  padding: 5px;
  border-bottom: 1px solid #ddd;
}

.header-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #5b6f3a;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  height: 80px;
}

/* ナビゲーション */
.nav ul {
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav a {
  text-decoration: none;
  color: #5b6f3a;
  font-size: 1.5rem;
}

.nav a:hover,
.footer-nav a:hover {
  opacity: 0.6;
}

.nav a.current,
.footer-nav a.current {
  color: #bb8d5f;
  font-weight: bold;
  text-decoration: underline;
}

.menu-toggle {
  display: none;
}

/* ---------------------------- */
/* メインビジュアル */
/* ---------------------------- */
.main-visual {
  width: 100vw;
  height: 50vh;
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

.visual-text {
  position: absolute;
  bottom: 20px;
  right: -250px;
  width: 500px;
  height: auto;
  color: #f3eacb;
  text-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.visual-text h1 {
  font-size: 48px;
}

/* 導入文 */
.intro {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  line-height: 1.8;
  text-align: center;
}

/* ---------------------------- */
/* アイコンラベル（System・Access） */
/* ---------------------------- */
.icon-label {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-weight: bold;
}

.icon-label img {
  width: 1.5em;
  height: auto;
  flex-shrink: 0;
  vertical-align: middle;
  transform: translateY(-5px);
}

.icon-label span {
  display: inline-block;
}

/* -------------------- */
/* あしあとアニメーション */
/* -------------------- */
.paw-animation {
  position: relative;
  height: 320px;
  margin-top: 40px;
}

.paw-animation img {
  position: absolute;
  width: 50px;
  height: 50px;
  opacity: 0;
}

/* 左右あしあと配置 */
.paw-animation img:nth-child(1) {
  left: 74%;
  top: 260px;
  transform: rotate(20deg);
}
.paw-animation img:nth-child(2) {
  left: 80%;
  top: 210px;
  transform: rotate(-20deg);
}
.paw-animation img:nth-child(3) {
  left: 76%;
  top: 160px;
  transform: rotate(20deg);
}
.paw-animation img:nth-child(4) {
  left: 82%;
  top: 110px;
  transform: rotate(-20deg);
}
.paw-animation img:nth-child(5) {
  left: 78%;
  top: 60px;
  transform: rotate(20deg);
}
.paw-animation img:nth-child(6) {
  left: 84%;
  top: 10px;
  transform: rotate(-20deg);
}

/* ポンポンと表示されるアニメーション */
.paw-animation.show img:nth-child(1) { animation: paw-pop 0.3s ease-out forwards 0.2s; }
.paw-animation.show img:nth-child(2) { animation: paw-pop 0.3s ease-out forwards 0.5s; }
.paw-animation.show img:nth-child(3) { animation: paw-pop 0.3s ease-out forwards 0.8s; }
.paw-animation.show img:nth-child(4) { animation: paw-pop 0.3s ease-out forwards 1.1s; }
.paw-animation.show img:nth-child(5) { animation: paw-pop 0.3s ease-out forwards 1.4s; }
.paw-animation.show img:nth-child(6) { animation: paw-pop 0.3s ease-out forwards 1.7s; }

@keyframes paw-pop {
  0%   { opacity: 0; transform: scale(0.6); }
  100% { opacity: 1; transform: scale(1); }
}

/* -------------------- */
/* フッター             */
/* -------------------- */
footer {
  background-color: rgba(187, 141, 95, 0.2);
  border-top: 1px solid #ccc;
  padding: 5px 10px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-contents {
  display: grid;
  grid-template-rows: 50px 50px;
  grid-template-columns: 100px 1fr;
}

.footer-logo {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.footer-nav {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  justify-self: right;
}
.footer-nav ul {
  display: flex;
  gap: 25px;
  padding: 10px 0;
  margin: 0;
}

.footer-nav a {
  text-decoration: none;
  font-size: 1.5rem;
  color: #5b6f3a;
}

.sns-icons {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  justify-self: right;
}
.sns-icons i {
  font-size: 50px;
}

.policy {
  display: block;
  text-align: center;
}

.copyright {
  text-align: center;
}

.alert-msg {
  text-align: right;
}

/* -------------------- */
/* レスポンシブ対応     */
/* -------------------- */
@media screen and (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 22px;
    opacity: 0;
    z-index: 1201;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
  }

  .hamburger span {
    display: block;
    width: 100%;
    height: 4px;
    background-color: #5b6f3a;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* ハンバーガーアイコン変形 */
  .menu-toggle:checked + .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .menu-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked + .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .nav {
    position: fixed;
    top: 0;
    right: -260px;
    width: 250px;
    height: 100%;
    background-color: #f7f4ed;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: start;
    gap: 20px;
    border-left: 1px solid rgba(0,0,0,0.05);
    box-shadow: -2px 0 6px rgba(0, 0, 0, 0.05);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
  }

    /* ハンバーガーメニューの背景にロゴを表示 */
  .nav::after {
    content: "";
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    background-image: url("../img/logo.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.5;
    pointer-events: none;
  }

  .menu-toggle:checked ~ .nav {
    right: 0;
  }

  .nav ul {
    flex-direction: column;
    gap: 14px;
    padding: 0;
    margin: 0;
  }

  .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-nav {
    display: none;
  }
}
