/*全体的な設定
---------------------------------------------------------------------------*/

@charset "UTF-8";

:root {
  --color-primary: #c8563a;
  --color-primary-light: #e8704a;
  --color-accent: #f5a623;
  --color-accent-light: #ffd69d;
  --color-bg: #faf9f7;
  --color-card: #ffffff;
  --color-text: #2c2c2c;
  --color-text-secondary: #757575;
  --color-border: #e8e0d5;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

html {
  font-family: "Noto Sans JP", "メイリオ", "ＭＳ Ｐゴシック", Osaka, sans-serif;
  font-size: calc(100vw / 32);
  color: var(--color-text);
  background: var(--color-bg);
  margin: 0;
  padding: 0;
  text-align: center;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--vh) * 6.5 + 1rem);
}

/*コンテナー
---------------------------------------------------------------------------*/

#container {
  margin-right: auto;
  margin-left: auto;
  text-align: left;
}

/*ヘッダー
---------------------------------------------------------------------------*/

header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 90;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: background-color 0.3s ease;
}

.header_inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  height: calc(var(--vh) * 6.5);
  box-sizing: border-box;
}

.header_logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.header_logo img {
  height: calc(var(--vh) * 4.5);
  width: auto;
}

/* ハンバーガーボタン（モバイルのみ表示） */
.header_hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.2rem;
  height: 2.2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  flex-shrink: 0;
}

.header_hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header_hamburger.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.header_hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.header_hamburger.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* モバイルナビ（ドロップダウン） */
.header_nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 0.8rem 0;
  gap: 0;
}

.header_nav.is-open {
  display: flex;
}

.header_nav_link {
  display: block;
  padding: 0.75rem 2rem;
  font-size: 13px;
  font-weight: 300;
  color: #888;
  text-decoration: none;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.2s ease, background-color 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header_nav_link:last-child {
  border-bottom: none;
  color: var(--color-primary);
}

.header_nav_link:hover {
  color: var(--color-primary);
  background-color: rgba(200, 86, 58, 0.04);
}

/*コンテンツ
---------------------------------------------------------------------------*/

#contents {
  clear: left;
  margin-right: auto;
  margin-left: auto;
}

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

#main {
  padding-bottom: 120px;
}

#main h2 {
  position: relative;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  padding: 8rem 0;
  letter-spacing: 0.15em;
  color: var(--color-text);
}

#main h2::before {
  content: "";
  position: absolute;
  background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-accent) 100%);
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  opacity: 0.7;
}


/*メインビジュアル
---------------------------------------------------------------------------*/

.main_vidual {
  position: relative;
  height: calc(var(--vh) * 95);
  background: url("./images/top.jpg") center / cover no-repeat;
  overflow: hidden;
}

.main_vidual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.05) 40%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

.main_vidual .main_vidual_message {
  position: absolute;
  top: calc(var(--vh) * 20);
  width: 100%;
  left: 50%;
  transform: translate(-50%, 0);
  text-align: center;
  font-size: 2.8rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  line-height: 1.6;
}

.main_vidual .main_vidual_message p {
  animation: fadeInUp 0.8s ease both;
}

.main_vidual .main_vidual_message p:nth-child(2) {
  animation-delay: 0.2s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*メニュー
---------------------------------------------------------------------------*/

.menu_section {
  margin-bottom: 80px;
  padding: 0 1rem;
}

.menu_section h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  padding: 0.65rem 1rem;
  margin: 0 0 1rem 0;
  border-left: 4px solid var(--color-primary);
  background: linear-gradient(90deg, rgba(200, 86, 58, 0.06) 0%, transparent 100%);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.menu_section > h3:not(:first-child) {
  margin-top: 2rem;
}

.menu_section h3 i {
  font-size: 1.1rem;
  color: var(--color-primary);
}

.menu_container {
  display: flex;
  flex-flow: row wrap;
  gap: 12px;
}

.menu_item {
  flex: 0 1 100%;
  box-sizing: border-box;
  background: var(--color-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease, box-shadow 300ms ease;
  border: 1px solid rgba(232, 224, 213, 0.5);
}

.menu_item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px) !important;
}

.menu_item.large {
  flex: 0 1 100%;
}

.menu_item.scrollin {
  opacity: 1;
  transform: translateY(0);
}

.menu_image {
  position: relative;
  overflow: hidden;
}

.menu_image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.08) 100%);
  pointer-events: none;
}

.menu_item.large .menu_image {
  margin: 0;
}

.menu_image img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
  transition: transform 400ms ease;
  display: block;
}

.menu_item:hover .menu_image img {
  transform: scale(1.04);
}

.menu_text {
  max-width: 100%;
  word-break: break-all;
  overflow-wrap: break-word;
  padding: 0.2rem 0;
}

.menu_text .menu_name {
  margin: 0.5rem;
  text-align: center;
  font-weight: 500;
  font-size: clamp(22px, 1.8vw, 26px);
  color: var(--color-text);
  padding-bottom: 0.3rem;
  border-bottom: dashed 2px #999999;
}

.menu_text .menu_name p {
  margin: 0;
}

.menu_text .menu_description {
  margin: 0.4rem 0.6rem 0.7rem;
  font-size: clamp(18px, 1.5vw, 22px);
  color: var(--color-text-secondary);
  line-height: 1.6;
  height: 6.5em;
  overflow: hidden;
}

.menu_text .menu_description p {
  margin: 0;
}

/*フッター
---------------------------------------------------------------------------*/

#footer {
  clear: both;
  width: 100%;
  padding: 2rem 1rem;
  line-height: 1.8;
  text-align: center;
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  box-sizing: border-box;
}

/*TOPへ戻る
---------------------------------------------------------------------------*/

#page_top {
  content: "";
  width: 5rem;
  height: 5rem;
  position: fixed;
  right: -5rem;
  bottom: 80px;
  background-image: url("./images/to_top.png");
  background-repeat: no-repeat;
  background-size: 5rem;
  box-shadow: 0 6px 5px -5px rgb(0 0 0 / 30%);
  border-radius: 2.5rem;
  cursor: pointer;
}

@media screen and (min-width: 980px) {
  html {
    font-size: calc(980px / 32);
  }

  header {
    width: 980px;
    left: calc(50% - 980px / 2);
  }

  .header_inner {
    padding: 0 2rem;
  }

  .header_hamburger {
    display: none;
  }

  .header_nav {
    display: flex;
    position: static;
    flex-direction: row;
    background: none;
    backdrop-filter: none;
    box-shadow: none;
    padding: 0;
  }

  .header_nav_link {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    font-size: 13px;
    border-bottom: none;
  }

  .header_nav_link:last-child {
    border: 1px solid var(--color-primary);
    border-radius: 2px;
    margin-left: 0.2rem;
    opacity: 0.8;
  }

  .header_nav_link:last-child:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    opacity: 1;
  }

  #container {
    width: 980px;
  }

  .menu_section {
    padding: 0 1.5rem;
  }

  .menu_container {
    gap: 16px;
  }

  .menu_item {
    flex: 0 1 calc(50% - 8px);
  }


  .menu_item.large {
    flex: 0 1 100%;
  }

  #page_top {
    bottom: 24px;
  }
}
