@charset "utf-8";
/* CSS Document */

/* ページ背景 */
body {
  margin: 0;
  background-color: #dcdcdc; /* グレー背景 */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, sans-serif !important;
}



/* ✅ 全体共通 */
.page-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  min-height: 100vh;
  padding: 40px;
  box-sizing: border-box;
  background-color: #dcdcdc;
  overflow-x: auto;
  overflow-y: auto;
}

.phone-frame {
  position: relative;
  width: 100%;
  max-width: 375px;
  height: 100vh;
  aspect-ratio: auto;
  background-color: #000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: 40px;
  border: none;
  box-shadow: none;
  margin: 0 auto;
}

/* ✅ スマホ縦：画面いっぱいにフィット */
@media (max-width: 768px) and (orientation: portrait) {
  .page-wrapper {
    padding: 0 !important;
    background-color: #000 !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh !important;
  }

  .phone-frame {
    width: 100%;
    height: auto !important;
    min-height: 100vh;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
}

/* ✅ 小さいスマホ：高さが狭い場合はスクロール許可 */
@media (max-height: 640px) and (orientation: portrait) {
  .page-wrapper,
  .phone-frame {
    height: auto !important;
    overflow-y: auto !important;
    min-height: 100vh;
  }
}

@media (min-width: 850px) and (max-width: 1023px) and (orientation: portrait) {
  .page-wrapper {
    padding: 32px;
    background-color: #111 !important;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  .phone-frame {
    width: 100%;
    max-width: 430px; /* ← 枠っぽさを出す */
    height: auto;
    border-radius: 60px;
    border: 10px solid #222;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    margin: 0 auto;
  }
}


/* ✅ タブレット or スマホ横向き：枠付きスマホ風で表示 */
@media (max-width: 1024px) and (orientation: landscape) {
  .phone-frame {
    width: 80vw;
    height: auto;
    aspect-ratio: 375 / 812;
    border-radius: 30px;
    border: 10px solid #221814;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  }

  .page-wrapper {
    padding: 20px;
  }
}

/* ✅ PC：中央に拡大されたスマホ風、グレー背景 */
@media (min-width: 1025px) {
  .page-wrapper {
    background-color: #dcdcdc;
    padding: 60px 0;
  }

  .phone-frame {
    transform: scale(1.3);
    transform-origin: top center;
    border-radius: 60px;
    border: 15px solid #221814;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    height: auto;
  }
}



.phone-wallpaper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none; 
}

.phone-header,
.phone-notice-bar,
.phone-hero-section,
.phone-main-section {
  position: relative;  /* ← これで全部 flowに乗せてOK */
  z-index: 10;         /* ← 背景より前に出す */
}

.swiper {
  height: 100%;
}

.swiper-wrapper {
  height: 100%;
}

.swiper-slide {
  height: 100%;
}


.phone-wallpaper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-wallpaper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/*-------------ロゴ＋ハンバーガーメニュー --------------------
------------------------------------------------------*/
/* ヘッダーエリア */
.phone-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
}

/* 左側 → ハンバーガー＋ロゴ */
.phone-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ロゴ */
.phone-logo {
  height: 32px;
  width: auto;
}

/* 右側 → 充電アイコンのみ */
.phone-header-right {
  display: flex;
  align-items: center;
}

/* バッテリーアイコン */
.battery-icon {
  height: 20px;
  width: auto;
}


/*-------------【ハンバーガーメニュー開閉】 --------------------
------------------------------------------------------*/
.phone-menu {
position: fixed;
  top: 0;
  bottom: 0; /* ← これ追加！100vh問題に強い */
  left: -100%;
  width: 360px;
  max-width: 100%;
  background-color: #006633;
  color: #fff;
  z-index: 1000;
  transition: left 0.3s ease;
  padding: 20px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;

  overflow-y: auto; /* ← スクロール許可 */
  -webkit-overflow-scrolling: touch; /* ← iOS対策 */
}

.phone-menu.open {
  left: 0;
}

.phone-menu-nav {
  flex: 1 1 auto;
  overflow-y: auto; /* ← ここが重要！内容が多くてもfooterが押し出されない */
}


.phone-menu-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.phone-menu-nav li {
  margin-bottom: 16px;
}

.phone-menu-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}

/* メニューのヘッダー（ロゴ＋×ボタン） */
.phone-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.phone-menu-logo {
  height: 50px;
  width: auto;
}

