/* ===========================================
   法務省 住所等変更登記の義務化ページ
   CSS Stylesheet
=========================================== */

/* リセットと基本設定 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.8;
  color: #333;
  background-color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

/* メインコンテナ */
.main-container {
  overflow-x: hidden;
}

/* ===========================================
   ヘッダー（法務省ロゴ）
   logo.png: 380 × 125
=========================================== */
.site-header {
  background-color: #fff;
  padding: 18px 20px 15px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.logo-link {
  display: inline-block;
  transition: opacity 0.2s ease;
}

.logo-link:hover {
  opacity: 0.8;
}

.logo-image {
  width: 190px;
  height: auto;
}

@media (max-width: 767px) {
  .site-header {
    padding: 14px 15px 12px;
  }

  .logo-image {
    width: 150px;
  }
}

/* ===========================================
   フッター（コピーライト）
=========================================== */
.site-footer {
  background-color: #333;
  padding: 25px 20px;
  text-align: center;
}

.copyright {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.05em;
  margin: 0;
}

@media (max-width: 767px) {
  .site-footer {
    padding: 20px 15px;
  }

  .copyright {
    font-size: 11px;
  }
}

/* ===========================================
   ページトップボタン
=========================================== */
.page-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease, background-color 0.2s ease;
}

.page-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.page-top-btn:hover {
  background-color: #555;
  transform: translateY(-3px);
}

.page-top-arrows {
  width: 28px;
  height: 28px;
  color: #fff;
}

@media (max-width: 767px) {
  .page-top-btn {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .page-top-arrows {
    width: 22px;
    height: 22px;
  }
}

/* 共通インナー */
.inner {
  text-align: center;
  padding: 0 20px;
}

/* PC表示のみの改行 */
.pc-only {
  display: none;
}

@media (min-width: 768px) {
  .pc-only {
    display: inline;
  }
}

/* ===========================================
   ヒーローセクション（タイトル画像）
   title_header.png: 978 × 180
=========================================== */
.hero-section {
  background-color: #ffe95f;
  padding: 40px 0 25px;
}

.title-image {
  width: 978px;
  height: 180px;
}

@media (max-width: 1000px) {
  .title-image {
    width: 105%;
    height: auto;
  }
}

/* ===========================================
   説明セクション
=========================================== */
.description-section {
  background-color: #ffe95f;
  padding: 20px 0 40px;
}

.description-section .inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.description-section p {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 2;
  color: #333;
}

@media (max-width: 767px) {
  .description-section p {
    text-align: justify;
    font-size: 14px;
  }
}

/* ===========================================
   街並み背景
   bg_town.png: 1100 × 88
=========================================== */
.town-bg {
  background-color: #ffe95f;
  padding: 0;
  line-height: 0;
  text-align: center;
  overflow: visible;
  position: relative;
}

.town-bg.bottom {
  transform: scaleY(-1);
}

.town-img {
  width: 1100px;
  height: 88px;
}

@media (max-width: 1100px) {
  .town-img {
    width: 100%;
    height: auto;
  }
}

/* ===========================================
   点線矢印
   説明文のすぐ下から街並みを突き抜けて伸びる
=========================================== */
.dotted-arrow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.arrow-line {
  width: 4px;
  height: 190px;
  background-image: repeating-linear-gradient(
    to bottom,
    #c41e3a 0px,
    #c41e3a 12px,
    transparent 12px,
    transparent 24px
  );
}

.arrow-head {
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 24px solid #c41e3a;
  margin-top: -1px;
}

@media (max-width: 767px) {
  .arrow-line {
    height: 130px;
    width: 3px;
    background-image: repeating-linear-gradient(
      to bottom,
      #c41e3a 0px,
      #c41e3a 8px,
      transparent 8px,
      transparent 16px
    );
  }

  .arrow-head {
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 18px solid #c41e3a;
  }
}

/* ===========================================
   メイン情報セクション
   circle_main.png: 922 × 537
=========================================== */
.main-info-section {
  background-color: #ffe95f;
  padding: 180px 0 33px;
}

.main-image {
  width: 922px;
  height: 537px;
}

@media (max-width: 950px) {
  .main-image {
    width: 105%;
    height: auto;
  }

  .main-info-section {
    padding: 140px 0 17px;
  }
}

@media (max-width: 767px) {
  .main-info-section {
    padding: 120px 0 17px;
  }
}

/* ===========================================
   スマート変更登記バナー
   banner_smart.png: 719 × 148
=========================================== */
.smart-banner-section {
  background-color: #ffe95f;
  padding: 25px 0 64px;
}

.smart-banner-image {
  width: 719px;
  height: 148px;
}

@media (max-width: 760px) {
  .smart-banner-image {
    width: 105%;
    height: auto;
  }
}

/* ===========================================
   動画セクション
   video_heading.png: 317 × 51
   video_thumbnail.png: 640 × 358
=========================================== */
.video-section {
  background-color: #fff;
  padding: 50px 0 96px;
}

.video-heading {
  margin-bottom: 48px;
}

.video-heading-image {
  width: 317px;
  height: 51px;
}

.video-thumbnail {
  display: inline-block;
  width: 640px;
  height: 358px;
  cursor: pointer;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-thumbnail:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.thumbnail-image {
  width: 640px;
  height: 358px;
  display: block;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background-color: rgba(230, 81, 0, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.video-thumbnail:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: rgba(230, 81, 0, 1);
}

.play-icon-inner {
  color: #fff;
  font-size: 2rem;
  margin-left: 5px;
}

@media (max-width: 680px) {
  .video-section {
    padding: 50px 0 48px;
  }

  .video-heading {
    margin-bottom: 32px;
  }

  .video-heading-image {
    width: 64%;
    height: auto;
  }

  .video-thumbnail {
    width: 100%;
    height: auto;
  }

  .thumbnail-image {
    width: 100%;
    height: auto;
  }

  .play-btn {
    width: 60px;
    height: 60px;
  }

  .play-icon-inner {
    font-size: 1.5rem;
  }
}

/* ===========================================
   モーダル
=========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 800px;
}

.modal-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 5px 10px;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #ffe95f;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  background-color: #000;
  border-radius: 8px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ===========================================
   リンクセクション
   chara_fox_bottom.png: 153 × 167
   btn_link.png: 797 × 140
=========================================== */
.link-section {
  background-color: #ffe95f;
  padding: 80px 0 120px;
}

.link-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto;
}

.fox-bottom {
  width: 153px;
  height: 167px;
  position: absolute;
  left: -60px;
  bottom: -100px;
  z-index: 2;
}

.link-button {
  display: block;
  width: 797px;
  height: 140px;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.link-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  filter: brightness(1.05);
}

.link-button-image {
  width: 797px;
  height: 140px;
  display: block;
}

@media (max-width: 900px) {
  .link-wrap {
    width: 100%;
    max-width: 660px;
  }

  .fox-bottom {
    width: 110px;
    height: auto;
    left: -33px;
    bottom: -88px;
  }

  .link-button {
    width: 110%;
    height: auto;
  }

  .link-button-image {
    width: 100%;
    height: auto;
  }
}
