/* ============================================================
   MAR5AUX — common.css
   共通（Loading / Reset&Base / Header / News / Contact / Footer etc）
============================================================ */

html {
  overflow-x: hidden;
}

/* ============================================================
   LOADING
============================================================ */
.loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease 0.7s;
}

.loading.is-open {
  opacity: 0;
  pointer-events: none;
}

.loading__center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loading__inner {
  position: relative;
  width: 120px;
  height: 120px;
}

.loading__ring {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}

.loading__ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 3;
}

.loading__ring-progress {
  fill: none;
  stroke: #9F353A;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 326.73;
  animation: ring-fill 1s linear forwards;
}

@keyframes ring-fill {
  to { stroke-dashoffset: 0; }
}

/* 扉アイコン（円の内側） */
.loading__doors {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  perspective: 300px;
}

.loading__door-left,
.loading__door-right {
  transition: transform 0.7s cubic-bezier(0.77, 0, 0.175, 1);
}

.loading__door-left {
  transform-origin: left center;
}

.loading__door-right {
  transform-origin: right center;
}

.loading__door-left img,
.loading__door-right img {
  display: block;
  width: 31px;
  height: 51px;
}

/* 扉が開く */
.loading.is-open .loading__door-left {
  transform: rotateY(90deg);
}

.loading.is-open .loading__door-right {
  transform: rotateY(-90deg);
}

.loading__brand {
  margin-top: 20px;
  font-family: 'Bebas Neue', sans-serif;
  width: 130px;
  color: #ffffff;
  text-align: center;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #ffffff;
  color: #111111;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   COMING SOON
============================================================ */
.coming_soon {
  height: 60vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ============================================================
   HEADER
============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 14px 20px;
  background-color: transparent;
  transition: background-color 0.3s;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

/* ⑤ロゴマーク */
.header__logo-mark {
  width: 32px;
  height: 32px;
}

.header__circle-link {
  width: 32px;
  height: 32px;
}

.header__logo-mark.is-open {
  z-index: 160;
}

/* ハンバーガーボタン */
.header__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 200;
}

.header__hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: #ffffff;
  transition: transform 0.3s, opacity 0.3s;
}

/* ハンバーガー → × */
.header__hamburger.is-open span:nth-child(1) {
  background-color: #111111;
  transform: translateY(9.25px) rotate(45deg);
}

.header__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.is-open span:nth-child(3) {
  background-color: #111111;
  transform: translateY(-9.25px) rotate(-45deg);
}

/* スマホ：ナビゲーション（ドロワー） */
.header__nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50vh;
  background-color: rgba(255, 255, 255, 1);
  z-index: 150;
  align-items: center;
  justify-content: left;
  padding-top: 8vh;
}

/* SP横画面：ナビの高さを100%に */
@media (max-width: 794px) and (orientation: landscape) {
  .header__nav {
    height: 100%;
  }
}

.header__nav.is-open {
  display: flex;
}

.header__nav-list {
  display: flex;
  flex-direction: column;
  gap: 1vh;
  padding-left: 50px;
}

.header__nav-link {
  color: rgba(138, 138, 138, 1);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.15em;
  transition: opacity 0.2s;
}

.header__nav-commma {
  display: none;
}

.header__nav-link:hover {
  color: #9F353A;
  font-weight: bold;
}

.header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  opacity: 0.9;
}

.header.is-scrolled .header__nav-link,
.header.is-scrolled .header__nav-commma {
  color: #111111;
}

.header.is-scrolled .header__hamburger span {
  background-color: #111111;
}

/* Circle link */
.header.is-scrolled .header__circle-link {
  border-color: #111111;
  color: #111111;
  background-color: transparent;
}

.header.is-scrolled .header__nav-link:hover {
  color: #9F353A;
  font-weight: bold;
}

/* ============================================================
   NEWS SECTION（共通コンポーネントとして利用）
============================================================ */
.news {
  padding: 60px 20px;
  background-color: #ffffff;
}

.news__inner {
  max-width: 1300px;
  width: 80%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.news__heading {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #111111;
  text-align: center;
  display: inline-block;
  align-self: flex-start;
  margin: 0 auto;
}

.news__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 0;
  transition: background-color 0.2s;
}

.news__item:hover {
  background-color: #fafafa;
}

.news__date {
  font-size: 11px;
  color: #888888;
  letter-spacing: 0.06em;
  font-weight: 300;
}

.news__link {
  font-size: 13px;
  color: #111111;
  line-height: 1.5;
  transition: opacity 0.2s;
}

.news__wrap {
  width: 100%;
}