.menu-close-button {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

/* メニュー本体（このあとは今まで通り） */
.phone-menu-nav {
  flex: 1 1 auto;
}

/* ハンバーガーボタン */
.hamburger-button {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-button span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #fff;
  border-radius: 2px;
}

/* 下層メニュー */
.submenu {
  display: none;
  padding-left: 16px;
  margin-top: 8px;
}

.has-submenu.open .submenu {
  display: block;
}

/* トグルアイコン */
.toggle-icon {
  float: right;
  font-size: 18px;
  font-weight: bold;
}

/* 親メニューのリンク */
.submenu-toggle {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 18px; /* 少し大きめにする */
  font-weight: bold; /* 太字 */
  position: relative;
  padding-bottom: 8px; /* 下線との余白 */
  border-bottom: 2px solid #fff; /* 下線追加 */
  margin-bottom: 12px; /* 下線との間隔 */
}

/* Footer */
.phone-menu-footer {
  margin-top: auto;
  padding-top: 0;
  padding-bottom: 20px;
  font-size: 12px;
  line-height: 1.2;
  color: #ccc;
}

.phone-menu-footer a {
  display: block;
  margin-bottom: 2px;
  color: #ccc;
  text-decoration: none;
  font-size: 12px;
}

.phone-menu-footer a:hover {
  text-decoration: underline;
}


.phone-menu-nav li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}



/* submenu-toggle は今の＋のままでOK */
.toggle-icon {
  font-size: 18px;
  font-weight: bold;
}
.submenu li a {
  padding-left: 20px; /* ← 右にずらす */
  border-bottom: none; /* ← 下線なし */
  font-size: 15px; /* ← 少し小さめ */
  line-height: 1.0; /* ← 行間詰める */
	font-weight: 300;
  padding-top: 6px;
  padding-bottom: 6px;
}


@media (max-width: 768px) {
  .phone-menu {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .phone-menu {
    padding: 16px; /* 全体のpaddingを少し小さく */
  }

  .phone-menu-nav li a {
    font-size: 14px; /* メニューの文字を小さめに */
    padding: 8px 0; /* paddingを詰める */
  }

  .submenu li a {
    font-size: 13px; /* サブメニューもさらに小さめ */
    padding-left: 12px; /* 左側の余白も少し詰める */
    line-height: 1.3; /* 行間をさらに詰める */
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .phone-menu-footer {
    font-size: 11px; /* フッターの文字も小さめ */
    padding-bottom: 16px; /* 下の余白は少し詰めて良い */
  }

  .phone-menu-footer a {
    font-size: 11px;
    margin-bottom: 2px;
  }
}


/*-------------【お知らせ欄】--------------------
------------------------------------------------------*/

.phone-notice-bar {
 position: relative;
  top: 10px; 
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  background-color: #e6e6e6;
  padding: 0;
  margin: 8px 12px;
  z-index: 40;
  font-size: 14px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 8px;

  min-height: 38px;
  padding-left: 6px;
 margin-bottom: 8px;
}

.notice-label {
background-color: #000;
  color: #fff;
  padding: 5px 12px;
  font-size: 14px;
  flex-shrink: 0;
  margin: 0;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  line-height: 1.2;
}

.notice-text {
  flex-grow: 1;
  color: #333;
  padding: 8px 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-link {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.notice-link::after {
  content: "›";
  font-size: 14px;
  margin-left: 4px;
}




/*-------------【ロゴ+時計】--------------------
------------------------------------------------------*/
.phone-hero-section {
position: relative;
  margin-top: 0px;
  width: 94%;
height: 180px;
  margin-inline: auto;
  aspect-ratio: 375 / 160;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}



.hero-background {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('../images/top/clock-bg.png'); /* パスは調整してください */
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}


.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
justify-content: flex-start; 
  align-items: center;
  height: 100%;
  width: 100%;
padding-bottom: 16px;
  gap: 15px;
}

.hero-clock {
  font-size: clamp(36px, 7vw, 52px);
  font-weight: bold;
  color: #fff;
  margin-top: 110px; 
  margin-bottom: 0px;
}

.hero-caption {
  font-size: 13px;
  color: #fff;
  opacity: 0.85;
  margin: 0;
  letter-spacing: 1px;
  padding-bottom: 10px;
}


@media (min-width: 1024px) { /* ← PC */
  .hero-clock {
    font-size: clamp(28px, 4vw, 40px); 
    margin-top: 105px; /* ← 上にあげる */
  }

  .hero-caption {
    font-size: 12px; /* ← 字も少し控えめに */
    padding-bottom: 6px;
  }

  .hero-content {
    gap: 10px; /* ← 間隔も少し詰めてスマートに */
  }
}

@media (max-width: 1023px) and (orientation: landscape) {
  .hero-clock {
    font-size: clamp(30px, 5vw, 44px) !important;
    margin-top: 110px !important;
  }

  .hero-caption {
    font-size: 11px !important;
    padding-bottom: 4px !important;
  }

  .hero-content {
    gap: 10px !important;
  }
}

@media (min-width: 390px) and (max-width: 1023px) and (orientation: portrait) {
  .hero-caption {
    margin-top: 2% !important;
  }
}



/*-------------【アイコングリッド】--------------------
------------------------------------------------------*/

.phone-main-section {
  position: relative;
  z-index: 10;
  margin-top: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 1025px) {
  .phone-main-section,
  .bottom-icon-box {
    max-width: 375px;
    margin: 0 auto;
  }
}


.main-upper {
  display: flex;
  gap: 12px;
  align-items: stretch; /* ← 高さを揃える */
}

/* 左のスライダー */
.icon-slider {
  flex: 1;
  aspect-ratio: 4 / 3;
  max-height: 140px;
  border-radius: 12px;
  overflow: hidden;
}

.icon-grid-4x2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 8px;
}

.icon-item {
  background-color: transparent !important;
  border-radius: 10px;
  text-align: center;
  padding: 6px;
  font-size: 10px;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 100%;
}

.icon-item img {
  width: 54px;
  height: 54px;
  margin-bottom: 6px;
}

@media (min-width: 390px) and (max-width: 1023px) {
  .icon-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 6px;
  }

  .icon-item span {
    font-size: 12px;
  }
}


.icon-item:hover {
  background-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  transition: all 0.2s ease;
  cursor: pointer;
}

.icon-item span {
  font-size: 10px;
  line-height: 1.2;
}

.icon-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.icon-grid-2x2 {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
}
.swiper-pagination {
  margin-top: 6px;
  text-align: center;
  position: relative;
  z-index: 10;
}


.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background-color: #a0e6b4;  /* ← 薄めの緑 */
  opacity: 0.4;
  margin: 0 4px;
  border-radius: 50%;
  transition: opacity 0.3s, background-color 0.3s;
}


