@charset "utf-8";

/* =========================================================
   common.css
   責務：
   - 全ページ共通の土台
   - 文字・背景・画像・リンク
   - 共通レイアウト幅
   - ページ横断で使う汎用状態
   ========================================================= */

/* =========================================================
   1) 共通設定
   ========================================================= */
*,
*::before,
*::after{
  box-sizing: border-box;
}

html{
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body{
  margin: 0;
  color: #123E4E;
  background-color: #F7FBFC;
  font-family: "Helvetica Neue", Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.7;
}

img{
  display: block;
  width: 100%;
  height: auto;
}

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

.container{
  width: min(1344px, calc(100% - 96px));
  margin-inline: auto;
}

/* =========================================================
   2) ヘッダーブランド共通
   - 全ページで共通利用する文字見た目のみ
   ========================================================= */
.site-header__brand{
  color: inherit;
}

.site-header__logo{
  color: #114B5F;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.site-header__sub{
  margin-top: 8px;
  color: #4F7B89;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.14em;
}

/* =========================================================
   3) 共通リンク演出
   - グローバルナビなどで使う基本リンク演出
   ========================================================= */
.site-header__nav-item a{
  position: relative;
  display: inline-block;
  padding: 8px 0;
  transition: color 0.3s ease;
}

.site-header__nav-item a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-header__nav-item a:hover{
  color: #0b6c88;
}

.site-header__nav-item a:hover::after{
  opacity: 1;
  transform: scaleX(1);
}

/* =========================================================
   4) Back to top
   - 複数ページで使い回せる想定の共通UI
   ========================================================= */
.back-to-top{
  position: fixed;
  right: 24px;
  bottom: 104px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(17, 75, 95, 0.92);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    background-color 0.3s ease;
}

.back-to-top.is-visible{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover{
  background: #0b6c88;
}

.back-to-top__icon{
  font-size: 1.25rem;
  line-height: 1;
}

/* =========================================================
   5) 汎用状態
   ========================================================= */
body.is-modal-open{
  overflow: hidden;
}
