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


/* =========================================
   BASE
========================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  color: #65554f;
  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    sans-serif;
}

button,
a {
  font: inherit;
}


/* =========================================
   HERO
========================================= */

.hero {
  width: 100%;
  overflow: hidden;
  background: #e7f5f8;
}


/* =========================================
   PC / TABLET
========================================= */

.hero-pc {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    clamp(220px, 18vw, 320px);

  /* 100vh固定をやめる */
  min-height: 0;
}


/* =========================================
   A + B
========================================= */

.hero-main {
  position: relative;

  display: grid;

  grid-template-columns:
    minmax(400px, 54%)
    minmax(350px, 1fr);

  align-items: start;

  min-width: 0;
}


/* =========================================
   A : MAP
========================================= */

.hero-map {
  position: relative;

  align-self: start;

  min-width: 0;

  z-index: 1;
}


.hero-map__inner {
  position: relative;

  top: auto;
  left: auto;

  width: min(58vw, 900px);
  max-width: 100%;

  transform: none;
}


.hero-map__inner svg {
  display: block;

  width: 100%;
  height: auto;

  overflow: visible;
}


/* =========================================
   SVG町村
========================================= */

.hero-map__inner .js-town {
  cursor: pointer;
}


/*
 * polygon/path自体が町村の場合
 */

.hero-map__inner polygon.js-town,
.hero-map__inner path.js-town {
  transition:
    fill 0.25s ease,
    opacity 0.25s ease;
}


/*
 * hover
 */

.hero-map__inner polygon.js-town:hover,
.hero-map__inner path.js-town:hover,
.hero-map__inner polygon.js-town:focus,
.hero-map__inner path.js-town:focus {
  fill: #f39a52 !important;
}


/*
 * 選択中
 */

.hero-map__inner polygon.js-town.is-selected,
.hero-map__inner path.js-town.is-selected {
  fill: #f39a52 !important;
}


/*
 * gタグで複数path/polygonが
 * まとまっているケースにも対応
 */

.hero-map__inner g.js-town polygon,
.hero-map__inner g.js-town path {
  transition:
    fill 0.25s ease,
    opacity 0.25s ease;
}


.hero-map__inner g.js-town:hover polygon,
.hero-map__inner g.js-town:hover path,
.hero-map__inner g.js-town:focus polygon,
.hero-map__inner g.js-town:focus path,
.hero-map__inner g.js-town.is-selected polygon,
.hero-map__inner g.js-town.is-selected path {
  fill: #f39a52 !important;
}


/* =========================================
   B : INFORMATION
========================================= */

.hero-info {
  position: relative;
  z-index: 10;

  min-width: 0;

  padding:
    clamp(80px, 7vw, 150px)
    clamp(25px, 4vw, 70px);
	
	padding-bottom: 0;
}


.hero-info__default,
.town-detail {
  width: 100%;
  max-width: 500px;
}


/* =========================================
   MAIN COPY
========================================= */

.hero-copy {
  margin:
    0
    0
    clamp(25px, 3vw, 45px);

  color: #65554f;

  font-size:
    clamp(34px, 3.3vw, 64px);

  font-weight: 500;

  line-height: 1.55;

  letter-spacing: 0.07em;
}


.hero-copy span {
  display: block;

  white-space: nowrap;
}


.hero-copy em {
  color: #f18c4e;
  font-style: normal;
}


.hero-description {
  max-width: 570px;

  margin: 0;

  color: #71645f;

  font-size:
    clamp(14px, 1.05vw, 18px);

  font-weight: 500;

  line-height: 2.1;
}


.hero-guide {
  display: inline-flex;

  align-items: center;

  margin-top:
    clamp(25px, 3vw, 45px);

  padding:
    12px
    clamp(20px, 2vw, 32px);

  border: 1px solid #91cdd7;
  border-radius: 100px;

  background: #fff;

  color: #756661;

  font-size:

    clamp(12px, 0.9vw, 15px);

  white-space: nowrap;
}


.hero-guide strong {
  margin: 0 3px;

  color: #f18c4e;
}


/* =========================================
   TOWN INFORMATION
========================================= */

.town-detail__en {
  margin:
    0
    0
    10px;

  color: #8cb955;

  font-size: 14px;

  font-weight: 600;

  letter-spacing: 0.2em;
}


.town-detail__name {
  margin:
    0
    0
    25px;

  color: #65554f;

  font-size:
    clamp(42px, 4vw, 68px);

  font-weight: 500;

  letter-spacing: 0.08em;
}