.swiper-pagination-bullet-active {
  background-color: #00cc99;  /* ← メインの緑に合わせる */
  opacity: 1;
}
.slider-caption {
  font-size: 11px;
  color: #ffffff;
  opacity: 0.85;
}

.icon-slider-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.icon-slider {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
}

.slider-caption {
  font-size: 12px;
  color: #ccc;
  text-align: center;
  margin-top: 6px;
  line-height: 1.4;
}

/* スライダーのドット表示 */
.swiper-pagination {
  margin-top: 6px;
  text-align: center;
  display: block;
  position: relative;
  z-index: 10;
}

.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background-color: #E4EDDB !important;
  opacity: 0.4;
  margin: 0 4px;
  border-radius: 50%;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background-color: #639C57 !important;
}
@media (max-height: 640px) and (orientation: portrait) {
  html, body {
    height: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .page-wrapper {
    height: auto !important;
    min-height: 100vh !important;
    overflow-y: auto !important;
    display: block !important; /* ← flexが悪さする場合があるので一時block */
  }

  .phone-frame {
position: relative;
  height: 100vh; /* ← 高さを固定 */
  overflow: hidden;
  }
}

html, body {
  height: auto !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}









/*-------------【アイコングリッド下部4個】--------------------
------------------------------------------------------*/


.bottom-icon-box {
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 12px 8px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 16px 12px;
  backdrop-filter: blur(6px);
  gap: 6px;
}

.bottom-icon-item {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  padding: 6px 0;
  transition: transform 0.2s ease;
}

.bottom-icon-item:hover {
  transform: translateY(-2px);
}

.bottom-icon-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.bottom-icon-item span {
  font-size: 11px;
  color: #fff;
  text-align: center;
  white-space: nowrap;
}




@media (min-width: 390px) and (max-width: 767px) {
  .phone-frame {
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 0 !important;
  }
}
.phone-wallpaper {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0 !important;
  display: block !important;
  pointer-events: none;
}


@media (max-height: 640px) and (orientation: portrait) {
  html, body,
  .page-wrapper,
  .phone-frame {
    height: auto !important;
    overflow-y: auto !important;
  }
}

@media (min-width: 390px) and (max-width: 767px) {
  .phone-frame {
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 0 !important;
    height: auto !important;
    min-height: 100vh !important;
  }
}

/* スマホ・PC問わず、全体を普通の1本スクロールに戻す */
@media (min-width: 1025px) {
  html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: auto;
  }

  .page-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    min-height: 100vh;
    padding: 60px 0;
    background-color: #dcdcdc;
    overflow: hidden;
    box-sizing: border-box;
  }

  .phone-frame {
    width: 100%;
    max-width: 375px;
    height: 812px; /* iPhoneサイズに固定 */
    overflow-y: auto;
    transform: none !important;
    border-radius: 60px;
    border: 15px solid #221814;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    background-color: #000;
    position: relative;
  }

  .phone-wallpaper {
    height: 100%;
    overflow: hidden;
  }
}