/* ============================================================
   CONTACT SECTION（共通）
============================================================ */
.contact {
  padding: 50px 0px 0px;
  background-color: #111111;
  color: #f5f5f5;
}

.contact__left {
  padding: 0px 20px;
}

.contact__inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact__heading {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.contact__body {
  font-size: clamp(10px, 2.8vw,13px);
  line-height: 1.8;
  color: #ffffff;
  letter-spacing: 2px;
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
}

.contact__link {
  font-size: 15px;
  color: rgba(138, 138, 138, 1);
  text-underline-offset: 2px;
  transition: opacity 0.2s;
}

.contact__link:hover {
  color: #9F353A;
  text-decoration: underline;
  font-weight: bold;
}

.contact__separator {
  font-size: 15px;
  color: rgba(138, 138, 138, 1);
}

/* 右側ブランド＋ナビ */
.contact__brand {
  text-align: center;
}

.contact__circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  font-size: 34px;
}

.contact__right {
  padding: 0px 20px;
}

.contact__nav-list {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.contact__nav-link {
  font-size: 14px;
  color: rgba(138, 138, 138, 1);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.contact__nav-link:hover {
  color: #9F353A;
  font-weight: bold;
}

.contact__nav-commma {
  color: rgba(138, 138, 138, 1);
  font-size: 14px;
  display: flex;
  align-items: flex-end;
}

/* SP: contact__right を left の下に・中央揃え */
@media (max-width: 794px) {
  .contact__inner {
    flex-direction: column;
  }

  .contact__right {
    text-align: center;
  }

  .contact__nav-list {
    justify-content: center;
  }
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background-color: #111111;
  padding: 80px 20px 30px;
  font-family: 'Noto Sans JP', sans-serif;
  text-align: center;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer__brand {
  line-height: 0;
  margin-bottom: 70px;
}

.footer__brand img {
  height: clamp(48px, 14vw, 250px);
  width: auto;
  display: inline-block;
}

.footer__copy {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
}

/* ============================================================
   TABLET BREAKPOINT (795px〜)
============================================================ */
@media (min-width: 795px) {
  /* Header */
  .header {
    padding: 16px 40px;
  }

  .header__hamburger {
    display: none;
  }

  .header__nav {
    display: flex;
    position: static;
    width: auto;
    height: auto;
    background-color: transparent;
    padding-top: 0;
  }

  .header__nav-list {
    flex-direction: row;
    gap: 0.2vw;
  }

  .header__nav-link {
    font-size: 16px;
    color: rgba(138, 138, 138, 1);
  }

  .header__nav-commma {
    display: inline-block;
    font-size: 15px;
    color: rgba(138, 138, 138, 1);
  }

  /* News */
  .news {
    padding: 120px 40px;
  }

  .news__heading {
    text-align: left;
    font-size: 36px;
    margin: 0;
  }

  .news__item {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    font-size: 16px;
  }

  .news__date {
    flex-shrink: 0;
    width: 90px;
    font-size: 16px;
  }

  /* Contact */
  .contact {
    padding: 70px 40px 0px;
  }

  .contact__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .contact__left {
    flex: 1;
    max-width: 460px;
  }

  .contact__right {
    flex-shrink: 0;
    text-align: right;
  }

  .contact__link {
    font-size: 18px;
  }

  .contact__brand {
    text-align: left;
  }

  /* Footer */
  .footer {
    padding: 110px 60px 30px;
  }

  .footer__brand {
    margin-bottom: 100px;
  }
}

/* ============================================================
   PC BREAKPOINT (1200px〜)
============================================================ */
@media (min-width: 1200px) {
  /* Header */
  .header {
    padding: 20px 60px;
  }

  .header__circle-link {
    width: 36px;
    height: 36px;
  }

  .header__nav-link {
    font-size: 16px;
    letter-spacing: 0.1em;
    padding-top: 0;
  }

  .header__nav-commma {
    display: inline-block;
    font-size: 15px;
  }

  /* News：左右横並び */
  .news {
    padding: 160px 60px;
  }

  .news__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 60px;
    align-items: stretch;
  }

  .news__heading {
    font-size: 40px;
    flex-shrink: 0;
    writing-mode: horizontal-tb;
    margin: 0;
  }

  .news__list {
    flex: 1;
  }

  .news__wrap {
    width: 1px;
    background: #111111;
  }

  .news__date {
    width: 100px;
    font-size: 16px;
  }

  .news__link {
    font-size: 16px;
  }

  /* Contact */
  .contact {
    padding: 80px 60px 0px;
  }
}