.town-detail__description {
  margin:
    0
    0
    30px;

  color: #71645f;

  font-size:
    clamp(14px, 1.05vw, 17px);

  line-height: 2;
}


.town-detail__button,
.sp-town-detail__button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-width: 210px;

  padding: 3px 25px;

  border: 1px solid #8cb955;
  border-radius: 100px;

  background:  #8cb955;

  color: #FFF;

  text-decoration: none;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}


.town-detail__button:hover,
.sp-town-detail__button:hover {
  background: #8cb955;

  color: #fff;
}


.town-detail__back {
  display: block;

  margin-top: 25px;

  padding: 0;

  border: 0;

  background: none;

  color: #756661;

  cursor: pointer;

  text-decoration: underline;
}

.town-detail__main-image,
.town-detail__sub-image {
  margin: 0;
}

.town-detail__main-image {
  margin-bottom: 25px;
}

.town-detail__sub-image {
  margin-top: 25px;
  margin-bottom: 30px;
}

.town-detail__main-image img,
.town-detail__sub-image img {
  display: block;

  width: 100%;
  height: auto;

  border-radius: 8px;
}

/* =========================================
   C : SIDE MENU
========================================= */

.hero-side {
  position: relative;

  z-index: 50;

  min-width: 0;

  padding:
    clamp(30px, 4vw, 60px)
    clamp(15px, 2vw, 30px);

  background: #e7f5f8;
}


.hero-side__head {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 15px;
}


.login-button {
  display: inline-flex;

  align-items: center;

  padding:
    10px
    clamp(10px, 1vw, 18px);

  border: 1px solid #7fc6d2;
  border-radius: 100px;

  background: #fff;

  color: #65554f;

  font-size:
    clamp(12px, 1vw, 16px);

  white-space: nowrap;

  text-decoration: none;
}


.menu-button {
  display: flex;

  flex: 0 0 50px;

  width: 50px;
  height: 50px;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 6px;

  border: 0;
  border-radius: 7px;

  background: #fff;

  cursor: pointer;
}


.menu-button span {
  display: block;

  width: 28px;
  height: 1px;

  background: #65554f;
}


.hero-nav {
  display: flex;

  flex-direction: column;

  margin-top: 20px;

  padding: 25px 20px;

  border-radius: 7px;

  background: #fff;
}


.hero-nav a {
  display: flex;

  align-items: center;

  min-height: 75px;

  padding: 10px;

  color: #65554f;

  font-size:
    clamp(15px, 1.3vw, 21px);

  font-weight: 500;

  text-decoration: none;
}


/* =========================================
   画面が少し狭いPC
========================================= */

@media (max-width: 1350px) {

  .hero-pc {
    grid-template-columns:
      minmax(0, 1fr)
      240px;
  }


  .hero-main {
    grid-template-columns:
      minmax(390px, 62%)
      minmax(330px, 1fr);
  }


  .hero-map__inner {
    width: min(58vw, 800px);
  }
	
	
  .hero-info {
    padding:
      100px
      0px;
  }


  .hero-copy {
    font-size:
      clamp(32px, 3.1vw, 48px);
  }

.hero-info__default,
.town-detail {
  width: 100%;
  max-width: 400px;
}	
	

  .hero-side {
    padding:
      30px
      15px;
  }

}

@media (max-width: 1350px) {
	
  .hero-info {
    padding:150px 0 0;
  }
}

@media (max-width: 1350px) {

  .hero-map__inner {
    width: auto;
    height: clamp(700px, 70vw, 460px);
  }

  .hero-map__inner svg {
    width: auto;
    height: 100%;
  }

}

/* =========================================
   TABLET
========================================= */

@media
  (min-width: 790px)
  and
  (max-width: 1080px) {

  .hero-pc {
    grid-template-columns:
      minmax(0, 1fr)
      190px;
  }


  .hero-main {
    grid-template-columns:
      minmax(540px, 80%)
      minmax(400px, 1fr);
  }


  .hero-map {
    min-height: 500px;
  }


  .hero-map__inner {
    width: 500px;

    left: 0px;
  }


  .hero-info {
    padding:
      100px 0px 0 40px;
  }


  .hero-copy {
    font-size: 30px;

    line-height: 1.6;
  }


  .hero-description {
    font-size: 13px;
  }


  .hero-guide {
    padding:
      10px
      15px;

    font-size: 11px;
  }


  .hero-side {
    padding:
      25px
      10px;
  }


  .hero-side__head {
    gap: 8px;
  }


  .login-button {
    padding:
      8px
      10px;

    font-size: 11px;
  }


  .menu-button {
    flex-basis: 42px;

    width: 42px;
    height: 42px;
  }


  .menu-button span {
    width: 23px;
  }


  .hero-nav {
    padding:
      15px
      10px;
  }


  .hero-nav a {
    min-height: 60px;

    padding: 7px;

    font-size: 14px;
  }

}


/* =========================================
   SP
========================================= */

.hero-sp {
  display: none;
}


@media (max-width: 789px) {

  .hero-pc {
    display: none;
  }


  .hero-sp {
    display: block;

    min-height: 100vh;

    padding:
      80px
      0px;

    background: #e7f5f8;
  }


  .hero-sp__copy {
    margin:
      0
      0
      25px;

    color: #65554f;

    font-size: 30px;

    font-weight: 500;

    line-height: 1.6;

    letter-spacing: 0.06em;
  }


  .hero-sp__copy span {
    color: #f18c4e;
  }


  .hero-sp__description {
    margin:
      0
      0
      45px;

    color: #71645f;

    font-size: 14px;
	  font-size: 120%;

    line-height: 2;
  }


  .hero-sp__heading {
    margin:
      0
      0
      20px;

    color: #65554f;

    font-size: 22px;

    font-weight: 500;
  }

	.sp_main {
		padding: 0 20px 50px;
		background: #FCF9F2;
	}
  .town-list {
    display: grid;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 10px;
  }


  .town-list__button {
    position: relative;

    min-height: 52px;

    padding:
      10px
      30px
      10px
      15px;

    border: 1px solid #9abb69;
    border-radius: 6px;

    background: #fff;

    color: #65554f;

    font-size: 14px;

    text-align: left;

    cursor: pointer;
  }


  .town-list__button::after {
    position: absolute;

    top: 50%;
    right: 12px;

    content: "›";

    color: #8cb955;

    font-size: 20px;

    transform: translateY(-52%);
  }


  .town-list__button.is-selected {
    background: #f39a52;

    border-color: #f39a52;

    color: #fff;
  }


  .town-list__button.is-selected::after {
    color: #fff;
  }


  .sp-town-detail {
    margin-top: 30px;

    padding: 25px;

    border-radius: 8px;

    background: #fff;
  }


  .sp-town-detail__en {
    margin:
      0
      0
      5px;

    color: #8cb955;

    font-size: 12px;

    letter-spacing: 0.15em;
  }


  .sp-town-detail__name {
    margin:
      0
      0
      15px;

    color: #65554f;

    font-size: 28px;

    font-weight: 500;
  }


  .sp-town-detail__description {
    margin:
      0
      0
      20px;

    color: #71645f;

    font-size: 14px;

    line-height: 1.9;
  }


  .sp-town-detail__button {
    width: 100%;
  }
.sp-town-detail__image {
  margin: 20px 0;
}

.sp-town-detail__image img {
  display: block;
  width: 100%;
  height: auto;
}
}

/* =========================================================
   町村名ラベル：クリック + MAP双方向hover
   ========================================================= */

.hero-map__inner .js-town-label-bg {
  cursor: pointer;
  pointer-events: all;
  transition: fill 0.2s ease;
}

.hero-map__inner .js-town-label-text,
.hero-map__inner .js-town-label-text tspan {
  pointer-events: none;
  transition: fill 0.2s ease;
}

/* ラベル自身のhover / MAP側からのhover */
.hero-map__inner .js-town-label-bg.is-hover {
  fill: #8eb854 !important;
}

.hero-map__inner .js-town-label-text.is-hover,
.hero-map__inner .js-town-label-text.is-hover tspan {
  fill: #fff !important;
}

/* ラベルにhoverした時の対応MAP */
/* ラベルにhoverした時も、対応するMAPを通常hoverと同じオレンジにする */
.hero-map__inner polygon.js-town.is-label-hover,
.hero-map__inner path.js-town.is-label-hover {
  fill: #f39a52 !important;
}

/* gタグで構成されている町村エリアにも対応 */
.hero-map__inner g.js-town.is-label-hover polygon,
.hero-map__inner g.js-town.is-label-hover path {
  fill: #f39a52 !important;
}
